girder-slicer-cli-web 5.0.5.dev8__tar.gz → 5.0.5.dev12__tar.gz
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.
- {girder_slicer_cli_web-5.0.5.dev8/girder_slicer_cli_web.egg-info → girder_slicer_cli_web-5.0.5.dev12}/PKG-INFO +1 -1
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12/girder_slicer_cli_web.egg-info}/PKG-INFO +1 -1
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/web_client/dist/girder-plugin-slicer-cli-web.umd.cjs +2 -2
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/MANIFEST.in +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/README.rst +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/docs/worker_management.rst +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/.dockerignore +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/Dockerfile +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/README.rst +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/average_color/average_color.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/average_color/average_color.xml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/cli_list.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-average-color/cli_list.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-girder-requests/Dockerfile +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-girder-requests/README.rst +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-girder-requests/cli_list.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-girder-requests/cli_list.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-girder-requests/girder_requests/girder_requests.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/example-girder-requests/girder_requests/girder_requests.xml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/girder_slicer_cli_web.egg-info/SOURCES.txt +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/girder_slicer_cli_web.egg-info/dependency_links.txt +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/girder_slicer_cli_web.egg-info/entry_points.txt +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/girder_slicer_cli_web.egg-info/not-zip-safe +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/girder_slicer_cli_web.egg-info/requires.txt +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/girder_slicer_cli_web.egg-info/top_level.txt +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/pyproject.toml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/setup.cfg +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/setup.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/__init__.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/cli_list_entrypoint.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/cli_utils.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/config.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/ctk_cli_adjustment.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/docker_resource.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/girder_plugin.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/girder_worker_plugin/__init__.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/girder_worker_plugin/cli_progress.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/girder_worker_plugin/direct_docker_run.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/image_job.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/models/__init__.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/models/docker_image.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/models/exceptions.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/models/json_to_xml.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/models/parser.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/models/schema.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/prepare_task.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/rest_slicer_cli.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/upload_slicer_cli_task.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/web_client/dist/style.css +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/worker_tools.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/.dockerignore +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Dockerfile +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example1/Example1.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example1/Example1.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example1/Example1.xml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example1/Example1.yaml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example2/Example2.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example2/Example2.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example2/Example2.xml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example2/Example2.yaml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example3/Example3.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example3/Example3.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example3/Example3.xml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Example3/Example3.yaml +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/ExampleProgress/ExampleProgress.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/ExampleProgress/ExampleProgress.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/ExampleProgress/progress_helper.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/ExampleSubJob/ExampleSubJob.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/ExampleSubJob/ExampleSubJob.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/cli_list.json +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/cli_list.py +0 -0
- {girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/utils/xmltojson.py +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s(((e,t)=>{t.exports={}}));function p(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=m(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`'`)+`'`}function m(e){var t=``+e,n=h.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`"`;break;case 38:a=`&`;break;case 60:a=`<`;break;case 62:a=`>`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var h=/["&<>]/;function g(e,t,n,r){if(!(e instanceof Error))throw e;if(!(typeof window>`u`&&t||r))throw e.message+=` on line `+n,e;var i,a,o,s;try{r||=f().readFileSync(t,{encoding:`utf8`}),i=3,a=r.split(`
|
|
1
|
+
(function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=s(((e,t)=>{t.exports={}}));function p(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=m(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`'`)+`'`}function m(e){var t=``+e,n=h.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`"`;break;case 38:a=`&`;break;case 60:a=`<`;break;case 62:a=`>`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var h=/["&<>]/;function g(e,t,n,r){if(!(e instanceof Error))throw e;if(!(typeof window>`u`&&t||r))throw e.message+=` on line `+n,e;var i,a,o,s;try{r||=f().readFileSync(t,{encoding:`utf8`}),i=3,a=r.split(`
|
|
2
2
|
`),o=Math.max(n-i,0),s=Math.min(a.length,n+i)}catch(r){e.message+=` - could not read from `+t+` (`+r.message+`)`,g(e,null,n);return}i=a.slice(o,s).map(function(e,t){var r=t+o+1;return(r==n?` > `:` `)+r+`| `+e}).join(`
|
|
3
3
|
`),e.path=t;try{e.message=(t||`Pug`)+`:`+n+`
|
|
4
4
|
`+i+`
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
</div>`,extensions:[{name:`preview`,options:{showText:!0}}],sliders:{saturation:{selector:`.colorpicker-saturation`,maxLeft:i,maxTop:i,callLeft:`setSaturationRatio`,callTop:`setValueRatio`},hue:{selector:`.colorpicker-hue`,maxLeft:0,maxTop:i,callLeft:!1,callTop:`setHueRatio`},alpha:{selector:`.colorpicker-alpha`,childSelector:`.colorpicker-alpha-color`,maxLeft:0,maxTop:i,callLeft:!1,callTop:`setAlphaRatio`}},slidersHorz:{saturation:{selector:`.colorpicker-saturation`,maxLeft:i,maxTop:i,callLeft:`setSaturationRatio`,callTop:`setValueRatio`},hue:{selector:`.colorpicker-hue`,maxLeft:i,maxTop:0,callLeft:`setHueRatio`,callTop:!1},alpha:{selector:`.colorpicker-alpha`,childSelector:`.colorpicker-alpha-color`,maxLeft:i,maxTop:0,callLeft:`setAlphaRatio`,callTop:!1}}},e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={colors:null,namesAsValues:!0};t.default=function(e){u(t,e),i(t,[{key:`colors`,get:function(){return this.options.colors}}]);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return!Array.isArray(i.options.colors)&&r(i.options.colors)!==`object`&&(i.options.colors=null),i}return i(t,[{key:`getLength`,value:function(){return this.options.colors?Array.isArray(this.options.colors)?this.options.colors.length:r(this.options.colors)===`object`?Object.keys(this.options.colors).length:0:0}},{key:`resolveColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.getLength()<=0?!1:Array.isArray(this.options.colors)?this.options.colors.indexOf(e)>=0?e:this.options.colors.indexOf(e.toUpperCase())>=0?e.toUpperCase():this.options.colors.indexOf(e.toLowerCase())>=0?e.toLowerCase():!1:r(this.options.colors)===`object`?!this.options.namesAsValues||t?this.getValue(e,!1):this.getName(e,this.getName(`#`+e)):!1}},{key:`getName`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(typeof e!=`string`||!this.options.colors)return t;for(var n in this.options.colors)if(this.options.colors.hasOwnProperty(n)&&this.options.colors[n].toLowerCase()===e.toLowerCase())return n;return t}},{key:`getValue`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof e!=`string`||!this.options.colors?t:this.options.colors.hasOwnProperty(e)?this.options.colors[e]:t}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),(function(e,t,n){var r=n(5),i={};for(var a in r)r.hasOwnProperty(a)&&(i[r[a]]=a);var o=e.exports={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};for(var s in o)if(o.hasOwnProperty(s)){if(!(`channels`in o[s]))throw Error(`missing channels property: `+s);if(!(`labels`in o[s]))throw Error(`missing channel labels property: `+s);if(o[s].labels.length!==o[s].channels)throw Error(`channel and label counts mismatch: `+s);var c=o[s].channels,l=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],`channels`,{value:c}),Object.defineProperty(o[s],`labels`,{value:l})}o.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c,l;return a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},o.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?i=a=0:(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]},o.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i,a,o,s=Math.min(1-t,1-n,1-r);return i=(1-t-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,[i*100,a*100,o*100,s*100]};function u(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){var t=i[e];if(t)return t;var n=1/0,a;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],c=u(e,s);c<n&&(n=c,a=o)}return a},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;var i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2],a,s,c;return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,a=116*r-16,s=500*(n-r),c=200*(r-i),[a,s,c]},o.hsl.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o,s,c;if(n===0)return c=r*255,[c,c,c];a=r<.5?r*(1+n):r+n-r*n,i=2*r-a,s=[0,0,0];for(var l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,c=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l]=c*255;return s},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01),o,s;return r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a,s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n),[t,o*100,s*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},o.hsv.hsl=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o,s=(2-n)*r;return a=(2-n)*i,o=n*i,o/=a<=1?a:2-a,o||=0,s/=2,[t,o*100,s*100]},o.hwb.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a,o,s,c;i>1&&(n/=i,r/=i),a=Math.floor(6*t),o=1-r,s=6*t-a,a&1&&(s=1-s),c=n+s*(o-n);var l,u,d;switch(a){default:case 6:case 0:l=o,u=c,d=n;break;case 1:l=c,u=o,d=n;break;case 2:l=n,u=o,d=c;break;case 3:l=n,u=c,d=o;break;case 4:l=c,u=n,d=o;break;case 5:l=o,u=n,d=c;break}return[l*255,u*255,d*255]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},o.xyz.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057;return i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o;return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=116*n-16,a=500*(t-n),o=200*(n-r),[i,a,o]},o.lab.xyz=function(e){var t=e[0],n=e[1],r=e[2],i,a=(t+16)/116,o;i=n/500+a,o=a-r/200;var s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},o.lab.lch=function(e){var t=e[0],n=e[1],r=e[2],i=Math.atan2(r,n)*360/2/Math.PI,a;return i<0&&(i+=360),a=Math.sqrt(n*n+r*r),[t,a,i]},o.lch.lab=function(e){var t=e[0],n=e[1],r=e[2],i,a,o=r/360*2*Math.PI;return i=n*Math.cos(o),a=n*Math.sin(o),[t,i,a]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n;return[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){var t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];t[0].length===3&&(n=n.split(``).map(function(e){return e+e}).join(``));var r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},o.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o+4;return c/=6,c%=1,[c*360,o*100,s*100]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return r=n<.5?2*t*n:2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];var i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),(function(e,t,n){"use strict";var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i=o(n(8)),a=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}var s=`colorpicker`;a.default[s]=i.default,a.default.fn[s]=function(e){var t=Array.prototype.slice.call(arguments,1),n=this.length===1,o=null,c=this.each(function(){var c=(0,a.default)(this),l=c.data(s),u=(e===void 0?`undefined`:r(e))===`object`?e:{};l||(l=new i.default(this,u),c.data(s,l)),n&&(o=c,typeof e==`string`&&(o=e===`colorpicker`?l:a.default.isFunction(l[e])?l[e].apply(l,t):l[e]))});return n?o:c},a.default.fn[s].constructor=i.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(1)),a=h(n(3)),o=h(n(9)),s=h(n(0)),c=h(n(13)),l=h(n(14)),u=h(n(15)),d=h(n(22)),f=h(n(23)),p=h(n(24)),m=h(n(2));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var _=0,v=typeof self<`u`?self:void 0,y=function(){r(e,[{key:`color`,get:function(){return this.colorHandler.color}},{key:`format`,get:function(){return this.colorHandler.format}},{key:`picker`,get:function(){return this.pickerHandler.picker}}],[{key:`Color`,get:function(){return m.default}},{key:`Extension`,get:function(){return i.default}}]);function e(t,n){g(this,e),_+=1,this.id=_,this.lastEvent={alias:null,e:null},this.element=(0,s.default)(t).addClass(`colorpicker-element`).attr(`data-colorpicker-id`,this.id),this.options=s.default.extend(!0,{},a.default,n,this.element.data()),this.disabled=!1,this.extensions=[],this.container=this.options.container===!0||this.options.container!==!0&&this.options.inline===!0?this.element:this.options.container,this.container=this.container===!1?!1:(0,s.default)(this.container),this.inputHandler=new u.default(this),this.colorHandler=new d.default(this),this.sliderHandler=new c.default(this),this.popupHandler=new l.default(this,v),this.pickerHandler=new f.default(this),this.addonHandler=new p.default(this),this.init(),(0,s.default)(s.default.proxy(function(){this.trigger(`colorpickerCreate`)},this))}return r(e,[{key:`init`,value:function(){this.addonHandler.bind(),this.inputHandler.bind(),this.initExtensions(),this.colorHandler.bind(),this.pickerHandler.bind(),this.sliderHandler.bind(),this.popupHandler.bind(),this.pickerHandler.attach(),this.update(),this.inputHandler.isDisabled()&&this.disable()}},{key:`initExtensions`,value:function(){var t=this;Array.isArray(this.options.extensions)||(this.options.extensions=[]),this.options.debug&&this.options.extensions.push({name:`debugger`}),this.options.extensions.forEach(function(n){t.registerExtension(e.extensions[n.name.toLowerCase()],n.options||{})})}},{key:`registerExtension`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new e(this,t);return this.extensions.push(n),n}},{key:`destroy`,value:function(){var e=this.color;this.sliderHandler.unbind(),this.inputHandler.unbind(),this.popupHandler.unbind(),this.colorHandler.unbind(),this.addonHandler.unbind(),this.pickerHandler.unbind(),this.element.removeClass(`colorpicker-element`).removeData(`colorpicker`).removeData(`color`).off(`.colorpicker`),this.trigger(`colorpickerDestroy`,e)}},{key:`show`,value:function(e){this.popupHandler.show(e)}},{key:`hide`,value:function(e){this.popupHandler.hide(e)}},{key:`toggle`,value:function(e){this.popupHandler.toggle(e)}},{key:`getValue`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.colorHandler.color;return t=t instanceof m.default?t:e,t instanceof m.default?t.string(this.format):t}},{key:`setValue`,value:function(e){if(!this.isDisabled()){var t=this.colorHandler;t.hasColor()&&e&&t.color.equals(e)||!t.hasColor()&&!e||(t.color=e?t.createColor(e,this.options.autoInputFallback,this.options.autoHexInputFallback):null,this.trigger(`colorpickerChange`,t.color,e),this.update())}}},{key:`update`,value:function(){this.colorHandler.hasColor()?this.inputHandler.update():this.colorHandler.assureColor(),this.addonHandler.update(),this.pickerHandler.update(),this.trigger(`colorpickerUpdate`)}},{key:`enable`,value:function(){return this.inputHandler.enable(),this.disabled=!1,this.picker.removeClass(`colorpicker-disabled`),this.trigger(`colorpickerEnable`),!0}},{key:`disable`,value:function(){return this.inputHandler.disable(),this.disabled=!0,this.picker.addClass(`colorpicker-disabled`),this.trigger(`colorpickerDisable`),!0}},{key:`isEnabled`,value:function(){return!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.disabled===!0}},{key:`trigger`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.element.trigger({type:e,colorpicker:this,color:t||this.color,value:n||this.getValue()})}}]),e}();y.extensions=o.default,t.default=y,e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0}),t.Palette=t.Swatches=t.Preview=t.Debugger=void 0;var r=s(n(10)),i=s(n(11)),a=s(n(12)),o=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}t.Debugger=r.default,t.Preview=i.default,t.Swatches=a.default,t.Palette=o.default,t.default={debugger:r.default,preview:i.default,swatches:a.default,palette:o.default}}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.eventCounter=0,r.colorpicker.inputHandler.hasInput()&&r.colorpicker.inputHandler.input.on(`change.colorpicker-ext`,o.default.proxy(r.onChangeInput,r)),r}return r(t,[{key:`log`,value:function(e){var t,n=[...arguments].slice(1);this.eventCounter+=1;var r=`#`+this.eventCounter+`: Colorpicker#`+this.colorpicker.id+` [`+e+`]`;(t=console).debug.apply(t,[r].concat(n)),this.colorpicker.element.trigger({type:`colorpickerDebug`,colorpicker:this.colorpicker,color:this.color,value:null,debug:{debugger:this,eventName:e,logArgs:n,logMessage:r}})}},{key:`resolveColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return this.log(`resolveColor()`,e,t),!1}},{key:`onCreate`,value:function(e){return this.log(`colorpickerCreate`),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e)}},{key:`onDestroy`,value:function(e){return this.log(`colorpickerDestroy`),this.eventCounter=0,this.colorpicker.inputHandler.hasInput()&&this.colorpicker.inputHandler.input.off(`.colorpicker-ext`),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onDestroy`,this).call(this,e)}},{key:`onUpdate`,value:function(e){this.log(`colorpickerUpdate`)}},{key:`onChangeInput`,value:function(e){this.log(`input:change.colorpicker`,e.value,e.color)}},{key:`onChange`,value:function(e){this.log(`colorpickerChange`,e.value,e.color)}},{key:`onInvalid`,value:function(e){this.log(`colorpickerInvalid`,e.value,e.color)}},{key:`onHide`,value:function(e){this.log(`colorpickerHide`),this.eventCounter=0}},{key:`onShow`,value:function(e){this.log(`colorpickerShow`)}},{key:`onDisable`,value:function(e){this.log(`colorpickerDisable`)}},{key:`onEnable`,value:function(e){this.log(`colorpickerEnable`)}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(1)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},{template:`<div class="colorpicker-bar colorpicker-preview"><div /></div>`,showText:!0,format:e.format},n)));return r.element=(0,o.default)(r.options.template),r.elementInner=r.element.find(`div`),r}return r(t,[{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.colorpicker.picker.append(this.element)}},{key:`onUpdate`,value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onUpdate`,this).call(this,e),!e.color){this.elementInner.css(`backgroundColor`,null).css(`color`,null).html(``);return}this.elementInner.css(`backgroundColor`,e.color.toRgbString()),this.options.showText&&(this.elementInner.html(e.color.string(this.options.format||this.colorpicker.format)),e.color.isDark()&&e.color.alpha>.5?this.elementInner.css(`color`,`white`):this.elementInner.css(`color`,`black`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}else if(`value`in i)return i.value;else{var o=i.get;return o===void 0?void 0:o.call(r)}},a=s(n(4)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function u(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={barTemplate:`<div class="colorpicker-bar colorpicker-swatches">
|
|
64
64
|
<div class="colorpicker-swatches--inner"></div>
|
|
65
|
-
</div>`,swatchTemplate:`<i class="colorpicker-swatch"><i class="colorpicker-swatch--inner"></i></i>`};t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return r.element=null,r}return r(t,[{key:`isEnabled`,value:function(){return this.getLength()>0}},{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.isEnabled()&&(this.element=(0,o.default)(this.options.barTemplate),this.load(),this.colorpicker.picker.append(this.element))}},{key:`load`,value:function(){var e=this,t=this.colorpicker,n=this.element.find(`.colorpicker-swatches--inner`),r=this.options.namesAsValues===!0&&!Array.isArray(this.colors);n.empty(),o.default.each(this.colors,function(i,a){var s=(0,o.default)(e.options.swatchTemplate).attr(`data-name`,i).attr(`data-value`,a).attr(`title`,r?i+`: `+a:a).on(`mousedown.colorpicker touchstart.colorpicker`,function(e){var n=(0,o.default)(this);t.setValue(r?n.attr(`data-name`):n.attr(`data-value`))});s.find(`.colorpicker-swatch--inner`).css(`background-color`,a),n.append(s)}),n.append((0,o.default)(`<i class="colorpicker-clear"></i>`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.currentSlider=null,this.mousePointer={left:0,top:0},this.onMove=i.default.proxy(this.defaultOnMove,this)}return r(e,[{key:`defaultOnMove`,value:function(e,t){if(this.currentSlider){var n=this.currentSlider,r=this.colorpicker,i=r.colorHandler,a=i.hasColor()?i.color.getClone():i.getFallbackColor();n.guideStyle.left=t+`px`,n.guideStyle.top=e+`px`,n.callLeft&&a[n.callLeft](t/n.maxLeft),n.callTop&&a[n.callTop](e/n.maxTop),r.setValue(a),r.popupHandler.focus()}}},{key:`bind`,value:function(){var e=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders,t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n].selector);this.colorpicker.picker.find(t.join(`, `)).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.pressed,this))}},{key:`unbind`,value:function(){(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)})}},{key:`pressed`,value:function(e){if(!this.colorpicker.isDisabled()){this.colorpicker.lastEvent.alias=`pressed`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY);var t=(0,i.default)(e.target).closest(`div`),n=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders;if(!t.is(`.colorpicker`)){for(var r in this.currentSlider=null,n)if(n.hasOwnProperty(r)){var a=n[r];if(t.is(a.selector)){this.currentSlider=i.default.extend({},a,{name:r});break}else if(a.childSelector!==void 0&&t.is(a.childSelector)){this.currentSlider=i.default.extend({},a,{name:r}),t=t.parent();break}}var o=t.find(`.colorpicker-guide`).get(0);if(!(this.currentSlider===null||o===null)){var s=t.offset();this.currentSlider.guideStyle=o.style,this.currentSlider.left=e.pageX-s.left,this.currentSlider.top=e.pageY-s.top,this.mousePointer={left:e.pageX,top:e.pageY},(0,i.default)(this.colorpicker.picker).on({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)}).trigger(`mousemove`)}}}}},{key:`moved`,value:function(e){this.colorpicker.lastEvent.alias=`moved`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY),e.preventDefault();var t=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((e.pageX||this.mousePointer.left)-this.mousePointer.left))),n=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((e.pageY||this.mousePointer.top)-this.mousePointer.top)));this.onMove(n,t)}},{key:`released`,value:function(e){this.colorpicker.lastEvent.alias=`released`,this.colorpicker.lastEvent.e=e,(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":this.moved,"touchmove.colorpicker":this.moved,"mouseup.colorpicker":this.released,"touchend.colorpicker":this.released})}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t,n){s(this,e),this.root=n,this.colorpicker=t,this.popoverTarget=null,this.popoverTip=null,this.clicking=!1,this.hidding=!1,this.showing=!1}return r(e,[{key:`bind`,value:function(){var e=this.colorpicker;if(e.options.inline){e.picker.addClass(`colorpicker-inline colorpicker-visible`);return}e.picker.addClass(`colorpicker-popup colorpicker-hidden`),!(!this.hasInput&&!this.hasAddon)&&(e.options.popover&&this.createPopover(),this.hasAddon&&(this.addon.attr(`tabindex`)||this.addon.attr(`tabindex`,0),this.addon.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.on({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasInput&&!this.hasAddon&&(this.input.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)))}},{key:`unbind`,value:function(){this.hasInput&&(this.input.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasAddon&&(this.addon.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.off({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.popoverTarget&&this.popoverTarget.popover(`dispose`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))}},{key:`isClickingInside`,value:function(e){return e?this.isOrIsInside(this.popoverTip,e.currentTarget)||this.isOrIsInside(this.popoverTip,e.target)||this.isOrIsInside(this.colorpicker.picker,e.currentTarget)||this.isOrIsInside(this.colorpicker.picker,e.target):!1}},{key:`isOrIsInside`,value:function(e,t){return!e||!t?!1:(t=(0,i.default)(t),t.is(e)||e.find(t).length>0)}},{key:`onClickingInside`,value:function(e){this.clicking=this.isClickingInside(e)}},{key:`createPopover`,value:function(){var e=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input,e.picker.addClass(`colorpicker-bs-popover-content`),this.popoverTarget.popover(i.default.extend(!0,{},a.default.popover,e.options.popover,{trigger:`manual`,content:e.picker,html:!0})),this.popoverTip=window.bootstrap&&window.bootstrap.Popover&&window.bootstrap.Popover.getInstance?(0,i.default)(bootstrap.Popover.getInstance(this.popoverTarget[0]).getTipElement()):(0,i.default)(this.popoverTarget.popover(`getTipElement`).data(`bs.popover`).tip),this.popoverTip.addClass(`colorpicker-bs-popover`),this.popoverTarget.on(`shown.bs.popover`,i.default.proxy(this.fireShow,this)),this.popoverTarget.on(`hidden.bs.popover`,i.default.proxy(this.fireHide,this))}},{key:`reposition`,value:function(e){this.popoverTarget&&this.isVisible()&&this.popoverTarget.popover(`update`)}},{key:`toggle`,value:function(e){this.isVisible()?this.hide(e):this.show(e)}},{key:`show`,value:function(e){if(!(this.isVisible()||this.showing||this.hidding)){this.showing=!0,this.hidding=!1,this.clicking=!1;var t=this.colorpicker;t.lastEvent.alias=`show`,t.lastEvent.e=e,e&&(!this.hasInput||this.input.attr(`type`)===`color`)&&e&&e.preventDefault&&(e.stopPropagation(),e.preventDefault()),this.isPopover&&(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)),t.picker.addClass(`colorpicker-visible`).removeClass(`colorpicker-hidden`),this.popoverTarget?this.popoverTarget.popover(`show`):this.fireShow()}}},{key:`fireShow`,value:function(){this.hidding=!1,this.showing=!1,this.isPopover&&((0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))),this.colorpicker.trigger(`colorpickerShow`)}},{key:`hide`,value:function(e){if(!(this.isHidden()||this.showing||this.hidding)){var t=this.colorpicker,n=this.clicking||this.isClickingInside(e);if(this.hidding=!0,this.showing=!1,this.clicking=!1,t.lastEvent.alias=`hide`,t.lastEvent.e=e,n){this.hidding=!1;return}this.popoverTarget?this.popoverTarget.popover(`hide`):this.fireHide()}}},{key:`fireHide`,value:function(){this.hidding=!1,this.showing=!1;var e=this.colorpicker;e.picker.addClass(`colorpicker-hidden`).removeClass(`colorpicker-visible`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this)),e.trigger(`colorpickerHide`)}},{key:`focus`,value:function(){return this.hasAddon?this.addon.focus():this.hasInput?this.input.focus():!1}},{key:`isVisible`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-visible`)&&!this.colorpicker.picker.hasClass(`colorpicker-hidden`)}},{key:`isHidden`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-hidden`)&&!this.colorpicker.picker.hasClass(`colorpicker-visible`)}},{key:`input`,get:function(){return this.colorpicker.inputHandler.input}},{key:`hasInput`,get:function(){return this.colorpicker.inputHandler.hasInput()}},{key:`addon`,get:function(){return this.colorpicker.addonHandler.addon}},{key:`hasAddon`,get:function(){return this.colorpicker.addonHandler.hasAddon()}},{key:`isPopover`,get:function(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t,this.input=this.colorpicker.element.is(`input`)?this.colorpicker.element:this.colorpicker.options.input?this.colorpicker.element.find(this.colorpicker.options.input):!1,this.input&&this.input.length===0&&(this.input=!1),this._initValue()}return r(e,[{key:`bind`,value:function(){this.hasInput()&&(this.input.on({"keyup.colorpicker":i.default.proxy(this.onkeyup,this)}),this.input.on({"change.colorpicker":i.default.proxy(this.onchange,this)}))}},{key:`unbind`,value:function(){this.hasInput()&&this.input.off(`.colorpicker`)}},{key:`_initValue`,value:function(){if(this.hasInput()){var e=``;[this.input.val(),this.input.data(`color`),this.input.attr(`data-color`)].map(function(t){t&&e===``&&(e=t)}),e instanceof a.default?e=this.getFormattedColor(e.string(this.colorpicker.format)):typeof e==`string`||e instanceof String||(e=``),this.input.prop(`value`,e)}}},{key:`getValue`,value:function(){return this.hasInput()?this.input.val():!1}},{key:`setValue`,value:function(e){if(this.hasInput()){var t=this.input.prop(`value`);e||=``,e!==(t||``)&&(this.input.prop(`value`,e),this.input.trigger({type:`change`,colorpicker:this.colorpicker,color:this.colorpicker.color,value:e}))}}},{key:`getFormattedColor`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e||=this.colorpicker.colorHandler.getColorString(),e?(e=this.colorpicker.colorHandler.resolveColorDelegate(e,!1),this.colorpicker.options.useHashPrefix===!1&&(e=e.replace(/^#/g,``)),e):``}},{key:`hasInput`,value:function(){return this.input!==!1}},{key:`isEnabled`,value:function(){return this.hasInput()&&!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.hasInput()&&this.input.prop(`disabled`)===!0}},{key:`disable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!0)}},{key:`enable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!1)}},{key:`update`,value:function(){this.hasInput()&&(this.colorpicker.options.autoInputFallback===!1&&this.colorpicker.colorHandler.isInvalidColor()||this.setValue(this.getFormattedColor()))}},{key:`onchange`,value:function(e){this.colorpicker.lastEvent.alias=`input.change`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}},{key:`onkeyup`,value:function(e){this.colorpicker.lastEvent.alias=`input.keyup`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";var r=n(17),i=n(20),a=[].slice,o=[`keyword`,`gray`,`hex`],s={};Object.keys(i).forEach(function(e){s[a.call(i[e].labels).sort().join(``)]=e});var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw Error(`Unknown model: `+t);var n,u;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if(typeof e==`string`){var d=r.get(e);if(d===null)throw Error(`Unable to parse color from string: `+e);this.model=d.model,u=i[this.model].channels,this.color=d.value.slice(0,u),this.valpha=typeof d.value[u]==`number`?d.value[u]:1}else if(e.length)this.model=t||`rgb`,u=i[this.model].channels,this.color=h(a.call(e,0,u),u),this.valpha=typeof e[u]==`number`?e[u]:1;else if(typeof e==`number`)e&=16777215,this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;var f=Object.keys(e);`alpha`in e&&(f.splice(f.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);var p=f.sort().join(``);if(!(p in s))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=s[p];var m=i[this.model].labels,g=[];for(n=0;n<m.length;n++)g.push(e[m[n]]);this.color=h(g)}if(c[this.model])for(u=i[this.model].channels,n=0;n<u;n++){var _=c[this.model][n];_&&(this.color[n]=_(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);var n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round(typeof e==`number`?e:1),n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(d(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:f(`rgb`,0,p(255)),green:f(`rgb`,1,p(255)),blue:f(`rgb`,2,p(255)),hue:f([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,function(e){return(e%360+360)%360}),saturationl:f(`hsl`,1,p(100)),lightness:f(`hsl`,2,p(100)),saturationv:f(`hsv`,1,p(100)),value:f(`hsv`,2,p(100)),chroma:f(`hcg`,1,p(100)),gray:f(`hcg`,2,p(100)),white:f(`hwb`,1,p(100)),wblack:f(`hwb`,2,p(100)),cyan:f(`cmyk`,0,p(100)),magenta:f(`cmyk`,1,p(100)),yellow:f(`cmyk`,2,p(100)),black:f(`cmyk`,3,p(100)),x:f(`xyz`,0,p(100)),y:f(`xyz`,1,p(100)),z:f(`xyz`,2,p(100)),l:f(`lab`,0,p(100)),a:f(`lab`,1),b:f(`lab`,2),keyword:function(e){return arguments.length?new l(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?`AAA`:t>=4.5?`AA`:``},isDark:function(){var e=this.rgb().color;return(e[0]*299+e[1]*587+e[2]*114)/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);var n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach(function(e){if(o.indexOf(e)===-1){var t=i[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n=typeof arguments[t]==`number`?t:this.valpha;return new l(m(i[this.model][e].raw(this.color)).concat(n),e)},l[e]=function(n){return typeof n==`number`&&(n=h(a.call(arguments),t)),new l(n,e)}}});function u(e,t){return Number(e.toFixed(t))}function d(e){return function(t){return u(t,e)}}function f(e,t,n){return e=Array.isArray(e)?e:[e],e.forEach(function(e){(c[e]||(c[e]=[]))[t]=n}),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function m(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}e.exports=l}),(function(e,t,n){var r=n(5),i=n(18),a={};for(var o in r)r.hasOwnProperty(o)&&(a[r[o]]=o);var s=e.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`;break}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=/(\D+)/,s=[0,0,0,1],l,u,d;if(l=e.match(n)){for(d=l[2],l=l[1],u=0;u<3;u++){var f=u*2;s[u]=parseInt(l.slice(f,f+2),16)}d&&(s[3]=Math.round(parseInt(d,16)/255*100)/100)}else if(l=e.match(t)){for(l=l[1],d=l[3],u=0;u<3;u++)s[u]=parseInt(l[u]+l[u],16);d&&(s[3]=Math.round(parseInt(d+d,16)/255*100)/100)}else if(l=e.match(i)){for(u=0;u<3;u++)s[u]=parseInt(l[u+1],0);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(a)){for(u=0;u<3;u++)s[u]=Math.round(parseFloat(l[u+1])*2.55);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(o))return l[1]===`transparent`?[0,0,0,0]:(s=r[l[1]],s?(s[3]=1,s):null);else return null;for(u=0;u<3;u++)s[u]=c(s[u],0,255);return s[3]=c(s[3],0,1),s},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=i(arguments);return`#`+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=i(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+r+`%)`:`rgba(`+t+`%, `+n+`%, `+r+`%, `+e[3]+`)`},s.to.hsl=function(){var e=i(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=i(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?`0`+t:t}}),(function(e,t,n){"use strict";var r=n(19),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}}),(function(e,t,n){"use strict";e.exports=function(e){return e?e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function:!1}}),(function(e,t,n){var r=n(6),i=n(21),a={},o=Object.keys(r);function s(e){var t=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function c(e){var t=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if(typeof n==`object`)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return`conversion`in e&&(t.conversion=e.conversion),t}o.forEach(function(e){a[e]={},Object.defineProperty(a[e],`channels`,{value:r[e].channels}),Object.defineProperty(a[e],`labels`,{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r=t[n];a[e][n]=c(r),a[e][n].raw=s(r)})}),e.exports=a}),(function(e,t,n){var r=n(6);function i(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}function a(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),s=o.length,c=0;c<s;c++){var l=o[c],u=t[l];u.distance===-1&&(u.distance=t[a].distance+1,u.parent=a,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=a(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var c=r[o];t[c].parent!==null&&(n[c]=s(c,t))}return n}}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t}return r(e,[{key:`bind`,value:function(){if(this.colorpicker.options.color){this.color=this.createColor(this.colorpicker.options.color);return}!this.color&&this.colorpicker.inputHandler.getValue()&&(this.color=this.createColor(this.colorpicker.inputHandler.getValue(),this.colorpicker.options.autoInputFallback))}},{key:`unbind`,value:function(){this.colorpicker.element.removeData(`color`)}},{key:`getColorString`,value:function(){return this.hasColor()?this.color.string(this.format):``}},{key:`setColorString`,value:function(e){this.color=(e?this.createColor(e):null)||null}},{key:`createColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=!t&&!n,i=new a.default(this.resolveColorDelegate(e),this.format,r);return i.isValid()||(t&&(i=this.getFallbackColor()),this.colorpicker.trigger(`colorpickerInvalid`,i,e)),this.isAlphaEnabled()||(i.alpha=1),i}},{key:`getFallbackColor`,value:function(){if(this.fallback&&this.fallback===this.color)return this.color;var e=this.resolveColorDelegate(this.fallback),t=new a.default(e,this.format);return t.isValid()?t:(console.warn(`The fallback color is invalid. Falling back to the previous color or black if any.`),this.color?this.color:new a.default(`#000000`,this.format))}},{key:`assureColor`,value:function(){return this.hasColor()||(this.color=this.getFallbackColor()),this.color}},{key:`resolveColorDelegate`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=!1;return i.default.each(this.colorpicker.extensions,function(r,i){n===!1&&(n=i.resolveColor(e,t))}),n||e}},{key:`isInvalidColor`,value:function(){return!this.hasColor()||!this.color.isValid()}},{key:`isAlphaEnabled`,value:function(){return this.colorpicker.options.useAlpha!==!1}},{key:`hasColor`,value:function(){return this.color instanceof a.default}},{key:`fallback`,get:function(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:`format`,get:function(){return this.colorpicker.options.format?this.colorpicker.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.isAlphaEnabled()?`rgba`:`hex`:this.hasColor()?this.color.format:`rgb`}},{key:`color`,get:function(){return this.colorpicker.element.data(`color`)},set:function(e){this.colorpicker.element.data(`color`,e),e instanceof a.default&&this.colorpicker.options.format===`auto`&&(this.colorpicker.options.format=this.color.format)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.picker=null}return r(e,[{key:`bind`,value:function(){var e=this.picker=(0,i.default)(this.options.template);this.options.customClass&&e.addClass(this.options.customClass),this.options.horizontal&&e.addClass(`colorpicker-horizontal`),this._supportsAlphaBar()?(this.options.useAlpha=!0,e.addClass(`colorpicker-with-alpha`)):this.options.useAlpha=!1}},{key:`attach`,value:function(){var e=this.colorpicker.container?this.colorpicker.container:null;e&&this.picker.appendTo(e)}},{key:`unbind`,value:function(){this.picker.remove()}},{key:`_supportsAlphaBar`,value:function(){return(this.options.useAlpha||this.colorpicker.colorHandler.hasColor()&&this.color.hasTransparency())&&this.options.useAlpha!==!1&&(!this.options.format||this.options.format&&!this.options.format.match(/^hex([36])?$/i))}},{key:`update`,value:function(){if(this.colorpicker.colorHandler.hasColor()){var e=this.options.horizontal!==!0,t=e?this.options.sliders:this.options.slidersHorz,n=this.picker.find(`.colorpicker-saturation .colorpicker-guide`),r=this.picker.find(`.colorpicker-hue .colorpicker-guide`),i=this.picker.find(`.colorpicker-alpha .colorpicker-guide`),a=this.color.toHsvaRatio();r.length&&r.css(e?`top`:`left`,(e?t.hue.maxTop:t.hue.maxLeft)*(1-a.h)),i.length&&i.css(e?`top`:`left`,(e?t.alpha.maxTop:t.alpha.maxLeft)*(1-a.a)),n.length&&n.css({top:t.saturation.maxTop-a.v*t.saturation.maxTop,left:a.s*t.saturation.maxLeft}),this.picker.find(`.colorpicker-saturation`).css(`backgroundColor`,this.color.getCloneHueOnly().toHexString());var o=this.color.toHexString(),s=``;s=this.options.horizontal?`linear-gradient(to right, `+o+` 0%, transparent 100%)`:`linear-gradient(to bottom, `+o+` 0%, transparent 100%)`,this.picker.find(`.colorpicker-alpha-color`).css(`background`,s)}}},{key:`options`,get:function(){return this.colorpicker.options}},{key:`color`,get:function(){return this.colorpicker.colorHandler.color}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){i(this,e),this.colorpicker=t,this.addon=null}return r(e,[{key:`hasAddon`,value:function(){return!!this.addon}},{key:`bind`,value:function(){this.addon=this.colorpicker.options.addon?this.colorpicker.element.find(this.colorpicker.options.addon):null,this.addon&&this.addon.length===0&&(this.addon=null)}},{key:`unbind`,value:function(){this.hasAddon()&&this.addon.off(`.colorpicker`)}},{key:`update`,value:function(){if(!(!this.colorpicker.colorHandler.hasColor()||!this.hasAddon())){var e={background:this.colorpicker.colorHandler.getColorString()},t=this.addon.find(`i`).eq(0);t.length>0?t.css(e):this.addon.css(e)}}}]),e}(),e.exports=t.default})])})}))(),s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=(typeof window>`u`?`undefined`:n(window))===`object`;(function(e){if(typeof define==`function`&&define.amd)define([`jquery`],e);else if((t===void 0?`undefined`:n(t))===`object`&&t.exports){var r;try{r=K()}catch{r=null}t.exports=e(r)}else window&&(window.Slider=e(window.jQuery))})(function(e){var t=`slider`,n=`bootstrapSlider`;r&&!window.console&&(window.console={}),r&&!window.console.log&&(window.console.log=function(){}),r&&!window.console.warn&&(window.console.warn=function(){});var i;return(function(e){"use strict";var t=Array.prototype.slice;function n(){}function r(e){if(!e)return;function r(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}var i=typeof console>`u`?n:function(e){console.error(e)};function a(n,r){e.fn[n]=function(a){if(typeof a==`string`){for(var o=t.call(arguments,1),s=0,c=this.length;s<c;s++){var l=this[s],u=e.data(l,n);if(!u){i(`cannot call methods on `+n+` prior to initialization; attempted to call '`+a+`'`);continue}if(!e.isFunction(u[a])||a.charAt(0)===`_`){i(`no such method '`+a+`' for `+n+` instance`);continue}var d=u[a].apply(u,o);if(d!==void 0&&d!==u)return d}return this}else{var f=this.map(function(){var t=e.data(this,n);return t?(t.option(a),t._init()):(t=new r(this,a),e.data(this,n,t)),e(this)});return f.length===1?f[0]:f}}}return e.bridget=function(e,t){r(t),a(e,t)},e.bridget}r(e)})(e),(function(e){var a=void 0,o={formatInvalidInputErrorMsg:function(e){return`Invalid input value '`+e+`' passed in`},callingContextNotSliderInstance:`Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method`},s={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,a,o=0,c=1;c<this.options.ticks_positions.length;c++)if(e<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],a=this.options.ticks_positions[c-1],i=this.options.ticks[c],o=this.options.ticks_positions[c];break}var l=(e-a)/(o-a);t=r+l*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return s.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,i=0,a=0;a<this.options.ticks.length;a++)if(e<=this.options.ticks[a]){t=a>0?this.options.ticks[a-1]:0,r=a>0?this.options.ticks_positions[a-1]:0,n=this.options.ticks[a],i=this.options.ticks_positions[a];break}if(a>0){var o=(e-t)/(n-t);return r+o*(i-r)}}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,s.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};i=function(e,t){return c.call(this,e,t),this};function c(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},typeof t==`string`?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n||={};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty(`min`),a=n.hasOwnProperty(`max`),o=0;o<r.length;o++){var c=r[o],l=n[c];l=l===void 0?d(this.element,c):l,l=l===null?this.defaultOptions[c]:l,this.options||={},this.options[c]=l}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),this.options.rtl===`auto`){var u=window.getComputedStyle(this.element);u==null?this.options.rtl=this.element.style.direction===`rtl`:this.options.rtl=u.direction===`rtl`}this.options.orientation===`vertical`&&(this.options.tooltip_position===`top`||this.options.tooltip_position===`bottom`)?this.options.rtl?this.options.tooltip_position=`left`:this.options.tooltip_position=`right`:this.options.orientation===`horizontal`&&(this.options.tooltip_position===`left`||this.options.tooltip_position===`right`)&&(this.options.tooltip_position=`top`);function d(e,t){var n=`data-slider-`+t.replace(/_/g,`-`),r=e.getAttribute(n);try{return JSON.parse(r)}catch{return r}}var f=this.element.style.width,p=!1,m=this.element.parentNode,h,g,_,v,y;if(this.sliderElem)p=!0;else{this.sliderElem=document.createElement(`div`),this.sliderElem.className=`slider`;var b=document.createElement(`div`);b.className=`slider-track`,g=document.createElement(`div`),g.className=`slider-track-low`,h=document.createElement(`div`),h.className=`slider-selection`,_=document.createElement(`div`),_.className=`slider-track-high`,v=document.createElement(`div`),v.className=`slider-handle min-slider-handle`,v.setAttribute(`role`,`slider`),v.setAttribute(`aria-valuemin`,this.options.min),v.setAttribute(`aria-valuemax`,this.options.max),y=document.createElement(`div`),y.className=`slider-handle max-slider-handle`,y.setAttribute(`role`,`slider`),y.setAttribute(`aria-valuemin`,this.options.min),y.setAttribute(`aria-valuemax`,this.options.max),b.appendChild(g),b.appendChild(h),b.appendChild(_),this.rangeHighlightElements=[];var x=this.options.rangeHighlights;if(Array.isArray(x)&&x.length>0)for(var S=0;S<x.length;S++){var C=document.createElement(`div`);C.className=`slider-rangeHighlight slider-selection `+(x[S].class||``),this.rangeHighlightElements.push(C),b.appendChild(C)}var w=Array.isArray(this.options.labelledby);if(w&&this.options.labelledby[0]&&v.setAttribute(`aria-labelledby`,this.options.labelledby[0]),w&&this.options.labelledby[1]&&y.setAttribute(`aria-labelledby`,this.options.labelledby[1]),!w&&this.options.labelledby&&(v.setAttribute(`aria-labelledby`,this.options.labelledby),y.setAttribute(`aria-labelledby`,this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement(`div`),this.ticksContainer.className=`slider-tick-container`,o=0;o<this.options.ticks.length;o++){var T=document.createElement(`div`);if(T.className=`slider-tick`,this.options.ticks_tooltip){var E=this._addTickListener(),D=E.addMouseEnter(this,T,o),ee=E.addMouseLeave(this,T);this.ticksCallbackMap[o]={mouseEnter:D,mouseLeave:ee}}this.ticks.push(T),this.ticksContainer.appendChild(T)}h.className+=` tick-slider-selection`}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement(`div`),this.tickLabelContainer.className=`slider-tick-label-container`,o=0;o<this.options.ticks_labels.length;o++){var O=document.createElement(`div`),te=this.options.ticks_positions.length===0,ne=this.options.reversed&&te?this.options.ticks_labels.length-(o+1):o;O.className=`slider-tick-label`,O.innerHTML=this.options.ticks_labels[ne],this.tickLabels.push(O),this.tickLabelContainer.appendChild(O)}var k=function(e){var t=document.createElement(`div`);t.className=`tooltip-arrow`;var n=document.createElement(`div`);n.className=`tooltip-inner`,e.appendChild(t),e.appendChild(n)},A=document.createElement(`div`);A.className=`tooltip tooltip-main`,A.setAttribute(`role`,`presentation`),k(A);var re=document.createElement(`div`);re.className=`tooltip tooltip-min`,re.setAttribute(`role`,`presentation`),k(re);var j=document.createElement(`div`);j.className=`tooltip tooltip-max`,j.setAttribute(`role`,`presentation`),k(j),this.sliderElem.appendChild(b),this.sliderElem.appendChild(A),this.sliderElem.appendChild(re),this.sliderElem.appendChild(j),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(v),this.sliderElem.appendChild(y),m.insertBefore(this.sliderElem,this.element),this.element.style.display=`none`}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable=`ontouchstart`in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(`.tooltip-main`),this.tooltipInner=this.tooltip.querySelector(`.tooltip-inner`),this.tooltip_min=this.sliderElem.querySelector(`.tooltip-min`),this.tooltipInner_min=this.tooltip_min.querySelector(`.tooltip-inner`),this.tooltip_max=this.sliderElem.querySelector(`.tooltip-max`),this.tooltipInner_max=this.tooltip_max.querySelector(`.tooltip-inner`),s[this.options.scale]&&(this.options.scale=s[this.options.scale]),p===!0&&(this._removeClass(this.sliderElem,`slider-horizontal`),this._removeClass(this.sliderElem,`slider-vertical`),this._removeClass(this.sliderElem,`slider-rtl`),this._removeClass(this.tooltip,`hide`),this._removeClass(this.tooltip_min,`hide`),this._removeClass(this.tooltip_max,`hide`),[`left`,`right`,`top`,`width`,`height`].forEach(function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)},this),[this.handle1,this.handle2].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`)},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`),this._removeClass(e,`right`),this._removeClass(e,`left`),this._removeClass(e,`top`)},this)),this.options.orientation===`vertical`?(this._addClass(this.sliderElem,`slider-vertical`),this.stylePos=`top`,this.mousePos=`pageY`,this.sizePos=`offsetHeight`):(this._addClass(this.sliderElem,`slider-horizontal`),this.sliderElem.style.width=f,this.options.orientation=`horizontal`,this.options.rtl?this.stylePos=`right`:this.stylePos=`left`,this.mousePos=`clientX`,this.sizePos=`offsetWidth`),this.options.rtl&&this._addClass(this.sliderElem,`slider-rtl`),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(a||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=g||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=_||this.trackHigh,this.options.selection===`none`?(this._addClass(this.trackLow,`hide`),this._addClass(this.trackSelection,`hide`),this._addClass(this.trackHigh,`hide`)):(this.options.selection===`after`||this.options.selection===`before`)&&(this._removeClass(this.trackLow,`hide`),this._removeClass(this.trackSelection,`hide`),this._removeClass(this.trackHigh,`hide`)),this.handle1=v||this.handle1,this.handle2=y||this.handle2,p===!0)for(this._removeClass(this.handle1,`round triangle`),this._removeClass(this.handle2,`round triangle hide`),o=0;o<this.ticks.length;o++)this._removeClass(this.ticks[o],`round triangle hide`);if([`round`,`triangle`,`custom`].indexOf(this.options.handle)!==-1)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),o=0;o<this.ticks.length;o++)this._addClass(this.ticks[o],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener(`keydown`,this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener(`keydown`,this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.addEventListener(`touchmove`,this.touchmove,!1)),this.sliderElem.addEventListener(`mousedown`,this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener(`resize`,this.resize,!1),this.options.tooltip===`hide`)this._addClass(this.tooltip,`hide`),this._addClass(this.tooltip_min,`hide`),this._addClass(this.tooltip_max,`hide`);else if(this.options.tooltip===`always`)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var M=this._addTickListener(),ie=M.addMouseEnter(this,this.handle1),N=M.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:ie,mouseLeave:N},ie=M.addMouseEnter(this,this.handle2),N=M.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:ie,mouseLeave:N}}else this.sliderElem.addEventListener(`mouseenter`,this.showTooltip,!1),this.sliderElem.addEventListener(`mouseleave`,this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchmove`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchend`,this.hideTooltip,!1));this.handle1.addEventListener(`focus`,this.showTooltip,!1),this.handle1.addEventListener(`blur`,this.hideTooltip,!1),this.handle2.addEventListener(`focus`,this.showTooltip,!1),this.handle2.addEventListener(`blur`,this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener(`touchstart`,this.showTooltip,!1),this.handle1.addEventListener(`touchmove`,this.showTooltip,!1),this.handle1.addEventListener(`touchend`,this.hideTooltip,!1),this.handle2.addEventListener(`touchstart`,this.showTooltip,!1),this.handle2.addEventListener(`touchmove`,this.showTooltip,!1),this.handle2.addEventListener(`touchend`,this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}i.prototype={_init:function(){},constructor:i,defaultOptions:{id:``,min:0,max:10,step:1,precision:0,orientation:`horizontal`,value:5,range:!1,selection:`before`,tooltip:`show`,tooltip_split:!1,lock_to_ticks:!1,handle:`round`,reversed:!1,rtl:`auto`,enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+` : `+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:`linear`,focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||=0;var r=this.getValue();this._state.value=this._validateInputValue(e);var i=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=i(this._state.value[0]),this._state.value[1]=i(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=i(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,`hide`),this.options.selection===`after`?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),this.options.step*100/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var a=this.options.range?this._state.value:this._state.value[0];this._setDataVal(a),t===!0&&this._trigger(`slide`,a);var o=!1;return o=Array.isArray(a)?r[0]!==a[0]||r[1]!==a[1]:r!==a,o&&n===!0&&this._trigger(`change`,{oldValue:r,newValue:a}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display=``,this._cleanUpEventCallbacksMap(),this.element.removeAttribute(`data`),e&&(this._unbindJQueryEventHandlers(),a===t&&this.$element.removeData(a),this.$element.removeData(n))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute(`tabindex`),this.handle2.removeAttribute(`tabindex`),this._addClass(this.sliderElem,`slider-disabled`),this._trigger(`slideDisabled`),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute(`tabindex`,0),this.handle2.setAttribute(`tabindex`,0),this._removeClass(this.sliderElem,`slider-disabled`),this._trigger(`slideEnabled`),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(r){var i=this.getValue();return this._removeSliderEventHandlers(),c.call(this,this.element,this.options),r&&r.useCurrentValue===!0&&this.setValue(i),e&&(a===t&&e.data(this.element,t,this),e.data(this.element,n,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener(`keydown`,this.handle1Keydown,!1),this.handle2.removeEventListener(`keydown`,this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName(`slider-tick`),t=0;t<e.length;t++)e[t].removeEventListener(`mouseenter`,this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener(`mouseleave`,this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener(`mouseenter`,this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener(`mouseenter`,this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener(`mouseleave`,this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener(`mouseleave`,this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener(`focus`,this.showTooltip),this.hideTooltip&&this._removeTooltipListener(`blur`,this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener(`mouseenter`,this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener(`mouseleave`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`mousedown`,this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle1.removeEventListener(`touchmove`,this.showTooltip,!1),this.handle2.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle2.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener(`touchend`,this.hideTooltip,!1),this.handle2.removeEventListener(`touchend`,this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener(`touchend`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.removeEventListener(`touchmove`,this.touchmove,!1)),window.removeEventListener(`resize`,this.resize,!1)},_bindNonQueryEventHandler:function(e,t){this.eventToCallbackMap[e]===void 0&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(n!==void 0){for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,`in`),this.tooltip_min.style.display=`none`,this.tooltip_max.style.display=`none`):(this._addClass(this.tooltip_min,`in`),this._addClass(this.tooltip_max,`in`),this.tooltip.style.display=`none`),this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this._alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,`in`),this._removeClass(this.tooltip_min,`in`),this._removeClass(this.tooltip_max,`in`)),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,n=this.options.formatter(e?e.value[0]:this._state.value[0]),r=i(e||this._state,this.options.reversed);this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=r[0]+`%`;function i(e,n){return n?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),i=t===e.handle1?r.value[0]:r.value[1],a=void 0;n===void 0?a=e._toPercentage(i):(i=e.options.ticks[n],a=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])),r.value[0]=i,r.percentage[0]=a,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener(`mouseenter`,r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener(`mouseleave`,n,!1),n}}},_layout:function(){var e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],t;if(this.handle1.style[this.stylePos]=e[0]+`%`,this.handle1.setAttribute(`aria-valuenow`,this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute(`aria-valuetext`,t):this.handle1.removeAttribute(`aria-valuetext`),this.handle2.style[this.stylePos]=e[1]+`%`,this.handle2.setAttribute(`aria-valuenow`,this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute(`aria-valuetext`,t):this.handle2.removeAttribute(`aria-valuetext`),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var n=0;n<this.options.rangeHighlights.length;n++){var r=this._toPercentage(this.options.rangeHighlights[n].start),i=this._toPercentage(this.options.rangeHighlights[n].end);if(this.options.reversed){var a=100-i;i=100-r,r=a}var o=this._createHighlightRange(r,i);o?this.options.orientation===`vertical`?(this.rangeHighlightElements[n].style.top=o.start+`%`,this.rangeHighlightElements[n].style.height=o.size+`%`):(this.options.rtl?this.rangeHighlightElements[n].style.right=o.start+`%`:this.rangeHighlightElements[n].style.left=o.start+`%`,this.rangeHighlightElements[n].style.width=o.size+`%`):this.rangeHighlightElements[n].style.display=`none`}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var s=this.options.orientation===`vertical`?`height`:`width`,c=this.options.orientation===`vertical`?`marginTop`:this.options.rtl?`marginRight`:`marginLeft`,l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var u=0;if(this.options.ticks_positions.length===0)this.options.orientation!==`vertical`&&(this.tickLabelContainer.style[c]=-l/2+`px`),u=this.tickLabelContainer.offsetHeight;else for(d=0;d<this.tickLabelContainer.childNodes.length;d++)this.tickLabelContainer.childNodes[d].offsetHeight>u&&(u=this.tickLabelContainer.childNodes[d].offsetHeight);this.options.orientation===`horizontal`&&(this.sliderElem.style.marginBottom=u+`px`)}for(var d=0;d<this.options.ticks.length;d++){var f=this.options.ticks_positions[d]||this._toPercentage(this.options.ticks[d]);this.options.reversed&&(f=100-f),this.ticks[d].style[this.stylePos]=f+`%`,this._removeClass(this.ticks[d],`in-selection`),this.options.range?f>=e[0]&&f<=e[1]&&this._addClass(this.ticks[d],`in-selection`):(this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.ticks[d],`in-selection`),this.tickLabels[d]&&(this.tickLabels[d].style[s]=l+`px`,this.options.orientation!==`vertical`&&this.options.ticks_positions[d]!==void 0?(this.tickLabels[d].style.position=`absolute`,this.tickLabels[d].style[this.stylePos]=f+`%`,this.tickLabels[d].style[c]=-l/2+`px`):this.options.orientation===`vertical`&&(this.options.rtl?this.tickLabels[d].style.marginRight=this.sliderElem.offsetWidth+`px`:this.tickLabels[d].style.marginLeft=this.sliderElem.offsetWidth+`px`,this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+`px`),this._removeClass(this.tickLabels[d],`label-in-selection label-is-selection`),this.options.range?f>=e[0]&&f<=e[1]&&(this._addClass(this.tickLabels[d],`label-in-selection`),(f===e[0]||e[1])&&this._addClass(this.tickLabels[d],`label-is-selection`)):((this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.tickLabels[d],`label-in-selection`),f===e[0]&&this._addClass(this.tickLabels[d],`label-is-selection`)))}}var p;if(this.options.range){p=this.options.formatter(this._state.value),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+`%`;var m=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,m);var h=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,h),this.tooltip_min.style[this.stylePos]=e[0]+`%`,this.tooltip_max.style[this.stylePos]=e[1]+`%`}else p=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=e[0]+`%`;if(this.options.orientation===`vertical`)this.trackLow.style.top=`0`,this.trackLow.style.height=Math.min(e[0],e[1])+`%`,this.trackSelection.style.top=Math.min(e[0],e[1])+`%`,this.trackSelection.style.height=Math.abs(e[0]-e[1])+`%`,this.trackHigh.style.bottom=`0`,this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;else{this.stylePos===`right`?this.trackLow.style.right=`0`:this.trackLow.style.left=`0`,this.trackLow.style.width=Math.min(e[0],e[1])+`%`,this.stylePos===`right`?this.trackSelection.style.right=Math.min(e[0],e[1])+`%`:this.trackSelection.style.left=Math.min(e[0],e[1])+`%`,this.trackSelection.style.width=Math.abs(e[0]-e[1])+`%`,this.stylePos===`right`?this.trackHigh.style.left=`0`:this.trackHigh.style.right=`0`,this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;var g=this.tooltip_min.getBoundingClientRect(),_=this.tooltip_max.getBoundingClientRect();this.options.tooltip_position===`bottom`?g.right>_.left?(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=``,this.tooltip_max.style.bottom=`22px`):(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=``):g.right>_.left?(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=`18px`):(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),this.mousemove&&document.removeEventListener(`mousemove`,this.mousemove,!1),this.mouseup&&document.removeEventListener(`mouseup`,this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener(`touchmove`,this.mousemove,!1),document.addEventListener(`touchend`,this.mouseup,!1)),document.addEventListener(`mousemove`,this.mousemove,!1),document.addEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!0;var i=this._calculateValue();return this._trigger(`slideStart`,i),this.setValue(i,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){e===0&&this.handle1.focus(),e===1&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1;break}if(n){if(this.options.natural_arrow_keys){var r=this.options.orientation===`horizontal`,i=this.options.orientation===`vertical`,a=this.options.rtl,o=this.options.reversed;r?a?o||(n=-n):o&&(n=-n):i&&(o||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;c=this.options.ticks.indexOf(this._state.value[e]),c===-1&&(c=0,window.console.warn(`(lock_to_ticks) _keydown: index should not be -1`)),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[e]+n*this.options.step;var l=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(l);var u=this._state.keyCtrl?this._state.value[0]:s,d=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,u)),Math.max(this.options.min,Math.min(this.options.max,d))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger(`slideStart`,s),this.setValue(s,!0,!0),this._trigger(`slideStop`,s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){e.changedTouches!==void 0&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);this._state.dragged===0&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):this._state.dragged===1&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):this._state.keyCtrl===0&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):this._state.keyCtrl===1&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),document.removeEventListener(`mousemove`,this.mousemove,!1),document.removeEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger(`slideStop`,n),this._state.dragged=null,!1},_setValues:function(e,t){var n=e===0?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(``+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){this.touchCapable&&(e.type===`touchstart`||e.type===`touchmove`||e.type===`touchend`)&&(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];this.stylePos===`right`&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(!isNaN(+e))return+e;if(Array.isArray(e))return this._validateArray(e),e;throw Error(o.formatInvalidInputErrorMsg(e))},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`number`)throw Error(o.formatInvalidInputErrorMsg(n))}},_setDataVal:function(e){this.element.setAttribute(`data-value`,e),this.element.setAttribute(`value`,e),this.element.value=e},_trigger:function(t,n){n=n||n===0?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];a(n)}e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){e.textContent===void 0?e.innerText!==void 0&&(e.innerText=t):e.textContent=t},_removeClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i],o=RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`);r=r.replace(o,` `)}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i];RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`).test(r)||(r+=` `+a)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,e.tagName!==`BODY`&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var i=n.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()});t.style[i]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if(this.options.orientation===`vertical`){var t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?`left`:`right`,n=t===`left`?`right`:`left`;e.forEach(function(e){this._addClass(e,t),e.style[n]=`100%`}.bind(this))}else this.options.tooltip_position===`bottom`?e.forEach(function(e){this._addClass(e,`bottom`),e.style.top=`22px`}.bind(this)):e.forEach(function(e){this._addClass(e,`top`),e.style.top=-this.tooltip.outerHeight-14+`px`}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var i=Math.abs(e-this.options.ticks[r]);i<t&&(t=i,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(r&&window.console.warn(`bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.`),a=n):(e.bridget(t,i),a=t),e.bridget(n,i),e(function(){e(`input[data-provide=slider]`)[a]()}))})(e),i})}))();var vt=girder.$,yt=girder._,bt=girder.moment,xt=girder.views.View,{getCurrentUser:St}=girder.auth,q=girder.events,J=girder.models.ItemModel,Ct=girder.models.FolderModel,wt=girder.collections.FolderCollection,Tt=girder.models.FileModel,Et=girder.models.UserModel,Dt=girder.models.CollectionModel,{restRequest:Ot}=girder.rest,kt=xt.extend({events:{"change input,select":`_input`,changeColor:`_input`,"click .s-select-file-button":`_selectFile`,"click .s-select-multifile-button":`_selectMultiFile`,"click .s-select-region-button":`_selectRegion`,"click .s-select-region-clear-button":`_clearRegion`,"click .s-select-region-submit-button":`_submitRegionToggle`},initialize(e){this._disableRegionSelect=e.disableRegionSelect===!0,this._rootPath=e.rootPath,this.listenTo(this.model,`change`,this.change),this.listenTo(this.model,`destroy`,this.remove),this.listenTo(this.model,`invalid`,this.invalid),this.listenTo(q,`s:widgetSet:`+this.model.id,e=>{this.model.set(`value`,e)}),this._initModel(e)},_initModel(e){let t=e.setDefaultOutput,n=this.model,r=n.get(`type`),i=n.get(`channel`),a=n.get(`required`);i===`input`&&(n.get(`defaultNameMatch`)||n.get(`defaultPathMatch`))&&this._getDefaultInputResource(n).then(e=>(e&&this.model.set({path:e._path,value:e}),null)),!(!t||!a&&(!this._findReference()||!n.get(`extensions`))||i!==`output`||![`new-file`,`file`,`item`,`directory`,`multi`].includes(r))&&this._getDefaultOutputFolder().then(e=>{if(!e)return null;let r=(n.get(`extensions`)||``).split(`|`)[0],i=n.get(`id`)===`returnparameterfile`?``:`-${n.get(`title`)}`,a=this._findReference();if(a)this.listenTo(a,`change`,()=>{let n=a.get(`value`);if(n&&n.get(`name`)){let a=n.get(`name`);a.includes(`.`)&&(a=a.slice(0,a.lastIndexOf(`.`)));let o=`${a}-${t}${i}-${bt().local().format()}${r}`;this._setValue(e,o)}});else{let n=`${t}${i}-${bt().local().format()}${r}`;this._setValue(e,n)}return null})},_setValue(e,t){this.model.set({path:[e.get(`name`),t],parent:e,value:new J({name:t,folderId:e.id})})},_findReference(){let e=this.model.get(`reference`);return e?this.model.collection.find(t=>t.get(`id`)===e):null},render(e,t){if(this.$(`[data-toggle="tooltip"]`).tooltip(`destroy`),this.$(`.form-group`).removeClass(`has-error`),this.model.isValid(),t&&t.norender)return this;let n=Object.assign({disableRegionSelect:this._disableRegionSelect,previousElement:this.$el},this.model.toJSON());return this.$el.html(this.template()(n)),this.$(`[data-toggle="tooltip"]`).tooltip({container:`body`}),n.datalist&&this.$(`.s-control-item input`).addClass(`has-datalist`),this},change(){q.trigger(`s:widgetChanged:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetChanged`,this.model),this.render.apply(this,arguments)},remove(){q.trigger(`s:widgetRemoved:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetRemoved`,this.model),this.$(`.s-control-item[data-type="color"] .input-group`).colorpicker(`destroy`),this.$(`.s-control-item[data-type="range"] input`).slider(`destroy`),this.$el.empty()},invalid(){q.trigger(`s:widgetInvalid:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetInvalid`,this.model),this.$(`.form-group`).addClass(`has-error`)},_typedef:{range:{template:qe},color:{template:Ee},string:{template:mt},number:{template:mt},integer:{template:mt},boolean:{template:Se},"string-vector":{template:mt},"number-vector":{template:mt},"string-enumeration":{template:je},"number-enumeration":{template:je},file:{template:He},item:{template:He},image:{template:He},multi:{template:He},directory:{template:He},"new-file":{template:He},region:{template:rt}},template(){let e=this.model.get(`type`),t=this._typedef[e];return t===void 0&&(console.warn(`Invalid widget type "`+e+`"`),t={}),t.template||yt.template(``)},_input(e){let t=vt(e.target),n=t.val();t.attr(`type`)===`checkbox`&&(n=t.get(0).checked),this.model.set(`value`,n,{norender:!0})},_selectFile(){this.model.get(`type`)===`multi`&&this.model.get(`value`)&&this.model.set({value:new J({folderId:this.model.get(`value`).get(`folderId`)})});let e=this.model.get(`defaultType`);e&&this.model.set({type:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},getRoot(e,t){let n={item:J,folder:Ct,collection:Dt,user:Et},r=`folder`,i=null;if(e.get&&(e.get(`itemId`)?(i=e.get(`itemId`),r=`item`):e.get(`folderId`)?i=e.get(`folderId`):e.get(`parentCollection`)&&(r=e.get(`parentCollection`),i=e.get(`parentId`))),r===`item`){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.defaultSelectedResource=e,t.highlightItem=!0,t.selectItem=!0,this.getRoot(e,t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else if(n[r]&&i){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.root=e,t.rootSelectorSettings.selectByResource=e,this.completeInitialization(t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else this.completeInitialization(t)},completeInitialization(e){let t=new ye(e);t.once(`g:saved`,()=>{this.model.unset(`revertType`),t.$el.modal(`hide`)}).render(),t.$el.on(`hidden.bs.modal`,()=>{this.model.get(`revertType`)&&(this.model.set(`type`,this.model.get(`revertType`)),this.model.unset(`revertType`))})},_selectMultiFile(){let e=this.model.get(`type`);e!==`multi`&&this.model.set({type:`multi`,defaultType:e,revertType:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},_getDefaultOutputFolder(){let e=St();if(!e)return vt.Deferred().resolve(null).promise();let t=new wt;return t.fetch({parentId:e.id,parentType:`user`,public:!1,limit:1}).then(()=>t.isEmpty()?t.fetch({parentId:e.id,parentType:`user`,limit:1}):t).then(()=>t.isEmpty()?null:t.at(0))},_getDefaultInputResource(e){var t={image:`item`,item:`item`,file:`file`,directory:`folder`}[e.get(`type`)];return Ot({url:`slicer_cli_web/path_match`,data:{type:t,name:e.get(`defaultNameMatch`),path:e.get(`defaultPathMatch`),relative_path:e.get(`defaultRelativePath`),base_id:e.get(`defaultRelativePath_id`),base_type:e.get(`defaultRelativePath_type`)},error:null}).then(t=>{var n={image:J,item:J,file:Tt,directory:Ct}[e.get(`type`)];let r=new n(t);return r._path=t._path,r})},_selectRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.s-select-region-button`),n=t.closest(`.input-group-btn`).find(`.s-select-region-submit-button`);if(t.hasClass(`active`)){q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:n,event:e});return}let r=t.attr(`shape`),i=t.attr(`multi`)===`true`;q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:r,add:i,submitCtrl:n,event:e}),q.trigger(`s:widgetDrawRegion`,this.model)},_clearRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.input-group-btn`).find(`.s-select-region-submit-button`);q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:t,event:e}),q.trigger(`s:widgetClearRegion`,this.model)},_submitRegionToggle(e){vt(e.target).attr(`can-toggle`)===`true`&&(vt(e.target).toggleClass(`enabled`),vt(e.target).toggleClass(`active`,vt(e.target).hasClass(`enabled`)))}});function At(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Ft(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`'`)+`'`}function jt(e,t){var n=``;for(var r in e)if(It.call(e,r)){var i=e[r];if(r===`class`){i=Mt(i),n=At(r,i,!1,t)+n;continue}r===`style`&&(i=zt(i)),n+=At(r,i,!1,t)}return n}function Mt(e,t){return Array.isArray(e)?Nt(e,t):e&&typeof e==`object`?Pt(e):e||``}function Nt(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Mt(e[o]))&&(a&&t[o]&&(n=Ft(n)),r=r+i+n,i=` `);return r}function Pt(e){var t=``,n=``;for(var r in e)r&&e[r]&&It.call(e,r)&&(t=t+n+r,n=` `);return t}function Ft(e){var t=``+e,n=Y.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`"`;break;case 38:a=`&`;break;case 60:a=`<`;break;case 62:a=`>`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var It=Object.prototype.hasOwnProperty,Y=/["&<>]/;function Lt(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Lt(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=zt(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=zt(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function Rt(e,t,n,r){if(!(e instanceof Error))throw e;if(!(typeof window>`u`&&t||r))throw e.message+=` on line `+n,e;var i,a,o,s;try{r||=f().readFileSync(t,{encoding:`utf8`}),i=3,a=r.split(`
|
|
65
|
+
</div>`,swatchTemplate:`<i class="colorpicker-swatch"><i class="colorpicker-swatch--inner"></i></i>`};t.default=function(e){u(t,e);function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.extend(!0,{},d,n)));return r.element=null,r}return r(t,[{key:`isEnabled`,value:function(){return this.getLength()>0}},{key:`onCreate`,value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),`onCreate`,this).call(this,e),this.isEnabled()&&(this.element=(0,o.default)(this.options.barTemplate),this.load(),this.colorpicker.picker.append(this.element))}},{key:`load`,value:function(){var e=this,t=this.colorpicker,n=this.element.find(`.colorpicker-swatches--inner`),r=this.options.namesAsValues===!0&&!Array.isArray(this.colors);n.empty(),o.default.each(this.colors,function(i,a){var s=(0,o.default)(e.options.swatchTemplate).attr(`data-name`,i).attr(`data-value`,a).attr(`title`,r?i+`: `+a:a).on(`mousedown.colorpicker touchstart.colorpicker`,function(e){var n=(0,o.default)(this);t.setValue(r?n.attr(`data-name`):n.attr(`data-value`))});s.find(`.colorpicker-swatch--inner`).css(`background-color`,a),n.append(s)}),n.append((0,o.default)(`<i class="colorpicker-clear"></i>`))}}]),t}(a.default),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.currentSlider=null,this.mousePointer={left:0,top:0},this.onMove=i.default.proxy(this.defaultOnMove,this)}return r(e,[{key:`defaultOnMove`,value:function(e,t){if(this.currentSlider){var n=this.currentSlider,r=this.colorpicker,i=r.colorHandler,a=i.hasColor()?i.color.getClone():i.getFallbackColor();n.guideStyle.left=t+`px`,n.guideStyle.top=e+`px`,n.callLeft&&a[n.callLeft](t/n.maxLeft),n.callTop&&a[n.callTop](e/n.maxTop),r.setValue(a),r.popupHandler.focus()}}},{key:`bind`,value:function(){var e=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders,t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n].selector);this.colorpicker.picker.find(t.join(`, `)).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.pressed,this))}},{key:`unbind`,value:function(){(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)})}},{key:`pressed`,value:function(e){if(!this.colorpicker.isDisabled()){this.colorpicker.lastEvent.alias=`pressed`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY);var t=(0,i.default)(e.target).closest(`div`),n=this.colorpicker.options.horizontal?this.colorpicker.options.slidersHorz:this.colorpicker.options.sliders;if(!t.is(`.colorpicker`)){for(var r in this.currentSlider=null,n)if(n.hasOwnProperty(r)){var a=n[r];if(t.is(a.selector)){this.currentSlider=i.default.extend({},a,{name:r});break}else if(a.childSelector!==void 0&&t.is(a.childSelector)){this.currentSlider=i.default.extend({},a,{name:r}),t=t.parent();break}}var o=t.find(`.colorpicker-guide`).get(0);if(!(this.currentSlider===null||o===null)){var s=t.offset();this.currentSlider.guideStyle=o.style,this.currentSlider.left=e.pageX-s.left,this.currentSlider.top=e.pageY-s.top,this.mousePointer={left:e.pageX,top:e.pageY},(0,i.default)(this.colorpicker.picker).on({"mousemove.colorpicker":i.default.proxy(this.moved,this),"touchmove.colorpicker":i.default.proxy(this.moved,this),"mouseup.colorpicker":i.default.proxy(this.released,this),"touchend.colorpicker":i.default.proxy(this.released,this)}).trigger(`mousemove`)}}}}},{key:`moved`,value:function(e){this.colorpicker.lastEvent.alias=`moved`,this.colorpicker.lastEvent.e=e,!e.pageX&&!e.pageY&&e.originalEvent&&e.originalEvent.touches&&(e.pageX=e.originalEvent.touches[0].pageX,e.pageY=e.originalEvent.touches[0].pageY),e.preventDefault();var t=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((e.pageX||this.mousePointer.left)-this.mousePointer.left))),n=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((e.pageY||this.mousePointer.top)-this.mousePointer.top)));this.onMove(n,t)}},{key:`released`,value:function(e){this.colorpicker.lastEvent.alias=`released`,this.colorpicker.lastEvent.e=e,(0,i.default)(this.colorpicker.picker).off({"mousemove.colorpicker":this.moved,"touchmove.colorpicker":this.moved,"mouseup.colorpicker":this.released,"touchend.colorpicker":this.released})}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t,n){s(this,e),this.root=n,this.colorpicker=t,this.popoverTarget=null,this.popoverTip=null,this.clicking=!1,this.hidding=!1,this.showing=!1}return r(e,[{key:`bind`,value:function(){var e=this.colorpicker;if(e.options.inline){e.picker.addClass(`colorpicker-inline colorpicker-visible`);return}e.picker.addClass(`colorpicker-popup colorpicker-hidden`),!(!this.hasInput&&!this.hasAddon)&&(e.options.popover&&this.createPopover(),this.hasAddon&&(this.addon.attr(`tabindex`)||this.addon.attr(`tabindex`,0),this.addon.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.on({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasInput&&!this.hasAddon&&(this.input.on({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.on({"focusout.colorpicker":i.default.proxy(this.hide,this)})),(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)))}},{key:`unbind`,value:function(){this.hasInput&&(this.input.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.show,this),"focus.colorpicker":i.default.proxy(this.show,this)}),this.input.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.hasAddon&&(this.addon.off({"mousedown.colorpicker touchstart.colorpicker":i.default.proxy(this.toggle,this)}),this.addon.off({"focus.colorpicker":i.default.proxy(this.show,this)}),this.addon.off({"focusout.colorpicker":i.default.proxy(this.hide,this)})),this.popoverTarget&&this.popoverTarget.popover(`dispose`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))}},{key:`isClickingInside`,value:function(e){return e?this.isOrIsInside(this.popoverTip,e.currentTarget)||this.isOrIsInside(this.popoverTip,e.target)||this.isOrIsInside(this.colorpicker.picker,e.currentTarget)||this.isOrIsInside(this.colorpicker.picker,e.target):!1}},{key:`isOrIsInside`,value:function(e,t){return!e||!t?!1:(t=(0,i.default)(t),t.is(e)||e.find(t).length>0)}},{key:`onClickingInside`,value:function(e){this.clicking=this.isClickingInside(e)}},{key:`createPopover`,value:function(){var e=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input,e.picker.addClass(`colorpicker-bs-popover-content`),this.popoverTarget.popover(i.default.extend(!0,{},a.default.popover,e.options.popover,{trigger:`manual`,content:e.picker,html:!0}));var t=window.bootstrap&&window.bootstrap.Popover&&window.bootstrap.Popover.getInstance;this.popoverTip=t?(0,i.default)(bootstrap.Popover.getInstance(this.popoverTarget[0]).getTipElement()):(0,i.default)(this.popoverTarget.popover(`getTipElement`).data(`bs.popover`).tip),this.popoverTip.addClass(`colorpicker-bs-popover`),this.popoverTarget.on(`shown.bs.popover`,i.default.proxy(this.fireShow,this)),this.popoverTarget.on(`hidden.bs.popover`,i.default.proxy(this.fireHide,this))}},{key:`reposition`,value:function(e){this.popoverTarget&&this.isVisible()&&this.popoverTarget.popover(`update`)}},{key:`toggle`,value:function(e){this.isVisible()?this.hide(e):this.show(e)}},{key:`show`,value:function(e){if(!(this.isVisible()||this.showing||this.hidding)){this.showing=!0,this.hidding=!1,this.clicking=!1;var t=this.colorpicker;t.lastEvent.alias=`show`,t.lastEvent.e=e,e&&(!this.hasInput||this.input.attr(`type`)===`color`)&&e&&e.preventDefault&&(e.stopPropagation(),e.preventDefault()),this.isPopover&&(0,i.default)(this.root).on(`resize.colorpicker`,i.default.proxy(this.reposition,this)),t.picker.addClass(`colorpicker-visible`).removeClass(`colorpicker-hidden`),this.popoverTarget?this.popoverTarget.popover(`show`):this.fireShow()}}},{key:`fireShow`,value:function(){this.hidding=!1,this.showing=!1,this.isPopover&&((0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).on(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this))),this.colorpicker.trigger(`colorpickerShow`)}},{key:`hide`,value:function(e){if(!(this.isHidden()||this.showing||this.hidding)){var t=this.colorpicker,n=this.clicking||this.isClickingInside(e);if(this.hidding=!0,this.showing=!1,this.clicking=!1,t.lastEvent.alias=`hide`,t.lastEvent.e=e,n){this.hidding=!1;return}this.popoverTarget?this.popoverTarget.popover(`hide`):this.fireHide()}}},{key:`fireHide`,value:function(){this.hidding=!1,this.showing=!1;var e=this.colorpicker;e.picker.addClass(`colorpicker-hidden`).removeClass(`colorpicker-visible`),(0,i.default)(this.root).off(`resize.colorpicker`,i.default.proxy(this.reposition,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.hide,this)),(0,i.default)(this.root.document).off(`mousedown.colorpicker touchstart.colorpicker`,i.default.proxy(this.onClickingInside,this)),e.trigger(`colorpickerHide`)}},{key:`focus`,value:function(){return this.hasAddon?this.addon.focus():this.hasInput?this.input.focus():!1}},{key:`isVisible`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-visible`)&&!this.colorpicker.picker.hasClass(`colorpicker-hidden`)}},{key:`isHidden`,value:function(){return this.colorpicker.picker.hasClass(`colorpicker-hidden`)&&!this.colorpicker.picker.hasClass(`colorpicker-visible`)}},{key:`input`,get:function(){return this.colorpicker.inputHandler.input}},{key:`hasInput`,get:function(){return this.colorpicker.inputHandler.hasInput()}},{key:`addon`,get:function(){return this.colorpicker.addonHandler.addon}},{key:`hasAddon`,get:function(){return this.colorpicker.addonHandler.hasAddon()}},{key:`isPopover`,get:function(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t,this.input=this.colorpicker.element.is(`input`)?this.colorpicker.element:this.colorpicker.options.input?this.colorpicker.element.find(this.colorpicker.options.input):!1,this.input&&this.input.length===0&&(this.input=!1),this._initValue()}return r(e,[{key:`bind`,value:function(){this.hasInput()&&(this.input.on({"keyup.colorpicker":i.default.proxy(this.onkeyup,this)}),this.input.on({"change.colorpicker":i.default.proxy(this.onchange,this)}))}},{key:`unbind`,value:function(){this.hasInput()&&this.input.off(`.colorpicker`)}},{key:`_initValue`,value:function(){if(this.hasInput()){var e=``;[this.input.val(),this.input.data(`color`),this.input.attr(`data-color`)].map(function(t){t&&e===``&&(e=t)}),e instanceof a.default?e=this.getFormattedColor(e.string(this.colorpicker.format)):typeof e==`string`||e instanceof String||(e=``),this.input.prop(`value`,e)}}},{key:`getValue`,value:function(){return this.hasInput()?this.input.val():!1}},{key:`setValue`,value:function(e){if(this.hasInput()){var t=this.input.prop(`value`);e||=``,e!==(t||``)&&(this.input.prop(`value`,e),this.input.trigger({type:`change`,colorpicker:this.colorpicker,color:this.colorpicker.color,value:e}))}}},{key:`getFormattedColor`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e||=this.colorpicker.colorHandler.getColorString(),e?(e=this.colorpicker.colorHandler.resolveColorDelegate(e,!1),this.colorpicker.options.useHashPrefix===!1&&(e=e.replace(/^#/g,``)),e):``}},{key:`hasInput`,value:function(){return this.input!==!1}},{key:`isEnabled`,value:function(){return this.hasInput()&&!this.isDisabled()}},{key:`isDisabled`,value:function(){return this.hasInput()&&this.input.prop(`disabled`)===!0}},{key:`disable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!0)}},{key:`enable`,value:function(){this.hasInput()&&this.input.prop(`disabled`,!1)}},{key:`update`,value:function(){this.hasInput()&&(this.colorpicker.options.autoInputFallback===!1&&this.colorpicker.colorHandler.isInvalidColor()||this.setValue(this.getFormattedColor()))}},{key:`onchange`,value:function(e){this.colorpicker.lastEvent.alias=`input.change`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}},{key:`onkeyup`,value:function(e){this.colorpicker.lastEvent.alias=`input.keyup`,this.colorpicker.lastEvent.e=e;var t=this.getValue();t!==e.value&&this.colorpicker.setValue(t)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";var r=n(17),i=n(20),a=[].slice,o=[`keyword`,`gray`,`hex`],s={};Object.keys(i).forEach(function(e){s[a.call(i[e].labels).sort().join(``)]=e});var c={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw Error(`Unknown model: `+t);var n,u;if(e==null)this.model=`rgb`,this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if(typeof e==`string`){var d=r.get(e);if(d===null)throw Error(`Unable to parse color from string: `+e);this.model=d.model,u=i[this.model].channels,this.color=d.value.slice(0,u),this.valpha=typeof d.value[u]==`number`?d.value[u]:1}else if(e.length){this.model=t||`rgb`,u=i[this.model].channels;var f=a.call(e,0,u);this.color=h(f,u),this.valpha=typeof e[u]==`number`?e[u]:1}else if(typeof e==`number`)e&=16777215,this.model=`rgb`,this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);`alpha`in e&&(p.splice(p.indexOf(`alpha`),1),this.valpha=typeof e.alpha==`number`?e.alpha:0);var m=p.sort().join(``);if(!(m in s))throw Error(`Unable to parse color from object: `+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,_=[];for(n=0;n<g.length;n++)_.push(e[g[n]]);this.color=h(_)}if(c[this.model])for(u=i[this.model].channels,n=0;n<u;n++){var v=c[this.model][n];v&&(this.color[n]=v(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in r.to?this:this.rgb();t=t.round(typeof e==`number`?e:1);var n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to[t.model](n)},percentString:function(e){var t=this.rgb().round(typeof e==`number`?e:1),n=t.valpha===1?t.color:t.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new l(this.color.map(d(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new l(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:f(`rgb`,0,p(255)),green:f(`rgb`,1,p(255)),blue:f(`rgb`,2,p(255)),hue:f([`hsl`,`hsv`,`hsl`,`hwb`,`hcg`],0,function(e){return(e%360+360)%360}),saturationl:f(`hsl`,1,p(100)),lightness:f(`hsl`,2,p(100)),saturationv:f(`hsv`,1,p(100)),value:f(`hsv`,2,p(100)),chroma:f(`hcg`,1,p(100)),gray:f(`hcg`,2,p(100)),white:f(`hwb`,1,p(100)),wblack:f(`hwb`,2,p(100)),cyan:f(`cmyk`,0,p(100)),magenta:f(`cmyk`,1,p(100)),yellow:f(`cmyk`,2,p(100)),black:f(`cmyk`,3,p(100)),x:f(`xyz`,0,p(100)),y:f(`xyz`,1,p(100)),z:f(`xyz`,2,p(100)),l:f(`lab`,0,p(100)),a:f(`lab`,1),b:f(`lab`,2),keyword:function(e){return arguments.length?new l(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new l(e):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:((r+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?`AAA`:t>=4.5?`AA`:``},isDark:function(){var e=this.rgb().color;return(e[0]*299+e[1]*587+e[2]*114)/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return l.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw Error(`Argument to "mix" was not a Color instance, but rather an instance of `+typeof e);var n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach(function(e){if(o.indexOf(e)===-1){var t=i[e].channels;l.prototype[e]=function(){if(this.model===e)return new l(this);if(arguments.length)return new l(arguments,e);var n=typeof arguments[t]==`number`?t:this.valpha;return new l(m(i[this.model][e].raw(this.color)).concat(n),e)},l[e]=function(n){return typeof n==`number`&&(n=h(a.call(arguments),t)),new l(n,e)}}});function u(e,t){return Number(e.toFixed(t))}function d(e){return function(t){return u(t,e)}}function f(e,t,n){return e=Array.isArray(e)?e:[e],e.forEach(function(e){(c[e]||(c[e]=[]))[t]=n}),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function m(e){return Array.isArray(e)?e:[e]}function h(e,t){for(var n=0;n<t;n++)typeof e[n]!=`number`&&(e[n]=0);return e}e.exports=l}),(function(e,t,n){var r=n(5),i=n(18),a={};for(var o in r)r.hasOwnProperty(o)&&(a[r[o]]=o);var s=e.exports={to:{},get:{}};s.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case`hsl`:n=s.get.hsl(e),r=`hsl`;break;case`hwb`:n=s.get.hwb(e),r=`hwb`;break;default:n=s.get.rgb(e),r=`rgb`;break}return n?{model:r,value:n}:null},s.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,o=/(\D+)/,s=[0,0,0,1],l,u,d;if(l=e.match(n)){for(d=l[2],l=l[1],u=0;u<3;u++){var f=u*2;s[u]=parseInt(l.slice(f,f+2),16)}d&&(s[3]=Math.round(parseInt(d,16)/255*100)/100)}else if(l=e.match(t)){for(l=l[1],d=l[3],u=0;u<3;u++)s[u]=parseInt(l[u]+l[u],16);d&&(s[3]=Math.round(parseInt(d+d,16)/255*100)/100)}else if(l=e.match(i)){for(u=0;u<3;u++)s[u]=parseInt(l[u+1],0);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(a)){for(u=0;u<3;u++)s[u]=Math.round(parseFloat(l[u+1])*2.55);l[4]&&(s[3]=parseFloat(l[4]))}else if(l=e.match(o))return l[1]===`transparent`?[0,0,0,0]:(s=r[l[1]],s?(s[3]=1,s):null);else return null;for(u=0;u<3;u++)s[u]=c(s[u],0,255);return s[3]=c(s[3],0,1),s},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=i(arguments);return`#`+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(e[3]*255)):``)},s.to.rgb=function(){var e=i(arguments);return e.length<4||e[3]===1?`rgb(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`)`:`rgba(`+Math.round(e[0])+`, `+Math.round(e[1])+`, `+Math.round(e[2])+`, `+e[3]+`)`},s.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?`rgb(`+t+`%, `+n+`%, `+r+`%)`:`rgba(`+t+`%, `+n+`%, `+r+`%, `+e[3]+`)`},s.to.hsl=function(){var e=i(arguments);return e.length<4||e[3]===1?`hsl(`+e[0]+`, `+e[1]+`%, `+e[2]+`%)`:`hsla(`+e[0]+`, `+e[1]+`%, `+e[2]+`%, `+e[3]+`)`},s.to.hwb=function(){var e=i(arguments),t=``;return e.length>=4&&e[3]!==1&&(t=`, `+e[3]),`hwb(`+e[0]+`, `+e[1]+`%, `+e[2]+`%`+t+`)`},s.to.keyword=function(e){return a[e.slice(0,3)]};function c(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){var t=e.toString(16).toUpperCase();return t.length<2?`0`+t:t}}),(function(e,t,n){"use strict";var r=n(19),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}}),(function(e,t,n){"use strict";e.exports=function(e){return e?e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function:!1}}),(function(e,t,n){var r=n(6),i=n(21),a={},o=Object.keys(r);function s(e){var t=function(t){return t==null?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function c(e){var t=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if(typeof n==`object`)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return`conversion`in e&&(t.conversion=e.conversion),t}o.forEach(function(e){a[e]={},Object.defineProperty(a[e],`channels`,{value:r[e].channels}),Object.defineProperty(a[e],`labels`,{value:r[e].labels});var t=i(e);Object.keys(t).forEach(function(n){var r=t[n];a[e][n]=c(r),a[e][n].raw=s(r)})}),e.exports=a}),(function(e,t,n){var r=n(6);function i(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}function a(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),s=o.length,c=0;c<s;c++){var l=o[c],u=t[l];u.distance===-1&&(u.distance=t[a].distance+1,u.parent=a,n.unshift(l))}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){for(var n=[t[e].parent,e],i=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=a(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var c=r[o];t[c].parent!==null&&(n[c]=s(c,t))}return n}}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){s(this,e),this.colorpicker=t}return r(e,[{key:`bind`,value:function(){if(this.colorpicker.options.color){this.color=this.createColor(this.colorpicker.options.color);return}!this.color&&this.colorpicker.inputHandler.getValue()&&(this.color=this.createColor(this.colorpicker.inputHandler.getValue(),this.colorpicker.options.autoInputFallback))}},{key:`unbind`,value:function(){this.colorpicker.element.removeData(`color`)}},{key:`getColorString`,value:function(){return this.hasColor()?this.color.string(this.format):``}},{key:`setColorString`,value:function(e){var t=e?this.createColor(e):null;this.color=t||null}},{key:`createColor`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=!t&&!n,i=new a.default(this.resolveColorDelegate(e),this.format,r);return i.isValid()||(t&&(i=this.getFallbackColor()),this.colorpicker.trigger(`colorpickerInvalid`,i,e)),this.isAlphaEnabled()||(i.alpha=1),i}},{key:`getFallbackColor`,value:function(){if(this.fallback&&this.fallback===this.color)return this.color;var e=this.resolveColorDelegate(this.fallback),t=new a.default(e,this.format);return t.isValid()?t:(console.warn(`The fallback color is invalid. Falling back to the previous color or black if any.`),this.color?this.color:new a.default(`#000000`,this.format))}},{key:`assureColor`,value:function(){return this.hasColor()||(this.color=this.getFallbackColor()),this.color}},{key:`resolveColorDelegate`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=!1;return i.default.each(this.colorpicker.extensions,function(r,i){n===!1&&(n=i.resolveColor(e,t))}),n||e}},{key:`isInvalidColor`,value:function(){return!this.hasColor()||!this.color.isValid()}},{key:`isAlphaEnabled`,value:function(){return this.colorpicker.options.useAlpha!==!1}},{key:`hasColor`,value:function(){return this.color instanceof a.default}},{key:`fallback`,get:function(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:`format`,get:function(){return this.colorpicker.options.format?this.colorpicker.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.isAlphaEnabled()?`rgba`:`hex`:this.hasColor()?this.color.format:`rgb`}},{key:`color`,get:function(){return this.colorpicker.element.data(`color`)},set:function(e){this.colorpicker.element.data(`color`,e),e instanceof a.default&&this.colorpicker.options.format===`auto`&&(this.colorpicker.options.format=this.color.format)}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){o(this,e),this.colorpicker=t,this.picker=null}return r(e,[{key:`bind`,value:function(){var e=this.picker=(0,i.default)(this.options.template);this.options.customClass&&e.addClass(this.options.customClass),this.options.horizontal&&e.addClass(`colorpicker-horizontal`),this._supportsAlphaBar()?(this.options.useAlpha=!0,e.addClass(`colorpicker-with-alpha`)):this.options.useAlpha=!1}},{key:`attach`,value:function(){var e=this.colorpicker.container?this.colorpicker.container:null;e&&this.picker.appendTo(e)}},{key:`unbind`,value:function(){this.picker.remove()}},{key:`_supportsAlphaBar`,value:function(){return(this.options.useAlpha||this.colorpicker.colorHandler.hasColor()&&this.color.hasTransparency())&&this.options.useAlpha!==!1&&(!this.options.format||this.options.format&&!this.options.format.match(/^hex([36])?$/i))}},{key:`update`,value:function(){if(this.colorpicker.colorHandler.hasColor()){var e=this.options.horizontal!==!0,t=e?this.options.sliders:this.options.slidersHorz,n=this.picker.find(`.colorpicker-saturation .colorpicker-guide`),r=this.picker.find(`.colorpicker-hue .colorpicker-guide`),i=this.picker.find(`.colorpicker-alpha .colorpicker-guide`),a=this.color.toHsvaRatio();r.length&&r.css(e?`top`:`left`,(e?t.hue.maxTop:t.hue.maxLeft)*(1-a.h)),i.length&&i.css(e?`top`:`left`,(e?t.alpha.maxTop:t.alpha.maxLeft)*(1-a.a)),n.length&&n.css({top:t.saturation.maxTop-a.v*t.saturation.maxTop,left:a.s*t.saturation.maxLeft}),this.picker.find(`.colorpicker-saturation`).css(`backgroundColor`,this.color.getCloneHueOnly().toHexString());var o=this.color.toHexString(),s=``;s=this.options.horizontal?`linear-gradient(to right, `+o+` 0%, transparent 100%)`:`linear-gradient(to bottom, `+o+` 0%, transparent 100%)`,this.picker.find(`.colorpicker-alpha-color`).css(`background`,s)}}},{key:`options`,get:function(){return this.colorpicker.options}},{key:`color`,get:function(){return this.colorpicker.colorHandler.color}}]),e}(),e.exports=t.default}),(function(e,t,n){"use strict";Object.defineProperty(t,`__esModule`,{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}t.default=function(){function e(t){i(this,e),this.colorpicker=t,this.addon=null}return r(e,[{key:`hasAddon`,value:function(){return!!this.addon}},{key:`bind`,value:function(){this.addon=this.colorpicker.options.addon?this.colorpicker.element.find(this.colorpicker.options.addon):null,this.addon&&this.addon.length===0&&(this.addon=null)}},{key:`unbind`,value:function(){this.hasAddon()&&this.addon.off(`.colorpicker`)}},{key:`update`,value:function(){if(!(!this.colorpicker.colorHandler.hasColor()||!this.hasAddon())){var e={background:this.colorpicker.colorHandler.getColorString()},t=this.addon.find(`i`).eq(0);t.length>0?t.css(e):this.addon.css(e)}}}]),e}(),e.exports=t.default})])})}))(),s(((e,t)=>{var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=(typeof window>`u`?`undefined`:n(window))===`object`;(function(e){if(typeof define==`function`&&define.amd)define([`jquery`],e);else if((t===void 0?`undefined`:n(t))===`object`&&t.exports){var r;try{r=K()}catch{r=null}t.exports=e(r)}else window&&(window.Slider=e(window.jQuery))})(function(e){var t=`slider`,n=`bootstrapSlider`;r&&!window.console&&(window.console={}),r&&!window.console.log&&(window.console.log=function(){}),r&&!window.console.warn&&(window.console.warn=function(){});var i;return(function(e){"use strict";var t=Array.prototype.slice;function n(){}function r(e){if(!e)return;function r(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})}var i=typeof console>`u`?n:function(e){console.error(e)};function a(n,r){e.fn[n]=function(a){if(typeof a==`string`){for(var o=t.call(arguments,1),s=0,c=this.length;s<c;s++){var l=this[s],u=e.data(l,n);if(!u){i(`cannot call methods on `+n+` prior to initialization; attempted to call '`+a+`'`);continue}if(!e.isFunction(u[a])||a.charAt(0)===`_`){i(`no such method '`+a+`' for `+n+` instance`);continue}var d=u[a].apply(u,o);if(d!==void 0&&d!==u)return d}return this}else{var f=this.map(function(){var t=e.data(this,n);return t?(t.option(a),t._init()):(t=new r(this,a),e.data(this,n,t)),e(this)});return f.length===1?f[0]:f}}}return e.bridget=function(e,t){r(t),a(e,t)},e.bridget}r(e)})(e),(function(e){var a=void 0,o={formatInvalidInputErrorMsg:function(e){return`Invalid input value '`+e+`' passed in`},callingContextNotSliderInstance:`Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method`},s={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,a,o=0,c=1;c<this.options.ticks_positions.length;c++)if(e<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],a=this.options.ticks_positions[c-1],i=this.options.ticks[c],o=this.options.ticks_positions[c];break}var l=(e-a)/(o-a);t=r+l*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return s.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,i=0,a=0;a<this.options.ticks.length;a++)if(e<=this.options.ticks[a]){t=a>0?this.options.ticks[a-1]:0,r=a>0?this.options.ticks_positions[a-1]:0,n=this.options.ticks[a],i=this.options.ticks_positions[a];break}if(a>0){var o=(e-t)/(n-t);return r+o*(i-r)}}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,s.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};i=function(e,t){return c.call(this,e,t),this};function c(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},typeof t==`string`?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n||={};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty(`min`),a=n.hasOwnProperty(`max`),o=0;o<r.length;o++){var c=r[o],l=n[c];l=l===void 0?d(this.element,c):l,l=l===null?this.defaultOptions[c]:l,this.options||={},this.options[c]=l}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),this.options.rtl===`auto`){var u=window.getComputedStyle(this.element);u==null?this.options.rtl=this.element.style.direction===`rtl`:this.options.rtl=u.direction===`rtl`}this.options.orientation===`vertical`&&(this.options.tooltip_position===`top`||this.options.tooltip_position===`bottom`)?this.options.rtl?this.options.tooltip_position=`left`:this.options.tooltip_position=`right`:this.options.orientation===`horizontal`&&(this.options.tooltip_position===`left`||this.options.tooltip_position===`right`)&&(this.options.tooltip_position=`top`);function d(e,t){var n=`data-slider-`+t.replace(/_/g,`-`),r=e.getAttribute(n);try{return JSON.parse(r)}catch{return r}}var f=this.element.style.width,p=!1,m=this.element.parentNode,h,g,_,v,y;if(this.sliderElem)p=!0;else{this.sliderElem=document.createElement(`div`),this.sliderElem.className=`slider`;var b=document.createElement(`div`);b.className=`slider-track`,g=document.createElement(`div`),g.className=`slider-track-low`,h=document.createElement(`div`),h.className=`slider-selection`,_=document.createElement(`div`),_.className=`slider-track-high`,v=document.createElement(`div`),v.className=`slider-handle min-slider-handle`,v.setAttribute(`role`,`slider`),v.setAttribute(`aria-valuemin`,this.options.min),v.setAttribute(`aria-valuemax`,this.options.max),y=document.createElement(`div`),y.className=`slider-handle max-slider-handle`,y.setAttribute(`role`,`slider`),y.setAttribute(`aria-valuemin`,this.options.min),y.setAttribute(`aria-valuemax`,this.options.max),b.appendChild(g),b.appendChild(h),b.appendChild(_),this.rangeHighlightElements=[];var x=this.options.rangeHighlights;if(Array.isArray(x)&&x.length>0)for(var S=0;S<x.length;S++){var C=document.createElement(`div`);C.className=`slider-rangeHighlight slider-selection `+(x[S].class||``),this.rangeHighlightElements.push(C),b.appendChild(C)}var w=Array.isArray(this.options.labelledby);if(w&&this.options.labelledby[0]&&v.setAttribute(`aria-labelledby`,this.options.labelledby[0]),w&&this.options.labelledby[1]&&y.setAttribute(`aria-labelledby`,this.options.labelledby[1]),!w&&this.options.labelledby&&(v.setAttribute(`aria-labelledby`,this.options.labelledby),y.setAttribute(`aria-labelledby`,this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement(`div`),this.ticksContainer.className=`slider-tick-container`,o=0;o<this.options.ticks.length;o++){var T=document.createElement(`div`);if(T.className=`slider-tick`,this.options.ticks_tooltip){var E=this._addTickListener(),D=E.addMouseEnter(this,T,o),ee=E.addMouseLeave(this,T);this.ticksCallbackMap[o]={mouseEnter:D,mouseLeave:ee}}this.ticks.push(T),this.ticksContainer.appendChild(T)}h.className+=` tick-slider-selection`}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement(`div`),this.tickLabelContainer.className=`slider-tick-label-container`,o=0;o<this.options.ticks_labels.length;o++){var O=document.createElement(`div`),te=this.options.ticks_positions.length===0,ne=this.options.reversed&&te?this.options.ticks_labels.length-(o+1):o;O.className=`slider-tick-label`,O.innerHTML=this.options.ticks_labels[ne],this.tickLabels.push(O),this.tickLabelContainer.appendChild(O)}var k=function(e){var t=document.createElement(`div`);t.className=`tooltip-arrow`;var n=document.createElement(`div`);n.className=`tooltip-inner`,e.appendChild(t),e.appendChild(n)},A=document.createElement(`div`);A.className=`tooltip tooltip-main`,A.setAttribute(`role`,`presentation`),k(A);var re=document.createElement(`div`);re.className=`tooltip tooltip-min`,re.setAttribute(`role`,`presentation`),k(re);var j=document.createElement(`div`);j.className=`tooltip tooltip-max`,j.setAttribute(`role`,`presentation`),k(j),this.sliderElem.appendChild(b),this.sliderElem.appendChild(A),this.sliderElem.appendChild(re),this.sliderElem.appendChild(j),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(v),this.sliderElem.appendChild(y),m.insertBefore(this.sliderElem,this.element),this.element.style.display=`none`}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable=`ontouchstart`in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(`.tooltip-main`),this.tooltipInner=this.tooltip.querySelector(`.tooltip-inner`),this.tooltip_min=this.sliderElem.querySelector(`.tooltip-min`),this.tooltipInner_min=this.tooltip_min.querySelector(`.tooltip-inner`),this.tooltip_max=this.sliderElem.querySelector(`.tooltip-max`),this.tooltipInner_max=this.tooltip_max.querySelector(`.tooltip-inner`),s[this.options.scale]&&(this.options.scale=s[this.options.scale]),p===!0&&(this._removeClass(this.sliderElem,`slider-horizontal`),this._removeClass(this.sliderElem,`slider-vertical`),this._removeClass(this.sliderElem,`slider-rtl`),this._removeClass(this.tooltip,`hide`),this._removeClass(this.tooltip_min,`hide`),this._removeClass(this.tooltip_max,`hide`),[`left`,`right`,`top`,`width`,`height`].forEach(function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)},this),[this.handle1,this.handle2].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`)},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(e){this._removeProperty(e,`left`),this._removeProperty(e,`right`),this._removeProperty(e,`top`),this._removeClass(e,`right`),this._removeClass(e,`left`),this._removeClass(e,`top`)},this)),this.options.orientation===`vertical`?(this._addClass(this.sliderElem,`slider-vertical`),this.stylePos=`top`,this.mousePos=`pageY`,this.sizePos=`offsetHeight`):(this._addClass(this.sliderElem,`slider-horizontal`),this.sliderElem.style.width=f,this.options.orientation=`horizontal`,this.options.rtl?this.stylePos=`right`:this.stylePos=`left`,this.mousePos=`clientX`,this.sizePos=`offsetWidth`),this.options.rtl&&this._addClass(this.sliderElem,`slider-rtl`),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(a||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=g||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=_||this.trackHigh,this.options.selection===`none`?(this._addClass(this.trackLow,`hide`),this._addClass(this.trackSelection,`hide`),this._addClass(this.trackHigh,`hide`)):(this.options.selection===`after`||this.options.selection===`before`)&&(this._removeClass(this.trackLow,`hide`),this._removeClass(this.trackSelection,`hide`),this._removeClass(this.trackHigh,`hide`)),this.handle1=v||this.handle1,this.handle2=y||this.handle2,p===!0)for(this._removeClass(this.handle1,`round triangle`),this._removeClass(this.handle2,`round triangle hide`),o=0;o<this.ticks.length;o++)this._removeClass(this.ticks[o],`round triangle hide`);if([`round`,`triangle`,`custom`].indexOf(this.options.handle)!==-1)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),o=0;o<this.ticks.length;o++)this._addClass(this.ticks[o],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener(`keydown`,this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener(`keydown`,this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.addEventListener(`touchmove`,this.touchmove,!1)),this.sliderElem.addEventListener(`mousedown`,this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener(`resize`,this.resize,!1),this.options.tooltip===`hide`)this._addClass(this.tooltip,`hide`),this._addClass(this.tooltip_min,`hide`),this._addClass(this.tooltip_max,`hide`);else if(this.options.tooltip===`always`)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var M=this._addTickListener(),ie=M.addMouseEnter(this,this.handle1),N=M.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:ie,mouseLeave:N},ie=M.addMouseEnter(this,this.handle2),N=M.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:ie,mouseLeave:N}}else this.sliderElem.addEventListener(`mouseenter`,this.showTooltip,!1),this.sliderElem.addEventListener(`mouseleave`,this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchmove`,this.showTooltip,!1),this.sliderElem.addEventListener(`touchend`,this.hideTooltip,!1));this.handle1.addEventListener(`focus`,this.showTooltip,!1),this.handle1.addEventListener(`blur`,this.hideTooltip,!1),this.handle2.addEventListener(`focus`,this.showTooltip,!1),this.handle2.addEventListener(`blur`,this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener(`touchstart`,this.showTooltip,!1),this.handle1.addEventListener(`touchmove`,this.showTooltip,!1),this.handle1.addEventListener(`touchend`,this.hideTooltip,!1),this.handle2.addEventListener(`touchstart`,this.showTooltip,!1),this.handle2.addEventListener(`touchmove`,this.showTooltip,!1),this.handle2.addEventListener(`touchend`,this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}i.prototype={_init:function(){},constructor:i,defaultOptions:{id:``,min:0,max:10,step:1,precision:0,orientation:`horizontal`,value:5,range:!1,selection:`before`,tooltip:`show`,tooltip_split:!1,lock_to_ticks:!1,handle:`round`,reversed:!1,rtl:`auto`,enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+` : `+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:`linear`,focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||=0;var r=this.getValue();this._state.value=this._validateInputValue(e);var i=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=i(this._state.value[0]),this._state.value[1]=i(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=i(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,`hide`),this.options.selection===`after`?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),this.options.step*100/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var a=this.options.range?this._state.value:this._state.value[0];this._setDataVal(a),t===!0&&this._trigger(`slide`,a);var o=!1;return o=Array.isArray(a)?r[0]!==a[0]||r[1]!==a[1]:r!==a,o&&n===!0&&this._trigger(`change`,{oldValue:r,newValue:a}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display=``,this._cleanUpEventCallbacksMap(),this.element.removeAttribute(`data`),e&&(this._unbindJQueryEventHandlers(),a===t&&this.$element.removeData(a),this.$element.removeData(n))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute(`tabindex`),this.handle2.removeAttribute(`tabindex`),this._addClass(this.sliderElem,`slider-disabled`),this._trigger(`slideDisabled`),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute(`tabindex`,0),this.handle2.setAttribute(`tabindex`,0),this._removeClass(this.sliderElem,`slider-disabled`),this._trigger(`slideEnabled`),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(r){var i=this.getValue();return this._removeSliderEventHandlers(),c.call(this,this.element,this.options),r&&r.useCurrentValue===!0&&this.setValue(i),e&&(a===t&&e.data(this.element,t,this),e.data(this.element,n,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener(`keydown`,this.handle1Keydown,!1),this.handle2.removeEventListener(`keydown`,this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName(`slider-tick`),t=0;t<e.length;t++)e[t].removeEventListener(`mouseenter`,this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener(`mouseleave`,this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener(`mouseenter`,this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener(`mouseenter`,this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener(`mouseleave`,this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener(`mouseleave`,this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener(`focus`,this.showTooltip),this.hideTooltip&&this._removeTooltipListener(`blur`,this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener(`mouseenter`,this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener(`mouseleave`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`mousedown`,this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle1.removeEventListener(`touchmove`,this.showTooltip,!1),this.handle2.removeEventListener(`touchstart`,this.showTooltip,!1),this.handle2.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener(`touchend`,this.hideTooltip,!1),this.handle2.removeEventListener(`touchend`,this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener(`touchstart`,this.showTooltip,!1),this.sliderElem.removeEventListener(`touchmove`,this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener(`touchend`,this.hideTooltip,!1),this.sliderElem.removeEventListener(`touchstart`,this.touchstart,!1),this.sliderElem.removeEventListener(`touchmove`,this.touchmove,!1)),window.removeEventListener(`resize`,this.resize,!1)},_bindNonQueryEventHandler:function(e,t){this.eventToCallbackMap[e]===void 0&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(n!==void 0){for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,`in`),this.tooltip_min.style.display=`none`,this.tooltip_max.style.display=`none`):(this._addClass(this.tooltip_min,`in`),this._addClass(this.tooltip_max,`in`),this.tooltip.style.display=`none`),this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this._alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,`in`),this._removeClass(this.tooltip_min,`in`),this._removeClass(this.tooltip_max,`in`)),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t=this,n=this.options.formatter(e?e.value[0]:this._state.value[0]),r=i(e||this._state,this.options.reversed);this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=r[0]+`%`;function i(e,n){return n?[100-e.percentage[0],t.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]}},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),i=t===e.handle1?r.value[0]:r.value[1],a=void 0;n===void 0?a=e._toPercentage(i):(i=e.options.ticks[n],a=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])),r.value[0]=i,r.percentage[0]=a,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener(`mouseenter`,r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener(`mouseleave`,n,!1),n}}},_layout:function(){var e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],t;if(this.handle1.style[this.stylePos]=e[0]+`%`,this.handle1.setAttribute(`aria-valuenow`,this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute(`aria-valuetext`,t):this.handle1.removeAttribute(`aria-valuetext`),this.handle2.style[this.stylePos]=e[1]+`%`,this.handle2.setAttribute(`aria-valuenow`,this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute(`aria-valuetext`,t):this.handle2.removeAttribute(`aria-valuetext`),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var n=0;n<this.options.rangeHighlights.length;n++){var r=this._toPercentage(this.options.rangeHighlights[n].start),i=this._toPercentage(this.options.rangeHighlights[n].end);if(this.options.reversed){var a=100-i;i=100-r,r=a}var o=this._createHighlightRange(r,i);o?this.options.orientation===`vertical`?(this.rangeHighlightElements[n].style.top=o.start+`%`,this.rangeHighlightElements[n].style.height=o.size+`%`):(this.options.rtl?this.rangeHighlightElements[n].style.right=o.start+`%`:this.rangeHighlightElements[n].style.left=o.start+`%`,this.rangeHighlightElements[n].style.width=o.size+`%`):this.rangeHighlightElements[n].style.display=`none`}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var s=this.options.orientation===`vertical`?`height`:`width`,c=this.options.orientation===`vertical`?`marginTop`:this.options.rtl?`marginRight`:`marginLeft`,l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var u=0;if(this.options.ticks_positions.length===0)this.options.orientation!==`vertical`&&(this.tickLabelContainer.style[c]=-l/2+`px`),u=this.tickLabelContainer.offsetHeight;else for(d=0;d<this.tickLabelContainer.childNodes.length;d++)this.tickLabelContainer.childNodes[d].offsetHeight>u&&(u=this.tickLabelContainer.childNodes[d].offsetHeight);this.options.orientation===`horizontal`&&(this.sliderElem.style.marginBottom=u+`px`)}for(var d=0;d<this.options.ticks.length;d++){var f=this.options.ticks_positions[d]||this._toPercentage(this.options.ticks[d]);this.options.reversed&&(f=100-f),this.ticks[d].style[this.stylePos]=f+`%`,this._removeClass(this.ticks[d],`in-selection`),this.options.range?f>=e[0]&&f<=e[1]&&this._addClass(this.ticks[d],`in-selection`):(this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.ticks[d],`in-selection`),this.tickLabels[d]&&(this.tickLabels[d].style[s]=l+`px`,this.options.orientation!==`vertical`&&this.options.ticks_positions[d]!==void 0?(this.tickLabels[d].style.position=`absolute`,this.tickLabels[d].style[this.stylePos]=f+`%`,this.tickLabels[d].style[c]=-l/2+`px`):this.options.orientation===`vertical`&&(this.options.rtl?this.tickLabels[d].style.marginRight=this.sliderElem.offsetWidth+`px`:this.tickLabels[d].style.marginLeft=this.sliderElem.offsetWidth+`px`,this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+`px`),this._removeClass(this.tickLabels[d],`label-in-selection label-is-selection`),this.options.range?f>=e[0]&&f<=e[1]&&(this._addClass(this.tickLabels[d],`label-in-selection`),(f===e[0]||e[1])&&this._addClass(this.tickLabels[d],`label-is-selection`)):((this.options.selection===`after`&&f>=e[0]||this.options.selection===`before`&&f<=e[0])&&this._addClass(this.tickLabels[d],`label-in-selection`),f===e[0]&&this._addClass(this.tickLabels[d],`label-is-selection`)))}}var p;if(this.options.range){p=this.options.formatter(this._state.value),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+`%`;var m=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,m);var h=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,h),this.tooltip_min.style[this.stylePos]=e[0]+`%`,this.tooltip_max.style[this.stylePos]=e[1]+`%`}else p=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,p),this.tooltip.style[this.stylePos]=e[0]+`%`;if(this.options.orientation===`vertical`)this.trackLow.style.top=`0`,this.trackLow.style.height=Math.min(e[0],e[1])+`%`,this.trackSelection.style.top=Math.min(e[0],e[1])+`%`,this.trackSelection.style.height=Math.abs(e[0]-e[1])+`%`,this.trackHigh.style.bottom=`0`,this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;else{this.stylePos===`right`?this.trackLow.style.right=`0`:this.trackLow.style.left=`0`,this.trackLow.style.width=Math.min(e[0],e[1])+`%`,this.stylePos===`right`?this.trackSelection.style.right=Math.min(e[0],e[1])+`%`:this.trackSelection.style.left=Math.min(e[0],e[1])+`%`,this.trackSelection.style.width=Math.abs(e[0]-e[1])+`%`,this.stylePos===`right`?this.trackHigh.style.left=`0`:this.trackHigh.style.right=`0`,this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+`%`;var g=this.tooltip_min.getBoundingClientRect(),_=this.tooltip_max.getBoundingClientRect();this.options.tooltip_position===`bottom`?g.right>_.left?(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=``,this.tooltip_max.style.bottom=`22px`):(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=``):g.right>_.left?(this._removeClass(this.tooltip_max,`top`),this._addClass(this.tooltip_max,`bottom`),this.tooltip_max.style.top=`18px`):(this._removeClass(this.tooltip_max,`bottom`),this._addClass(this.tooltip_max,`top`),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),this.mousemove&&document.removeEventListener(`mousemove`,this.mousemove,!1),this.mouseup&&document.removeEventListener(`mouseup`,this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener(`touchmove`,this.mousemove,!1),document.addEventListener(`touchend`,this.mouseup,!1)),document.addEventListener(`mousemove`,this.mousemove,!1),document.addEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!0;var i=this._calculateValue();return this._trigger(`slideStart`,i),this.setValue(i,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){e===0&&this.handle1.focus(),e===1&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1;break}if(n){if(this.options.natural_arrow_keys){var r=this.options.orientation===`horizontal`,i=this.options.orientation===`vertical`,a=this.options.rtl,o=this.options.reversed;r?a?o||(n=-n):o&&(n=-n):i&&(o||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;c=this.options.ticks.indexOf(this._state.value[e]),c===-1&&(c=0,window.console.warn(`(lock_to_ticks) _keydown: index should not be -1`)),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[e]+n*this.options.step;var l=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(l);var u=this._state.keyCtrl?this._state.value[0]:s,d=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,u)),Math.max(this.options.min,Math.min(this.options.max,d))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger(`slideStart`,s),this.setValue(s,!0,!0),this._trigger(`slideStop`,s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){e.changedTouches!==void 0&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);this._state.dragged===0&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):this._state.dragged===1&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):this._state.keyCtrl===0&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):this._state.keyCtrl===1&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener(`touchmove`,this.mousemove,!1),document.removeEventListener(`touchend`,this.mouseup,!1)),document.removeEventListener(`mousemove`,this.mousemove,!1),document.removeEventListener(`mouseup`,this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger(`slideStop`,n),this._state.dragged=null,!1},_setValues:function(e,t){var n=e===0?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(``+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){this.touchCapable&&(e.type===`touchstart`||e.type===`touchmove`||e.type===`touchend`)&&(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];this.stylePos===`right`&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(!isNaN(+e))return+e;if(Array.isArray(e))return this._validateArray(e),e;throw Error(o.formatInvalidInputErrorMsg(e))},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`number`)throw Error(o.formatInvalidInputErrorMsg(n))}},_setDataVal:function(e){this.element.setAttribute(`data-value`,e),this.element.setAttribute(`value`,e),this.element.value=e},_trigger:function(t,n){n=n||n===0?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];a(n)}e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){e.textContent===void 0?e.innerText!==void 0&&(e.innerText=t):e.textContent=t},_removeClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i],o=RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`);r=r.replace(o,` `)}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(` `),r=e.className,i=0;i<n.length;i++){var a=n[i];RegExp(`(?:\\s|^)`+a+`(?:\\s|$)`).test(r)||(r+=` `+a)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,e.tagName!==`BODY`&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var i=n.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()});t.style[i]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if(this.options.orientation===`vertical`){var t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?`left`:`right`,n=t===`left`?`right`:`left`;e.forEach(function(e){this._addClass(e,t),e.style[n]=`100%`}.bind(this))}else this.options.tooltip_position===`bottom`?e.forEach(function(e){this._addClass(e,`bottom`),e.style.top=`22px`}.bind(this)):e.forEach(function(e){this._addClass(e,`top`),e.style.top=-this.tooltip.outerHeight-14+`px`}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var i=Math.abs(e-this.options.ticks[r]);i<t&&(t=i,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(r&&window.console.warn(`bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.`),a=n):(e.bridget(t,i),a=t),e.bridget(n,i),e(function(){e(`input[data-provide=slider]`)[a]()}))})(e),i})}))();var vt=girder.$,yt=girder._,bt=girder.moment,xt=girder.views.View,{getCurrentUser:St}=girder.auth,q=girder.events,J=girder.models.ItemModel,Ct=girder.models.FolderModel,wt=girder.collections.FolderCollection,Tt=girder.models.FileModel,Et=girder.models.UserModel,Dt=girder.models.CollectionModel,{restRequest:Ot}=girder.rest,kt=xt.extend({events:{"change input,select":`_input`,changeColor:`_input`,"click .s-select-file-button":`_selectFile`,"click .s-select-multifile-button":`_selectMultiFile`,"click .s-select-region-button":`_selectRegion`,"click .s-select-region-clear-button":`_clearRegion`,"click .s-select-region-submit-button":`_submitRegionToggle`},initialize(e){this._disableRegionSelect=e.disableRegionSelect===!0,this._rootPath=e.rootPath,this.listenTo(this.model,`change`,this.change),this.listenTo(this.model,`destroy`,this.remove),this.listenTo(this.model,`invalid`,this.invalid),this.listenTo(q,`s:widgetSet:`+this.model.id,e=>{this.model.set(`value`,e)}),this._initModel(e)},_initModel(e){let t=e.setDefaultOutput,n=this.model,r=n.get(`type`),i=n.get(`channel`),a=n.get(`required`);i===`input`&&(n.get(`defaultNameMatch`)||n.get(`defaultPathMatch`))&&this._getDefaultInputResource(n).then(e=>(e&&this.model.set({path:e._path,value:e}),null)),!(!t||!a&&(!this._findReference()||!n.get(`extensions`))||i!==`output`||![`new-file`,`file`,`item`,`directory`,`multi`].includes(r))&&this._getDefaultOutputFolder().then(e=>{if(!e)return null;let r=(n.get(`extensions`)||``).split(`|`)[0],i=n.get(`id`)===`returnparameterfile`?``:`-${n.get(`title`)}`,a=this._findReference();if(a)this.listenTo(a,`change`,()=>{let n=a.get(`value`);if(n&&n.get(`name`)){let a=n.get(`name`);a.includes(`.`)&&(a=a.slice(0,a.lastIndexOf(`.`)));let o=`${a}-${t}${i}-${bt().local().format()}${r}`;this._setValue(e,o)}});else{let n=`${t}${i}-${bt().local().format()}${r}`;this._setValue(e,n)}return null})},_setValue(e,t){this.model.set({path:[e.get(`name`),t],parent:e,value:new J({name:t,folderId:e.id})})},_findReference(){let e=this.model.get(`reference`);return e?this.model.collection.find(t=>t.get(`id`)===e):null},render(e,t){if(this.$(`[data-toggle="tooltip"]`).tooltip(`destroy`),this.$(`.form-group`).removeClass(`has-error`),this.model.isValid(),t&&t.norender)return this;let n=Object.assign({disableRegionSelect:this._disableRegionSelect,previousElement:this.$el},this.model.toJSON());return this.$el.html(this.template()(n)),this.$(`[data-toggle="tooltip"]`).tooltip({container:`body`}),n.datalist&&this.$(`.s-control-item input`).addClass(`has-datalist`),this},change(){q.trigger(`s:widgetChanged:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetChanged`,this.model),this.render.apply(this,arguments)},remove(){q.trigger(`s:widgetRemoved:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetRemoved`,this.model),this.$(`.s-control-item[data-type="color"] .input-group`).colorpicker(`destroy`),this.$(`.s-control-item[data-type="range"] input`).slider(`destroy`),this.$el.empty()},invalid(){q.trigger(`s:widgetInvalid:${this.model.get(`type`)}`,this.model),q.trigger(`s:widgetInvalid`,this.model),this.$(`.form-group`).addClass(`has-error`)},_typedef:{range:{template:qe},color:{template:Ee},string:{template:mt},number:{template:mt},integer:{template:mt},boolean:{template:Se},"string-vector":{template:mt},"number-vector":{template:mt},"string-enumeration":{template:je},"number-enumeration":{template:je},file:{template:He},item:{template:He},image:{template:He},multi:{template:He},directory:{template:He},"new-file":{template:He},region:{template:rt}},template(){let e=this.model.get(`type`),t=this._typedef[e];return t===void 0&&(console.warn(`Invalid widget type "`+e+`"`),t={}),t.template||yt.template(``)},_input(e){let t=vt(e.target),n=t.val();t.attr(`type`)===`checkbox`&&(n=t.get(0).checked),this.model.set(`value`,n,{norender:!0})},_selectFile(){this.model.get(`type`)===`multi`&&this.model.get(`value`)&&this.model.set({value:new J({folderId:this.model.get(`value`).get(`folderId`)})});let e=this.model.get(`defaultType`);e&&this.model.set({type:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},getRoot(e,t){let n={item:J,folder:Ct,collection:Dt,user:Et},r=`folder`,i=null;if(e.get&&(e.get(`itemId`)?(i=e.get(`itemId`),r=`item`):e.get(`folderId`)?i=e.get(`folderId`):e.get(`parentCollection`)&&(r=e.get(`parentCollection`),i=e.get(`parentId`))),r===`item`){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.defaultSelectedResource=e,t.highlightItem=!0,t.selectItem=!0,this.getRoot(e,t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else if(n[r]&&i){let e=new n[r];e.set({_id:i}).on(`g:fetched`,function(){t.root=e,t.rootSelectorSettings.selectByResource=e,this.completeInitialization(t)},this).on(`g:error`,function(){t.root=null,this.completeInitialization(t)},this).fetch()}else this.completeInitialization(t)},completeInitialization(e){let t=new ye(e);t.once(`g:saved`,()=>{this.model.unset(`revertType`),t.$el.modal(`hide`)}).render(),t.$el.on(`hidden.bs.modal`,()=>{this.model.get(`revertType`)&&(this.model.set(`type`,this.model.get(`revertType`)),this.model.unset(`revertType`))})},_selectMultiFile(){let e=this.model.get(`type`);e!==`multi`&&this.model.set({type:`multi`,defaultType:e,revertType:e});let t={el:vt(`#g-dialog-container`),parentView:this,model:this.model,rootPath:this._rootPath,rootSelectorSettings:{pageLimit:1e3}};this.model.get(`value`)?this.getRoot(this.model.get(`value`),t):this.completeInitialization(t)},_getDefaultOutputFolder(){let e=St();if(!e)return vt.Deferred().resolve(null).promise();let t=new wt;return t.fetch({parentId:e.id,parentType:`user`,public:!1,limit:1}).then(()=>t.isEmpty()?t.fetch({parentId:e.id,parentType:`user`,limit:1}):t).then(()=>t.isEmpty()?null:t.at(0))},_getDefaultInputResource(e){var t={image:`item`,item:`item`,file:`file`,directory:`folder`}[e.get(`type`)];return Ot({url:`slicer_cli_web/path_match`,data:{type:t,name:e.get(`defaultNameMatch`),path:e.get(`defaultPathMatch`),relative_path:e.get(`defaultRelativePath`),base_id:e.get(`defaultRelativePath_id`),base_type:e.get(`defaultRelativePath_type`)},error:null}).then(t=>{var n={image:J,item:J,file:Tt,directory:Ct}[e.get(`type`)];let r=new n(t);return r._path=t._path,r})},_selectRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.s-select-region-button`),n=t.closest(`.input-group-btn`).find(`.s-select-region-submit-button`);if(t.hasClass(`active`)){q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:n,event:e});return}let r=t.attr(`shape`),i=t.attr(`multi`)===`true`;q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:r,add:i,submitCtrl:n,event:e}),q.trigger(`s:widgetDrawRegion`,this.model)},_clearRegion(e){this.$(`.tooltip[role="tooltip"]`).remove();let t=vt(e.target).closest(`.input-group-btn`).find(`.s-select-region-submit-button`);q.trigger(`s:widgetDrawRegionEvent`,{model:this.model,mode:null,add:!1,submitCtrl:t,event:e}),q.trigger(`s:widgetClearRegion`,this.model)},_submitRegionToggle(e){vt(e.target).attr(`can-toggle`)===`true`&&(vt(e.target).toggleClass(`enabled`),vt(e.target).toggleClass(`active`,vt(e.target).hasClass(`enabled`)))}});function At(e,t,n,r){if(!1===t||t==null||!t&&(e===`class`||e===`style`))return``;if(!0===t)return` `+(r?e:e+`="`+e+`"`);var i=typeof t;return i!==`object`&&i!==`function`||typeof t.toJSON!=`function`||(t=t.toJSON()),typeof t==`string`||(t=JSON.stringify(t),n||t.indexOf(`"`)===-1)?(n&&(t=Ft(t)),` `+e+`="`+t+`"`):` `+e+`='`+t.replace(/'/g,`'`)+`'`}function jt(e,t){var n=``;for(var r in e)if(It.call(e,r)){var i=e[r];if(r===`class`){i=Mt(i),n=At(r,i,!1,t)+n;continue}r===`style`&&(i=zt(i)),n+=At(r,i,!1,t)}return n}function Mt(e,t){return Array.isArray(e)?Nt(e,t):e&&typeof e==`object`?Pt(e):e||``}function Nt(e,t){for(var n,r=``,i=``,a=Array.isArray(t),o=0;o<e.length;o++)(n=Mt(e[o]))&&(a&&t[o]&&(n=Ft(n)),r=r+i+n,i=` `);return r}function Pt(e){var t=``,n=``;for(var r in e)r&&e[r]&&It.call(e,r)&&(t=t+n+r,n=` `);return t}function Ft(e){var t=``+e,n=Y.exec(t);if(!n)return e;var r,i,a,o=``;for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:a=`"`;break;case 38:a=`&`;break;case 60:a=`<`;break;case 62:a=`>`;break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=a}return i===r?o:o+t.substring(i,r)}var It=Object.prototype.hasOwnProperty,Y=/["&<>]/;function Lt(e,t){if(arguments.length===1){for(var n=e[0],r=1;r<e.length;r++)n=Lt(n,e[r]);return n}for(var i in t)if(i===`class`){var a=e[i]||[];e[i]=(Array.isArray(a)?a:[a]).concat(t[i]||[])}else if(i===`style`){var a=zt(e[i]);a=a&&a[a.length-1]!==`;`?a+`;`:a;var o=zt(t[i]);o=o&&o[o.length-1]!==`;`?o+`;`:o,e[i]=a+o}else e[i]=t[i];return e}function Rt(e,t,n,r){if(!(e instanceof Error))throw e;if(!(typeof window>`u`&&t||r))throw e.message+=` on line `+n,e;var i,a,o,s;try{r||=f().readFileSync(t,{encoding:`utf8`}),i=3,a=r.split(`
|
|
66
66
|
`),o=Math.max(n-i,0),s=Math.min(a.length,n+i)}catch(r){e.message+=` - could not read from `+t+` (`+r.message+`)`,Rt(e,null,n);return}i=a.slice(o,s).map(function(e,t){var r=t+o+1;return(r==n?` > `:` `)+r+`| `+e}).join(`
|
|
67
67
|
`),e.path=t;try{e.message=(t||`Pug`)+`:`+n+`
|
|
68
68
|
`+i+`
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/docs/worker_management.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/cli_utils.py
RENAMED
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/slicer_cli_web/image_job.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/.dockerignore
RENAMED
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/Dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/cli_list.json
RENAMED
|
File without changes
|
{girder_slicer_cli_web-5.0.5.dev8 → girder_slicer_cli_web-5.0.5.dev12}/small-docker/cli_list.py
RENAMED
|
File without changes
|
|
File without changes
|