NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuser.js.org/users/udo80 // @name sztool-update // @description This UserScript improves the input options for working times in the time sheet tools currently used by Raytion. A link can be used to switch between the known and improved input options for working times. All other functionalities are retained. // @copyright 2018, Udo Woitek (https://openuserjs.org/users/udo80) // @license Apache-2.0 // @version 2.2.0 // @include http://sztool* // @include http://sz-tool* // @include https://sztool* // @include https://sz-tool* // @grant none // @updateURL https://openuserjs.org/meta/udo80/sztool-update.meta.js // @run-at document-idle // ==/UserScript== // ==OpenUserJs== // @author Udo Woitek <udo.woitek@raytion.com> // ==/OpenUserJs== !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e,r){"use strict";r.r(e);var n=r(3);function i(t){var e={},r="";for(var o in t){var a=t[o];if("$unique"===o)e[n.IS_UNIQUE]=a;else if("$nest"===o){var s=a;for(var l in s){var u=s[l];e[l]=i(u).result}}else"$debugName"===o?r=a:e[o]=a}return{result:e,debugName:r}}var o="undefined"==typeof requestAnimationFrame?function(t){return setTimeout(t)}:"undefined"==typeof window?requestAnimationFrame:requestAnimationFrame.bind(window);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(function(t){return!!t}).join(" ")}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r={},n=0,i=t;n<i.length;n++){var o=i[n];if(null!=o&&!1!==o)for(var a in o){var l=o[a];(l||0===l)&&("$nest"===a&&l?r[a]=r.$nest?s(r.$nest,l):l:-1!==a.indexOf("&")||0===a.indexOf("@media")?r[a]=r[a]?s(r[a],l):l:r[a]=l)}}return r}var l=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,i=[];return t.type&&i.push(t.type),t.orientation&&i.push("(orientation: "+t.orientation+")"),t.minWidth&&i.push("(min-width: "+u(t.minWidth)+")"),t.maxWidth&&i.push("(max-width: "+u(t.maxWidth)+")"),t.minHeight&&i.push("(min-height: "+u(t.minHeight)+")"),t.maxHeight&&i.push("(max-height: "+u(t.maxHeight)+")"),{$nest:(n={},n["@media "+i.join(" and ")]=s.apply(void 0,e),n)}},u=function(t){return"string"==typeof t?t:t+"px"},c=function(){return n.create(void 0,!0)},h=function(){function t(t){var e=t.autoGenerateTag,r=this;this.cssRaw=function(t){t&&(r._raw+=t||"",r._pendingRawChange=!0,r._styleUpdated())},this.cssRule=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=i(s.apply(void 0,e)).result;r._freeStyle.registerRule(t,o),r._styleUpdated()},this.forceRenderStyles=function(){var t=r._getTag();t&&(t.textContent=r.getStyles())},this.fontFace=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=r._freeStyle,i=0,o=t;i<o.length;i++){var a=o[i];n.registerRule("@font-face",a)}r._styleUpdated()},this.getStyles=function(){return(r._raw||"")+r._freeStyle.getStyles()},this.keyframes=function(t){var e=function(t){var e={$debugName:void 0,keyframes:{}};for(var r in t){var n=t[r];"$debugName"===r?e.$debugName=n:e.keyframes[r]=n}return e}(t),n=e.keyframes,i=e.$debugName,o=r._freeStyle.registerKeyframes(n,i);return r._styleUpdated(),o},this.reinit=function(){var t=c();r._freeStyle=t,r._lastFreeStyleChangeId=t.changeId,r._raw="",r._pendingRawChange=!1;var e=r._getTag();e&&(e.textContent="")},this.setStylesTarget=function(t){r._tag&&(r._tag.textContent=""),r._tag=t,r.forceRenderStyles()},this.style=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=r._freeStyle,o=i(s.apply(void 0,t)),a=o.result,l=o.debugName,u=l?n.registerStyle(a,l):n.registerStyle(a);return r._styleUpdated(),u},this.stylesheet=function(t){for(var e={},n=0,i=Object.getOwnPropertyNames(t);n<i.length;n++){var o=i[n],a=t[o];a&&(a.$debugName=o,e[o]=r.style(a))}return e};var n=c();this._autoGenerateTag=e,this._freeStyle=n,this._lastFreeStyleChangeId=n.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0}return t.prototype._afterAllSync=function(t){var e=this;this._pending++;var r=this._pending;o(function(){r===e._pending&&t()})},t.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var t="undefined"==typeof window?{textContent:""}:document.createElement("style");return"undefined"!=typeof document&&document.head.appendChild(t),this._tag=t,t}},t.prototype._styleUpdated=function(){var t=this,e=this._freeStyle.changeId,r=this._lastFreeStyleChangeId;(this._pendingRawChange||e!==r)&&(this._lastFreeStyleChangeId=e,this._pendingRawChange=!1,this._afterAllSync(function(){return t.forceRenderStyles()}))},t}(),f=r(9);r.d(e,"setStylesTarget",function(){return d}),r.d(e,"cssRaw",function(){return g}),r.d(e,"cssRule",function(){return m}),r.d(e,"forceRenderStyles",function(){return y}),r.d(e,"fontFace",function(){return v}),r.d(e,"getStyles",function(){return b}),r.d(e,"keyframes",function(){return w}),r.d(e,"reinit",function(){return k}),r.d(e,"style",function(){return x}),r.d(e,"stylesheet",function(){return _}),r.d(e,"createTypeStyle",function(){return S}),r.d(e,"TypeStyle",function(){return h}),r.d(e,"types",function(){return f}),r.d(e,"extend",function(){return s}),r.d(e,"classes",function(){return a}),r.d(e,"media",function(){return l});var p=new h({autoGenerateTag:!0}),d=p.setStylesTarget,g=p.cssRaw,m=p.cssRule,y=p.forceRenderStyles,v=p.fontFace,b=p.getStyles,w=p.keyframes,k=p.reinit,x=p.style,_=p.stylesheet;function S(t){var e=new h({autoGenerateTag:!1});return t&&e.setStylesTarget(t),e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(37))},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(35)),n(r(34)),n(r(33))},function(t,e,r){"use strict";(function(t){var r,n=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=0;e.IS_UNIQUE="__DO_NOT_DEDUPE_STYLE__";for(var o=/[A-Z]/g,a=/^ms-/,s=/&/g,l=/[ !#$%&()*+,./;<=>?@[\]^`{|}~"'\\]/g,u=function(t){return"-"+t.toLowerCase()},c=["animation-iteration-count","box-flex","box-flex-group","column-count","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","font-weight","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","stroke-dashoffset","stroke-opacity","stroke-width"],h=Object.create(null),f=0,p=["-webkit-","-ms-","-moz-","-o-",""];f<p.length;f++)for(var d=p[f],g=0,m=c;g<m.length;g++)h[d+m[g]]=!0;function y(t){return t.replace(o,u).replace(a,"-ms-")}function v(t){for(var e=5381,r=t.length;r--;)e=33*e^t.charCodeAt(r);return(e>>>0).toString(36)}function b(t,e){return"number"!=typeof e||0===e||h[t]?t+":"+e:t+":"+e+"px"}function w(t){return t.sort(function(t,e){return t[0]>e[0]?1:-1})}function k(t,r){for(var n=[],i=[],o=!1,a=0,s=Object.keys(t);a<s.length;a++){var l=s[a],u=t[l];null!==u&&void 0!==u&&(l===e.IS_UNIQUE?o=!0:"object"!=typeof u||Array.isArray(u)?n.push([y(l.trim()),u]):i.push([l.trim(),u]))}return{styleString:w(n).map(function(t){var e=t[0],r=t[1];return Array.isArray(r)?r.map(function(t){return b(e,t)}).join(";"):b(e,r)}).join(";"),nestedStyles:r?i:w(i),isUnique:o}}function x(t,e){return t.indexOf("&")>-1?t.replace(s,e):e+" "+t}function _(t,r,n,o,a){for(var s=new T(t.hash),l=[],u=function t(e,r,n,o,a){var s=k(n,!!r),l=s.styleString,u=s.nestedStyles,c=s.isUnique,h=l;if(64===r.charCodeAt(0)){var f=e.add(new E(r,a?void 0:l,e.hash));if(l&&a){var p=f.add(new F(l,f.hash,c?"u"+(++i).toString(36):void 0));o.push([a,p])}for(var d=0,g=u;d<g.length;d++){var m=g[d];h+=(w=m[0])+t(f,w,m[1],o,a)}}else{var y=a?x(r,a):r;l&&(p=e.add(new F(l,e.hash,c?"u"+(++i).toString(36):void 0)),o.push([y,p]));for(var v=0,b=u;v<b.length;v++){var w,_=b[v];h+=(w=_[0])+t(e,w,_[1],o,y)}}return h}(s,r,n,l),c="f"+s.hash(u),h=a?a+"_"+c:c,f=0,p=l;f<p.length;f++){var d=p[f],g=d[0],m=d[1],y=o?x(g,"."+e.escape(h)):g;m.add(new O(y,m.hash,void 0,u))}return{cache:s,pid:u,id:h}}function S(t){for(var e="",r=0;r<t.length;r++)e+=t[r];return e}e.escape=function(t){return t.replace(l,"\\$&")},e.hyphenate=y,e.stringHash=v;var C={add:function(){},change:function(){},remove:function(){}},T=function(){function t(t,e){void 0===t&&(t=v),void 0===e&&(e=C),this.hash=t,this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}return t.prototype.add=function(e){var r=this._counters[e.id]||0,n=this._children[e.id]||e.clone();if(this._counters[e.id]=r+1,0===r)this._children[n.id]=n,this._keys.push(n.id),this.sheet.push(n.getStyles()),this.changeId++,this.changes.add(n,this._keys.length-1);else{if(n.getIdentifier()!==e.getIdentifier())throw new TypeError("Hash collision: "+e.getStyles()+" === "+n.getStyles());var i=this._keys.indexOf(e.id),o=this._keys.length-1,a=this.changeId;if(i!==o&&(this._keys.splice(i,1),this._keys.push(e.id),this.changeId++),n instanceof t&&e instanceof t){var s=n.changeId;n.merge(e),n.changeId!==s&&this.changeId++}this.changeId!==a&&(i===o?this.sheet.splice(i,1,n.getStyles()):(this.sheet.splice(i,1),this.sheet.splice(o,0,n.getStyles())),this.changes.change(n,i,o))}return n},t.prototype.remove=function(e){var r=this._counters[e.id];if(r>0){this._counters[e.id]=r-1;var n=this._children[e.id],i=this._keys.indexOf(n.id);if(1===r)delete this._counters[e.id],delete this._children[e.id],this._keys.splice(i,1),this.sheet.splice(i,1),this.changeId++,this.changes.remove(n,i);else if(n instanceof t&&e instanceof t){var o=n.changeId;n.unmerge(e),n.changeId!==o&&(this.sheet.splice(i,1,n.getStyles()),this.changeId++,this.changes.change(n,i,i))}}},t.prototype.merge=function(t){for(var e=0,r=t._keys;e<r.length;e++){var n=r[e];this.add(t._children[n])}return this},t.prototype.unmerge=function(t){for(var e=0,r=t._keys;e<r.length;e++){var n=r[e];this.remove(t._children[n])}return this},t.prototype.clone=function(){return new t(this.hash).merge(this)},t}();e.Cache=T;var O=function(){function t(t,e,r,n){void 0===r&&(r="s"+e(t)),void 0===n&&(n=""),this.selector=t,this.hash=e,this.id=r,this.pid=n}return t.prototype.getStyles=function(){return this.selector},t.prototype.getIdentifier=function(){return this.pid+"."+this.selector},t.prototype.clone=function(){return new t(this.selector,this.hash,this.id,this.pid)},t}();e.Selector=O;var F=function(t){function e(e,r,n){void 0===n&&(n="c"+r(e));var i=t.call(this,r)||this;return i.style=e,i.hash=r,i.id=n,i}return n(e,t),e.prototype.getStyles=function(){return this.sheet.join(",")+"{"+this.style+"}"},e.prototype.getIdentifier=function(){return this.style},e.prototype.clone=function(){return new e(this.style,this.hash,this.id).merge(this)},e}(T);e.Style=F;var E=function(t){function e(e,r,n,i,o){void 0===r&&(r=""),void 0===i&&(i="a"+n(e+"."+r)),void 0===o&&(o="");var a=t.call(this,n)||this;return a.rule=e,a.style=r,a.hash=n,a.id=i,a.pid=o,a}return n(e,t),e.prototype.getStyles=function(){return this.rule+"{"+this.style+S(this.sheet)+"}"},e.prototype.getIdentifier=function(){return this.pid+"."+this.rule+"."+this.style},e.prototype.clone=function(){return new e(this.rule,this.style,this.hash,this.id,this.pid).merge(this)},e}(T);e.Rule=E;var j=function(r){function o(e,n,o,a){void 0===e&&(e=v),void 0===n&&(n=void 0!==t&&!1),void 0===o&&(o="f"+(++i).toString(36));var s=r.call(this,e,a)||this;return s.hash=e,s.debug=n,s.id=o,s}return n(o,r),o.prototype.registerStyle=function(t,e){var r=_(this,"&",t,!0,this.debug?e:void 0),n=r.cache,i=r.id;return this.merge(n),i},o.prototype.registerKeyframes=function(t,e){return this.registerHashRule("@keyframes",t,e)},o.prototype.registerHashRule=function(t,r,n){var i=_(this,"",r,!1,this.debug?n:void 0),o=i.cache,a=i.pid,s=i.id,l=new E(t+" "+e.escape(s),void 0,this.hash,void 0,a);return this.add(l.merge(o)),s},o.prototype.registerRule=function(t,e){this.merge(_(this,t,e,!1).cache)},o.prototype.registerCss=function(t){this.merge(_(this,"",t,!1).cache)},o.prototype.getStyles=function(){return S(this.sheet)},o.prototype.getIdentifier=function(){return this.id},o.prototype.clone=function(){return new o(this.hash,this.debug,this.id,this.changes).merge(this)},o}(T);e.FreeStyle=j,e.create=function(t,e,r){return new j(t,e,void 0,r)}}).call(this,r(38))},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}e.__esModule=!0,n(r(27)),n(r(26)),n(r(25)),n(r(6)),n(r(24)),n(r(23)),n(r(22)),n(r(21))},function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r={},i=0,o=t;i<o.length;i++){var a=o[i];if(null!=a&&!1!==a)for(var s in a){var l=a[s];(l||0===l)&&("$nest"===s&&l?r[s]=r.$nest?n(r.$nest,l):l:-1!==s.indexOf("&")||0===s.indexOf("@media")?r[s]=r[s]?n(r[s],l):l:r[s]=l)}}return r}Object.defineProperty(e,"__esModule",{value:!0}),e.raf="undefined"==typeof requestAnimationFrame?function(t){return setTimeout(t)}:"undefined"==typeof window?requestAnimationFrame:requestAnimationFrame.bind(window),e.classes=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter(function(t){return!!t}).join(" ")},e.extend=n,e.media=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o,a=[];return t.type&&a.push(t.type),t.orientation&&a.push("(orientation: "+t.orientation+")"),t.minWidth&&a.push("(min-width: "+i(t.minWidth)+")"),t.maxWidth&&a.push("(max-width: "+i(t.maxWidth)+")"),t.minHeight&&a.push("(min-height: "+i(t.minHeight)+")"),t.maxHeight&&a.push("(max-height: "+i(t.maxHeight)+")"),{$nest:(o={},o["@media "+a.join(" and ")]=n.apply(void 0,e),o)}};var i=function(t){return"string"==typeof t?t:t+"px"}},function(t,e,r){"use strict";function n(t){return"number"==typeof t?t.toString()+"px":t}function i(t){return function(e,r,i,o){void 0===r&&void 0===i&&void 0===o?r=i=o=e:void 0===i&&void 0===o&&(i=e,o=r);var a={top:n(e),right:n(r),bottom:n(i),left:n(o)};return t(a)}}e.__esModule=!0,e.padding=i(function(t){return{paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left}}),e.margin=i(function(t){return{marginTop:t.top,marginRight:t.right,marginBottom:t.bottom,marginLeft:t.left}}),e.border=i(function(t){return{borderTop:t.top,borderRight:t.right,borderBottom:t.bottom,borderLeft:t.left}}),e.verticallySpaced=function(t){return{"&>*":{marginBottom:n(t)+" !important"},"&>*:last-child":{marginBottom:"0px !important"}}},e.horizontallySpaced=function(t){return{"&>*":{marginRight:n(t)+" !important"},"&>*:last-child":{marginRight:"0px !important"}}},e.fillParent={width:"100%",height:"100%"},e.maxWidth=function(t){return{maxWidth:n(t)}},e.maxHeight=function(t){return{maxHeight:n(t)}},e.horizontallyCenterSelf={marginLeft:"auto",marginRight:"auto"},e.horizontallyCenterChildren={textAlign:"center"},e.height=function(t){return{height:n(t)}},e.width=function(t){return{width:n(t)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.percent=n.formatUnit("%"),e.deg=n.formatUnit("deg"),e.em=n.formatUnit("em"),e.px=n.formatUnit("px"),e.rad=n.formatUnit("rad"),e.rem=n.formatUnit("rem"),e.viewHeight=n.formatUnit("vh"),e.viewWidth=n.formatUnit("vw"),e.turn=n.formatUnit("turn")},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(7),o=function(t){return function(){return n.filter(arguments,function(t){return t||0===t}).map(function(t){return"number"==typeof t?i.px(t):t.toString()}).join(t)}};e.params=o(" "),e.list=o(",")},function(t,e){},function(t,e,r){!function(t,e,n){r(17);var i,o,a=t.SVGAngle||e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",s=15,l="http://www.w3.org/2000/svg",u=['<div class="picker-wrapper">','<div class="picker"></div>','<div class="picker-indicator"></div>',"</div>",'<div class="slide-wrapper">','<div class="slide"></div>','<div class="slide-indicator"></div>',"</div>"].join("");function c(e){if(t.event&&t.event.contentOverflow!==n)return{x:t.event.offsetX,y:t.event.offsetY};if(e.offsetX!==n&&e.offsetY!==n)return{x:e.offsetX,y:e.offsetY};var r=e.target.parentNode.parentNode;return{x:e.layerX-r.offsetLeft,y:e.layerY-r.offsetTop}}function h(t,r,n){for(var i in t=e.createElementNS(l,t),r)t.setAttribute(i,r[i]);"[object Array]"!=Object.prototype.toString.call(n)&&(n=[n]);for(var o=0,a=n[0]&&n.length||0;o<a;o++)t.appendChild(n[o]);return t}function f(t){var e,r,n,i,o,a=t.h%360/60;i=(o=t.v*t.s)*(1-Math.abs(a%2-1)),e=r=n=t.v-o,e+=[o,i,0,0,i,o][a=~~a],r+=[i,o,o,i,0,0][a],n+=[0,0,i,o,o,i][a];var s=Math.floor(255*e),l=Math.floor(255*r),u=Math.floor(255*n);return{r:s,g:l,b:u,hex:"#"+(16777216|u|l<<8|s<<16).toString(16).slice(1)}}function p(t){var e,r,n=t.r,i=t.g,o=t.b;return(t.r>1||t.g>1||t.b>1)&&(n/=255,i/=255,o/=255),{h:(0==(r=(e=Math.max(n,i,o))-Math.min(n,i,o))?null:e==n?(i-o)/r+(i<o?6:0):e==i?(o-n)/r+2:(n-i)/r+4)%6*60,s:0==r?0:r/e,v:e}}function d(e,r,i){return function(o){var a=c(o=o||t.event);e.h=a.y/r.offsetHeight*360+s;var l=f({h:e.h,s:1,v:1}),u=f({h:e.h,s:e.s,v:e.v});i.style.backgroundColor=l.hex,e.callback&&e.callback(u.hex,{h:e.h-s,s:e.s,v:e.v},{r:u.r,g:u.g,b:u.b},n,a)}}function g(e,r){return function(n){var i=c(n=n||t.event),o=r.offsetWidth,a=r.offsetHeight;e.s=i.x/o,e.v=(a-i.y)/a;var l=f(e);e.callback&&e.callback(l.hex,{h:e.h-s,s:e.s,v:e.v},{r:l.r,g:l.g,b:l.b},i)}}"SVG"==a?(o=h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},[h("defs",{},h("linearGradient",{id:"gradient-hsv",x1:"0%",y1:"100%",x2:"0%",y2:"0%"},[h("stop",{offset:"0%","stop-color":"#FF0000","stop-opacity":"1"}),h("stop",{offset:"13%","stop-color":"#FF00FF","stop-opacity":"1"}),h("stop",{offset:"25%","stop-color":"#8000FF","stop-opacity":"1"}),h("stop",{offset:"38%","stop-color":"#0040FF","stop-opacity":"1"}),h("stop",{offset:"50%","stop-color":"#00FFFF","stop-opacity":"1"}),h("stop",{offset:"63%","stop-color":"#00FF40","stop-opacity":"1"}),h("stop",{offset:"75%","stop-color":"#0BED00","stop-opacity":"1"}),h("stop",{offset:"88%","stop-color":"#FFFF00","stop-opacity":"1"}),h("stop",{offset:"100%","stop-color":"#FF0000","stop-opacity":"1"})])),h("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#gradient-hsv)"})]),i=h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},[h("defs",{},[h("linearGradient",{id:"gradient-black",x1:"0%",y1:"100%",x2:"0%",y2:"0%"},[h("stop",{offset:"0%","stop-color":"#000000","stop-opacity":"1"}),h("stop",{offset:"100%","stop-color":"#CC9A81","stop-opacity":"0"})]),h("linearGradient",{id:"gradient-white",x1:"0%",y1:"100%",x2:"100%",y2:"100%"},[h("stop",{offset:"0%","stop-color":"#FFFFFF","stop-opacity":"1"}),h("stop",{offset:"100%","stop-color":"#CC9A81","stop-opacity":"0"})])]),h("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#gradient-white)"}),h("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#gradient-black)"})])):"VML"==a&&(o=['<DIV style="position: relative; width: 100%; height: 100%">','<v:rect style="position: absolute; top: 0; left: 0; width: 100%; height: 100%" stroked="f" filled="t">','<v:fill type="gradient" method="none" angle="0" color="red" color2="red" colors="8519f fuchsia;.25 #8000ff;24903f #0040ff;.5 aqua;41287f #00ff40;.75 #0bed00;57671f yellow"></v:fill>',"</v:rect>","</DIV>"].join(""),i=['<DIV style="position: relative; width: 100%; height: 100%">','<v:rect style="position: absolute; left: -1px; top: -1px; width: 101%; height: 101%" stroked="f" filled="t">','<v:fill type="gradient" method="none" angle="270" color="#FFFFFF" opacity="100%" color2="#CC9A81" o:opacity2="0%"></v:fill>',"</v:rect>",'<v:rect style="position: absolute; left: 0px; top: 0px; width: 100%; height: 101%" stroked="f" filled="t">','<v:fill type="gradient" method="none" angle="0" color="#000000" opacity="100%" color2="#CC9A81" o:opacity2="0%"></v:fill>',"</v:rect>","</DIV>"].join(""),e.namespaces.v||e.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"));var m=0;function y(t,e,r){if(!(this instanceof y))return new y(t,e,r);if(this.h=0,this.s=1,this.v=1,r)this.callback=r,this.pickerElement=e,this.slideElement=t;else{var n=t;n.innerHTML=u,this.slideElement=n.getElementsByClassName("slide")[0],this.pickerElement=n.getElementsByClassName("picker")[0];var s=n.getElementsByClassName("slide-indicator")[0],l=n.getElementsByClassName("picker-indicator")[0];y.fixIndicators(s,l),this.callback=function(t,r,n,i,o){y.positionIndicators(s,l,o,i),e(t,r,n)}}if("SVG"==a){var c=o.cloneNode(!0),h=i.cloneNode(!0),f=c.getElementsByTagName("linearGradient")[0],p=c.getElementsByTagName("rect")[0];f.id="gradient-hsv-"+m,p.setAttribute("fill","url(#"+f.id+")");var w=[h.getElementsByTagName("linearGradient")[0],h.getElementsByTagName("linearGradient")[1]],k=h.getElementsByTagName("rect");w[0].id="gradient-black-"+m,w[1].id="gradient-white-"+m,k[0].setAttribute("fill","url(#"+w[1].id+")"),k[1].setAttribute("fill","url(#"+w[0].id+")"),this.slideElement.appendChild(c),this.pickerElement.appendChild(h),m++}else this.slideElement.innerHTML=o,this.pickerElement.innerHTML=i;v(this.slideElement,"click",d(this,this.slideElement,this.pickerElement)),v(this.pickerElement,"click",g(this,this.pickerElement)),b(this,this.slideElement,d(this,this.slideElement,this.pickerElement)),b(this,this.pickerElement,g(this,this.pickerElement))}function v(t,e,r){t.attachEvent?t.attachEvent("on"+e,r):t.addEventListener&&t.addEventListener(e,r,!1)}function b(t,e,r){var n=!1;v(e,"mousedown",function(t){n=!0}),v(e,"mouseup",function(t){n=!1}),v(e,"mouseout",function(t){n=!1}),v(e,"mousemove",function(t){n&&r(t)})}function w(t,e,r,n){t.h=e.h%360,t.s=e.s,t.v=e.v;var i=f(t),o={y:t.h*t.slideElement.offsetHeight/360,x:0},a=t.pickerElement.offsetHeight,s={x:t.s*t.pickerElement.offsetWidth,y:a-t.v*a};return t.pickerElement.style.backgroundColor=f({h:t.h,s:1,v:1}).hex,t.callback&&t.callback(n||i.hex,{h:t.h,s:t.s,v:t.v},r||{r:i.r,g:i.g,b:i.b},s,o),t}y.hsv2rgb=function(t){var e=f(t);return delete e.hex,e},y.hsv2hex=function(t){return f(t).hex},y.rgb2hsv=p,y.rgb2hex=function(t){return f(p(t)).hex},y.hex2hsv=function(t){return p(y.hex2rgb(t))},y.hex2rgb=function(t){return{r:parseInt(t.substr(1,2),16),g:parseInt(t.substr(3,2),16),b:parseInt(t.substr(5,2),16)}},y.prototype.setHsv=function(t){return w(this,t)},y.prototype.setRgb=function(t){return w(this,p(t),t)},y.prototype.setHex=function(t){return w(this,y.hex2hsv(t),n,t)},y.positionIndicators=function(t,e,r,n){r&&(t.style.top=r.y-t.offsetHeight/2+"px"),n&&(e.style.top=n.y-e.offsetHeight/2+"px",e.style.left=n.x-e.offsetWidth/2+"px")},y.fixIndicators=function(t,e){e.style.pointerEvents="none",t.style.pointerEvents="none"},t.ColorPicker=y}(window,window.document),e.ColorPicker=window.ColorPicker},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(20);e.TypeStyle=n.TypeStyle;var i=r(18);e.types=i;var o=r(5);e.extend=o.extend,e.classes=o.classes,e.media=o.media;var a=new n.TypeStyle({autoGenerateTag:!0});e.setStylesTarget=a.setStylesTarget,e.cssRaw=a.cssRaw,e.cssRule=a.cssRule,e.forceRenderStyles=a.forceRenderStyles,e.fontFace=a.fontFace,e.getStyles=a.getStyles,e.keyframes=a.keyframes,e.reinit=a.reinit,e.style=a.style,e.stylesheet=a.stylesheet,e.createTypeStyle=function(t){var e=new n.TypeStyle({autoGenerateTag:!1});return t&&e.setStylesTarget(t),e}},function(t,e,r){"use strict";r.r(e);var n=r(0),i=function(){function t(){}return t.utf16Encode=function(t){for(var e,r=[],n=0,i=t.length;n<i;){if(55296==(63488&(e=t[n++])))throw new RangeError("UTF-16(encode): Illegal UTF-16 value");e>65535&&(e-=65536,r.push(String.fromCharCode(e>>>10&1023|55296)),e=56320|1023&e),r.push(String.fromCharCode(e))}return r.join("")},t}();function o(t,e){return t.getDefaultStylesheet()[e]}function a(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];for(var i=0,a=r;i<a.length;i++){var s=a[i];o(e,s),t.classList.add(o(e,s))}}function s(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];for(var i=0,a=r;i<a.length;i++){var s=a[i];t.classList.remove(o(e,s))}}var l="input",u="button",c="select",h="option",f=[l,u,c],p=function(){function t(){}return t.form=function(){return this.buildFactory("form")},t.paragraph=function(){return this.buildFactory("p")},t.input=function(){return this.buildFactory(l)},t.button=function(){return this.buildFactory(u)},t.text=function(e){var r=new t;return r.text=e,r},t.label=function(){return this.buildFactory("label")},t.select=function(){return this.buildFactory(c)},t.option=function(){return this.buildFactory(h)},t.link=function(){return this.buildFactory("a")},t.div=function(){return this.buildFactory("div")},t.span=function(){return this.buildFactory("span")},t.br=function(){return this.buildFactory("br")},t.table=function(){return this.buildFactory("table")},t.tr=function(){return this.buildFactory("tr")},t.th=function(){return this.buildFactory("th")},t.td=function(){return this.buildFactory("td")},t.fromElement=function(e){var r=new t;return r.sourceElement=e,r.children=[],r.events=[],r.attributes={},r},t.buildFactory=function(e){var r=new t;return e&&(r.tagName=e),r.children=[],r.events=[],r.attributes={},r},t.prototype.usingStylesheetProvider=function(t){return this.stylesheetProvider=t,this},t.prototype.withName=function(t){return this.name=t,this},t.prototype.withInputType=function(t){return this.type=t,this},t.prototype.withRange=function(t,e){return this.minmax={min:t,max:e},this},t.prototype.withValue=function(t){return this.value=t,this},t.prototype.withID=function(t){return this.id=t,this},t.prototype.withStyles=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0===this.styles&&(this.styles=[]);for(var r=0,n=t;r<n.length;r++){var i=n[r];this.styles.push(i)}return this},t.prototype.withChildren=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t;r<n.length;r++){var i=n[r];null!==i&&this.children.push(i)}return this},t.prototype.withText=function(t){return this.text=t,this},t.prototype.withHref=function(t){return this.url=t,this},t.prototype.withEventListener=function(t,e,r){return this.events.push({name:t,handler:e,options:r}),this},t.prototype.withAttribute=function(t,e){return this.attributes[t]=e,this},t.prototype.isSelected=function(t){return this.optionSelected=t,this},t.prototype.create=function(){var t=this;if(this.text&&!this.tagName)return document.createTextNode(this.text);var e=this.sourceElement||document.createElement(this.tagName);if(this.id&&(e.id=this.id),this.isInputElement(e)){var r=e;this.name&&(r.name=this.name),this.type&&(r.type=this.type),"range"===this.type&&void 0!==this.minmax&&(e.setAttribute("min",this.minmax.min),e.setAttribute("max",this.minmax.max)),void 0!==this.value&&(r.value=this.value)}if(this.tagName===h){var n=e;this.value&&(n.value=this.value),this.name&&(n.text=this.name),void 0!==this.optionSelected&&(n.selected=this.optionSelected)}if(this.tagName===u&&(e.type="button",e.innerText=this.text||"Button"),this.styles){if(!this.stylesheetProvider||!this.stylesheetProvider.getDefaultStylesheet())throw new Error("No stylesheet provider given.");for(var i=0,o=this.styles;i<o.length;i++){var s=o[i];a(e,this.stylesheetProvider,s)}}if(this.children)for(var l=0,c=this.children;l<c.length;l++){var f=c[l];e.appendChild(f)}if("a"===this.tagName&&this.url&&(e.href=this.url),this.events)for(var p=0,d=this.events;p<d.length;p++){var g=d[p];e.addEventListener(g.name,g.handler,g.options)}return Object.keys(this.attributes).forEach(function(r){e.setAttribute(r,t.attributes[r])}),e},t.prototype.isInputElement=function(t){return f.indexOf(this.tagName)>-1},t}(),d=r(1),g=i.utf16Encode([10022]),m=i.utf16Encode([10023]),y=i.utf16Encode([1e4]),v=function(){function t(){}return t.prototype.getProviderName=function(){return"controlswitcher"},t.prototype.getDefaultStylesheet=function(){return{switchLink:Object(n.style)({textDecoration:"none",fontSize:"1.5em",color:d.black.toString()}),outer:Object(n.style)({display:"inline-block"})}},t}(),b=function(){function t(){}return t.injectOnSwitch=function(t){var e=new v;t.appendChild(p.link().withHref("#").usingStylesheetProvider(e).withStyles("switchLink").withChildren(p.text(m).create()).withEventListener("click",function(t){localStorage.setItem("useNewControl","new"),window.location.replace(window.location.pathname),t.stopPropagation()}).create())},t.injectOffSwitch=function(t){var e=new v;t.appendChild(p.span().usingStylesheetProvider(e).withStyles("outer").withChildren(p.link().withHref("#").usingStylesheetProvider(e).withStyles("switchLink").withChildren(p.text(y).create()).withEventListener("click",function(t){localStorage.setItem("useNewControl","config"),window.location.replace(window.location.pathname),t.stopPropagation()}).create(),p.br().create(),p.br().create(),p.link().withHref("#").usingStylesheetProvider(e).withStyles("switchLink").withChildren(p.text(g).create()).withEventListener("click",function(t){localStorage.setItem("useNewControl","original"),window.location.replace(window.location.pathname),t.stopPropagation()}).create()).create())},t}(),w=/[\s]*([a-z-]+)[\s]*\([\s]*([^\)]+)[\s]*\)[\s]*/i,k=/^(\-?\d+\.?\d{0,5})/,x=function(t){return function(e){return e+t}};function _(t){return"number"==typeof t?t:.01*parseFloat(t)}function S(t){return C(100*t)+"%"}function C(t){return k.exec(t.toString())[1]}function T(t,e){return Math.round(t*e)/e}var O=x("%"),F=(x("deg"),x("em")),E=x("px"),j=(x("rad"),x("rem"),x("vh"),x("vw"),x("turn"),function(t){return function(){return(e=arguments,r=function(t){return t||0===t},Array.prototype.filter.call(e,r)).map(function(t){return"number"==typeof t?E(t):t.toString()}).join(t);var e,r}});j(" "),j(",");var I="undefined"!=typeof Float32Array,P=0,H=1,A=((D={})[P-H]=function(t,e,r,n,i){var o,a=t/255,s=e/255,l=r/255,u=Math.min(a,s,l),c=Math.max(a,s,l),h=(u+c)/2,f=c-u;return o=c===u?0:a===c?(s-l)/f:s===c?2+(l-a)/f:l===c?4+(a-s)/f:0,(o=Math.min(60*o,360))<0&&(o+=360),new N(H,o,c===u?0:h<=.5?f/(c+u):f/(2-c-u),h,n,i)},D[H-P]=function(t,e,r,n,i){var o=t/360,a=e,s=r;if(0===a)return new N(P,g=255*s,g,g,n,i);for(var l=s<.5?s*(1+a):s+a-s*a,u=2*s-l,c=0,h=0,f=0,p=0;p<3;p++){var d=o+1/3*-(p-1);d<0&&d++,d>1&&d--;var g=void 0;g=6*d<1?u+6*(l-u)*d:2*d<1?l:3*d<2?u+(l-u)*(2/3-d)*6:u,g*=255,0===p?c=g:1===p?h=g:f=g}return new N(P,c,h,f,n,i)},D),M=((L={})[P]=J(255,255,255,1),L[H]=J(360,1,1,1),L);function B(t){return Z(t)||function(t){var e=t.match(/#(([a-f0-9]{6})|([a-f0-9]{3}))$/i);if(e){var r=e[1],n=parseInt(3===r.length?r[0]+r[0]+r[1]+r[1]+r[2]+r[2]:r,16);return new N(P,n>>16&255,n>>8&255,255&n,1,!1)}}(t)||function(t){var e=function(t){var e=w.exec(t);if(e&&e.length)return[e[1]].concat(e[2].split(","))}(t);if(e&&(4===e.length||5===e.length)){var r,n=e[0],i="rgba"===n,o="hsla"===n,a="rgb"===n,s=o||i;if(a||i)r=P;else{if("hsl"!==n&&!o)throw new Error("unsupported color string");r=H}var l=parseFloat(e[1]),u=a||i?parseFloat(e[2]):_(e[2]),c=a||i?parseFloat(e[3]):_(e[3]),h=s?parseFloat(e[4]):1;return new N(r,l,u,c,h,s)}}(t)||Z("red")}function R(t,e,r){return new N(P,t,e,r,1,!1)}var D,L,N=function(){function t(t,e,r,n,i,o){this._format=t,this._hasAlpha=o,this._values=J(K(t,0,e),K(t,1,r),K(t,2,n),K(t,3,i))}return t.convertHelper=function(t,e){var r=e._format,n=e._values,i=e._hasAlpha;return r===t?e:A[r-t](n[0],n[1],n[2],n[3],i)},t.prototype.toString=function(){var t,e,r=this._format,n=this._values,i=this._hasAlpha;if(r===P)t=i?"rgba":"rgb",e=[Math.round(n[0]),Math.round(n[1]),Math.round(n[2])];else{if(r!==H)throw new Error("Invalid color format");t=i?"hsla":"hsl",e=[Math.round(n[0]),S(T(n[1],100)),S(T(n[2],100))]}return i&&e.push(C(T(n[3],1e5))),function(t,e){return t+"("+Array.prototype.join.call(e,",")+")"}(t,e)},t.prototype.toHexString=function(){var e=t.convertHelper(P,this)._values;return"#"+(Y(e[0])+Y(e[1])+Y(e[2])).toUpperCase()},t.prototype.toHSL=function(){var t=this._values;return X(this._format,H,t[0],t[1],t[2],1,!1)},t.prototype.toHSLA=function(){var t=this._values;return X(this._format,H,t[0],t[1],t[2],t[3],!0)},t.prototype.toRGB=function(){var t=this._values;return X(this._format,P,t[0],t[1],t[2],1,!1)},t.prototype.toRGBA=function(){var t=this._values;return X(this._format,P,t[0],t[1],t[2],t[3],!0)},t.prototype.red=function(){return(this._format===P?this:this.toRGB())._values[0]},t.prototype.green=function(){return(this._format===P?this:this.toRGB())._values[1]},t.prototype.blue=function(){return(this._format===P?this:this.toRGB())._values[2]},t.prototype.hue=function(){return(this._format===H?this:this.toHSL())._values[0]},t.prototype.saturation=function(){return(this._format===H?this:this.toHSL())._values[1]},t.prototype.lightness=function(){return(this._format===H?this:this.toHSL())._values[2]},t.prototype.alpha=function(){return this._values[3]},t.prototype.opacity=function(){return this.alpha()},t.prototype.invert=function(){var e=t.convertHelper(P,this)._values;return t.convertHelper(this._format,new t(P,255-e[0],255-e[1],255-e[2],this._values[3],this._hasAlpha))},t.prototype.lighten=function(e,r){var n=t.convertHelper(H,this)._values,i=M[H][2],o=n[2]+(r?i-n[2]:i)*_(e);return t.convertHelper(this._format,new t(H,n[0],n[1],o,this._values[3],this._hasAlpha))},t.prototype.darken=function(e,r){var n=t.convertHelper(H,this)._values,i=n[2]-(r?n[2]:M[H][2])*_(e);return t.convertHelper(this._format,new t(H,n[0],n[1],i,this._values[3],this._hasAlpha))},t.prototype.saturate=function(e,r){var n=t.convertHelper(H,this)._values,i=M[H][1],o=n[1]+(r?i-n[1]:i)*_(e);return t.convertHelper(this._format,new t(H,n[0],o,n[2],this._values[3],this._hasAlpha))},t.prototype.desaturate=function(e,r){var n=t.convertHelper(H,this)._values,i=M[H][1],o=n[1]-(r?n[1]:i)*_(e);return t.convertHelper(this._format,new t(H,n[0],o,n[2],this._values[3],this._hasAlpha))},t.prototype.grayscale=function(){return this.desaturate(1)},t.prototype.fade=function(e){var r=this._values,n=K(P,3,_(e));return t.convertHelper(this._format,new t(this._format,r[0],r[1],r[2],n,!0))},t.prototype.fadeOut=function(e,r){var n=this._values,i=K(P,3,n[3]-(r?n[3]:1)*_(e));return t.convertHelper(this._format,new t(this._format,n[0],n[1],n[2],i,!0))},t.prototype.fadeIn=function(e,r){var n=this._values,i=K(P,3,n[3]+(r?n[3]:1)*_(e));return t.convertHelper(this._format,new t(this._format,n[0],n[1],n[2],i,!0))},t.prototype.mix=function(e,r){var n,i=(n=e)instanceof N?n:B(n),o=t.convertHelper(P,this)._values,a=t.convertHelper(P,i)._values,s=void 0===r?.5:r,l=2*s-1,u=Math.abs(o[3]-a[3]),c=((l*u==-1?l:(l+u)/(1+l*u))+1)/2,h=1-c,f=new t(P,Math.round(o[0]*c+a[0]*h),Math.round(o[1]*c+a[1]*h),Math.round(o[2]*c+a[2]*h),o[3]*s+a[3]*(1-s),this._hasAlpha||i._hasAlpha);return t.convertHelper(this._format,f)},t.prototype.tint=function(t){return V.mix(this,t)},t.prototype.shade=function(t){return q.mix(this,t)},t.prototype.spin=function(e){var r=t.convertHelper(H,this)._values;return t.convertHelper(this._format,new t(H,function(t){return((t<0?360:0)+t%360)%360}(r[0]+e),r[1],r[2],this._values[3],this._hasAlpha))},t}(),z={aliceblue:R(240,248,245),antiquewhite:R(250,235,215),aqua:R(0,255,255),aquamarine:R(127,255,212),azure:R(240,255,255),beige:R(245,245,220),bisque:R(255,228,196),black:R(0,0,0),blanchedalmond:R(255,235,205),blue:R(0,0,255),blueviolet:R(138,43,226),brown:R(165,42,42),burlywood:R(222,184,35),cadetblue:R(95,158,160),chartreuse:R(127,255,0),chocolate:R(210,105,30),coral:R(255,127,80),cornflowerblue:R(100,149,237),cornsilk:R(255,248,220),crimson:R(220,20,60),cyan:R(0,255,255),darkblue:R(0,0,139),darkcyan:R(0,139,139),darkgoldenrod:R(184,134,11),darkgray:R(169,169,169),darkgreen:R(0,100,0),darkgrey:R(169,169,169),darkkhaki:R(189,183,107),darkmagenta:R(139,0,139),darkolivegreen:R(85,107,47),darkorange:R(255,140,0),darkorchid:R(153,50,204),darkred:R(139,0,0),darksalmon:R(233,150,122),darkseagreen:R(143,188,143),darkslateblue:R(72,61,139),darkslategray:R(47,79,79),darkslategrey:R(47,79,79),darkturquoise:R(0,206,209),darkviolet:R(148,0,211),deeppink:R(255,20,147),deepskyblue:R(0,191,255),dimgray:R(105,105,105),dimgrey:R(105,105,105),dodgerblue:R(30,144,255),firebrick:R(178,34,34),floralwhite:R(255,250,240),forestgreen:R(34,139,34),fuchsia:R(255,0,255),gainsboro:R(220,220,220),ghostwhite:R(248,248,255),gold:R(255,215,0),goldenrod:R(218,165,32),gray:R(128,128,128),green:R(0,128,0),greenyellow:R(173,255,47),grey:R(128,128,128),honeydew:R(240,255,240),hotpink:R(255,105,180),indianred:R(205,92,92),indigo:R(75,0,130),ivory:R(255,255,240),khaki:R(240,230,140),lavender:R(230,230,250),lavenderblush:R(255,240,245),lawngreen:R(124,252,0),lemonchiffon:R(255,250,205),lightblue:R(173,216,230),lightcoral:R(240,128,128),lightcyan:R(224,255,255),lightgoldenrodyellow:R(250,250,210),lightgray:R(211,211,211),lightgreen:R(144,238,144),lightgrey:R(211,211,211),lightpink:R(255,182,193),lightsalmon:R(255,160,122),lightseagreen:R(32,178,170),lightskyblue:R(135,206,250),lightslategray:R(119,136,153),lightslategrey:R(119,136,153),lightsteelblue:R(176,196,222),lightyellow:R(255,255,224),lime:R(0,255,0),limegreen:R(50,205,50),linen:R(250,240,230),maroon:R(128,0,0),mediumaquamarine:R(102,205,170),mediumblue:R(0,0,205),mediumorchid:R(186,85,211),mediumpurple:R(147,112,219),mediumseagreen:R(60,179,113),mediumslateblue:R(123,104,238),mediumspringgreen:R(0,250,154),mediumturquoise:R(72,209,204),mediumvioletred:R(199,21,133),midnightblue:R(25,25,112),mintcream:R(245,255,250),mistyrose:R(255,228,225),moccasin:R(255,228,181),navajowhite:R(255,222,173),navy:R(0,0,128),oldlace:R(253,245,230),olive:R(128,128,0),olivedrab:R(107,142,35),orange:R(255,165,0),purple:R(128,0,128),rebeccapurple:R(102,51,153),red:R(255,0,0),silver:R(192,192,192),teal:R(0,128,128),transparent:(0,0,0,0,new N(P,0,0,0,_(0),!0)),white:R(255,255,255),yellow:R(255,255,0)},U=(z.aliceblue,z.antiquewhite,z.aqua,z.aquamarine),q=(z.azure,z.beige,z.bisque,z.black),G=(z.blanchedalmond,z.blue,z.blueviolet,z.brown,z.burlywood,z.cadetblue,z.chartreuse,z.chocolate,z.coral,z.cornflowerblue,z.cornsilk,z.crimson,z.cyan,z.darkblue,z.darkcyan,z.darkgoldenrod,z.darkgray,z.darkgreen,z.darkgrey,z.darkkhaki,z.darkmagenta,z.darkolivegreen,z.darkorange,z.darkorchid,z.darkred,z.darksalmon,z.darkseagreen,z.darkslateblue,z.darkslategray,z.darkslategrey,z.darkturquoise,z.darkviolet,z.deeppink,z.deepskyblue,z.dimgray,z.dimgrey,z.dodgerblue,z.firebrick,z.floralwhite,z.forestgreen,z.fuchsia,z.gainsboro,z.ghostwhite,z.gold,z.goldenrod,z.gray),$=(z.green,z.greenyellow,z.grey,z.honeydew,z.hotpink,z.indianred,z.indigo,z.ivory,z.khaki,z.lavender,z.lavenderblush,z.lawngreen,z.lemonchiffon,z.lightblue,z.lightcoral,z.lightcyan,z.lightgoldenrodyellow,z.lightgray,z.lightgreen,z.lightgrey,z.lightpink,z.lightsalmon,z.lightseagreen,z.lightskyblue,z.lightslategray,z.lightslategrey,z.lightsteelblue,z.lightyellow,z.lime,z.limegreen,z.linen),W=(z.maroon,z.mediumaquamarine,z.mediumblue,z.mediumorchid,z.mediumpurple,z.mediumseagreen,z.mediumslateblue,z.mediumspringgreen,z.mediumturquoise,z.mediumvioletred,z.midnightblue,z.mintcream,z.mistyrose,z.moccasin,z.navajowhite,z.navy,z.oldlace,z.olive,z.olivedrab,z.orange,z.purple,z.rebeccapurple,z.red),V=(z.silver,z.teal,z.transparent,z.white);function Y(t){var e=Math.round(t);return(e<16?"0":"")+e.toString(16)}function X(t,e,r,n,i,o,a){return t===e?new N(t,r,n,i,o,a):A[t-e](r,n,i,o,a)}function J(t,e,r,n){if(!I)return[t||0,e||0,r||0,n||0];var i=new Float32Array(4);return i[0]=t||0,i[1]=e||0,i[2]=r||0,i[3]=n||0,i}function K(t,e,r){var n=M[t][e];return r<0?0:r>n?n:r}function Z(t){return z[t]||void 0}function Q(t){return t||0===t?t.toString()+" !important":""}z.yellow;var tt,et=function(){function t(t,e){t instanceof HTMLSelectElement&&(this.hourControl=t),e instanceof HTMLSelectElement&&(this.minuteControl=e)}return t.prototype.getProviderName=function(){return"timecontrolwrapper"},t.prototype.getDefaultStylesheet=function(){return{invalid:Object(n.style)({color:Q(W.toString())})}},t.prototype.setTimeCheckCallback=function(t,e){this.hourControl.addEventListener("change",function(r){t(e)}),this.minuteControl.addEventListener("change",function(r){t(e)})},t.prototype.setHours=function(t){this.selectOption(this.hourControl,t),this.fireEvent(this.hourControl,"change")},t.prototype.setMinutes=function(t){this.selectOption(this.minuteControl,t),this.fireEvent(this.minuteControl,"change")},t.prototype.getTimeInMinutes=function(){return 60*this.getHours()+this.getMinutes()},t.prototype.getHours=function(){return Number(this.hourControl.value)},t.prototype.getMinutes=function(){return Number(this.minuteControl.value)},t.prototype.indicateError=function(t){t?(a(this.hourControl,this,"invalid"),a(this.minuteControl,this,"invalid")):(s(this.hourControl,this,"invalid"),s(this.minuteControl,this,"invalid"))},t.prototype.selectOption=function(t,e){for(var r=0;r<t.options.length;++r)if(t.options[r].text===e){t.selectedIndex=r;break}},t.prototype.fireEvent=function(t,e){var r=document.createEvent("HTMLEvents");return r.initEvent(e,!0,!0),!t.dispatchEvent(r)},t}(),rt=r(4),nt=r(11),it=function(){function t(t){if(null===t||0===t.length)throw new Error("Application root ID must not be empty.");this.rootID=t}return t.prototype.init=function(t){if(this.rootDiv=document.getElementById(this.rootID),!this.rootDiv)throw new Error('Application root element "'+this.rootID+'" not found.');return this},t.prototype.whenOk=function(t){return this.callbackOk=t,this},t.prototype.whenCancel=function(t){return this.callbackCancel=t,this},t.prototype.destroy=function(){this.assertRootDiv()},t.prototype.run=function(){this.assertRootDiv(),this.renderDOM(this.rootDiv)},t.prototype.notifyOk=function(t){void 0!==this.callbackOk&&this.callbackOk(t),this.rootDiv.remove()},t.prototype.notifyCancel=function(){void 0!==this.callbackCancel&&this.callbackCancel(),this.rootDiv.remove()},t.prototype.assertRootDiv=function(){if(null===this.rootDiv)throw new Error("Application not initialized.")},t}(),ot=(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function r(){this.constructor=t}tt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),at=function(t){function e(e){return t.call(this,e)||this}return ot(e,t),e.prototype.renderDOM=function(t){a(t,this,"appContainer"),t.appendChild(p.div().usingStylesheetProvider(this).withStyles("appContainer").create())},e.prototype.getDefaultStylesheet=function(){return{appContainer:Object(nt.style)({zIndex:100,opacity:0,margin:0,position:"absolute",width:Object(d.percent)(100),height:Object(d.percent)(100),top:0,left:0})}},e.prototype.getProviderName=function(){return this.rootID},e}(it),st=r(10),lt=function(){try{var t=localStorage.getItem("");return localStorage.removeItem(""),localStorage.setItem("",t),null===t?localStorage.removeItem(""):localStorage.setItem("",t),!0}catch(t){return!1}}(),ut="time-table-color-config",ct={Background:{r:222,g:184,b:35},"Button BG(Hrs)":{r:0,g:128,b:0},"Button Text(Hrs)":{r:255,g:255,b:255},"Button BG(Min)":{r:0,g:100,b:0},"Button Text(Min)":{r:255,g:255,b:255},"Time bar":{r:0,g:100,b:0}},ht=function(){function t(t){var e,r;this.target=t,this.colorValues=(e=ut,(r=localStorage.getItem(e))&&JSON.parse(r)||ct)}return t.prototype.getProviderName=function(){return"timetable"},t.prototype.getDefaultStylesheet=function(){return{outer:Object(n.style)(rt.inlineBlock,{backgroundColor:this.getCssColorFor("Background").toString(),padding:F(.3),fontFamily:"Helvetica, Arial, sans-serif",fontSize:"12pt",position:"relative",overflowY:"auto"}),container:Object(n.style)({fontSize:"10pt",fontFamily:"Helvetica, Arial, sans-serif",overflow:"hidden",display:"inline-block",$nest:{"& select":{fontFamily:"Helvetica, Arial, sans-serif",marginTop:F(.2)},"& table":{borderCollapse:"collapse",fontFamily:"Helvetica, Arial, sans-serif",fontSize:Object(d.percent)(100),color:V.toString()},"& table th":{backgroundColor:Q(this.getCssColorFor("Time bar").toString())},"& td":{verticalAlign:"middle",textAlign:"center",padding:F(.4)+" "+F(.8)},"& table tr:first-child":{backgroundColor:this.getCssColorFor("Time bar").toString(),borderTop:"1px solid "+V.toString()},"& table th:first-child":{borderLeft:"1px solid "+V.toString(),textAlign:"left",padding:F(.2)+" "+F(.4)},"& table th:last-child":{borderRight:"1px solid "+V.toString(),padding:F(.2)+" "+F(.4)},"& table tr td":{transition:"background-color .2s",backgroundColor:this.getCssColorFor("Button BG(Hrs)").toString(),color:this.getCssColorFor("Button Text(Hrs)").toString(),border:"1px solid "+V.toString(),$nest:{"&:hover":{backgroundColor:this.getCssColorFor("Button BG(Hrs)").lighten(Object(d.percent)(5)).toString(),fontSize:Object(d.percent)(90),cursor:"pointer"}}},"& table tr td:nth-child(5)":{fontSize:Object(d.percent)(30),backgroundColor:this.getCssColorFor("Background").toString(),border:0,cursor:"default",$nest:{"&:hover":{fontSize:Object(d.percent)(30),backgroundColor:this.getCssColorFor("Background").toString(),border:0,cursor:"default"}}},"& table tr td:last-child":{backgroundColor:this.getCssColorFor("Button BG(Min)").toString(),color:this.getCssColorFor("Button Text(Min)").toString(),$nest:{"&:hover":{backgroundColor:this.getCssColorFor("Button BG(Min)").lighten(Object(d.percent)(5)).toString()}}}}}),inputButton:Object(n.style)({float:"right",margin:"0.2em 0.2em 0.2em"}),invisible:Object(n.style)({visibility:"hidden"})}},t.prototype.createDom=function(t,e){var r=t||p.input().withInputType("button").usingStylesheetProvider(this).withStyles("invisible").create();r.value=e||"?";var n=this.changeMinutes,i=this.changeHours;return p.div().usingStylesheetProvider(this).withStyles("outer").withChildren(p.div().usingStylesheetProvider(this).withStyles("container").withChildren(p.table().withChildren(p.tr().withChildren(p.th().withAttribute("colspan","6").withChildren(this.target.hourControl,p.text(":").create(),this.target.minuteControl,p.fromElement(r).usingStylesheetProvider(this).withStyles("inputButton").create()).create()).create(),p.tr().withChildren(this.createTD(7,i),this.createTD(8,i),this.createTD(9,i),this.createTD(10,i),this.createSpaceTD(),this.createTD(0,n)).create(),p.tr().withChildren(this.createTD(11,i),this.createTD(12,i),this.createTD(13,i),this.createTD(14,i),this.createSpaceTD(),this.createTD(15,n)).create(),p.tr().withChildren(this.createTD(15,i),this.createTD(16,i),this.createTD(17,i),this.createTD(18,i),this.createSpaceTD(),this.createTD(30,n)).create(),p.tr().withChildren(this.createTD(19,i),this.createTD(20,i),this.createTD(21,i),this.createTD(22,i),this.createSpaceTD(),this.createTD(45,n)).create()).create()).create()).create()},t.prototype.getColorValues=function(){return this.colorValues},t.prototype.setColorValues=function(t){var e,r;t&&(this.colorValues=t,e=ut,r=this.colorValues,localStorage.setItem(e,JSON.stringify(r)))},t.prototype.createSpaceTD=function(){return p.td().withChildren(p.text(String.fromCharCode(160)).create()).create()},t.prototype.createTD=function(t,e){var r,n,i=(t<10?"0":"")+t;return p.td().withChildren(p.text(i).create()).withEventListener("click",(r=this,n=i,function(t){e(r,n),t.stopPropagation()})).create()},t.prototype.getCssColorFor=function(t){var e=this.colorValues[t]||ct[t];return R(e.r,e.g,e.b)},t.prototype.changeHours=function(t,e){t.target.setHours(e)},t.prototype.changeMinutes=function(t,e){t.target.setMinutes(e)},t.prototype.formatNumber=function(t){return t<0||t>99?""+t:(t<10?"0":"")+t},t}(),ft=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),pt=["Background","Time bar","Button BG(Hrs)","Button Text","Button BG(Min)","Button Text(Min)"],dt=function(t){function e(e){var r=t.call(this,e)||this;return r.observers=[],r}return ft(e,t),e.prototype.registerObserver=function(t){this.observers.push(t)},e.prototype.removeObserver=function(t){for(var e=0;e<this.observers.length;++e)this.observers[e]===t&&this.observers.splice(e,1)},e.prototype.notifyObservers=function(){for(var t=0,e=this.observers;t<e.length;t++)e[t].receiveNotification(this.values)},e.prototype.init=function(e){var r=this;return this.values=e,pt.forEach(function(t){void 0===r.values[t]&&(r.values[t]=ct[t])}),t.prototype.init.call(this)},e.prototype.run=function(){t.prototype.run.call(this)},e.prototype.getProviderName=function(){return this.rootID},e.prototype.getDefaultStylesheet=function(){return{appContainer:Object(n.style)({padding:F(.2),display:"inline-block",backgroundColor:$.toString(),margin:0,position:"absolute",top:0,left:0,bottom:0,right:0}),colorTargetSelectionOuter:Object(n.style)({fontSize:O(98),width:O(100),margin:F(.1),display:"inline-block",$nest:{"& select":{fontSize:"9pt",float:"left",width:F(8.5),height:F(1.5)}}}),colorExampleOuter:Object(n.style)({fontSize:O(98),backgroundColor:G.toString(),height:"18px",width:"18px",borderRadius:"18px",marginRight:F(.3),marginLeft:F(.2),display:"inline-block",position:"relative",float:"left"}),colorExampleInner:Object(n.style)({fontSize:O(98),backgroundColor:G.toString(),height:"18px",width:"18px",borderRadius:"18px"}),colorSelectorOuter:Object(n.style)({display:"flex",alignItems:"flex-end",flexDirection:"row",paddingLeft:F(.2),$nest:{"& input":{fontSize:"8pt",width:F(4.7),height:F(1.4),marginLeft:F(.5)},"& a":{color:q.toString(),fontSize:"10pt",fontWeight:"bold",textDecoration:"none",cursor:"pointer",float:"right"}}}),dialogButtonContainer:Object(n.style)({display:"inline-block",paddingRight:F(.1),float:"right",$nest:{"& a":{color:q.toString(),fontSize:"9pt",textDecoration:"none",borderStyle:"solid",borderColor:"black",borderWidth:"1px",padding:"0 0.4em",marginLeft:F(.3),display:"inline-block",position:"relative",cursor:"pointer",$nest:{"&:hover":{backgroundColor:U.toString()}}}}})}},e.prototype.renderDOM=function(t){a(t,this,"appContainer"),t.appendChild(this.createSelectorDiv()),t.appendChild(this.createColorPickerDiv()),this.selector.selectedIndex=0,this.lastSelectedOption=this.getSelectedColorOption();var e=this.getSelectedOptionsColor();this.updateColorControls(R(e.r,e.g,e.b).toHexString(),e),this.colorPicker.setRgb(e)},e.prototype.createSelectorDiv=function(){return p.div().usingStylesheetProvider(this).withStyles("colorTargetSelectionOuter").withChildren(this.createColorExample(),this.createElementSelector(),this.createButtonDiv()).withID("B1").create()},e.prototype.createColorPickerDiv=function(){return p.div().usingStylesheetProvider(this).withStyles("colorSelectorOuter").withChildren(this.createColorPicker(),this.createColorInput()).withID("C1").create()},e.prototype.getSelectedOptionsColor=function(){var t=this.selector.selectedOptions[0].value;return this.values[t]},e.prototype.createColorExample=function(){return this.colorExample=p.div().usingStylesheetProvider(this).withStyles("colorExampleInner").withID("colorExampleInner").create(),p.link().withHref("#").usingStylesheetProvider(this).withStyles("colorExampleOuter").withChildren(this.colorExample).create()},e.prototype.createOKButton=function(){var t;return p.link().withHref("#").usingStylesheetProvider(this).withStyles("styleDialogButton").withChildren(p.text("✔").create()).withEventListener("click",(t=this,function(e){t.notifyOk(t.values),e.stopPropagation()})).create()},e.prototype.createCancelButton=function(){var t;return p.link().withHref("#").usingStylesheetProvider(this).withStyles("styleDialogButton").withChildren(p.text("✘").create()).withEventListener("click",(t=this,function(e){t.notifyCancel(),e.stopPropagation()})).create()},e.prototype.createElementSelector=function(){var t=this,e=[];Object.keys(this.values).forEach(function(t,r,n){var i=p.option().withName(t).create();e.push(i)});var r,n=p.select();return e.forEach(function(t){n.withChildren(t)}),n.withEventListener("change",(r=t,function(e){r.lastSelectedOption=t.getSelectedColorOption();var n=r.getSelectedOptionsColor();r.updateColorControls(R(n.r,n.g,n.b).toHexString(),n),r.colorPicker.setRgb(n),e.stopPropagation()})),this.selector=n.create(),this.selector},e.prototype.createColorInput=function(){return this.colorValueInput=p.input().withInputType("text").withID("selected-color-hex").create(),p.div().withChildren(this.colorValueInput,p.br().create(),this.createTransferColorButton()).create()},e.prototype.createTransferColorButton=function(){var t,e=this;return p.link().withHref("#").withChildren(p.text("🢀").create()).withEventListener("click",(t=e,function(r){var n=B(t.colorValueInput.value),i={r:n.red(),g:n.green(),b:n.green()};e.values[e.getSelectedColorOption()]=i,e.colorExample.style.backgroundColor=n.toHexString(),e.colorPicker.setRgb(i),r.stopPropagation()})).create()},e.prototype.createColorPicker=function(){var t,e=p.div().withID("styleeditor-color-picker").create();return e.classList.add("cp","cp-small"),e.style.clear="left",this.colorPicker=new st.ColorPicker(e,(t=this,function(e,r,n){t.updateColorControls(e,n)})),e},e.prototype.getSelectedColorOption=function(){return this.selector.options[this.selector.selectedIndex].value},e.prototype.createButtonDiv=function(){return p.div().usingStylesheetProvider(this).withStyles("dialogButtonContainer").withChildren(this.createCancelButton(),this.createOKButton()).create()},e.prototype.updateColorControls=function(t,e){this.values[this.getSelectedColorOption()]=e,this.colorExample.style.backgroundColor=t,this.colorValueInput.value=t},e}(it),gt=i.utf16Encode([10173]),mt=i.utf16Encode([9940]),yt=function(){function t(t,e,r,n){this.fromTime=t,this.toTime=e,this.inputButton=r,this.cancelButton=n}return t.prototype.getProviderName=function(){return"timeselector"},t.prototype.getDefaultStylesheet=function(){return{controlArea:Object(n.style)(rt.content,{fontFamily:"Helvetica, Arial, sans-serif",fontSize:"10pt"})}},t.prototype.initApp=function(t){this.fromTable=new ht(this.fromTime),this.toTable=new ht(this.toTime);var e=this.fromTable.createDom(this.cancelButton,mt),r=this.toTable.createDom(this.inputButton,gt),n=document.getElementById(t);if(null===n)throw new Error("App root not found.");a(n,this,"controlArea"),n.appendChild(e),n.appendChild(r),b.injectOffSwitch(r.parentElement),this.fromTime.setTimeCheckCallback(this.checkTimes,this),this.toTime.setTimeCheckCallback(this.checkTimes,this),"config"===localStorage.getItem("useNewControl")&&this.injectConfigControl(e,r)},t.prototype.injectConfigControl=function(t,e){var r=this,n=p.div().withID("time-control-overlay").create();t.insertBefore(n,t.firstChild),new at("time-control-overlay").init().run();var i="time-control-config",o=p.div().withID(i).create();e.insertBefore(o,e.firstChild);var a=this.fromTable.getColorValues();new dt(i).init(a).whenCancel(function(){n.remove(),localStorage.setItem("useNewControl","new")}).whenOk(function(t){r.fromTable.setColorValues(t),n.remove(),localStorage.setItem("useNewControl","new"),window.location.replace(window.location.pathname)}).run()},t.prototype.checkTimes=function(t){var e=t.fromTime.getTimeInMinutes()>=t.toTime.getTimeInMinutes();t.fromTime.indicateError(e),t.toTime.indicateError(e),t.inputButton.disabled=e},t.prototype.checkTargetTime=function(t,e,r,n){return 60*(null!==t?Number(t):this.fromTime.getHours())+(null!==e?Number(e):this.fromTime.getMinutes())<60*(null!==r?Number(r):this.toTime.getHours())+(null!==n?Number(n):this.toTime.getMinutes())},t}(),vt=function(){function t(t){this.paragraph=t}return t.prototype.getProviderName=function(){return"timesparagraphwrapper"},t.prototype.getDefaultStylesheet=function(){return{hiddenTime:Object(n.style)({height:"0",visibility:"collapse"})}},t.prototype.hideParagraph=function(){a(this.paragraph,this,"hiddenTime")},t.prototype.getParagraphElement=function(){return this.paragraph},t.prototype.getSelectControls=function(){return{fromHours:this.findFirstSelect("from_hh"),fromMinutes:this.findFirstSelect("from_mm"),toHours:this.findFirstSelect("to_hh"),toMinutes:this.findFirstSelect("to_mm")}},t.prototype.getInputButton=function(){return this.getButton("Eintragen!")},t.prototype.getCancelButton=function(){return this.getButton("cancel edit!")},t.prototype.findFirstSelect=function(t){var e=document.getElementsByName(t);return e.length>0?e[0]:null},t.prototype.getButton=function(t){var e=this.paragraph.getElementsByTagName("input"),r=null;return Array.from(e).forEach(function(e){"button"===e.type.toLowerCase()&&e.value.toLowerCase()===t.toLowerCase()&&(r=e)}),r},t}();new(function(){function t(t){this.applicationID=t,this.that=this}return t.prototype.init=function(){if(!lt)throw new Error("Local storage not supported.");return this.timesParagraphWrapper=this.getTimesParagraph(),this.that},t.prototype.run=function(){this.showTimeSelector()?(this.prepareApplicationRoot(this.timesParagraphWrapper.getParagraphElement()),this.injectControl()):this.injectControlSwitch()},t.prototype.getTimesParagraph=function(){if(0===document.getElementsByClassName("times").length)throw new Error('Target element witth class "times" not found.');return new vt(document.getElementsByClassName("times")[0])},t.prototype.prepareApplicationRoot=function(t){var e=document.createElement("div");e.id="app-root",t.parentNode.style.maxHeight="none",t.parentNode.style.overflow="auto",t.parentNode.insertBefore(e,t.nextSibling)},t.prototype.injectControl=function(){var t=this.timesParagraphWrapper.getSelectControls(),e=new et(t.fromHours,t.fromMinutes),r=new et(t.toHours,t.toMinutes);new yt(e,r,this.timesParagraphWrapper.getInputButton(),this.timesParagraphWrapper.getCancelButton()).initApp("app-root"),this.timesParagraphWrapper.hideParagraph()},t.prototype.showTimeSelector=function(){return t="useNewControl",null!==localStorage.getItem(t)&&"original"!==localStorage.getItem("useNewControl");var t},t.prototype.injectControlSwitch=function(){b.injectOnSwitch(this.timesParagraphWrapper.getParagraphElement())},t}())("app-root").init().run()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var r=e.protocol+"//"+e.host,n=r+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?r+o:n+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(t,e,r){var n,i,o={},a=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=n.apply(this,arguments)),i}),s=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t){return document.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),l=null,u=0,c=[],h=r(13);function f(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=o[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(v(n.parts[a],e))}else{var s=[];for(a=0;a<n.parts.length;a++)s.push(v(n.parts[a],e));o[n.id]={id:n.id,refs:1,parts:s}}}}function p(t,e){for(var r=[],n={},i=0;i<t.length;i++){var o=t[i],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};n[a]?n[a].parts.push(s):r.push(n[a]={id:a,parts:[s]})}return r}function d(t,e){var r=s(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===t.insertAt)n?n.nextSibling?r.insertBefore(e,n.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),c.push(e);else if("bottom"===t.insertAt)r.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(t.insertInto+" "+t.insertAt.before);r.insertBefore(e,i)}}function g(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function m(t){var e=document.createElement("style");return t.attrs.type="text/css",y(e,t.attrs),d(t,e),e}function y(t,e){Object.keys(e).forEach(function(r){t.setAttribute(r,e[r])})}function v(t,e){var r,n,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var a=u++;r=l||(l=m(e)),n=k.bind(null,r,a,!1),i=k.bind(null,r,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",y(e,t.attrs),d(t,e),e}(e),n=function(t,e,r){var n=r.css,i=r.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(n=h(n)),i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([n],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,r,e),i=function(){g(r),r.href&&URL.revokeObjectURL(r.href)}):(r=m(e),n=function(t,e){var r=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}.bind(null,r),i=function(){g(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=p(t,e);return f(r,e),function(t){for(var n=[],i=0;i<r.length;i++){var a=r[i];(s=o[a.id]).refs--,n.push(s)}for(t&&f(p(t,e),e),i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var b,w=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function k(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=function(t,e){var r,n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=(r=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),a=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(n[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(t,e,r){(t.exports=r(15)(!1)).push([t.i,"/* Common stuff */\n.picker-wrapper, \n.slide-wrapper {\n position: relative;\n float: left;\n}\n.picker-indicator,\n.slide-indicator {\n position: absolute;\n left: 0;\n top: 0;\n pointer-events: none;\n}\n.picker,\n.slide {\n cursor: crosshair;\n float: left;\n}\n\n/* Small skin */\n\n.cp-small {\n padding: 5px;\n background-color: white;\n float: left;\n border-radius: 5px;\n}\n.cp-small .picker {\n width: 100px;\n height: 115px; /* was 100 */\n}\n.cp-small .slide {\n width: 15px;\n height: 115px; /* was 100 */\n}\n.cp-small .slide-wrapper {\n margin-left: 5px;\n}\n.cp-small .picker-indicator {\n width: 1px;\n height: 1px;\n border: 1px solid black;\n background-color: white;\n}\n.cp-small .slide-indicator {\n width: 100%;\n height: 2px;\n left: 0px;\n background-color: black;\n\n}",""])},function(t,e,r){var n=r(16);"string"==typeof n&&(n=[[t.i,n,""]]);r(14)(n,{hmr:!0,transform:void 0,insertInto:void 0}),n.locals&&(t.exports=n.locals)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3);e.ensureStringObj=function t(e){var r={},i="";for(var o in e){var a=e[o];if("$unique"===o)r[n.IS_UNIQUE]=a;else if("$nest"===o){var s=a;for(var l in s){var u=s[l];r[l]=t(u).result}}else"$debugName"===o?i=a:r[o]=a}return{result:r,debugName:i}},e.explodeKeyframes=function(t){var e={$debugName:void 0,keyframes:{}};for(var r in t){var n=t[r];"$debugName"===r?e.$debugName=n:e.keyframes[r]=n}return e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(19),i=r(5),o=r(3),a=function(){return o.create(void 0,!0)},s=function(){function t(t){var e=t.autoGenerateTag,r=this;this.cssRaw=function(t){t&&(r._raw+=t||"",r._pendingRawChange=!0,r._styleUpdated())},this.cssRule=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];var a=n.ensureStringObj(i.extend.apply(void 0,e)).result;r._freeStyle.registerRule(t,a),r._styleUpdated()},this.forceRenderStyles=function(){var t=r._getTag();t&&(t.textContent=r.getStyles())},this.fontFace=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=r._freeStyle,i=0,o=t;i<o.length;i++){var a=o[i];n.registerRule("@font-face",a)}r._styleUpdated()},this.getStyles=function(){return(r._raw||"")+r._freeStyle.getStyles()},this.keyframes=function(t){var e=n.explodeKeyframes(t),i=e.keyframes,o=e.$debugName,a=r._freeStyle.registerKeyframes(i,o);return r._styleUpdated(),a},this.reinit=function(){var t=a();r._freeStyle=t,r._lastFreeStyleChangeId=t.changeId,r._raw="",r._pendingRawChange=!1;var e=r._getTag();e&&(e.textContent="")},this.setStylesTarget=function(t){r._tag&&(r._tag.textContent=""),r._tag=t,r.forceRenderStyles()},this.style=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=r._freeStyle,a=n.ensureStringObj(i.extend.apply(void 0,t)),s=a.result,l=a.debugName,u=l?o.registerStyle(s,l):o.registerStyle(s);return r._styleUpdated(),u},this.stylesheet=function(t){for(var e={},n=0,i=Object.getOwnPropertyNames(t);n<i.length;n++){var o=i[n],a=t[o];a&&(a.$debugName=o,e[o]=r.style(a))}return e};var o=a();this._autoGenerateTag=e,this._freeStyle=o,this._lastFreeStyleChangeId=o.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0}return t.prototype._afterAllSync=function(t){var e=this;this._pending++;var r=this._pending;i.raf(function(){r===e._pending&&t()})},t.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var t="undefined"==typeof window?{textContent:""}:document.createElement("style");return"undefined"!=typeof document&&document.head.appendChild(t),this._tag=t,t}},t.prototype._styleUpdated=function(){var t=this,e=this._freeStyle.changeId,r=this._lastFreeStyleChangeId;(this._pendingRawChange||e!==r)&&(this._lastFreeStyleChangeId=e,this._pendingRawChange=!1,this._afterAllSync(function(){return t.forceRenderStyles()}))},t}();e.TypeStyle=s},function(t,e,r){"use strict";e.__esModule=!0;var n=r(0),i=r(6);e.setupPage=function(t){n.cssRule("html, body",{height:"100%",width:"100%",padding:0,margin:0}),n.cssRule("html",{"-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",boxSizing:"border-box"}),n.cssRule("*,*:before,*:after",{boxSizing:"inherit"}),n.cssRule(t,i.fillParent)}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(0);e.normalize=function(){n.cssRaw("\n button,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-block}progress,sub,sup{vertical-align:baseline}html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0} menu,article,aside,details,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{}button,select{text-transform:none}[type=submit], [type=reset],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}\n ".trim())}},function(t,e,r){"use strict";e.__esModule=!0,e.block={display:"block"},e.none={display:"none"},e.inlineBlock={display:"inline-block"},e.invisible={visibility:"hidden"}},function(t,e,r){"use strict";e.__esModule=!0,e.scroll={"-webkit-overflow-scrolling":"touch",overflow:"auto"},e.scrollX={"-webkit-overflow-scrolling":"touch",overflowX:"auto"},e.scrollY={"-webkit-overflow-scrolling":"touch",overflowY:"auto"},e.someChildWillScroll={overflow:"hidden"}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(0);e.layerParent={position:"relative"},e.attachToLayerParent={position:"absolute"},e.newLayer=n.extend(e.attachToLayerParent,{left:0,right:0,top:0,bottom:0}),e.attachToTop=n.extend(e.attachToLayerParent,{top:0,left:0,right:0}),e.attachToRight=n.extend(e.attachToLayerParent,{top:0,right:0,bottom:0}),e.attachToBottom=n.extend(e.attachToLayerParent,{right:0,bottom:0,left:0}),e.attachToLeft=n.extend(e.attachToLayerParent,{top:0,bottom:0,left:0});var i={position:"fixed"};e.pageTop=n.extend(i,{top:0,left:0,right:0}),e.pageRight=n.extend(i,{top:0,right:0,bottom:0}),e.pageBottom=n.extend(i,{right:0,bottom:0,left:0}),e.pageLeft=n.extend(i,{top:0,bottom:0,left:0})},function(t,e,r){"use strict";e.__esModule=!0;var n=r(0);e.flexRoot={display:["-ms-flexbox","-webkit-flex","flex"]},e.pass={display:"inherit","-ms-flex-direction":"inherit","-webkit-flex-direction":"inherit",flexDirection:"inherit","-ms-flex-positive":1,"-webkit-flex-grow":1,flexGrow:1},e.inlineRoot={display:["-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]},e.horizontal=n.extend(e.flexRoot,{"-ms-flex-direction":"row","-webkit-flex-direction":"row",flexDirection:"row"}),e.vertical=n.extend(e.flexRoot,{"-ms-flex-direction":"column","-webkit-flex-direction":"column",flexDirection:"column"}),e.wrap={"-ms-flex-wrap":"wrap","-webkit-flex-wrap":"wrap",flexWrap:"wrap"},e.content={"-ms-flex-negative":0,"-webkit-flex-shrink":0,flexShrink:0,flexBasis:"auto"},e.flex={"-ms-flex":1,"-webkit-flex":1,flex:1},e.flex1=e.flex,e.flex2={"-ms-flex":2,"-webkit-flex":2,flex:2},e.flex3={"-ms-flex":3,"-webkit-flex":3,flex:3},e.flex4={"-ms-flex":4,"-webkit-flex":4,flex:4},e.flex5={"-ms-flex":5,"-webkit-flex":5,flex:5},e.flex6={"-ms-flex":6,"-webkit-flex":6,flex:6},e.flex7={"-ms-flex":7,"-webkit-flex":7,flex:7},e.flex8={"-ms-flex":8,"-webkit-flex":8,flex:8},e.flex9={"-ms-flex":9,"-webkit-flex":9,flex:9},e.flex10={"-ms-flex":10,"-webkit-flex":10,flex:10},e.flex11={"-ms-flex":11,"-webkit-flex":11,flex:11},e.flex12={"-ms-flex":12,"-webkit-flex":12,flex:12},e.start={"-ms-flex-align":"start","-webkit-align-items":"flex-start",alignItems:"flex-start"},e.center={"-ms-flex-align":"center","-webkit-align-items":"center",alignItems:"center"},e.end={"-ms-flex-align":"end","-webkit-align-items":"flex-end",alignItems:"flex-end"},e.startJustified={"-ms-flex-pack":"start","-webkit-justify-content":"flex-start",justifyContent:"flex-start"},e.centerJustified={"-ms-flex-pack":"center","-webkit-justify-content":"center",justifyContent:"center"},e.endJustified={"-ms-flex-pack":"end","-webkit-justify-content":"flex-end",justifyContent:"flex-end"},e.aroundJustified={"-ms-flex-pack":"distribute","-webkit-justify-content":"space-around",justifyContent:"space-around"},e.betweenJustified={"-ms-flex-pack":"justify","-webkit-justify-content":"space-between",justifyContent:"space-between"},e.centerCenter=n.extend(e.flexRoot,e.center,e.centerJustified),e.selfStart={"-ms-flex-item-align":"start","-webkit-align-self":"flex-start",alignSelf:"flex-start"},e.selfCenter={"-ms-flex-item-align":"center","-webkit-align-self":"center",alignSelf:"center"},e.selfEnd={"-ms-flex-item-align":"end","-webkit-align-self":"flex-end",alignSelf:"flex-end"},e.selfStretch={"-ms-flex-item-align":"stretch","-webkit-align-self":"stretch",alignSelf:"stretch"}},function(t,e,r){"use strict";e.__esModule=!0,e.fontStyleItalic={fontStyle:"italic"},e.fontWeightNormal={fontWeight:"normal"},e.fontWeightBold={fontWeight:"bold"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length?t.join(" "):"none"},e.matrix=function(t,e,r,i,o,a){return n.cssFunction("matrix",[t,e,r,i,o,a])},e.matrix3d=function(t,e,r,i,o,a,s,l,u,c,h,f,p,d,g,m){return n.cssFunction("matrix3d",[t,e,r,i,o,a,s,l,u,c,h,f,p,d,g,m])},e.perspective=function(t){return n.cssFunction("perspective",[t])},e.rotate=function(t){return n.cssFunction("rotate",[t])},e.rotate3d=function(t,e,r){return n.cssFunction("rotate3d",[t,e,r])},e.rotateX=function(t){return n.cssFunction("rotateX",[t])},e.rotateY=function(t){return n.cssFunction("rotateY",[t])},e.rotateZ=function(t){return n.cssFunction("rotateZ",[t])},e.scale=function(t,e){return n.cssFunction("scale",e||0===e?[t,e]:[t])},e.scale3d=function(t,e,r){return n.cssFunction("scale3d",[t,e,r])},e.scaleX=function(t){return n.cssFunction("scaleX",[t])},e.scaleY=function(t){return n.cssFunction("scaleY",[t])},e.scaleZ=function(t){return n.cssFunction("scaleZ",[t])},e.skew=function(t,e){return n.cssFunction("skew",e||0===e?[t,e]:[t])},e.skewX=function(t){return n.cssFunction("skewX",[t])},e.skewY=function(t){return n.cssFunction("skewY",[t])},e.translate=function(t,e){return n.cssFunction("translate",e||0===e?[t,e]:[t])},e.translate3d=function(t,e,r){return n.cssFunction("translate3d",[t,e,r])},e.translateX=function(t){return n.cssFunction("translateX",[t])},e.translateY=function(t){return n.cssFunction("translateY",[t])},e.translateZ=function(t){return n.cssFunction("translateZ",[t])}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calc=function(t){return"calc("+t+")"},e.quote=function(t){return"'"+(t||0===t?t.toString():"").replace(/\'/g,"\\'")+"'"},e.important=function(t){return t||0===t?t.toString()+" !important":""},e.url=function(t){return"url("+(t||"")+")"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);function i(t){return Array.isArray(t)?t.map(function(t){return t.toString()}).join(" "):t.toString()}e.linearGradient=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return n.cssFunction("linear-gradient",[t].concat(e.map(i)))},e.repeatingLinearGradient=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return n.cssFunction("repeating-linear-gradient",[t].concat(e.map(i)))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i="undefined"!=typeof Float32Array,o=0,a=1,s=((p={})[o-a]=function(t,e,r,n,i){var o,s=t/255,l=e/255,u=r/255,c=Math.min(s,l,u),h=Math.max(s,l,u),p=(c+h)/2,d=h-c;return o=h===c?0:s===h?(l-u)/d:l===h?2+(u-s)/d:u===h?4+(s-l)/d:0,(o=Math.min(60*o,360))<0&&(o+=360),new f(a,o,h===c?0:p<=.5?d/(h+c):d/(2-h-c),p,n,i)},p[a-o]=function(t,e,r,n,i){var a=t/360,s=e,l=r;if(0===s)return new f(o,y=255*l,y,y,n,i);for(var u=l<.5?l*(1+s):l+s-l*s,c=2*l-u,h=0,p=0,d=0,g=0;g<3;g++){var m=a+1/3*-(g-1);m<0&&m++,m>1&&m--;var y=void 0;y=6*m<1?c+6*(u-c)*m:2*m<1?u:3*m<2?c+(u-c)*(2/3-m)*6:c,y*=255,0===g?h=y:1===g?p=y:d=y}return new f(o,h,p,d,n,i)},p),l=((d={})[o]=b(255,255,255,1),d[a]=b(360,1,1,1),d);function u(t){return x(t)||function(t){var e=t.match(/#(([a-f0-9]{6})|([a-f0-9]{3}))$/i);if(e){var r=e[1],n=parseInt(3===r.length?r[0]+r[0]+r[1]+r[1]+r[2]+r[2]:r,16);return new f(o,n>>16&255,n>>8&255,255&n,1,!1)}}(t)||function(t){var e=n.parseCSSFunction(t);if(e&&(4===e.length||5===e.length)){var r,i=e[0],s="rgba"===i,l="hsla"===i,u="rgb"===i,c=l||s;if(u||s)r=o;else{if("hsl"!==i&&!l)throw new Error("unsupported color string");r=a}var h=parseFloat(e[1]),p=u||s?parseFloat(e[2]):n.ensurePercent(e[2]),d=u||s?parseFloat(e[3]):n.ensurePercent(e[3]),g=c?parseFloat(e[4]):1;return new f(r,h,p,d,g,c)}}(t)||x("red")}function c(t,e,r){return new f(o,t,e,r,1,!1)}function h(t,e,r,i){return new f(o,t,e,r,n.ensurePercent(i),!0)}e.color=u,e.hsl=function(t,e,r){return new f(a,y(t),n.ensurePercent(e),n.ensurePercent(r),1,!1)},e.hsla=function(t,e,r,i){return new f(a,y(t),n.ensurePercent(e),n.ensurePercent(r),n.ensurePercent(i),!0)},e.rgb=c,e.rgba=h;var f=function(){function t(t,e,r,n,i,o){this._format=t,this._hasAlpha=o,this._values=b(w(t,0,e),w(t,1,r),w(t,2,n),w(t,3,i))}return t.convertHelper=function(t,e){var r=e._format,n=e._values,i=e._hasAlpha;return r===t?e:s[r-t](n[0],n[1],n[2],n[3],i)},t.prototype.toString=function(){var t,e,r=this._format,i=this._values,s=this._hasAlpha;if(r===o)t=s?"rgba":"rgb",e=[Math.round(i[0]),Math.round(i[1]),Math.round(i[2])];else{if(r!==a)throw new Error("Invalid color format");t=s?"hsla":"hsl",e=[Math.round(i[0]),n.formatPercent(n.roundFloat(i[1],100)),n.formatPercent(n.roundFloat(i[2],100))]}return s&&e.push(n.formatFloat(n.roundFloat(i[3],1e5))),n.cssFunction(t,e)},t.prototype.toHexString=function(){var e=t.convertHelper(o,this)._values;return"#"+(m(e[0])+m(e[1])+m(e[2])).toUpperCase()},t.prototype.toHSL=function(){var t=this._values;return v(this._format,a,t[0],t[1],t[2],1,!1)},t.prototype.toHSLA=function(){var t=this._values;return v(this._format,a,t[0],t[1],t[2],t[3],!0)},t.prototype.toRGB=function(){var t=this._values;return v(this._format,o,t[0],t[1],t[2],1,!1)},t.prototype.toRGBA=function(){var t=this._values;return v(this._format,o,t[0],t[1],t[2],t[3],!0)},t.prototype.red=function(){return(this._format===o?this:this.toRGB())._values[0]},t.prototype.green=function(){return(this._format===o?this:this.toRGB())._values[1]},t.prototype.blue=function(){return(this._format===o?this:this.toRGB())._values[2]},t.prototype.hue=function(){return(this._format===a?this:this.toHSL())._values[0]},t.prototype.saturation=function(){return(this._format===a?this:this.toHSL())._values[1]},t.prototype.lightness=function(){return(this._format===a?this:this.toHSL())._values[2]},t.prototype.alpha=function(){return this._values[3]},t.prototype.opacity=function(){return this.alpha()},t.prototype.invert=function(){var e=t.convertHelper(o,this)._values;return t.convertHelper(this._format,new t(o,255-e[0],255-e[1],255-e[2],this._values[3],this._hasAlpha))},t.prototype.lighten=function(e,r){var i=t.convertHelper(a,this)._values,o=l[a][2],s=i[2]+(r?o-i[2]:o)*n.ensurePercent(e);return t.convertHelper(this._format,new t(a,i[0],i[1],s,this._values[3],this._hasAlpha))},t.prototype.darken=function(e,r){var i=t.convertHelper(a,this)._values,o=i[2]-(r?i[2]:l[a][2])*n.ensurePercent(e);return t.convertHelper(this._format,new t(a,i[0],i[1],o,this._values[3],this._hasAlpha))},t.prototype.saturate=function(e,r){var i=t.convertHelper(a,this)._values,o=l[a][1],s=i[1]+(r?o-i[1]:o)*n.ensurePercent(e);return t.convertHelper(this._format,new t(a,i[0],s,i[2],this._values[3],this._hasAlpha))},t.prototype.desaturate=function(e,r){var i=t.convertHelper(a,this)._values,o=l[a][1],s=i[1]-(r?i[1]:o)*n.ensurePercent(e);return t.convertHelper(this._format,new t(a,i[0],s,i[2],this._values[3],this._hasAlpha))},t.prototype.grayscale=function(){return this.desaturate(1)},t.prototype.fade=function(e){var r=this._values,i=w(o,3,n.ensurePercent(e));return t.convertHelper(this._format,new t(this._format,r[0],r[1],r[2],i,!0))},t.prototype.fadeOut=function(e,r){var i=this._values,a=w(o,3,i[3]-(r?i[3]:1)*n.ensurePercent(e));return t.convertHelper(this._format,new t(this._format,i[0],i[1],i[2],a,!0))},t.prototype.fadeIn=function(e,r){var i=this._values,a=w(o,3,i[3]+(r?i[3]:1)*n.ensurePercent(e));return t.convertHelper(this._format,new t(this._format,i[0],i[1],i[2],a,!0))},t.prototype.mix=function(e,r){var n=k(e),i=t.convertHelper(o,this)._values,a=t.convertHelper(o,n)._values,s=void 0===r?.5:r,l=2*s-1,u=Math.abs(i[3]-a[3]),c=((l*u==-1?l:(l+u)/(1+l*u))+1)/2,h=1-c,f=new t(o,Math.round(i[0]*c+a[0]*h),Math.round(i[1]*c+a[1]*h),Math.round(i[2]*c+a[2]*h),i[3]*s+a[3]*(1-s),this._hasAlpha||n._hasAlpha);return t.convertHelper(this._format,f)},t.prototype.tint=function(t){return e.white.mix(this,t)},t.prototype.shade=function(t){return e.black.mix(this,t)},t.prototype.spin=function(e){var r=t.convertHelper(a,this)._values;return t.convertHelper(this._format,new t(a,y(r[0]+e),r[1],r[2],this._values[3],this._hasAlpha))},t}();e.ColorHelper=f;var p,d,g={aliceblue:c(240,248,245),antiquewhite:c(250,235,215),aqua:c(0,255,255),aquamarine:c(127,255,212),azure:c(240,255,255),beige:c(245,245,220),bisque:c(255,228,196),black:c(0,0,0),blanchedalmond:c(255,235,205),blue:c(0,0,255),blueviolet:c(138,43,226),brown:c(165,42,42),burlywood:c(222,184,35),cadetblue:c(95,158,160),chartreuse:c(127,255,0),chocolate:c(210,105,30),coral:c(255,127,80),cornflowerblue:c(100,149,237),cornsilk:c(255,248,220),crimson:c(220,20,60),cyan:c(0,255,255),darkblue:c(0,0,139),darkcyan:c(0,139,139),darkgoldenrod:c(184,134,11),darkgray:c(169,169,169),darkgreen:c(0,100,0),darkgrey:c(169,169,169),darkkhaki:c(189,183,107),darkmagenta:c(139,0,139),darkolivegreen:c(85,107,47),darkorange:c(255,140,0),darkorchid:c(153,50,204),darkred:c(139,0,0),darksalmon:c(233,150,122),darkseagreen:c(143,188,143),darkslateblue:c(72,61,139),darkslategray:c(47,79,79),darkslategrey:c(47,79,79),darkturquoise:c(0,206,209),darkviolet:c(148,0,211),deeppink:c(255,20,147),deepskyblue:c(0,191,255),dimgray:c(105,105,105),dimgrey:c(105,105,105),dodgerblue:c(30,144,255),firebrick:c(178,34,34),floralwhite:c(255,250,240),forestgreen:c(34,139,34),fuchsia:c(255,0,255),gainsboro:c(220,220,220),ghostwhite:c(248,248,255),gold:c(255,215,0),goldenrod:c(218,165,32),gray:c(128,128,128),green:c(0,128,0),greenyellow:c(173,255,47),grey:c(128,128,128),honeydew:c(240,255,240),hotpink:c(255,105,180),indianred:c(205,92,92),indigo:c(75,0,130),ivory:c(255,255,240),khaki:c(240,230,140),lavender:c(230,230,250),lavenderblush:c(255,240,245),lawngreen:c(124,252,0),lemonchiffon:c(255,250,205),lightblue:c(173,216,230),lightcoral:c(240,128,128),lightcyan:c(224,255,255),lightgoldenrodyellow:c(250,250,210),lightgray:c(211,211,211),lightgreen:c(144,238,144),lightgrey:c(211,211,211),lightpink:c(255,182,193),lightsalmon:c(255,160,122),lightseagreen:c(32,178,170),lightskyblue:c(135,206,250),lightslategray:c(119,136,153),lightslategrey:c(119,136,153),lightsteelblue:c(176,196,222),lightyellow:c(255,255,224),lime:c(0,255,0),limegreen:c(50,205,50),linen:c(250,240,230),maroon:c(128,0,0),mediumaquamarine:c(102,205,170),mediumblue:c(0,0,205),mediumorchid:c(186,85,211),mediumpurple:c(147,112,219),mediumseagreen:c(60,179,113),mediumslateblue:c(123,104,238),mediumspringgreen:c(0,250,154),mediumturquoise:c(72,209,204),mediumvioletred:c(199,21,133),midnightblue:c(25,25,112),mintcream:c(245,255,250),mistyrose:c(255,228,225),moccasin:c(255,228,181),navajowhite:c(255,222,173),navy:c(0,0,128),oldlace:c(253,245,230),olive:c(128,128,0),olivedrab:c(107,142,35),orange:c(255,165,0),purple:c(128,0,128),rebeccapurple:c(102,51,153),red:c(255,0,0),silver:c(192,192,192),teal:c(0,128,128),transparent:h(0,0,0,0),white:c(255,255,255),yellow:c(255,255,0)};function m(t){var e=Math.round(t);return(e<16?"0":"")+e.toString(16)}function y(t){return((t<0?360:0)+t%360)%360}function v(t,e,r,n,i,o,a){return t===e?new f(t,r,n,i,o,a):s[t-e](r,n,i,o,a)}function b(t,e,r,n){if(!i)return[t||0,e||0,r||0,n||0];var o=new Float32Array(4);return o[0]=t||0,o[1]=e||0,o[2]=r||0,o[3]=n||0,o}function w(t,e,r){var n=l[t][e];return r<0?0:r>n?n:r}function k(t){return t instanceof f?t:u(t)}function x(t){return g[t]||void 0}e.aliceblue=g.aliceblue,e.antiquewhite=g.antiquewhite,e.aqua=g.aqua,e.aquamarine=g.aquamarine,e.azure=g.azure,e.beige=g.beige,e.bisque=g.bisque,e.black=g.black,e.blanchedalmond=g.blanchedalmond,e.blue=g.blue,e.blueviolet=g.blueviolet,e.brown=g.brown,e.burlywood=g.burlywood,e.cadetblue=g.cadetblue,e.chartreuse=g.chartreuse,e.chocolate=g.chocolate,e.coral=g.coral,e.cornflowerblue=g.cornflowerblue,e.cornsilk=g.cornsilk,e.crimson=g.crimson,e.cyan=g.cyan,e.darkblue=g.darkblue,e.darkcyan=g.darkcyan,e.darkgoldenrod=g.darkgoldenrod,e.darkgray=g.darkgray,e.darkgreen=g.darkgreen,e.darkgrey=g.darkgrey,e.darkkhaki=g.darkkhaki,e.darkmagenta=g.darkmagenta,e.darkolivegreen=g.darkolivegreen,e.darkorange=g.darkorange,e.darkorchid=g.darkorchid,e.darkred=g.darkred,e.darksalmon=g.darksalmon,e.darkseagreen=g.darkseagreen,e.darkslateblue=g.darkslateblue,e.darkslategray=g.darkslategray,e.darkslategrey=g.darkslategrey,e.darkturquoise=g.darkturquoise,e.darkviolet=g.darkviolet,e.deeppink=g.deeppink,e.deepskyblue=g.deepskyblue,e.dimgray=g.dimgray,e.dimgrey=g.dimgrey,e.dodgerblue=g.dodgerblue,e.firebrick=g.firebrick,e.floralwhite=g.floralwhite,e.forestgreen=g.forestgreen,e.fuchsia=g.fuchsia,e.gainsboro=g.gainsboro,e.ghostwhite=g.ghostwhite,e.gold=g.gold,e.goldenrod=g.goldenrod,e.gray=g.gray,e.green=g.green,e.greenyellow=g.greenyellow,e.grey=g.grey,e.honeydew=g.honeydew,e.hotpink=g.hotpink,e.indianred=g.indianred,e.indigo=g.indigo,e.ivory=g.ivory,e.khaki=g.khaki,e.lavender=g.lavender,e.lavenderblush=g.lavenderblush,e.lawngreen=g.lawngreen,e.lemonchiffon=g.lemonchiffon,e.lightblue=g.lightblue,e.lightcoral=g.lightcoral,e.lightcyan=g.lightcyan,e.lightgoldenrodyellow=g.lightgoldenrodyellow,e.lightgray=g.lightgray,e.lightgreen=g.lightgreen,e.lightgrey=g.lightgrey,e.lightpink=g.lightpink,e.lightsalmon=g.lightsalmon,e.lightseagreen=g.lightseagreen,e.lightskyblue=g.lightskyblue,e.lightslategray=g.lightslategray,e.lightslategrey=g.lightslategrey,e.lightsteelblue=g.lightsteelblue,e.lightyellow=g.lightyellow,e.lime=g.lime,e.limegreen=g.limegreen,e.linen=g.linen,e.maroon=g.maroon,e.mediumaquamarine=g.mediumaquamarine,e.mediumblue=g.mediumblue,e.mediumorchid=g.mediumorchid,e.mediumpurple=g.mediumpurple,e.mediumseagreen=g.mediumseagreen,e.mediumslateblue=g.mediumslateblue,e.mediumspringgreen=g.mediumspringgreen,e.mediumturquoise=g.mediumturquoise,e.mediumvioletred=g.mediumvioletred,e.midnightblue=g.midnightblue,e.mintcream=g.mintcream,e.mistyrose=g.mistyrose,e.moccasin=g.moccasin,e.navajowhite=g.navajowhite,e.navy=g.navy,e.oldlace=g.oldlace,e.olive=g.olive,e.olivedrab=g.olivedrab,e.orange=g.orange,e.purple=g.purple,e.rebeccapurple=g.rebeccapurple,e.red=g.red,e.silver=g.silver,e.teal=g.teal,e.transparent=g.transparent,e.white=g.white,e.yellow=g.yellow},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=r(8);e.border=function(t){return i.params(t.color,t.style,n.ensureLength(t.width))},e.borderColor=i.params,e.borderStyle=i.params,e.borderWidth=i.params},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.roundFloat=function(t,e){return Math.round(t*e)/e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=/[\s]*([a-z-]+)[\s]*\([\s]*([^\)]+)[\s]*\)[\s]*/i,i=/^(\-?\d+\.?\d{0,5})/;function o(t){return i.exec(t.toString())[1]}e.formatUnit=function(t){return function(e){return e+t}},e.ensurePercent=function(t){return"number"==typeof t?t:.01*parseFloat(t)},e.formatPercent=function(t){return o(100*t)+"%"},e.formatFloat=o,e.ensureLength=function(t){if(null!==t&&void 0!==t){var e=+t;return e==e?t+"px":t}},e.parseCSSFunction=function(t){var e=n.exec(t);if(e&&e.length)return[e[1]].concat(e[2].split(","))},e.cssFunction=function(t,e){return t+"("+Array.prototype.join.call(e,",")+")"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=function(t,e){return Array.prototype.filter.call(t,e)},e.map=function(t,e){return Array.prototype.map.call(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2);e.background=function(){return n.map(arguments,function(t){var e="";return t.image&&(e+=" "+t.image),t.position&&(e+=" "+t.position),(t.size||0===t.size)&&(e+=" "+t.size),t.repeat&&(e+=" "+t.repeat),t.origin&&(e+=" "+t.origin),t.clip&&(e+=" "+t.clip),t.attachment&&(e+=" "+t.attachment),t.color&&(e+=" "+t.color),e.trim()}).filter(function(t){return""!==t}).join(",")}},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(36)),n(r(32)),n(r(31)),n(r(30)),n(r(8)),n(r(29)),n(r(28)),n(r(7))},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,u=[],c=!1,h=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&p())}function p(){if(!c){var t=s(f);c=!0;for(var e=u.length;e;){for(l=u,u=[];++h<e;)l&&l[h].run();h=-1,e=u.length}l=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}]);