proto-tinker-wc 0.0.63 → 0.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-7f905cfa.js → index-8a5c2545.js} +4 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/proto-tinker-wc.cjs.js +2 -2
- package/dist/cjs/proto-tinker.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/proto-tinker.js +3 -4
- package/dist/esm/{index-d8a37a54.js → index-3b8041b0.js} +4 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-tinker-wc.js +2 -2
- package/dist/esm/proto-tinker.entry.js +2 -2
- package/dist/proto-tinker-wc/{p-6c8fd639.entry.js → p-18b8d7c7.entry.js} +1 -1
- package/dist/proto-tinker-wc/{p-9227b009.js → p-478fdd60.js} +1 -1
- package/dist/proto-tinker-wc/proto-tinker-wc.esm.js +1 -1
- package/package.json +2 -2
|
@@ -800,7 +800,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
800
800
|
const flags = hostRef.$flags$;
|
|
801
801
|
const instance = hostRef.$lazyInstance$ ;
|
|
802
802
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
803
|
-
|
|
803
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
804
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
805
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
806
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
804
807
|
// gadzooks! the property's value has changed!!
|
|
805
808
|
// set our new value!
|
|
806
809
|
hostRef.$instanceValues$.set(propName, newVal);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8a5c2545.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.14.
|
|
8
|
+
Stencil Client Patch Esm v2.14.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-8a5c2545.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.14.
|
|
6
|
+
Stencil Client Patch Browser v2.14.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-tinker-wc.cjs.js', document.baseURI).href));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8a5c2545.js');
|
|
6
6
|
|
|
7
7
|
const Radio = props => {
|
|
8
8
|
const hex = props.hex || 'currentColor';
|
|
@@ -2515,7 +2515,7 @@ const Eswat2Io = _props => {
|
|
|
2515
2515
|
|
|
2516
2516
|
const protoTinkerCss = "*,::before,::after{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";
|
|
2517
2517
|
|
|
2518
|
-
|
|
2518
|
+
const ProtoTinker = class {
|
|
2519
2519
|
constructor(hostRef) {
|
|
2520
2520
|
index.registerInstance(this, hostRef);
|
|
2521
2521
|
this.tag = 'proto-tinker';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, getRenderingRef, forceUpdate,
|
|
1
|
+
import { h, getRenderingRef, forceUpdate, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
3
|
const Radio = props => {
|
|
4
4
|
const hex = props.hex || 'currentColor';
|
|
@@ -2511,7 +2511,7 @@ const Eswat2Io = _props => {
|
|
|
2511
2511
|
|
|
2512
2512
|
const protoTinkerCss = "*,::before,::after{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";
|
|
2513
2513
|
|
|
2514
|
-
|
|
2514
|
+
const ProtoTinker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
2515
2515
|
constructor() {
|
|
2516
2516
|
super();
|
|
2517
2517
|
this.__registerHost();
|
|
@@ -2522,8 +2522,7 @@ let ProtoTinker$1 = class extends HTMLElement {
|
|
|
2522
2522
|
return (h("div", { id: "app", class: "ds1-main" }, h(Eswat2Io, null), h(DataSource, { actions: actions, state: state }), h(ColorPicker, { actions: actions, state: state }), h("hr", { class: "mr-0 ml-0" }), h(DataValues, { state: state })));
|
|
2523
2523
|
}
|
|
2524
2524
|
static get style() { return protoTinkerCss; }
|
|
2525
|
-
}
|
|
2526
|
-
ProtoTinker$1 = /*@__PURE__*/ proxyCustomElement(ProtoTinker$1, [1, "proto-tinker", {
|
|
2525
|
+
}, [1, "proto-tinker", {
|
|
2527
2526
|
"tag": [1]
|
|
2528
2527
|
}]);
|
|
2529
2528
|
function defineCustomElement$1() {
|
|
@@ -778,7 +778,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
778
778
|
const flags = hostRef.$flags$;
|
|
779
779
|
const instance = hostRef.$lazyInstance$ ;
|
|
780
780
|
newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
|
|
781
|
-
|
|
781
|
+
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
782
|
+
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
783
|
+
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
784
|
+
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
782
785
|
// gadzooks! the property's value has changed!!
|
|
783
786
|
// set our new value!
|
|
784
787
|
hostRef.$instanceValues$.set(propName, newVal);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-3b8041b0.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.14.
|
|
4
|
+
Stencil Client Patch Esm v2.14.1 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-3b8041b0.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.14.
|
|
4
|
+
Stencil Client Patch Browser v2.14.1 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-
|
|
1
|
+
import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-3b8041b0.js';
|
|
2
2
|
|
|
3
3
|
const Radio = props => {
|
|
4
4
|
const hex = props.hex || 'currentColor';
|
|
@@ -2511,7 +2511,7 @@ const Eswat2Io = _props => {
|
|
|
2511
2511
|
|
|
2512
2512
|
const protoTinkerCss = "*,::before,::after{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";
|
|
2513
2513
|
|
|
2514
|
-
|
|
2514
|
+
const ProtoTinker = class {
|
|
2515
2515
|
constructor(hostRef) {
|
|
2516
2516
|
registerInstance(this, hostRef);
|
|
2517
2517
|
this.tag = 'proto-tinker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,g as r,f as t,r as n}from"./p-9227b009.js";const a=r=>{const t=r.hex||"currentColor",n=r.selected||!1,a=r.size||24;return e("svg",{class:r.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"radio")," ",e("g",{fill:t},e("path",n?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};function i(e,r,t){return e(t={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},o=i((function(e){var r=Array.prototype.concat,t=Array.prototype.slice,n=e.exports=function(e){for(var n,a=[],i=0,l=e.length;i<l;i++){var o=e[i];(n=o)&&"string"!=typeof n&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&"String"!==n.constructor.name))?a=r.call(a,t.call(o)):a.push(o)}return a};n.wrap=function(e){return function(){return e(n(arguments))}}})),s=i((function(e){var r=Object.hasOwnProperty,t={};for(var n in l)r.call(l,n)&&(t[l[n]]=n);var a=e.exports={to:{},get:{}};function i(e,r,t){return Math.min(Math.max(r,e),t)}function s(e){var r=Math.round(e).toString(16).toUpperCase();return r.length<2?"0"+r:r}a.get=function(e){var r,t;switch(e.substring(0,3).toLowerCase()){case"hsl":r=a.get.hsl(e),t="hsl";break;case"hwb":r=a.get.hwb(e),t="hwb";break;default:r=a.get.rgb(e),t="rgb"}return r?{model:t,value:r}:null},a.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(t.slice(s,s+2),16)}a&&(o[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:r.call(l,t[1])?((o=l[t[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=i(o[n],0,255);return o[3]=i(o[3],0,1),o},a.get.hsl=function(e){if(!e)return null;var r=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(r){var t=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,i(parseFloat(r[2]),0,100),i(parseFloat(r[3]),0,100),i(isNaN(t)?1:t,0,1)]}return null},a.get.hwb=function(e){if(!e)return null;var r=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(r){var t=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,i(parseFloat(r[2]),0,100),i(parseFloat(r[3]),0,100),i(isNaN(t)?1:t,0,1)]}return null},a.to.hex=function(){var e=o(arguments);return"#"+s(e[0])+s(e[1])+s(e[2])+(e[3]<1?s(Math.round(255*e[3])):"")},a.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},a.to.rgb.percent=function(){var e=o(arguments),r=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+r+"%, "+t+"%, "+n+"%)":"rgba("+r+"%, "+t+"%, "+n+"%, "+e[3]+")"},a.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},a.to.hwb=function(){var e=o(arguments),r="";return e.length>=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},a.to.keyword=function(e){return t[e.slice(0,3)]}})),u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c=i((function(e){var r={};for(var t in u)u.hasOwnProperty(t)&&(r[u[t]]=t);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in n)if(n.hasOwnProperty(a)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=n[a].channels,l=n[a].labels;delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:i}),Object.defineProperty(n[a],"labels",{value:l})}n.rgb.hsl=function(e){var r,t,n=e[0]/255,a=e[1]/255,i=e[2]/255,l=Math.min(n,a,i),o=Math.max(n,a,i),s=o-l;return o===l?r=0:n===o?r=(a-i)/s:a===o?r=2+(i-n)/s:i===o&&(r=4+(n-a)/s),(r=Math.min(60*r,360))<0&&(r+=360),t=(l+o)/2,[r,100*(o===l?0:t<=.5?s/(o+l):s/(2-o-l)),100*t]},n.rgb.hsv=function(e){var r,t,n,a,i,l=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(l,o,s),c=u-Math.min(l,o,s),h=function(e){return(u-e)/6/c+.5};return 0===c?a=i=0:(i=c/u,r=h(l),t=h(o),n=h(s),l===u?a=n-t:o===u?a=1/3+r-n:s===u&&(a=2/3+t-r),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},n.rgb.hwb=function(e){var r=e[0],t=e[1],a=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(r,Math.min(t,a))*100,100*(a=1-1/255*Math.max(r,Math.max(t,a)))]},n.rgb.cmyk=function(e){var r,t=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-t-(r=Math.min(1-t,1-n,1-a)))/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},n.rgb.keyword=function(e){var t=r[e];if(t)return t;var n,a,i,l=1/0;for(var o in u)if(u.hasOwnProperty(o)){var s=(a=e,i=u[o],Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));s<l&&(l=s,n=o)}return n},n.keyword.rgb=function(e){return u[e]},n.rgb.xyz=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255;return[100*(.4124*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},n.rgb.lab=function(e){var r=n.rgb.xyz(e),t=r[0],a=r[1],i=r[2];return a/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},n.hsl.rgb=function(e){var r,t,n,a,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];r=2*s-(t=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var u=0;u<3;u++)(n=l+1/3*-(u-1))<0&&n++,n>1&&n--,a[u]=255*(i=6*n<1?r+6*(t-r)*n:2*n<1?t:3*n<2?r+(t-r)*(2/3-n)*6:r);return a},n.hsl.hsv=function(e){var r=e[0],t=e[1]/100,n=e[2]/100,a=t,i=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[r,100*(0===n?2*a/(i+a):2*t/(n+t)),(n+t)/2*100]},n.hsv.rgb=function(e){var r=e[0]/60,t=e[1]/100,n=e[2]/100,a=Math.floor(r)%6,i=r-Math.floor(r),l=255*n*(1-t),o=255*n*(1-t*i),s=255*n*(1-t*(1-i));switch(n*=255,a){case 0:return[n,s,l];case 1:return[o,n,l];case 2:return[l,n,s];case 3:return[l,o,n];case 4:return[s,l,n];case 5:return[n,l,o]}},n.hsv.hsl=function(e){var r,t,n,a=e[0],i=e[1]/100,l=e[2]/100,o=Math.max(l,.01);return n=(2-i)*l,t=i*o,[a,100*(t=(t/=(r=(2-i)*o)<=1?r:2-r)||0),100*(n/=2)]},n.hwb.rgb=function(e){var r,t,n,a,i,l,o,s=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=6*s-(r=Math.floor(6*s)),0!=(1&r)&&(n=1-n),a=u+n*((t=1-c)-u),r){default:case 6:case 0:i=t,l=a,o=u;break;case 1:i=a,l=t,o=u;break;case 2:i=u,l=t,o=a;break;case 3:i=u,l=a,o=t;break;case 4:i=a,l=u,o=t;break;case 5:i=t,l=u,o=a}return[255*i,255*l,255*o]},n.cmyk.rgb=function(e){var r=e[1]/100,t=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n))]},n.xyz.rgb=function(e){var r,t,n,a=e[0]/100,i=e[1]/100,l=e[2]/100;return t=-.9689*a+1.8758*i+.0415*l,n=.0557*a+-.204*i+1.057*l,r=(r=3.2406*a+-1.5372*i+-.4986*l)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(r=Math.min(Math.max(0,r),1)),255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var r=e[0],t=e[1],n=e[2];return t/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(r-t),200*(t-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var r,t,n;r=e[1]/500+(t=(e[0]+16)/116),n=t-e[2]/200;var a=Math.pow(t,3),i=Math.pow(r,3),l=Math.pow(n,3);return t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,[r*=95.047,t*=100,n*=108.883]},n.lab.lch=function(e){var r,t=e[0],n=e[1],a=e[2];return(r=360*Math.atan2(a,n)/2/Math.PI)<0&&(r+=360),[t,Math.sqrt(n*n+a*a),r]},n.lch.lab=function(e){var r,t=e[1];return r=e[2]/360*2*Math.PI,[e[0],t*Math.cos(r),t*Math.sin(r)]},n.rgb.ansi16=function(e){var r=e[0],t=e[1],a=e[2],i=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var l=30+(Math.round(a/255)<<2|Math.round(t/255)<<1|Math.round(r/255));return 2===i&&(l+=60),l},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),[r=r/10.5*255,r,r];var t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},n.ansi256.rgb=function(e){if(e>=232){var r=10*(e-232)+8;return[r,r,r]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){var r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.hex.rgb=function(e){var r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var t=r[0];3===r[0].length&&(t=t.split("").map((function(e){return e+e})).join(""));var n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var r,t=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,n),a),l=Math.min(Math.min(t,n),a),o=i-l;return r=o<=0?0:i===t?(n-a)/o%6:i===n?2+(a-t)/o:4+(t-n)/o+4,r/=6,[360*(r%=1),100*o,100*(o<1?l/(1-o):0)]},n.hsl.hcg=function(e){var r,t=e[1]/100,n=e[2]/100,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},n.hsv.hcg=function(e){var r=e[2]/100,t=e[1]/100*r,n=0;return t<1&&(n=(r-t)/(1-t)),[e[0],100*t,100*n]},n.hcg.rgb=function(e){var r=e[1]/100,t=e[2]/100;if(0===r)return[255*t,255*t,255*t];var n,a=[0,0,0],i=e[0]/360%1*6,l=i%1,o=1-l;switch(Math.floor(i)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return[255*(r*a[0]+(n=(1-r)*t)),255*(r*a[1]+n),255*(r*a[2]+n)]},n.hcg.hsv=function(e){var r=e[1]/100,t=r+e[2]/100*(1-r),n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},n.hcg.hsl=function(e){var r=e[1]/100,t=e[2]/100*(1-r)+.5*r,n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},n.hcg.hwb=function(e){var r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},n.hwb.hcg=function(e){var r=1-e[2]/100,t=r-e[1]/100,n=0;return t<1&&(n=(r-t)/(1-t)),[e[0],100*t,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function h(e,r){return function(t){return r(e(t))}}function f(e,r){for(var t=[r[e].parent,e],n=c[r[e].parent][e],a=r[e].parent;r[a].parent;)t.unshift(r[a].parent),n=h(c[r[a].parent][a],n),a=r[a].parent;return n.conversion=t,n}var d={};Object.keys(c).forEach((function(e){d[e]={},Object.defineProperty(d[e],"channels",{value:c[e].channels}),Object.defineProperty(d[e],"labels",{value:c[e].labels});var r=function(e){for(var r=function(e){var r=function(){for(var e={},r=Object.keys(c),t=r.length,n=0;n<t;n++)e[r[n]]={distance:-1,parent:null};return e}(),t=[e];for(r[e].distance=0;t.length;)for(var n=t.pop(),a=Object.keys(c[n]),i=a.length,l=0;l<i;l++){var o=a[l],s=r[o];-1===s.distance&&(s.distance=r[n].distance+1,s.parent=n,t.unshift(o))}return r}(e),t={},n=Object.keys(r),a=n.length,i=0;i<a;i++){var l=n[i];null!==r[l].parent&&(t[l]=f(l,r))}return t}(e);Object.keys(r).forEach((function(t){var n=r[t];d[e][t]=function(e){var r=function(r){if(null==r)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var t=e(r);if("object"==typeof t)for(var n=t.length,a=0;a<n;a++)t[a]=Math.round(t[a]);return t};return"conversion"in e&&(r.conversion=e.conversion),r}(n),d[e][t].raw=function(e){var r=function(r){return null==r?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)}))}));var g=d,b=[].slice,v=["keyword","gray","hex"],p={};Object.keys(g).forEach((function(e){p[b.call(g[e].labels).sort().join("")]=e}));var m={};function w(e,r){if(!(this instanceof w))return new w(e,r);if(r&&r in v&&(r=null),r&&!(r in g))throw new Error("Unknown model: "+r);var t,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof w)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=s.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,n=g[this.model].channels),this.valpha="number"==typeof a.value[n]?a.value[n]:1}else if(e.length){this.model=r||"rgb";var i=b.call(e,0,n=g[this.model].channels);this.color=x(i,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var l=Object.keys(e);"alpha"in e&&(l.splice(l.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var o=l.sort().join("");if(!(o in p))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=p[o];var u=g[this.model].labels,c=[];for(t=0;t<u.length;t++)c.push(e[u[t]]);this.color=x(c)}if(m[this.model])for(n=g[this.model].channels,t=0;t<n;t++){var h=m[this.model][t];h&&(this.color[t]=h(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function y(e,r,t){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(m[e]||(m[e]=[]))[r]=t})),e=e[0],function(n){var a;return arguments.length?(t&&(n=t(n)),(a=this[e]()).color[r]=n,a):(a=this[e]().color[r],t&&(a=t(a)),a)}}function k(e){return function(r){return Math.max(0,Math.min(e,r))}}function M(e){return Array.isArray(e)?e:[e]}function x(e,r){for(var t=0;t<r;t++)"number"!=typeof e[t]&&(e[t]=0);return e}w.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var r=this.model in s.to?this:this.rgb(),t=1===(r=r.round("number"==typeof e?e:1)).valpha?r.color:r.color.concat(this.valpha);return s.to[r.model](t)},percentString:function(e){var r=this.rgb().round("number"==typeof e?e:1),t=1===r.valpha?r.color:r.color.concat(this.valpha);return s.to.rgb.percent(t)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},r=g[this.model].channels,t=g[this.model].labels,n=0;n<r;n++)e[t[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new w(this.color.map(function(e){return function(r){return function(e,r){return Number(e.toFixed(r))}(r,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new w(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:y("rgb",0,k(255)),green:y("rgb",1,k(255)),blue:y("rgb",2,k(255)),hue:y(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:y("hsl",1,k(100)),lightness:y("hsl",2,k(100)),saturationv:y("hsv",1,k(100)),value:y("hsv",2,k(100)),chroma:y("hcg",1,k(100)),gray:y("hcg",2,k(100)),white:y("hwb",1,k(100)),wblack:y("hwb",2,k(100)),cyan:y("cmyk",0,k(100)),magenta:y("cmyk",1,k(100)),yellow:y("cmyk",2,k(100)),black:y("cmyk",3,k(100)),x:y("xyz",0,k(100)),y:y("xyz",1,k(100)),z:y("xyz",2,k(100)),l:y("lab",0,k(100)),a:y("lab",1),b:y("lab",2),keyword:function(e){return arguments.length?new w(e):g[this.model].keyword(this.color)},hex:function(e){return arguments.length?new w(e):s.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,r=[],t=0;t<e.length;t++){var n=e[t]/255;r[t]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast:function(e){var r=this.luminosity(),t=e.luminosity();return r>t?(r+.05)/(t+.05):(t+.05)/(r+.05)},level:function(e){var r=this.contrast(e);return r>=7.1?"AAA":r>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten:function(e){var r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken:function(e){var r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate:function(e){var r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate:function(e){var r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten:function(e){var r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken:function(e){var r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale:function(){var e=this.rgb().color,r=.3*e[0]+.59*e[1]+.11*e[2];return w.rgb(r,r,r)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var r=this.hsl(),t=r.color[0];return r.color[0]=t=(t=(t+e)%360)<0?360+t:t,r},mix:function(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var t=e.rgb(),n=this.rgb(),a=void 0===r?.5:r,i=2*a-1,l=t.alpha()-n.alpha(),o=((i*l==-1?i:(i+l)/(1+i*l))+1)/2,s=1-o;return w.rgb(o*t.red()+s*n.red(),o*t.green()+s*n.green(),o*t.blue()+s*n.blue(),t.alpha()*a+n.alpha()*(1-a))}},Object.keys(g).forEach((function(e){if(-1===v.indexOf(e)){var r=g[e].channels;w.prototype[e]=function(){if(this.model===e)return new w(this);if(arguments.length)return new w(arguments,e);var t="number"==typeof arguments[r]?r:this.valpha;return new w(M(g[this.model][e].raw(this.color)).concat(t),e)},w[e]=function(t){return"number"==typeof t&&(t=x(b.call(arguments),r)),new w(t,e)}}}));const C=[{id:1,height:400,width:100,x:10,y:10,drop:20},{id:2,height:356,width:100,x:120,y:32,drop:20},{id:3,height:312,width:100,x:230,y:54,drop:20},{id:4,height:268,width:100,x:340,y:76,drop:20},{id:5,height:224,width:100,x:450,y:98,drop:20}].map((()=>0)),j={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},z={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},O=Object.keys(j),q=e=>!("isConnected"in e)||e.isConnected,A=(()=>{let e;return(...r)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let r of e.keys())e.set(r,e.get(r).filter(q))})(...r)}),2e3)}})(),F=(()=>{const e=((e,r=((e,r)=>e!==r))=>{let t=new Map(Object.entries(null!=e?e:{}));const n={dispose:[],get:[],set:[],reset:[]},a=()=>{t=new Map(Object.entries(null!=e?e:{})),n.reset.forEach((e=>e()))},i=e=>(n.get.forEach((r=>r(e))),t.get(e)),l=(e,a)=>{const i=t.get(e);r(a,i,e)&&(t.set(e,a),n.set.forEach((r=>r(e,a,i))))},o="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,r)=>i(r),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,r)=>t.has(r),set:(e,r,t)=>(l(r,t),!0)}),s=(e,r)=>(n[e].push(r),()=>{((e,r)=>{const t=e.indexOf(r);t>=0&&(e[t]=e[e.length-1],e.length--)})(n[e],r)});return{state:o,get:i,set:l,on:s,onChange:(r,t)=>{const n=s("set",((e,n)=>{e===r&&t(n)})),a=s("reset",(()=>t(e[r])));return()=>{n(),a()}},use:(...e)=>{const r=e.reduce(((e,r)=>(r.set&&e.push(s("set",r.set)),r.get&&e.push(s("get",r.get)),r.reset&&e.push(s("reset",r.reset)),r.dispose&&e.push(s("dispose",r.dispose)),e)),[]);return()=>r.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),a()},reset:a,forceUpdate:e=>{const r=t.get(e);n.set.forEach((t=>t(e,r,r)))}}})({count:0,pick:"bada55",values:[...C]},void 0);return e.use((()=>{if("function"!=typeof r)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const n=r();n&&((e,r,t)=>{const n=e.get(r);n?n.includes(t)||n.push(t):e.set(r,[t])})(e,t,n)},set:r=>{const n=e.get(r);n&&e.set(r,n.filter(t)),A(e)},reset:()=>{e.forEach((e=>e.forEach(t))),A(e)}}})()),e})(),{state:L}=F,E={refresh:()=>{const e=C.map((()=>Math.floor(100*Math.random())));L.count=L.count+1,L.values=e},reset:()=>{L.count=0,L.values=[...C]},updatePick:e=>{L.pick=e}},S=r=>{const{actions:t,state:n}=r,{pick:i}=n;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},O.map((r=>{const n=(e=>j[e]||z[e])(r);return e("div",{"aria-label":r,role:"radio",title:r,onClick:()=>{t.updatePick(r)}},e(a,{hex:n,selected:i==r}))})))},N=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"chevron-double-left"),e("g",{fill:t},e("path",{d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},I=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"close"),e("g",{fill:t},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},$=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"refresh"),e("g",{fill:t},e("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},U=r=>{const{actions:t,state:n}=r,{count:a}=n;return e("div",{class:"mt-3 mb-10px flex items-center"},e("button",{"aria-label":"Refresh",title:"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{t.refresh()}},e($,null)),e("button",{"aria-label":"Reset",title:"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{t.reset()}},e(I,null)),e("span",{class:"flex items-center"},e(N,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},B=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.0.23"),H=r=>{const{state:t}=r,{values:n,pick:a,count:i}=t;return e("div",{class:"flex"},e("div",{class:"flex flex-col"},e("div",{class:"flex"},e("span",{class:"mr-10px font-bold"},"color:"),e("span",{class:"italic text-clrs-slate4"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?n:"..."}`))),e(B,null))},R=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"fingerprint"),e("g",{fill:t},e("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},P=()=>e("a",{class:"absolute top-8 right-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":"eswat2",title:"eswat2"},e(R,{label:"eswat2"}));let D=class{constructor(e){n(this,e),this.tag="proto-tinker"}render(){return e("div",{id:"app",class:"ds1-main"},e(P,null),e(U,{actions:E,state:L}),e(S,{actions:E,state:L}),e("hr",{class:"mr-0 ml-0"}),e(H,{state:L}))}};D.style="*,::before,::after{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{D as proto_tinker}
|
|
1
|
+
import{h as e,g as r,f as t,r as n}from"./p-478fdd60.js";const a=r=>{const t=r.hex||"currentColor",n=r.selected||!1,a=r.size||24;return e("svg",{class:r.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"radio")," ",e("g",{fill:t},e("path",n?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};function i(e,r,t){return e(t={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},t.exports),t.exports}var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},o=i((function(e){var r=Array.prototype.concat,t=Array.prototype.slice,n=e.exports=function(e){for(var n,a=[],i=0,l=e.length;i<l;i++){var o=e[i];(n=o)&&"string"!=typeof n&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&"String"!==n.constructor.name))?a=r.call(a,t.call(o)):a.push(o)}return a};n.wrap=function(e){return function(){return e(n(arguments))}}})),s=i((function(e){var r=Object.hasOwnProperty,t={};for(var n in l)r.call(l,n)&&(t[l[n]]=n);var a=e.exports={to:{},get:{}};function i(e,r,t){return Math.min(Math.max(r,e),t)}function s(e){var r=Math.round(e).toString(16).toUpperCase();return r.length<2?"0"+r:r}a.get=function(e){var r,t;switch(e.substring(0,3).toLowerCase()){case"hsl":r=a.get.hsl(e),t="hsl";break;case"hwb":r=a.get.hwb(e),t="hwb";break;default:r=a.get.rgb(e),t="rgb"}return r?{model:t,value:r}:null},a.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(t.slice(s,s+2),16)}a&&(o[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:r.call(l,t[1])?((o=l[t[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=i(o[n],0,255);return o[3]=i(o[3],0,1),o},a.get.hsl=function(e){if(!e)return null;var r=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(r){var t=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,i(parseFloat(r[2]),0,100),i(parseFloat(r[3]),0,100),i(isNaN(t)?1:t,0,1)]}return null},a.get.hwb=function(e){if(!e)return null;var r=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(r){var t=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,i(parseFloat(r[2]),0,100),i(parseFloat(r[3]),0,100),i(isNaN(t)?1:t,0,1)]}return null},a.to.hex=function(){var e=o(arguments);return"#"+s(e[0])+s(e[1])+s(e[2])+(e[3]<1?s(Math.round(255*e[3])):"")},a.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},a.to.rgb.percent=function(){var e=o(arguments),r=Math.round(e[0]/255*100),t=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+r+"%, "+t+"%, "+n+"%)":"rgba("+r+"%, "+t+"%, "+n+"%, "+e[3]+")"},a.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},a.to.hwb=function(){var e=o(arguments),r="";return e.length>=4&&1!==e[3]&&(r=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+r+")"},a.to.keyword=function(e){return t[e.slice(0,3)]}})),u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c=i((function(e){var r={};for(var t in u)u.hasOwnProperty(t)&&(r[u[t]]=t);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in n)if(n.hasOwnProperty(a)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=n[a].channels,l=n[a].labels;delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:i}),Object.defineProperty(n[a],"labels",{value:l})}n.rgb.hsl=function(e){var r,t,n=e[0]/255,a=e[1]/255,i=e[2]/255,l=Math.min(n,a,i),o=Math.max(n,a,i),s=o-l;return o===l?r=0:n===o?r=(a-i)/s:a===o?r=2+(i-n)/s:i===o&&(r=4+(n-a)/s),(r=Math.min(60*r,360))<0&&(r+=360),t=(l+o)/2,[r,100*(o===l?0:t<=.5?s/(o+l):s/(2-o-l)),100*t]},n.rgb.hsv=function(e){var r,t,n,a,i,l=e[0]/255,o=e[1]/255,s=e[2]/255,u=Math.max(l,o,s),c=u-Math.min(l,o,s),h=function(e){return(u-e)/6/c+.5};return 0===c?a=i=0:(i=c/u,r=h(l),t=h(o),n=h(s),l===u?a=n-t:o===u?a=1/3+r-n:s===u&&(a=2/3+t-r),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},n.rgb.hwb=function(e){var r=e[0],t=e[1],a=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(r,Math.min(t,a))*100,100*(a=1-1/255*Math.max(r,Math.max(t,a)))]},n.rgb.cmyk=function(e){var r,t=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-t-(r=Math.min(1-t,1-n,1-a)))/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},n.rgb.keyword=function(e){var t=r[e];if(t)return t;var n,a,i,l=1/0;for(var o in u)if(u.hasOwnProperty(o)){var s=(a=e,i=u[o],Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));s<l&&(l=s,n=o)}return n},n.keyword.rgb=function(e){return u[e]},n.rgb.xyz=function(e){var r=e[0]/255,t=e[1]/255,n=e[2]/255;return[100*(.4124*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.3576*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*r+.7152*t+.0722*n),100*(.0193*r+.1192*t+.9505*n)]},n.rgb.lab=function(e){var r=n.rgb.xyz(e),t=r[0],a=r[1],i=r[2];return a/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},n.hsl.rgb=function(e){var r,t,n,a,i,l=e[0]/360,o=e[1]/100,s=e[2]/100;if(0===o)return[i=255*s,i,i];r=2*s-(t=s<.5?s*(1+o):s+o-s*o),a=[0,0,0];for(var u=0;u<3;u++)(n=l+1/3*-(u-1))<0&&n++,n>1&&n--,a[u]=255*(i=6*n<1?r+6*(t-r)*n:2*n<1?t:3*n<2?r+(t-r)*(2/3-n)*6:r);return a},n.hsl.hsv=function(e){var r=e[0],t=e[1]/100,n=e[2]/100,a=t,i=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[r,100*(0===n?2*a/(i+a):2*t/(n+t)),(n+t)/2*100]},n.hsv.rgb=function(e){var r=e[0]/60,t=e[1]/100,n=e[2]/100,a=Math.floor(r)%6,i=r-Math.floor(r),l=255*n*(1-t),o=255*n*(1-t*i),s=255*n*(1-t*(1-i));switch(n*=255,a){case 0:return[n,s,l];case 1:return[o,n,l];case 2:return[l,n,s];case 3:return[l,o,n];case 4:return[s,l,n];case 5:return[n,l,o]}},n.hsv.hsl=function(e){var r,t,n,a=e[0],i=e[1]/100,l=e[2]/100,o=Math.max(l,.01);return n=(2-i)*l,t=i*o,[a,100*(t=(t/=(r=(2-i)*o)<=1?r:2-r)||0),100*(n/=2)]},n.hwb.rgb=function(e){var r,t,n,a,i,l,o,s=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=6*s-(r=Math.floor(6*s)),0!=(1&r)&&(n=1-n),a=u+n*((t=1-c)-u),r){default:case 6:case 0:i=t,l=a,o=u;break;case 1:i=a,l=t,o=u;break;case 2:i=u,l=t,o=a;break;case 3:i=u,l=a,o=t;break;case 4:i=a,l=u,o=t;break;case 5:i=t,l=u,o=a}return[255*i,255*l,255*o]},n.cmyk.rgb=function(e){var r=e[1]/100,t=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n))]},n.xyz.rgb=function(e){var r,t,n,a=e[0]/100,i=e[1]/100,l=e[2]/100;return t=-.9689*a+1.8758*i+.0415*l,n=.0557*a+-.204*i+1.057*l,r=(r=3.2406*a+-1.5372*i+-.4986*l)>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(r=Math.min(Math.max(0,r),1)),255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var r=e[0],t=e[1],n=e[2];return t/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(r-t),200*(t-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var r,t,n;r=e[1]/500+(t=(e[0]+16)/116),n=t-e[2]/200;var a=Math.pow(t,3),i=Math.pow(r,3),l=Math.pow(n,3);return t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,[r*=95.047,t*=100,n*=108.883]},n.lab.lch=function(e){var r,t=e[0],n=e[1],a=e[2];return(r=360*Math.atan2(a,n)/2/Math.PI)<0&&(r+=360),[t,Math.sqrt(n*n+a*a),r]},n.lch.lab=function(e){var r,t=e[1];return r=e[2]/360*2*Math.PI,[e[0],t*Math.cos(r),t*Math.sin(r)]},n.rgb.ansi16=function(e){var r=e[0],t=e[1],a=e[2],i=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var l=30+(Math.round(a/255)<<2|Math.round(t/255)<<1|Math.round(r/255));return 2===i&&(l+=60),l},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var r=e[0],t=e[1],n=e[2];return r===t&&t===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(e){var r=e%10;if(0===r||7===r)return e>50&&(r+=3.5),[r=r/10.5*255,r,r];var t=.5*(1+~~(e>50));return[(1&r)*t*255,(r>>1&1)*t*255,(r>>2&1)*t*255]},n.ansi256.rgb=function(e){if(e>=232){var r=10*(e-232)+8;return[r,r,r]}var t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){var r=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.hex.rgb=function(e){var r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];var t=r[0];3===r[0].length&&(t=t.split("").map((function(e){return e+e})).join(""));var n=parseInt(t,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var r,t=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(t,n),a),l=Math.min(Math.min(t,n),a),o=i-l;return r=o<=0?0:i===t?(n-a)/o%6:i===n?2+(a-t)/o:4+(t-n)/o+4,r/=6,[360*(r%=1),100*o,100*(o<1?l/(1-o):0)]},n.hsl.hcg=function(e){var r,t=e[1]/100,n=e[2]/100,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},n.hsv.hcg=function(e){var r=e[2]/100,t=e[1]/100*r,n=0;return t<1&&(n=(r-t)/(1-t)),[e[0],100*t,100*n]},n.hcg.rgb=function(e){var r=e[1]/100,t=e[2]/100;if(0===r)return[255*t,255*t,255*t];var n,a=[0,0,0],i=e[0]/360%1*6,l=i%1,o=1-l;switch(Math.floor(i)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=o,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=o,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=o}return[255*(r*a[0]+(n=(1-r)*t)),255*(r*a[1]+n),255*(r*a[2]+n)]},n.hcg.hsv=function(e){var r=e[1]/100,t=r+e[2]/100*(1-r),n=0;return t>0&&(n=r/t),[e[0],100*n,100*t]},n.hcg.hsl=function(e){var r=e[1]/100,t=e[2]/100*(1-r)+.5*r,n=0;return t>0&&t<.5?n=r/(2*t):t>=.5&&t<1&&(n=r/(2*(1-t))),[e[0],100*n,100*t]},n.hcg.hwb=function(e){var r=e[1]/100,t=r+e[2]/100*(1-r);return[e[0],100*(t-r),100*(1-t)]},n.hwb.hcg=function(e){var r=1-e[2]/100,t=r-e[1]/100,n=0;return t<1&&(n=(r-t)/(1-t)),[e[0],100*t,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var r=255&Math.round(e[0]/100*255),t=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function h(e,r){return function(t){return r(e(t))}}function f(e,r){for(var t=[r[e].parent,e],n=c[r[e].parent][e],a=r[e].parent;r[a].parent;)t.unshift(r[a].parent),n=h(c[r[a].parent][a],n),a=r[a].parent;return n.conversion=t,n}var d={};Object.keys(c).forEach((function(e){d[e]={},Object.defineProperty(d[e],"channels",{value:c[e].channels}),Object.defineProperty(d[e],"labels",{value:c[e].labels});var r=function(e){for(var r=function(e){var r=function(){for(var e={},r=Object.keys(c),t=r.length,n=0;n<t;n++)e[r[n]]={distance:-1,parent:null};return e}(),t=[e];for(r[e].distance=0;t.length;)for(var n=t.pop(),a=Object.keys(c[n]),i=a.length,l=0;l<i;l++){var o=a[l],s=r[o];-1===s.distance&&(s.distance=r[n].distance+1,s.parent=n,t.unshift(o))}return r}(e),t={},n=Object.keys(r),a=n.length,i=0;i<a;i++){var l=n[i];null!==r[l].parent&&(t[l]=f(l,r))}return t}(e);Object.keys(r).forEach((function(t){var n=r[t];d[e][t]=function(e){var r=function(r){if(null==r)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var t=e(r);if("object"==typeof t)for(var n=t.length,a=0;a<n;a++)t[a]=Math.round(t[a]);return t};return"conversion"in e&&(r.conversion=e.conversion),r}(n),d[e][t].raw=function(e){var r=function(r){return null==r?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(r.conversion=e.conversion),r}(n)}))}));var g=d,b=[].slice,v=["keyword","gray","hex"],p={};Object.keys(g).forEach((function(e){p[b.call(g[e].labels).sort().join("")]=e}));var m={};function w(e,r){if(!(this instanceof w))return new w(e,r);if(r&&r in v&&(r=null),r&&!(r in g))throw new Error("Unknown model: "+r);var t,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof w)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=s.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,n=g[this.model].channels),this.valpha="number"==typeof a.value[n]?a.value[n]:1}else if(e.length){this.model=r||"rgb";var i=b.call(e,0,n=g[this.model].channels);this.color=x(i,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var l=Object.keys(e);"alpha"in e&&(l.splice(l.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var o=l.sort().join("");if(!(o in p))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=p[o];var u=g[this.model].labels,c=[];for(t=0;t<u.length;t++)c.push(e[u[t]]);this.color=x(c)}if(m[this.model])for(n=g[this.model].channels,t=0;t<n;t++){var h=m[this.model][t];h&&(this.color[t]=h(this.color[t]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function y(e,r,t){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(m[e]||(m[e]=[]))[r]=t})),e=e[0],function(n){var a;return arguments.length?(t&&(n=t(n)),(a=this[e]()).color[r]=n,a):(a=this[e]().color[r],t&&(a=t(a)),a)}}function k(e){return function(r){return Math.max(0,Math.min(e,r))}}function M(e){return Array.isArray(e)?e:[e]}function x(e,r){for(var t=0;t<r;t++)"number"!=typeof e[t]&&(e[t]=0);return e}w.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var r=this.model in s.to?this:this.rgb(),t=1===(r=r.round("number"==typeof e?e:1)).valpha?r.color:r.color.concat(this.valpha);return s.to[r.model](t)},percentString:function(e){var r=this.rgb().round("number"==typeof e?e:1),t=1===r.valpha?r.color:r.color.concat(this.valpha);return s.to.rgb.percent(t)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},r=g[this.model].channels,t=g[this.model].labels,n=0;n<r;n++)e[t[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new w(this.color.map(function(e){return function(r){return function(e,r){return Number(e.toFixed(r))}(r,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new w(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:y("rgb",0,k(255)),green:y("rgb",1,k(255)),blue:y("rgb",2,k(255)),hue:y(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:y("hsl",1,k(100)),lightness:y("hsl",2,k(100)),saturationv:y("hsv",1,k(100)),value:y("hsv",2,k(100)),chroma:y("hcg",1,k(100)),gray:y("hcg",2,k(100)),white:y("hwb",1,k(100)),wblack:y("hwb",2,k(100)),cyan:y("cmyk",0,k(100)),magenta:y("cmyk",1,k(100)),yellow:y("cmyk",2,k(100)),black:y("cmyk",3,k(100)),x:y("xyz",0,k(100)),y:y("xyz",1,k(100)),z:y("xyz",2,k(100)),l:y("lab",0,k(100)),a:y("lab",1),b:y("lab",2),keyword:function(e){return arguments.length?new w(e):g[this.model].keyword(this.color)},hex:function(e){return arguments.length?new w(e):s.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,r=[],t=0;t<e.length;t++){var n=e[t]/255;r[t]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast:function(e){var r=this.luminosity(),t=e.luminosity();return r>t?(r+.05)/(t+.05):(t+.05)/(r+.05)},level:function(e){var r=this.contrast(e);return r>=7.1?"AAA":r>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),r=0;r<3;r++)e.color[r]=255-e.color[r];return e},lighten:function(e){var r=this.hsl();return r.color[2]+=r.color[2]*e,r},darken:function(e){var r=this.hsl();return r.color[2]-=r.color[2]*e,r},saturate:function(e){var r=this.hsl();return r.color[1]+=r.color[1]*e,r},desaturate:function(e){var r=this.hsl();return r.color[1]-=r.color[1]*e,r},whiten:function(e){var r=this.hwb();return r.color[1]+=r.color[1]*e,r},blacken:function(e){var r=this.hwb();return r.color[2]+=r.color[2]*e,r},grayscale:function(){var e=this.rgb().color,r=.3*e[0]+.59*e[1]+.11*e[2];return w.rgb(r,r,r)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var r=this.hsl(),t=r.color[0];return r.color[0]=t=(t=(t+e)%360)<0?360+t:t,r},mix:function(e,r){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var t=e.rgb(),n=this.rgb(),a=void 0===r?.5:r,i=2*a-1,l=t.alpha()-n.alpha(),o=((i*l==-1?i:(i+l)/(1+i*l))+1)/2,s=1-o;return w.rgb(o*t.red()+s*n.red(),o*t.green()+s*n.green(),o*t.blue()+s*n.blue(),t.alpha()*a+n.alpha()*(1-a))}},Object.keys(g).forEach((function(e){if(-1===v.indexOf(e)){var r=g[e].channels;w.prototype[e]=function(){if(this.model===e)return new w(this);if(arguments.length)return new w(arguments,e);var t="number"==typeof arguments[r]?r:this.valpha;return new w(M(g[this.model][e].raw(this.color)).concat(t),e)},w[e]=function(t){return"number"==typeof t&&(t=x(b.call(arguments),r)),new w(t,e)}}}));const C=[{id:1,height:400,width:100,x:10,y:10,drop:20},{id:2,height:356,width:100,x:120,y:32,drop:20},{id:3,height:312,width:100,x:230,y:54,drop:20},{id:4,height:268,width:100,x:340,y:76,drop:20},{id:5,height:224,width:100,x:450,y:98,drop:20}].map((()=>0)),j={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},z={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},O=Object.keys(j),q=e=>!("isConnected"in e)||e.isConnected,A=(()=>{let e;return(...r)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let r of e.keys())e.set(r,e.get(r).filter(q))})(...r)}),2e3)}})(),F=(()=>{const e=((e,r=((e,r)=>e!==r))=>{let t=new Map(Object.entries(null!=e?e:{}));const n={dispose:[],get:[],set:[],reset:[]},a=()=>{t=new Map(Object.entries(null!=e?e:{})),n.reset.forEach((e=>e()))},i=e=>(n.get.forEach((r=>r(e))),t.get(e)),l=(e,a)=>{const i=t.get(e);r(a,i,e)&&(t.set(e,a),n.set.forEach((r=>r(e,a,i))))},o="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,r)=>i(r),ownKeys:()=>Array.from(t.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,r)=>t.has(r),set:(e,r,t)=>(l(r,t),!0)}),s=(e,r)=>(n[e].push(r),()=>{((e,r)=>{const t=e.indexOf(r);t>=0&&(e[t]=e[e.length-1],e.length--)})(n[e],r)});return{state:o,get:i,set:l,on:s,onChange:(r,t)=>{const n=s("set",((e,n)=>{e===r&&t(n)})),a=s("reset",(()=>t(e[r])));return()=>{n(),a()}},use:(...e)=>{const r=e.reduce(((e,r)=>(r.set&&e.push(s("set",r.set)),r.get&&e.push(s("get",r.get)),r.reset&&e.push(s("reset",r.reset)),r.dispose&&e.push(s("dispose",r.dispose)),e)),[]);return()=>r.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),a()},reset:a,forceUpdate:e=>{const r=t.get(e);n.set.forEach((t=>t(e,r,r)))}}})({count:0,pick:"bada55",values:[...C]},void 0);return e.use((()=>{if("function"!=typeof r)return{};const e=new Map;return{dispose:()=>e.clear(),get:t=>{const n=r();n&&((e,r,t)=>{const n=e.get(r);n?n.includes(t)||n.push(t):e.set(r,[t])})(e,t,n)},set:r=>{const n=e.get(r);n&&e.set(r,n.filter(t)),A(e)},reset:()=>{e.forEach((e=>e.forEach(t))),A(e)}}})()),e})(),{state:L}=F,E={refresh:()=>{const e=C.map((()=>Math.floor(100*Math.random())));L.count=L.count+1,L.values=e},reset:()=>{L.count=0,L.values=[...C]},updatePick:e=>{L.pick=e}},S=r=>{const{actions:t,state:n}=r,{pick:i}=n;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},O.map((r=>{const n=(e=>j[e]||z[e])(r);return e("div",{"aria-label":r,role:"radio",title:r,onClick:()=>{t.updatePick(r)}},e(a,{hex:n,selected:i==r}))})))},N=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"chevron-double-left"),e("g",{fill:t},e("path",{d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},I=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"close"),e("g",{fill:t},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},$=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"refresh"),e("g",{fill:t},e("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99\n 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65\n 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35\n 2.35z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},U=r=>{const{actions:t,state:n}=r,{count:a}=n;return e("div",{class:"mt-3 mb-10px flex items-center"},e("button",{"aria-label":"Refresh",title:"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{t.refresh()}},e($,null)),e("button",{"aria-label":"Reset",title:"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{t.reset()}},e(I,null)),e("span",{class:"flex items-center"},e(N,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},B=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.0.23"),H=r=>{const{state:t}=r,{values:n,pick:a,count:i}=t;return e("div",{class:"flex"},e("div",{class:"flex flex-col"},e("div",{class:"flex"},e("span",{class:"mr-10px font-bold"},"color:"),e("span",{class:"italic text-clrs-slate4"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?n:"..."}`))),e(B,null))},R=r=>{const t=r.hex||"currentColor",n=r.size||24;return e("svg",{class:r.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,r.label||"fingerprint"),e("g",{fill:t},e("path",{d:"M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3\n 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97\n 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47\n 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47\n 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16\n 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03\n 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44\n 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23\n 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25\n 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74\n 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27\n 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69\n 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1\n 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24\n 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15\n 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79\n 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04\n 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1\n 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93\n 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96\n 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94\n 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95\n 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72\n 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6\n 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83\n 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62\n 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82\n 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16\n 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82\n 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59\n 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71\n 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96\n 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36\n 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))},P=()=>e("a",{class:"absolute top-8 right-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":"eswat2",title:"eswat2"},e(R,{label:"eswat2"})),D=class{constructor(e){n(this,e),this.tag="proto-tinker"}render(){return e("div",{id:"app",class:"ds1-main"},e(P,null),e(U,{actions:E,state:L}),e(S,{actions:E,state:L}),e("hr",{class:"mr-0 ml-0"}),e(H,{state:L}))}};D.style="*,::before,::after{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{D as proto_tinker}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let t,e,n=!1,l=null,s=!1;const o="undefined"!=typeof window?window:{},r=o.document||{head:{}},i={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),a=new WeakMap,f=t=>"sc-"+t.o,h={},p=t=>"object"==(t=typeof t)||"function"===t,$=(t,e,...n)=>{let l=null,s=!1,o=!1,r=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!p(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?y(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,r,
|
|
1
|
+
let t,e,n=!1,l=null,s=!1;const o="undefined"!=typeof window?window:{},r=o.document||{head:{}},i={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),a=new WeakMap,f=t=>"sc-"+t.o,h={},p=t=>"object"==(t=typeof t)||"function"===t,$=(t,e,...n)=>{let l=null,s=!1,o=!1,r=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!p(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?y(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,r,d);const c=y(t,null);return c.u=e,r.length>0&&(c.h=r),c},y=(t,e)=>({t:0,p:t,i:e,$:null,h:null,u:null}),m={},d={forEach:(t,e)=>t.map(w).forEach(e),map:(t,e)=>t.map(w).map(e).map(b)},w=t=>({vattrs:t.u,vchildren:t.h,vkey:t.m,vname:t.g,vtag:t.p,vtext:t.i}),b=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),$(t.vtag,e,...t.vchildren||[])}const e=y(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.m=t.vkey,e.g=t.vname,e},g=(t,e,n,l,s,r)=>{if(n!==l){let c=G(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,s=j(n),o=j(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if(c||"o"!==e[0]||"n"!==e[1]){const o=p(l);if((c||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!c||4&r||s)&&!o&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):G(o,u)?u.slice(2):u[2]+e.slice(3),n&&i.rel(t,e,n,!1),l&&i.ael(t,e,l,!1)}},v=/\s/,j=t=>t?t.split(v):[],S=(t,e,n,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,o=t&&t.u||h,r=e.u||h;for(l in o)l in r||g(s,l,o[l],void 0,n,e.t);for(l in r)g(s,l,o[l],r[l],n,e.t)},O=(e,l,s)=>{let o,i,c=l.h[s],u=0;if(null!==c.i)o=c.$=r.createTextNode(c.i);else{if(n||(n="svg"===c.p),o=c.$=r.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.p),n&&"foreignObject"===c.p&&(n=!1),S(null,c,n),null!=t&&o["s-si"]!==t&&o.classList.add(o["s-si"]=t),c.h)for(u=0;u<c.h.length;++u)i=O(e,c,u),i&&o.appendChild(i);"svg"===c.p?n=!1:"foreignObject"===o.tagName&&(n=!0)}return o},k=(t,n,l,s,o,r)=>{let i,c=t;for(c.shadowRoot&&c.tagName===e&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].$=i,c.insertBefore(i,n)))},M=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.$.remove()},C=(t,e)=>t.p===e.p,x=(t,e)=>{const l=e.$=t.$,s=t.h,o=e.h,r=e.p,i=e.i;null===i?(n="svg"===r||"foreignObject"!==r&&n,S(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,i=e.length-1,c=e[0],u=e[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=e[++o]:null==u?u=e[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=e[++o],f=l[++r]):C(u,h)?(x(u,h),u=e[--i],h=l[--a]):C(c,h)?(x(c,h),t.insertBefore(c.$,u.$.nextSibling),c=e[++o],h=l[--a]):C(u,f)?(x(u,f),t.insertBefore(u.$,c.$),u=e[--i],f=l[++r]):(s=O(e&&e[r],n,r),f=l[++r],s&&c.$.parentNode.insertBefore(s,c.$));o>i?k(t,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&M(e,o,i)})(l,s,e,o):null!==o?(null!==t.i&&(l.textContent=""),k(l,null,e,o,0,o.length-1)):null!==s&&M(s,0,s.length-1),n&&"svg"===r&&(n=!1)):t.i!==i&&(l.data=i)},E=(t,e)=>{e&&!t.v&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.v=e)))},P=(t,e)=>{if(t.t|=16,!(4&t.t))return E(t,t.j),lt((()=>N(t,e)));t.t|=512},N=(t,e)=>{const n=t.S;return q(void 0,(()=>T(t,n,e)))},T=async(t,e,n)=>{const l=t.O,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.O,l=e.t,s=((t,e)=>{let n=f(e),l=Q.get(n);if(t=11===t.nodeType?t:r,l)if("string"==typeof l){let e,s=a.get(t=t.head||t);s||a.set(t,s=new Set),s.has(n)||(e=r.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);A(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>R(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},A=(n,s)=>{try{l=s,s=s.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.O,o=n.M||y(null,null),r=(t=>t&&t.p===m)(l)?l:$(null,null,l);e=s.tagName,r.p=null,r.t|=4,n.M=r,r.$=o.$=s.shadowRoot||s,t=s["s-sc"],x(o,r)})(n,s)}catch(t){I(t,n.O)}return l=null,null},L=()=>l,R=t=>{const e=t.O,n=t.j;64&t.t||(t.t|=64,F(e),t.C(e),n||W()),t.v&&(t.v(),t.v=void 0),512&t.t&&nt((()=>P(t,!1))),t.t&=-517},U=t=>{{const e=z(t),n=e.O.isConnected;return n&&2==(18&e.t)&&P(e,!1),n}},W=()=>{F(r.documentElement),nt((()=>(t=>{const e=i.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return t.dispatchEvent(e),e})(o)))},q=(t,e)=>t&&t.then?t.then(e):e(),F=t=>t.classList.add("hydrated"),H=(t,e,n)=>{if(e.P){const l=Object.entries(e.P),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>z(this).N.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=z(t),o=s.N.get(e),r=s.t,i=s.S;n=((t,e)=>null==t||p(t)?t:1&e?t+"":t)(n,l.P[e][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.N.set(e,n),i&&2==(18&r)&&P(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){i.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},V=(t,e={})=>{const n=[],l=e.exclude||[],s=o.customElements,c=r.head,a=c.querySelector("meta[charset]"),h=r.createElement("style"),p=[];let $,y=!0;Object.assign(i,e),i.l=new URL(e.resourcesUrl||"./",r.baseURI).href,t.map((t=>{t[1].map((e=>{const o={t:e[0],o:e[1],P:e[2],T:e[3]};o.P=e[2];const r=o.o,c=class extends HTMLElement{constructor(t){super(t),D(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),y?p.push(this):i.jmp((()=>(t=>{if(0==(1&i.t)){const e=z(t),n=e.k,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(e,e.j=n);break}}n.P&&Object.entries(n.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=K(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(H(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){I(t)}e.t&=-9,t()}if(s.style){let t=s.style;const e=f(n);if(!Q.has(e)){const l=()=>{};((t,e,n)=>{let l=Q.get(t);u&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,Q.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.j,r=()=>P(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){i.jmp((()=>{}))}componentOnReady(){return z(this).A}};o.L=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,H(c,o,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),c.insertBefore(h,a?a.nextSibling:c.firstChild),y=!1,p.length?p.map((t=>t.connectedCallback())):i.jmp((()=>$=setTimeout(W,30)))},_=new WeakMap,z=t=>_.get(t),B=(t,e)=>_.set(e.S=t,e),D=(t,e)=>{const n={t:0,O:t,k:e,N:new Map};return n.A=new Promise((t=>n.C=t)),t["s-p"]=[],t["s-rc"]=[],_.set(t,n)},G=(t,e)=>e in t,I=(t,e)=>(0,console.error)(t,e),J=new Map,K=t=>{const e=t.o.replace(/-/g,"_"),n=t.L,l=J.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(J.set(n,t),t[e])),I)},Q=new Map,X=[],Y=[],Z=(t,e)=>n=>{t.push(n),s||(s=!0,e&&4&i.t?nt(et):i.raf(et))},tt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){I(t)}t.length=0},et=()=>{tt(X),tt(Y),(s=X.length>0)&&i.raf(et)},nt=t=>c().then(t),lt=Z(Y,!0);export{V as b,U as f,L as g,$ as h,c as p,B as r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,b as t}from"./p-
|
|
1
|
+
import{p as r,b as t}from"./p-478fdd60.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),r(o)})().then((r=>t([["p-18b8d7c7",[[1,"proto-tinker",{tag:[1]}]]]],r)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-tinker-wc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"description": "prototype - simple demo built from Stencil & Tailwind",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"format": "prettier --write src"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@stencil/core": "2.14.
|
|
31
|
+
"@stencil/core": "2.14.1",
|
|
32
32
|
"@stencil/store": "1.5.0",
|
|
33
33
|
"between.js": "0.1.2-fix.2"
|
|
34
34
|
},
|