proto-tinker-wc 0.0.577 → 0.0.578

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.
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-tinker-wc';
24
24
  const BUILD = /* proto-tinker-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -204,20 +204,6 @@ var unwrapErr = (result) => {
204
204
  throw result.value;
205
205
  }
206
206
  };
207
- var createTime = (fnName, tagName = "") => {
208
- {
209
- return () => {
210
- return;
211
- };
212
- }
213
- };
214
- var uniqueTime = (key, measureText) => {
215
- {
216
- return () => {
217
- return;
218
- };
219
- }
220
- };
221
207
  var h = (nodeName, vnodeData, ...children) => {
222
208
  let child = null;
223
209
  let key = null;
@@ -319,110 +305,6 @@ var convertToPrivate = (node) => {
319
305
  vnode.$name$ = node.vname;
320
306
  return vnode;
321
307
  };
322
- var parsePropertyValue = (propValue, propType) => {
323
- if (propValue != null && !isComplexType(propValue)) {
324
- if (propType & 1 /* String */) {
325
- return String(propValue);
326
- }
327
- return propValue;
328
- }
329
- return propValue;
330
- };
331
- var emitEvent = (elm, name, opts) => {
332
- const ev = plt.ce(name, opts);
333
- elm.dispatchEvent(ev);
334
- return ev;
335
- };
336
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
337
- var registerStyle = (scopeId2, cssText, allowCS) => {
338
- let style = styles.get(scopeId2);
339
- if (supportsConstructableStylesheets && allowCS) {
340
- style = style || new CSSStyleSheet();
341
- if (typeof style === "string") {
342
- style = cssText;
343
- } else {
344
- style.replaceSync(cssText);
345
- }
346
- } else {
347
- style = cssText;
348
- }
349
- styles.set(scopeId2, style);
350
- };
351
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
352
- var _a;
353
- const scopeId2 = getScopeId(cmpMeta);
354
- const style = styles.get(scopeId2);
355
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
356
- if (style) {
357
- if (typeof style === "string") {
358
- styleContainerNode = styleContainerNode.head || styleContainerNode;
359
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
360
- let styleElm;
361
- if (!appliedStyles) {
362
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
363
- }
364
- if (!appliedStyles.has(scopeId2)) {
365
- {
366
- styleElm = doc.createElement("style");
367
- styleElm.innerHTML = style;
368
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
369
- if (nonce != null) {
370
- styleElm.setAttribute("nonce", nonce);
371
- }
372
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
373
- if (styleContainerNode.nodeName === "HEAD") {
374
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
375
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
376
- styleContainerNode.insertBefore(styleElm, referenceNode2);
377
- } else if ("host" in styleContainerNode) {
378
- if (supportsConstructableStylesheets) {
379
- const stylesheet = new CSSStyleSheet();
380
- stylesheet.replaceSync(style);
381
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
382
- } else {
383
- const existingStyleContainer = styleContainerNode.querySelector("style");
384
- if (existingStyleContainer) {
385
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
386
- } else {
387
- styleContainerNode.prepend(styleElm);
388
- }
389
- }
390
- } else {
391
- styleContainerNode.append(styleElm);
392
- }
393
- }
394
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
395
- styleContainerNode.insertBefore(styleElm, null);
396
- }
397
- }
398
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
399
- styleElm.innerHTML += SLOT_FB_CSS;
400
- }
401
- if (appliedStyles) {
402
- appliedStyles.add(scopeId2);
403
- }
404
- }
405
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
406
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
407
- }
408
- }
409
- return scopeId2;
410
- };
411
- var attachStyles = (hostRef) => {
412
- const cmpMeta = hostRef.$cmpMeta$;
413
- const elm = hostRef.$hostElement$;
414
- const flags = cmpMeta.$flags$;
415
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
416
- const scopeId2 = addStyle(
417
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
418
- cmpMeta);
419
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
420
- elm["s-sc"] = scopeId2;
421
- elm.classList.add(scopeId2 + "-h");
422
- }
423
- endAttachStyles();
424
- };
425
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
426
308
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
427
309
  if (oldValue !== newValue) {
428
310
  let isProp = isMemberInElement(elm, memberName);
@@ -431,6 +313,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
431
313
  const classList = elm.classList;
432
314
  const oldClasses = parseClassList(oldValue);
433
315
  const newClasses = parseClassList(newValue);
316
+ if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
317
+ newClasses.push(elm["s-si"]);
318
+ }
434
319
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
435
320
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
436
321
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
@@ -750,6 +635,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
750
635
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
751
636
  patch(oldVNode, rootVnode, isInitialLoad);
752
637
  };
638
+ var createTime = (fnName, tagName = "") => {
639
+ {
640
+ return () => {
641
+ return;
642
+ };
643
+ }
644
+ };
645
+ var uniqueTime = (key, measureText) => {
646
+ {
647
+ return () => {
648
+ return;
649
+ };
650
+ }
651
+ };
652
+ var parsePropertyValue = (propValue, propType) => {
653
+ if (propValue != null && !isComplexType(propValue)) {
654
+ if (propType & 1 /* String */) {
655
+ return String(propValue);
656
+ }
657
+ return propValue;
658
+ }
659
+ return propValue;
660
+ };
661
+ var emitEvent = (elm, name, opts) => {
662
+ const ev = plt.ce(name, opts);
663
+ elm.dispatchEvent(ev);
664
+ return ev;
665
+ };
666
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
667
+ var registerStyle = (scopeId2, cssText, allowCS) => {
668
+ let style = styles.get(scopeId2);
669
+ if (supportsConstructableStylesheets && allowCS) {
670
+ style = style || new CSSStyleSheet();
671
+ if (typeof style === "string") {
672
+ style = cssText;
673
+ } else {
674
+ style.replaceSync(cssText);
675
+ }
676
+ } else {
677
+ style = cssText;
678
+ }
679
+ styles.set(scopeId2, style);
680
+ };
681
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
682
+ var _a;
683
+ const scopeId2 = getScopeId(cmpMeta);
684
+ const style = styles.get(scopeId2);
685
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
686
+ if (style) {
687
+ if (typeof style === "string") {
688
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
689
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
690
+ let styleElm;
691
+ if (!appliedStyles) {
692
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
693
+ }
694
+ if (!appliedStyles.has(scopeId2)) {
695
+ {
696
+ styleElm = doc.createElement("style");
697
+ styleElm.innerHTML = style;
698
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
699
+ if (nonce != null) {
700
+ styleElm.setAttribute("nonce", nonce);
701
+ }
702
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
703
+ if (styleContainerNode.nodeName === "HEAD") {
704
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
705
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
706
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
707
+ } else if ("host" in styleContainerNode) {
708
+ if (supportsConstructableStylesheets) {
709
+ const stylesheet = new CSSStyleSheet();
710
+ stylesheet.replaceSync(style);
711
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
712
+ } else {
713
+ const existingStyleContainer = styleContainerNode.querySelector("style");
714
+ if (existingStyleContainer) {
715
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
716
+ } else {
717
+ styleContainerNode.prepend(styleElm);
718
+ }
719
+ }
720
+ } else {
721
+ styleContainerNode.append(styleElm);
722
+ }
723
+ }
724
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
725
+ styleContainerNode.insertBefore(styleElm, null);
726
+ }
727
+ }
728
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
729
+ styleElm.innerHTML += SLOT_FB_CSS;
730
+ }
731
+ if (appliedStyles) {
732
+ appliedStyles.add(scopeId2);
733
+ }
734
+ }
735
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
736
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
737
+ }
738
+ }
739
+ return scopeId2;
740
+ };
741
+ var attachStyles = (hostRef) => {
742
+ const cmpMeta = hostRef.$cmpMeta$;
743
+ const elm = hostRef.$hostElement$;
744
+ const flags = cmpMeta.$flags$;
745
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
746
+ const scopeId2 = addStyle(
747
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
748
+ cmpMeta);
749
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
750
+ elm["s-sc"] = scopeId2;
751
+ elm.classList.add(scopeId2 + "-h");
752
+ }
753
+ endAttachStyles();
754
+ };
755
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
753
756
 
754
757
  // src/runtime/update-component.ts
755
758
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -941,16 +944,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
941
944
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
942
945
  members.map(([memberName, [memberFlags]]) => {
943
946
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
944
- Object.defineProperty(prototype, memberName, {
945
- get() {
946
- return getValue(this, memberName);
947
- },
948
- set(newValue) {
949
- setValue(this, memberName, newValue, cmpMeta);
950
- },
951
- configurable: true,
952
- enumerable: true
953
- });
947
+ if ((memberFlags & 2048 /* Getter */) === 0) {
948
+ Object.defineProperty(prototype, memberName, {
949
+ get() {
950
+ return getValue(this, memberName);
951
+ },
952
+ set(newValue) {
953
+ setValue(this, memberName, newValue, cmpMeta);
954
+ },
955
+ configurable: true,
956
+ enumerable: true
957
+ });
958
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
959
+ {
960
+ Object.defineProperty(prototype, memberName, {
961
+ get() {
962
+ const ref = getHostRef(this);
963
+ const instance = ref ? ref.$lazyInstance$ : prototype;
964
+ if (!instance) return;
965
+ return instance[memberName];
966
+ },
967
+ configurable: true,
968
+ enumerable: true
969
+ });
970
+ }
971
+ if (memberFlags & 4096 /* Setter */) {
972
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
973
+ Object.defineProperty(prototype, memberName, {
974
+ set(newValue) {
975
+ const ref = getHostRef(this);
976
+ if (origSetter) {
977
+ const currentValue = ref.$hostElement$[memberName];
978
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
979
+ ref.$instanceValues$.set(memberName, currentValue);
980
+ }
981
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
982
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
983
+ return;
984
+ }
985
+ if (!ref) return;
986
+ const setterSetVal = () => {
987
+ const currentValue = ref.$lazyInstance$[memberName];
988
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
989
+ ref.$instanceValues$.set(memberName, currentValue);
990
+ }
991
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
992
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
993
+ };
994
+ if (ref.$lazyInstance$) {
995
+ setterSetVal();
996
+ } else {
997
+ ref.$onReadyPromise$.then(() => setterSetVal());
998
+ }
999
+ }
1000
+ });
1001
+ }
1002
+ }
954
1003
  }
955
1004
  });
956
1005
  if ((flags & 1 /* isElementConstructor */)) {
@@ -979,7 +1028,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
979
1028
  }
980
1029
  return;
981
1030
  }
982
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1031
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1032
+ if (!propDesc.get || !!propDesc.set) {
1033
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1034
+ }
983
1035
  });
984
1036
  };
985
1037
  Cstr.observedAttributes = Array.from(
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-dc708e24.js');
5
+ const index = require('./index-27cc937a.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-dc708e24.js');
5
+ const index = require('./index-27cc937a.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  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-dc708e24.js');
5
+ const index = require('./index-27cc937a.js');
6
6
 
7
7
  const Radio = props => {
8
8
  const hex = props.hex || 'currentColor';
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.23.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -43,6 +43,8 @@ export class ProtoTinker {
43
43
  "tags": [],
44
44
  "text": ""
45
45
  },
46
+ "getter": false,
47
+ "setter": false,
46
48
  "attribute": "tag",
47
49
  "reflect": false,
48
50
  "defaultValue": "'proto-tinker'"
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-tinker-wc';
2
2
  const BUILD = /* proto-tinker-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -182,20 +182,6 @@ var unwrapErr = (result) => {
182
182
  throw result.value;
183
183
  }
184
184
  };
185
- var createTime = (fnName, tagName = "") => {
186
- {
187
- return () => {
188
- return;
189
- };
190
- }
191
- };
192
- var uniqueTime = (key, measureText) => {
193
- {
194
- return () => {
195
- return;
196
- };
197
- }
198
- };
199
185
  var h = (nodeName, vnodeData, ...children) => {
200
186
  let child = null;
201
187
  let key = null;
@@ -297,110 +283,6 @@ var convertToPrivate = (node) => {
297
283
  vnode.$name$ = node.vname;
298
284
  return vnode;
299
285
  };
300
- var parsePropertyValue = (propValue, propType) => {
301
- if (propValue != null && !isComplexType(propValue)) {
302
- if (propType & 1 /* String */) {
303
- return String(propValue);
304
- }
305
- return propValue;
306
- }
307
- return propValue;
308
- };
309
- var emitEvent = (elm, name, opts) => {
310
- const ev = plt.ce(name, opts);
311
- elm.dispatchEvent(ev);
312
- return ev;
313
- };
314
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
315
- var registerStyle = (scopeId2, cssText, allowCS) => {
316
- let style = styles.get(scopeId2);
317
- if (supportsConstructableStylesheets && allowCS) {
318
- style = style || new CSSStyleSheet();
319
- if (typeof style === "string") {
320
- style = cssText;
321
- } else {
322
- style.replaceSync(cssText);
323
- }
324
- } else {
325
- style = cssText;
326
- }
327
- styles.set(scopeId2, style);
328
- };
329
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
330
- var _a;
331
- const scopeId2 = getScopeId(cmpMeta);
332
- const style = styles.get(scopeId2);
333
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
334
- if (style) {
335
- if (typeof style === "string") {
336
- styleContainerNode = styleContainerNode.head || styleContainerNode;
337
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
338
- let styleElm;
339
- if (!appliedStyles) {
340
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
341
- }
342
- if (!appliedStyles.has(scopeId2)) {
343
- {
344
- styleElm = doc.createElement("style");
345
- styleElm.innerHTML = style;
346
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
347
- if (nonce != null) {
348
- styleElm.setAttribute("nonce", nonce);
349
- }
350
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
351
- if (styleContainerNode.nodeName === "HEAD") {
352
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
353
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
354
- styleContainerNode.insertBefore(styleElm, referenceNode2);
355
- } else if ("host" in styleContainerNode) {
356
- if (supportsConstructableStylesheets) {
357
- const stylesheet = new CSSStyleSheet();
358
- stylesheet.replaceSync(style);
359
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
360
- } else {
361
- const existingStyleContainer = styleContainerNode.querySelector("style");
362
- if (existingStyleContainer) {
363
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
364
- } else {
365
- styleContainerNode.prepend(styleElm);
366
- }
367
- }
368
- } else {
369
- styleContainerNode.append(styleElm);
370
- }
371
- }
372
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
373
- styleContainerNode.insertBefore(styleElm, null);
374
- }
375
- }
376
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
377
- styleElm.innerHTML += SLOT_FB_CSS;
378
- }
379
- if (appliedStyles) {
380
- appliedStyles.add(scopeId2);
381
- }
382
- }
383
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
384
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
385
- }
386
- }
387
- return scopeId2;
388
- };
389
- var attachStyles = (hostRef) => {
390
- const cmpMeta = hostRef.$cmpMeta$;
391
- const elm = hostRef.$hostElement$;
392
- const flags = cmpMeta.$flags$;
393
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
394
- const scopeId2 = addStyle(
395
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
396
- cmpMeta);
397
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
398
- elm["s-sc"] = scopeId2;
399
- elm.classList.add(scopeId2 + "-h");
400
- }
401
- endAttachStyles();
402
- };
403
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
404
286
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
405
287
  if (oldValue !== newValue) {
406
288
  let isProp = isMemberInElement(elm, memberName);
@@ -409,6 +291,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
409
291
  const classList = elm.classList;
410
292
  const oldClasses = parseClassList(oldValue);
411
293
  const newClasses = parseClassList(newValue);
294
+ if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
295
+ newClasses.push(elm["s-si"]);
296
+ }
412
297
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
413
298
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
414
299
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
@@ -728,6 +613,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
728
613
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
729
614
  patch(oldVNode, rootVnode, isInitialLoad);
730
615
  };
616
+ var createTime = (fnName, tagName = "") => {
617
+ {
618
+ return () => {
619
+ return;
620
+ };
621
+ }
622
+ };
623
+ var uniqueTime = (key, measureText) => {
624
+ {
625
+ return () => {
626
+ return;
627
+ };
628
+ }
629
+ };
630
+ var parsePropertyValue = (propValue, propType) => {
631
+ if (propValue != null && !isComplexType(propValue)) {
632
+ if (propType & 1 /* String */) {
633
+ return String(propValue);
634
+ }
635
+ return propValue;
636
+ }
637
+ return propValue;
638
+ };
639
+ var emitEvent = (elm, name, opts) => {
640
+ const ev = plt.ce(name, opts);
641
+ elm.dispatchEvent(ev);
642
+ return ev;
643
+ };
644
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
645
+ var registerStyle = (scopeId2, cssText, allowCS) => {
646
+ let style = styles.get(scopeId2);
647
+ if (supportsConstructableStylesheets && allowCS) {
648
+ style = style || new CSSStyleSheet();
649
+ if (typeof style === "string") {
650
+ style = cssText;
651
+ } else {
652
+ style.replaceSync(cssText);
653
+ }
654
+ } else {
655
+ style = cssText;
656
+ }
657
+ styles.set(scopeId2, style);
658
+ };
659
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
660
+ var _a;
661
+ const scopeId2 = getScopeId(cmpMeta);
662
+ const style = styles.get(scopeId2);
663
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
664
+ if (style) {
665
+ if (typeof style === "string") {
666
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
667
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
668
+ let styleElm;
669
+ if (!appliedStyles) {
670
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
671
+ }
672
+ if (!appliedStyles.has(scopeId2)) {
673
+ {
674
+ styleElm = doc.createElement("style");
675
+ styleElm.innerHTML = style;
676
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
677
+ if (nonce != null) {
678
+ styleElm.setAttribute("nonce", nonce);
679
+ }
680
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
681
+ if (styleContainerNode.nodeName === "HEAD") {
682
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
683
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
684
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
685
+ } else if ("host" in styleContainerNode) {
686
+ if (supportsConstructableStylesheets) {
687
+ const stylesheet = new CSSStyleSheet();
688
+ stylesheet.replaceSync(style);
689
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
690
+ } else {
691
+ const existingStyleContainer = styleContainerNode.querySelector("style");
692
+ if (existingStyleContainer) {
693
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
694
+ } else {
695
+ styleContainerNode.prepend(styleElm);
696
+ }
697
+ }
698
+ } else {
699
+ styleContainerNode.append(styleElm);
700
+ }
701
+ }
702
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
703
+ styleContainerNode.insertBefore(styleElm, null);
704
+ }
705
+ }
706
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
707
+ styleElm.innerHTML += SLOT_FB_CSS;
708
+ }
709
+ if (appliedStyles) {
710
+ appliedStyles.add(scopeId2);
711
+ }
712
+ }
713
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
714
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
715
+ }
716
+ }
717
+ return scopeId2;
718
+ };
719
+ var attachStyles = (hostRef) => {
720
+ const cmpMeta = hostRef.$cmpMeta$;
721
+ const elm = hostRef.$hostElement$;
722
+ const flags = cmpMeta.$flags$;
723
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
724
+ const scopeId2 = addStyle(
725
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
726
+ cmpMeta);
727
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
728
+ elm["s-sc"] = scopeId2;
729
+ elm.classList.add(scopeId2 + "-h");
730
+ }
731
+ endAttachStyles();
732
+ };
733
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
731
734
 
732
735
  // src/runtime/update-component.ts
733
736
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -919,16 +922,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
919
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
920
923
  members.map(([memberName, [memberFlags]]) => {
921
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
922
- Object.defineProperty(prototype, memberName, {
923
- get() {
924
- return getValue(this, memberName);
925
- },
926
- set(newValue) {
927
- setValue(this, memberName, newValue, cmpMeta);
928
- },
929
- configurable: true,
930
- enumerable: true
931
- });
925
+ if ((memberFlags & 2048 /* Getter */) === 0) {
926
+ Object.defineProperty(prototype, memberName, {
927
+ get() {
928
+ return getValue(this, memberName);
929
+ },
930
+ set(newValue) {
931
+ setValue(this, memberName, newValue, cmpMeta);
932
+ },
933
+ configurable: true,
934
+ enumerable: true
935
+ });
936
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
937
+ {
938
+ Object.defineProperty(prototype, memberName, {
939
+ get() {
940
+ const ref = getHostRef(this);
941
+ const instance = ref ? ref.$lazyInstance$ : prototype;
942
+ if (!instance) return;
943
+ return instance[memberName];
944
+ },
945
+ configurable: true,
946
+ enumerable: true
947
+ });
948
+ }
949
+ if (memberFlags & 4096 /* Setter */) {
950
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
951
+ Object.defineProperty(prototype, memberName, {
952
+ set(newValue) {
953
+ const ref = getHostRef(this);
954
+ if (origSetter) {
955
+ const currentValue = ref.$hostElement$[memberName];
956
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
957
+ ref.$instanceValues$.set(memberName, currentValue);
958
+ }
959
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
960
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
961
+ return;
962
+ }
963
+ if (!ref) return;
964
+ const setterSetVal = () => {
965
+ const currentValue = ref.$lazyInstance$[memberName];
966
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
967
+ ref.$instanceValues$.set(memberName, currentValue);
968
+ }
969
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
970
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
971
+ };
972
+ if (ref.$lazyInstance$) {
973
+ setterSetVal();
974
+ } else {
975
+ ref.$onReadyPromise$.then(() => setterSetVal());
976
+ }
977
+ }
978
+ });
979
+ }
980
+ }
932
981
  }
933
982
  });
934
983
  if ((flags & 1 /* isElementConstructor */)) {
@@ -957,7 +1006,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
957
1006
  }
958
1007
  return;
959
1008
  }
960
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1009
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1010
+ if (!propDesc.get || !!propDesc.set) {
1011
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1012
+ }
961
1013
  });
962
1014
  };
963
1015
  Cstr.observedAttributes = Array.from(
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-d7741e33.js';
2
- export { s as setNonce } from './index-d7741e33.js';
1
+ import { b as bootstrapLazy } from './index-d05c77c7.js';
2
+ export { s as setNonce } from './index-d05c77c7.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-d7741e33.js';
2
- export { s as setNonce } from './index-d7741e33.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d05c77c7.js';
2
+ export { s as setNonce } from './index-d05c77c7.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-d7741e33.js';
1
+ import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-d05c77c7.js';
2
2
 
3
3
  const Radio = props => {
4
4
  const hex = props.hex || 'currentColor';
@@ -1 +1 @@
1
- import{h as e,g as t,f as r,r as a}from"./p-41539f88.js";const n=t=>{const r=t.hex||"currentColor",a=t.selected||!1,n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"radio")," ",e("g",{fill:r},e("path",a?{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"}))};var i={exports:{}},o={exports:{}},l=Array.prototype.concat,s=Array.prototype.slice,u=o.exports=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var n=e[r];(i=n)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?t=l.call(t,s.call(n)):t.push(n)}var i;return t};u.wrap=function(e){return function(){return e(u(arguments))}};var c={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]},h=o.exports,f=Object.hasOwnProperty,d=Object.create(null);for(var g in c)f.call(c,g)&&(d[c[g]]=g);var b=i.exports={to:{},get:{}};function p(e,t,r){return Math.min(Math.max(t,e),r)}function v(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}b.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=b.get.hsl(e),r="hsl";break;case"hwb":t=b.get.hwb(e),r="hwb";break;default:t=b.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},b.get.rgb=function(e){if(!e)return null;var t,r,a,n=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],r=0;r<3;r++){var i=2*r;n[r]=parseInt(t.slice(i,i+2),16)}a&&(n[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],r=0;r<3;r++)n[r]=parseInt(t[r]+t[r],16);a&&(n[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(r=0;r<3;r++)n[r]=parseInt(t[r+1],0);t[4]&&(n[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]:f.call(c,t[1])?((n=c[t[1]])[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(n[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(r=0;r<3;r++)n[r]=p(n[r],0,255);return n[3]=p(n[3],0,1),n},b.get.hsl=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.get.hwb=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.to.hex=function(){var e=h(arguments);return"#"+v(e[0])+v(e[1])+v(e[2])+(e[3]<1?v(Math.round(255*e[3])):"")},b.to.rgb=function(){var e=h(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]+")"},b.to.rgb.percent=function(){var e=h(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+a+"%)":"rgba("+t+"%, "+r+"%, "+a+"%, "+e[3]+")"},b.to.hsl=function(){var e=h(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},b.to.hwb=function(){var e=h(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},b.to.keyword=function(e){return d[e.slice(0,3)]};var w={exports:{}},m={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]},y={};for(var k in m)m.hasOwnProperty(k)&&(y[m[k]]=k);var M=w.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 x in M)if(M.hasOwnProperty(x)){if(!("channels"in M[x]))throw new Error("missing channels property: "+x);if(!("labels"in M[x]))throw new Error("missing channel labels property: "+x);if(M[x].labels.length!==M[x].channels)throw new Error("channel and label counts mismatch: "+x);var C=M[x].channels,j=M[x].labels;delete M[x].channels,delete M[x].labels,Object.defineProperty(M[x],"channels",{value:C}),Object.defineProperty(M[x],"labels",{value:j})}M.rgb.hsl=function(e){var t,r,a=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(a,n,i),l=Math.max(a,n,i),s=l-o;return l===o?t=0:a===l?t=(n-i)/s:n===l?t=2+(i-a)/s:i===l&&(t=4+(a-n)/s),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+l)/2,[t,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]},M.rgb.hsv=function(e){var t,r,a,n,i,o=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),h=function(e){return(u-e)/6/c+.5};return 0===c?n=i=0:(i=c/u,t=h(o),r=h(l),a=h(s),o===u?n=a-r:l===u?n=1/3+t-a:s===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*i,100*u]},M.rgb.hwb=function(e){var t=e[0],r=e[1],a=e[2];return[M.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]},M.rgb.cmyk=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-a,1-n)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},M.rgb.keyword=function(e){var t=y[e];if(t)return t;var r,a,n,i=1/0;for(var o in m)if(m.hasOwnProperty(o)){var l=(a=e,n=m[o],Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)+Math.pow(a[2]-n[2],2));l<i&&(i=l,r=o)}return r},M.keyword.rgb=function(e){return m[e]},M.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*r+.0722*a),100*(.0193*t+.1192*r+.9505*a)]},M.rgb.lab=function(e){var t=M.rgb.xyz(e),r=t[0],a=t[1],n=t[2];return a/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(r-a),200*(a-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},M.hsl.rgb=function(e){var t,r,a,n,i,o=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(r=s<.5?s*(1+l):s+l-s*l),n=[0,0,0];for(var u=0;u<3;u++)(a=o+1/3*-(u-1))<0&&a++,a>1&&a--,n[u]=255*(i=6*a<1?t+6*(r-t)*a:2*a<1?r:3*a<2?t+(r-t)*(2/3-a)*6:t);return n},M.hsl.hsv=function(e){var t=e[0],r=e[1]/100,a=e[2]/100,n=r,i=Math.max(a,.01);return r*=(a*=2)<=1?a:2-a,n*=i<=1?i:2-i,[t,100*(0===a?2*n/(i+n):2*r/(a+r)),(a+r)/2*100]},M.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,a=e[2]/100,n=Math.floor(t)%6,i=t-Math.floor(t),o=255*a*(1-r),l=255*a*(1-r*i),s=255*a*(1-r*(1-i));switch(a*=255,n){case 0:return[a,s,o];case 1:return[l,a,o];case 2:return[o,a,s];case 3:return[o,l,a];case 4:return[s,o,a];case 5:return[a,o,l]}},M.hsv.hsl=function(e){var t,r,a,n=e[0],i=e[1]/100,o=e[2]/100,l=Math.max(o,.01);return a=(2-i)*o,r=i*l,[n,100*(r=(r/=(t=(2-i)*l)<=1?t:2-t)||0),100*(a/=2)]},M.hwb.rgb=function(e){var t,r,a,n,i,o,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),a=6*s-(t=Math.floor(6*s)),1&t&&(a=1-a),n=u+a*((r=1-c)-u),t){default:case 6:case 0:i=r,o=n,l=u;break;case 1:i=n,o=r,l=u;break;case 2:i=u,o=r,l=n;break;case 3:i=u,o=n,l=r;break;case 4:i=n,o=u,l=r;break;case 5:i=r,o=u,l=n}return[255*i,255*o,255*l]},M.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},M.xyz.rgb=function(e){var t,r,a,n=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*n+1.8758*i+.0415*o,a=.0557*n+-.204*i+1.057*o,t=(t=3.2406*n+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(a=Math.min(Math.max(0,a),1))]},M.xyz.lab=function(e){var t=e[0],r=e[1],a=e[2];return r/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},M.lab.xyz=function(e){var t,r,a;t=e[1]/500+(r=(e[0]+16)/116),a=r-e[2]/200;var n=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(a,3);return r=n>.008856?n:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=o>.008856?o:(a-16/116)/7.787,[t*=95.047,r*=100,a*=108.883]},M.lab.lch=function(e){var t,r=e[0],a=e[1],n=e[2];return(t=360*Math.atan2(n,a)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(a*a+n*n),t]},M.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},M.rgb.ansi16=function(e){var t=e[0],r=e[1],a=e[2],n=1 in arguments?arguments[1]:M.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===n&&(i+=60),i},M.hsv.ansi16=function(e){return M.rgb.ansi16(M.hsv.rgb(e),e[2])},M.rgb.ansi256=function(e){var t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},M.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},M.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},M.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},M.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var a=parseInt(r,16);return[a>>16&255,a>>8&255,255&a]},M.rgb.hcg=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,a),n),o=Math.min(Math.min(r,a),n),l=i-o;return t=l<=0?0:i===r?(a-n)/l%6:i===a?2+(n-r)/l:4+(r-a)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?o/(1-l):0)]},M.hsl.hcg=function(e){var t,r=e[1]/100,a=e[2]/100,n=0;return(t=a<.5?2*r*a:2*r*(1-a))<1&&(n=(a-.5*t)/(1-t)),[e[0],100*t,100*n]},M.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,a=0;return r<1&&(a=(t-r)/(1-r)),[e[0],100*r,100*a]},M.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var a,n=[0,0,0],i=e[0]/360%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return[255*(t*n[0]+(a=(1-t)*r)),255*(t*n[1]+a),255*(t*n[2]+a)]},M.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),a=0;return r>0&&(a=t/r),[e[0],100*a,100*r]},M.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],100*a,100*r]},M.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},M.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,a=0;return r<1&&(a=(t-r)/(1-r)),[e[0],100*r,100*a]},M.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},M.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},M.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},M.gray.hsl=M.gray.hsv=function(e){return[0,0,e[0]]},M.gray.hwb=function(e){return[0,100,e[0]]},M.gray.cmyk=function(e){return[0,0,0,e[0]]},M.gray.lab=function(e){return[e[0],0,0]},M.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},M.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=w.exports;function z(e,t){return function(r){return t(e(r))}}function A(e,t){for(var r=[t[e].parent,e],a=O[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),a=z(O[t[n].parent][n],a),n=t[n].parent;return a.conversion=r,a}var q=w.exports,L=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(O),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),n=Object.keys(O[a]),i=n.length,o=0;o<i;o++){var l=n[o],s=t[l];-1===s.distance&&(s.distance=t[a].distance+1,s.parent=a,r.unshift(l))}return t}(e),r={},a=Object.keys(t),n=a.length,i=0;i<n;i++){var o=a[i];null!==t[o].parent&&(r[o]=A(o,t))}return r},F={};Object.keys(q).forEach((function(e){F[e]={},Object.defineProperty(F[e],"channels",{value:q[e].channels}),Object.defineProperty(F[e],"labels",{value:q[e].labels});var t=L(e);Object.keys(t).forEach((function(r){var a=t[r];F[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var a=r.length,n=0;n<a;n++)r[n]=Math.round(r[n]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(a),F[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));var S=i.exports,E=F,N=[].slice,I=["keyword","gray","hex"],$={};Object.keys(E).forEach((function(e){$[N.call(E[e].labels).sort().join("")]=e}));var U={};function B(e,t){if(!(this instanceof B))return new B(e,t);if(t&&t in I&&(t=null),t&&!(t in E))throw new Error("Unknown model: "+t);var r,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof B)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var n=S.get(e);if(null===n)throw new Error("Unable to parse color from string: "+e);this.model=n.model,this.color=n.value.slice(0,a=E[this.model].channels),this.valpha="number"==typeof n.value[a]?n.value[a]:1}else if(e.length){this.model=t||"rgb";var i=N.call(e,0,a=E[this.model].channels);this.color=P(i,a),this.valpha="number"==typeof e[a]?e[a]: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 o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var l=o.sort().join("");if(!(l in $))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$[l];var s=E[this.model].labels,u=[];for(r=0;r<s.length;r++)u.push(e[s[r]]);this.color=P(u)}if(U[this.model])for(a=E[this.model].channels,r=0;r<a;r++){var c=U[this.model][r];c&&(this.color[r]=c(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function H(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(U[e]||(U[e]=[]))[t]=r})),e=e[0],function(a){var n;return arguments.length?(r&&(a=r(a)),(n=this[e]()).color[t]=a,n):(n=this[e]().color[t],r&&(n=r(n)),n)}}function J(e){return function(t){return Math.max(0,Math.min(e,t))}}function P(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in S.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return S.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return S.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=E[this.model].channels,r=E[this.model].labels,a=0;a<t;a++)e[r[a]]=this.color[a];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 B(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:H("rgb",0,J(255)),green:H("rgb",1,J(255)),blue:H("rgb",2,J(255)),hue:H(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:H("hsl",1,J(100)),lightness:H("hsl",2,J(100)),saturationv:H("hsv",1,J(100)),value:H("hsv",2,J(100)),chroma:H("hcg",1,J(100)),gray:H("hcg",2,J(100)),white:H("hwb",1,J(100)),wblack:H("hwb",2,J(100)),cyan:H("cmyk",0,J(100)),magenta:H("cmyk",1,J(100)),yellow:H("cmyk",2,J(100)),black:H("cmyk",3,J(100)),x:H("xyz",0,J(100)),y:H("xyz",1,J(100)),z:H("xyz",2,J(100)),l:H("lab",0,J(100)),a:H("lab",1),b:H("lab",2),keyword:function(e){return arguments.length?new B(e):E[this.model].keyword(this.color)},hex:function(e){return arguments.length?new B(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,t=[],r=0;r<e.length;r++){var a=e[r]/255;t[r]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return B.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return t.color[0]=r=(r=(r+e)%360)<0?360+r:r,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var r=e.rgb(),a=this.rgb(),n=void 0===t?.5:t,i=2*n-1,o=r.alpha()-a.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return B.rgb(l*r.red()+s*a.red(),l*r.green()+s*a.green(),l*r.blue()+s*a.blue(),r.alpha()*n+a.alpha()*(1-n))}},Object.keys(E).forEach((function(e){if(-1===I.indexOf(e)){var t=E[e].channels;B.prototype[e]=function(){if(this.model===e)return new B(this);if(arguments.length)return new B(arguments,e);var r,a="number"==typeof arguments[t]?t:this.valpha;return new B((r=E[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(a),e)},B[e]=function(r){return"number"==typeof r&&(r=P(N.call(arguments),t)),new B(r,e)}}}));const R=[{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)),D={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"},T={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},Z=Object.keys(D),K=e=>!("isConnected"in e)||e.isConnected,V=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(K))})(...t)}),2e3)}})(),_=e=>"function"==typeof e?e():e,G="proto-tinker-wc::app-data",Q=(()=>{const e=((e,t=((e,t)=>e!==t))=>{const r=_(e);let a=new Map(Object.entries(null!=r?r:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{var t;a=new Map(Object.entries(null!==(t=_(e))&&void 0!==t?t:{})),n.reset.forEach((e=>e()))},o=e=>(n.get.forEach((t=>t(e))),a.get(e)),l=(e,r)=>{const i=a.get(e);t(r,i,e)&&(a.set(e,r),n.set.forEach((t=>t(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,t)=>o(t),ownKeys:()=>Array.from(a.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>a.has(t),set:(e,t,r)=>(l(t,r),!0)}),u=(e,t)=>(n[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(n[e],t)});return{state:s,get:o,set:l,on:u,onChange:(t,r)=>{const a=u("set",((e,a)=>{e===t&&r(a)})),n=u("reset",(()=>r(_(e)[t])));return()=>{a(),n()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(u("set",t.set)),t.get&&e.push(u("get",t.get)),t.reset&&e.push(u("reset",t.reset)),t.dispose&&e.push(u("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=a.get(e);n.set.forEach((r=>r(e,t,t)))}}})({count:0,pick:"bada55",values:[...R]},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const a=t();a&&((e,t,r)=>{const a=e.get(t);a?a.includes(r)||a.push(r):e.set(t,[r])})(e,r,a)},set:t=>{const a=e.get(t);a&&e.set(t,a.filter(r)),V(e)},reset:()=>{e.forEach((e=>e.forEach(r))),V(e)}}})()),e})(),{state:W}=Q,X=()=>{const{count:e,pick:t,values:r}=W;(e=>{const t=JSON.stringify(e);localStorage.setItem(G,t)})({count:e,pick:t,values:r})},Y={initApp:()=>{const e=(()=>{const e=localStorage.getItem(G);return e?JSON.parse(e):void 0})();if(e){const{count:t,pick:r,values:a}=e;W.count=t,W.pick=r,W.values=a}},refresh:()=>{const e=R.map((()=>Math.floor(100*Math.random())));W.count=W.count+1,W.values=e,X()},reset:()=>{W.count=0,W.values=[...R],X()},updatePick:e=>{W.pick=e,X()}},ee=t=>{const{actions:r,state:a}=t,{pick:i}=a;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},Z.map((t=>{const a=(e=>D[e]||T[e])(t),o=i===t;return e("div",{"aria-label":t,"aria-checked":o?"true":"false",role:"radio",onClick:()=>{r.updatePick(t)}},e(n,{hex:a,selected:o,label:t}))})))},te=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"chevron-double-left"),e("g",{fill:r},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"}))},re=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"close"),e("g",{fill:r},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"}))},ae=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"refresh"),e("g",{fill:r},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"}))},ne=t=>{const{actions:r,state:a}=t,{count:n}=a;return e("div",{class:"mb-10px mt-3 flex items-center"},e("button",{"aria-label":"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{r.refresh()}},e(ae,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(re,{label:"Reset"})),e("span",{class:"flex items-center"},e(te,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,n))))},ie=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.16"),oe=t=>{const{state:r}=t,{values:a,pick:n,count:i}=r;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"},n)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?a:"..."}`))),e(ie,null))},le=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"fingerprint"),e("g",{fill:r},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"}))},se="eswat2",ue=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":se,target:"blank",title:se},e(le,{label:"eswat2"})),ce=t=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},t.label),he=class{constructor(e){a(this,e),this.tag="proto-tinker"}componentDidLoad(){Y.initApp()}render(){return e("div",{key:"8ce0faa12c39b5b7ebc87c2f8d00dade936e3ded",id:"app",class:"ds1-main relative"},e(ce,{key:"d1a5aba6e4221c2f233f8675a4d5cd81aab4d93d",label:"tinker wc"}),e(ue,{key:"919ca01768ea309609ec6be67fede120434d723e"}),e(ne,{key:"e8220f685b6b44e3d7ccd1bf644d3f98219d7310",actions:Y,state:W}),e(ee,{key:"463901312bdd5ee72715de3e2fc47ad364902f40",actions:Y,state:W}),e("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),e(oe,{key:"df047e0968a8267a031b87fd733c454911771fe0",state:W}))}};he.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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, sans-serif, 'Apple Color Emoji',\n '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}.relative{position:relative}.right-8{right:2rem}.top-8{top:2rem}.mb-10px{margin-bottom:10px}.mb-11{margin-bottom:2.75rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-10px{margin-right:10px}.mt-11{margin-top:2.75rem}.mt-3{margin-top:0.75rem}.mt-5px{margin-top:5px}.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)}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.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{he as proto_tinker}
1
+ import{h as e,g as t,f as r,r as a}from"./p-dd7bb00c.js";const n=t=>{const r=t.hex||"currentColor",a=t.selected||!1,n=t.size||24;return e("svg",{class:t.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"radio")," ",e("g",{fill:r},e("path",a?{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"}))};var i={exports:{}},o={exports:{}},l=Array.prototype.concat,s=Array.prototype.slice,u=o.exports=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var n=e[r];(i=n)&&"string"!=typeof i&&(i instanceof Array||Array.isArray(i)||i.length>=0&&(i.splice instanceof Function||Object.getOwnPropertyDescriptor(i,i.length-1)&&"String"!==i.constructor.name))?t=l.call(t,s.call(n)):t.push(n)}var i;return t};u.wrap=function(e){return function(){return e(u(arguments))}};var c={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]},h=o.exports,f=Object.hasOwnProperty,d=Object.create(null);for(var g in c)f.call(c,g)&&(d[c[g]]=g);var b=i.exports={to:{},get:{}};function p(e,t,r){return Math.min(Math.max(t,e),r)}function v(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}b.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=b.get.hsl(e),r="hsl";break;case"hwb":t=b.get.hwb(e),r="hwb";break;default:t=b.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},b.get.rgb=function(e){if(!e)return null;var t,r,a,n=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],r=0;r<3;r++){var i=2*r;n[r]=parseInt(t.slice(i,i+2),16)}a&&(n[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],r=0;r<3;r++)n[r]=parseInt(t[r]+t[r],16);a&&(n[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(r=0;r<3;r++)n[r]=parseInt(t[r+1],0);t[4]&&(n[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]:f.call(c,t[1])?((n=c[t[1]])[3]=1,n):null:null;for(r=0;r<3;r++)n[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(n[3]=t[5]?.01*parseFloat(t[4]):parseFloat(t[4]))}for(r=0;r<3;r++)n[r]=p(n[r],0,255);return n[3]=p(n[3],0,1),n},b.get.hsl=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.get.hwb=function(e){if(!e)return null;var t=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(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(isNaN(r)?1:r,0,1)]}return null},b.to.hex=function(){var e=h(arguments);return"#"+v(e[0])+v(e[1])+v(e[2])+(e[3]<1?v(Math.round(255*e[3])):"")},b.to.rgb=function(){var e=h(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]+")"},b.to.rgb.percent=function(){var e=h(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+a+"%)":"rgba("+t+"%, "+r+"%, "+a+"%, "+e[3]+")"},b.to.hsl=function(){var e=h(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},b.to.hwb=function(){var e=h(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},b.to.keyword=function(e){return d[e.slice(0,3)]};var w={exports:{}},m={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]},y={};for(var k in m)m.hasOwnProperty(k)&&(y[m[k]]=k);var M=w.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 x in M)if(M.hasOwnProperty(x)){if(!("channels"in M[x]))throw new Error("missing channels property: "+x);if(!("labels"in M[x]))throw new Error("missing channel labels property: "+x);if(M[x].labels.length!==M[x].channels)throw new Error("channel and label counts mismatch: "+x);var C=M[x].channels,j=M[x].labels;delete M[x].channels,delete M[x].labels,Object.defineProperty(M[x],"channels",{value:C}),Object.defineProperty(M[x],"labels",{value:j})}M.rgb.hsl=function(e){var t,r,a=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(a,n,i),l=Math.max(a,n,i),s=l-o;return l===o?t=0:a===l?t=(n-i)/s:n===l?t=2+(i-a)/s:i===l&&(t=4+(a-n)/s),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+l)/2,[t,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]},M.rgb.hsv=function(e){var t,r,a,n,i,o=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),h=function(e){return(u-e)/6/c+.5};return 0===c?n=i=0:(i=c/u,t=h(o),r=h(l),a=h(s),o===u?n=a-r:l===u?n=1/3+t-a:s===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*i,100*u]},M.rgb.hwb=function(e){var t=e[0],r=e[1],a=e[2];return[M.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]},M.rgb.cmyk=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-a,1-n)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},M.rgb.keyword=function(e){var t=y[e];if(t)return t;var r,a,n,i=1/0;for(var o in m)if(m.hasOwnProperty(o)){var l=(a=e,n=m[o],Math.pow(a[0]-n[0],2)+Math.pow(a[1]-n[1],2)+Math.pow(a[2]-n[2],2));l<i&&(i=l,r=o)}return r},M.keyword.rgb=function(e){return m[e]},M.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*r+.0722*a),100*(.0193*t+.1192*r+.9505*a)]},M.rgb.lab=function(e){var t=M.rgb.xyz(e),r=t[0],a=t[1],n=t[2];return a/=100,n/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(r-a),200*(a-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},M.hsl.rgb=function(e){var t,r,a,n,i,o=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return[i=255*s,i,i];t=2*s-(r=s<.5?s*(1+l):s+l-s*l),n=[0,0,0];for(var u=0;u<3;u++)(a=o+1/3*-(u-1))<0&&a++,a>1&&a--,n[u]=255*(i=6*a<1?t+6*(r-t)*a:2*a<1?r:3*a<2?t+(r-t)*(2/3-a)*6:t);return n},M.hsl.hsv=function(e){var t=e[0],r=e[1]/100,a=e[2]/100,n=r,i=Math.max(a,.01);return r*=(a*=2)<=1?a:2-a,n*=i<=1?i:2-i,[t,100*(0===a?2*n/(i+n):2*r/(a+r)),(a+r)/2*100]},M.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,a=e[2]/100,n=Math.floor(t)%6,i=t-Math.floor(t),o=255*a*(1-r),l=255*a*(1-r*i),s=255*a*(1-r*(1-i));switch(a*=255,n){case 0:return[a,s,o];case 1:return[l,a,o];case 2:return[o,a,s];case 3:return[o,l,a];case 4:return[s,o,a];case 5:return[a,o,l]}},M.hsv.hsl=function(e){var t,r,a,n=e[0],i=e[1]/100,o=e[2]/100,l=Math.max(o,.01);return a=(2-i)*o,r=i*l,[n,100*(r=(r/=(t=(2-i)*l)<=1?t:2-t)||0),100*(a/=2)]},M.hwb.rgb=function(e){var t,r,a,n,i,o,l,s=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),a=6*s-(t=Math.floor(6*s)),1&t&&(a=1-a),n=u+a*((r=1-c)-u),t){default:case 6:case 0:i=r,o=n,l=u;break;case 1:i=n,o=r,l=u;break;case 2:i=u,o=r,l=n;break;case 3:i=u,o=n,l=r;break;case 4:i=n,o=u,l=r;break;case 5:i=r,o=u,l=n}return[255*i,255*o,255*l]},M.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-a)+a)),255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},M.xyz.rgb=function(e){var t,r,a,n=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*n+1.8758*i+.0415*o,a=.0557*n+-.204*i+1.057*o,t=(t=3.2406*n+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(a=Math.min(Math.max(0,a),1))]},M.xyz.lab=function(e){var t=e[0],r=e[1],a=e[2];return r/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},M.lab.xyz=function(e){var t,r,a;t=e[1]/500+(r=(e[0]+16)/116),a=r-e[2]/200;var n=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(a,3);return r=n>.008856?n:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=o>.008856?o:(a-16/116)/7.787,[t*=95.047,r*=100,a*=108.883]},M.lab.lch=function(e){var t,r=e[0],a=e[1],n=e[2];return(t=360*Math.atan2(n,a)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(a*a+n*n),t]},M.lch.lab=function(e){var t,r=e[1];return t=e[2]/360*2*Math.PI,[e[0],r*Math.cos(t),r*Math.sin(t)]},M.rgb.ansi16=function(e){var t=e[0],r=e[1],a=e[2],n=1 in arguments?arguments[1]:M.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===n&&(i+=60),i},M.hsv.ansi16=function(e){return M.rgb.ansi16(M.hsv.rgb(e),e[2])},M.rgb.ansi256=function(e){var t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},M.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},M.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},M.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},M.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var a=parseInt(r,16);return[a>>16&255,a>>8&255,255&a]},M.rgb.hcg=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,a),n),o=Math.min(Math.min(r,a),n),l=i-o;return t=l<=0?0:i===r?(a-n)/l%6:i===a?2+(n-r)/l:4+(r-a)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?o/(1-l):0)]},M.hsl.hcg=function(e){var t,r=e[1]/100,a=e[2]/100,n=0;return(t=a<.5?2*r*a:2*r*(1-a))<1&&(n=(a-.5*t)/(1-t)),[e[0],100*t,100*n]},M.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,a=0;return r<1&&(a=(t-r)/(1-r)),[e[0],100*r,100*a]},M.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var a,n=[0,0,0],i=e[0]/360%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:n[0]=1,n[1]=o,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=o;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=o,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return[255*(t*n[0]+(a=(1-t)*r)),255*(t*n[1]+a),255*(t*n[2]+a)]},M.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),a=0;return r>0&&(a=t/r),[e[0],100*a,100*r]},M.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],100*a,100*r]},M.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},M.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,a=0;return r<1&&(a=(t-r)/(1-r)),[e[0],100*r,100*a]},M.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},M.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},M.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},M.gray.hsl=M.gray.hsv=function(e){return[0,0,e[0]]},M.gray.hwb=function(e){return[0,100,e[0]]},M.gray.cmyk=function(e){return[0,0,0,e[0]]},M.gray.lab=function(e){return[e[0],0,0]},M.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},M.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var O=w.exports;function z(e,t){return function(r){return t(e(r))}}function A(e,t){for(var r=[t[e].parent,e],a=O[t[e].parent][e],n=t[e].parent;t[n].parent;)r.unshift(t[n].parent),a=z(O[t[n].parent][n],a),n=t[n].parent;return a.conversion=r,a}var q=w.exports,L=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(O),r=t.length,a=0;a<r;a++)e[t[a]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var a=r.pop(),n=Object.keys(O[a]),i=n.length,o=0;o<i;o++){var l=n[o],s=t[l];-1===s.distance&&(s.distance=t[a].distance+1,s.parent=a,r.unshift(l))}return t}(e),r={},a=Object.keys(t),n=a.length,i=0;i<n;i++){var o=a[i];null!==t[o].parent&&(r[o]=A(o,t))}return r},F={};Object.keys(q).forEach((function(e){F[e]={},Object.defineProperty(F[e],"channels",{value:q[e].channels}),Object.defineProperty(F[e],"labels",{value:q[e].labels});var t=L(e);Object.keys(t).forEach((function(r){var a=t[r];F[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var a=r.length,n=0;n<a;n++)r[n]=Math.round(r[n]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(a),F[e][r].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));var S=i.exports,E=F,N=[].slice,I=["keyword","gray","hex"],$={};Object.keys(E).forEach((function(e){$[N.call(E[e].labels).sort().join("")]=e}));var U={};function B(e,t){if(!(this instanceof B))return new B(e,t);if(t&&t in I&&(t=null),t&&!(t in E))throw new Error("Unknown model: "+t);var r,a;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof B)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var n=S.get(e);if(null===n)throw new Error("Unable to parse color from string: "+e);this.model=n.model,this.color=n.value.slice(0,a=E[this.model].channels),this.valpha="number"==typeof n.value[a]?n.value[a]:1}else if(e.length){this.model=t||"rgb";var i=N.call(e,0,a=E[this.model].channels);this.color=P(i,a),this.valpha="number"==typeof e[a]?e[a]: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 o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var l=o.sort().join("");if(!(l in $))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=$[l];var s=E[this.model].labels,u=[];for(r=0;r<s.length;r++)u.push(e[s[r]]);this.color=P(u)}if(U[this.model])for(a=E[this.model].channels,r=0;r<a;r++){var c=U[this.model][r];c&&(this.color[r]=c(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function H(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(U[e]||(U[e]=[]))[t]=r})),e=e[0],function(a){var n;return arguments.length?(r&&(a=r(a)),(n=this[e]()).color[t]=a,n):(n=this[e]().color[t],r&&(n=r(n)),n)}}function J(e){return function(t){return Math.max(0,Math.min(e,t))}}function P(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}B.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in S.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return S.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return S.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=E[this.model].channels,r=E[this.model].labels,a=0;a<t;a++)e[r[a]]=this.color[a];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 B(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new B(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:H("rgb",0,J(255)),green:H("rgb",1,J(255)),blue:H("rgb",2,J(255)),hue:H(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:H("hsl",1,J(100)),lightness:H("hsl",2,J(100)),saturationv:H("hsv",1,J(100)),value:H("hsv",2,J(100)),chroma:H("hcg",1,J(100)),gray:H("hcg",2,J(100)),white:H("hwb",1,J(100)),wblack:H("hwb",2,J(100)),cyan:H("cmyk",0,J(100)),magenta:H("cmyk",1,J(100)),yellow:H("cmyk",2,J(100)),black:H("cmyk",3,J(100)),x:H("xyz",0,J(100)),y:H("xyz",1,J(100)),z:H("xyz",2,J(100)),l:H("lab",0,J(100)),a:H("lab",1),b:H("lab",2),keyword:function(e){return arguments.length?new B(e):E[this.model].keyword(this.color)},hex:function(e){return arguments.length?new B(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,t=[],r=0;r<e.length;r++){var a=e[r]/255;t[r]=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return B.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),r=t.color[0];return t.color[0]=r=(r=(r+e)%360)<0?360+r:r,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var r=e.rgb(),a=this.rgb(),n=void 0===t?.5:t,i=2*n-1,o=r.alpha()-a.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return B.rgb(l*r.red()+s*a.red(),l*r.green()+s*a.green(),l*r.blue()+s*a.blue(),r.alpha()*n+a.alpha()*(1-n))}},Object.keys(E).forEach((function(e){if(-1===I.indexOf(e)){var t=E[e].channels;B.prototype[e]=function(){if(this.model===e)return new B(this);if(arguments.length)return new B(arguments,e);var r,a="number"==typeof arguments[t]?t:this.valpha;return new B((r=E[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(a),e)},B[e]=function(r){return"number"==typeof r&&(r=P(N.call(arguments),t)),new B(r,e)}}}));const R=[{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)),D={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"},T={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},Z=Object.keys(D),K=e=>!("isConnected"in e)||e.isConnected,V=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(K))})(...t)}),2e3)}})(),_=e=>"function"==typeof e?e():e,G="proto-tinker-wc::app-data",Q=(()=>{const e=((e,t=((e,t)=>e!==t))=>{const r=_(e);let a=new Map(Object.entries(null!=r?r:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{var t;a=new Map(Object.entries(null!==(t=_(e))&&void 0!==t?t:{})),n.reset.forEach((e=>e()))},o=e=>(n.get.forEach((t=>t(e))),a.get(e)),l=(e,r)=>{const i=a.get(e);t(r,i,e)&&(a.set(e,r),n.set.forEach((t=>t(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,t)=>o(t),ownKeys:()=>Array.from(a.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>a.has(t),set:(e,t,r)=>(l(t,r),!0)}),u=(e,t)=>(n[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(n[e],t)});return{state:s,get:o,set:l,on:u,onChange:(t,r)=>{const a=u("set",((e,a)=>{e===t&&r(a)})),n=u("reset",(()=>r(_(e)[t])));return()=>{a(),n()}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(u("set",t.set)),t.get&&e.push(u("get",t.get)),t.reset&&e.push(u("reset",t.reset)),t.dispose&&e.push(u("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=a.get(e);n.set.forEach((r=>r(e,t,t)))}}})({count:0,pick:"bada55",values:[...R]},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const a=t();a&&((e,t,r)=>{const a=e.get(t);a?a.includes(r)||a.push(r):e.set(t,[r])})(e,r,a)},set:t=>{const a=e.get(t);a&&e.set(t,a.filter(r)),V(e)},reset:()=>{e.forEach((e=>e.forEach(r))),V(e)}}})()),e})(),{state:W}=Q,X=()=>{const{count:e,pick:t,values:r}=W;(e=>{const t=JSON.stringify(e);localStorage.setItem(G,t)})({count:e,pick:t,values:r})},Y={initApp:()=>{const e=(()=>{const e=localStorage.getItem(G);return e?JSON.parse(e):void 0})();if(e){const{count:t,pick:r,values:a}=e;W.count=t,W.pick=r,W.values=a}},refresh:()=>{const e=R.map((()=>Math.floor(100*Math.random())));W.count=W.count+1,W.values=e,X()},reset:()=>{W.count=0,W.values=[...R],X()},updatePick:e=>{W.pick=e,X()}},ee=t=>{const{actions:r,state:a}=t,{pick:i}=a;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},Z.map((t=>{const a=(e=>D[e]||T[e])(t),o=i===t;return e("div",{"aria-label":t,"aria-checked":o?"true":"false",role:"radio",onClick:()=>{r.updatePick(t)}},e(n,{hex:a,selected:o,label:t}))})))},te=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"chevron-double-left"),e("g",{fill:r},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"}))},re=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"close"),e("g",{fill:r},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"}))},ae=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"refresh"),e("g",{fill:r},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"}))},ne=t=>{const{actions:r,state:a}=t,{count:n}=a;return e("div",{class:"mb-10px mt-3 flex items-center"},e("button",{"aria-label":"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{r.refresh()}},e(ae,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(re,{label:"Reset"})),e("span",{class:"flex items-center"},e(te,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,n))))},ie=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.16"),oe=t=>{const{state:r}=t,{values:a,pick:n,count:i}=r;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"},n)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?a:"..."}`))),e(ie,null))},le=t=>{const r=t.hex||"currentColor",a=t.size||24;return e("svg",{class:t.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},e("title",null,t.label||"fingerprint"),e("g",{fill:r},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"}))},se="eswat2",ue=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":se,target:"blank",title:se},e(le,{label:"eswat2"})),ce=t=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},t.label),he=class{constructor(e){a(this,e),this.tag="proto-tinker"}componentDidLoad(){Y.initApp()}render(){return e("div",{key:"8ce0faa12c39b5b7ebc87c2f8d00dade936e3ded",id:"app",class:"ds1-main relative"},e(ce,{key:"d1a5aba6e4221c2f233f8675a4d5cd81aab4d93d",label:"tinker wc"}),e(ue,{key:"919ca01768ea309609ec6be67fede120434d723e"}),e(ne,{key:"e8220f685b6b44e3d7ccd1bf644d3f98219d7310",actions:Y,state:W}),e(ee,{key:"463901312bdd5ee72715de3e2fc47ad364902f40",actions:Y,state:W}),e("hr",{key:"35ba2812a3b068b21b5252c5f07d0b5dc2f18527",class:"ml-0 mr-0"}),e(oe,{key:"df047e0968a8267a031b87fd733c454911771fe0",state:W}))}};he.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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, sans-serif, 'Apple Color Emoji',\n '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}.relative{position:relative}.right-8{right:2rem}.top-8{top:2rem}.mb-10px{margin-bottom:10px}.mb-11{margin-bottom:2.75rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-10px{margin-right:10px}.mt-11{margin-top:2.75rem}.mt-3{margin-top:0.75rem}.mt-5px{margin-top:5px}.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)}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.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{he as proto_tinker}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&a.o?$(b):a.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(d),v(y),(m=d.length>0)&&a.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!j(o))&&(o+=""),s&&r?i[i.length-1].i+=o:i.push(s?D(null,o):o),r=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,R);const u=D(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),H={},R={forEach:(e,t)=>e.map(T).forEach(t),map:(e,t)=>e.map(T).map(t).map(L)},T=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),L=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),A(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},N=(e,t,n,o,s,r)=>{if(n!==o){let i=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=F(n),s=F(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(e["s-si"]),t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(W);t=t.replace(q,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},U=/\s/,F=e=>e?e.split(U):[],W="Capture",q=RegExp(W+"$"),G=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(l)))e in s||N(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(s)))N(o,e,l[e],s[e],n,t.o)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,r=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(_||(_="svg"===o.m),l=o.v=f.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),_&&"foreignObject"===o.m&&(_=!1),G(null,o,_),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=z(e,o,r),s&&l.appendChild(s);"svg"===o.m?_=!1:"foreignObject"===l.tagName&&(_=!0)}return l["s-hn"]=M,l},B=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=z(null,n,l),r&&(o[l].v=r,Q(i,r,t)))},I=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,r=t.m,i=t.i;null===i?(G(e,t,_="svg"===r||"foreignObject"!==r&&_),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=t.length-1,h=t[0],p=t[a],m=o.length-1,d=o[0],y=o[m];for(;i<=a&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--a];else if(null==d)d=o[++c];else if(null==y)y=o[--m];else if(J(h,d,l))K(h,d,l),h=t[++i],d=o[++c];else if(J(p,y,l))K(p,y,l),p=t[--a],y=o[--m];else if(J(h,y,l))K(h,y,l),Q(e,h.v,p.v.nextSibling),h=t[++i],y=o[--m];else if(J(p,d,l))K(p,d,l),Q(e,p.v,h.v),p=t[--a],d=o[++c];else{for(u=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===d.p){u=f;break}u>=0?(r=t[u],r.m!==d.m?s=z(t&&t[c],n,u):(K(r,d,l),t[u]=void 0,s=r.v),d=o[++c]):(s=z(t&&t[c],n,c),d=o[++c]),s&&Q(h.v.parentNode,s,h.v)}i>a?B(e,null==o[m+1]?null:o[m+1].v,n,o,c,m):c>m&&I(t,i,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),B(o,null,t,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1),_&&"svg"===r&&(_=!1)):e.i!==i&&(o.data=i)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>null==e||j(e)?e:1&t?e+"":e,Y=new WeakMap,Z=e=>"sc-"+e.S,ee=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},te=(e,t)=>{if(e.o|=16,!(4&e.o))return ee(e,e.O),g((()=>ne(e,t)));e.o|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return oe(void 0,(()=>se(e,n,t)))},oe=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=Z(t),l=i.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,r=Y.get(e=e.head||e);if(r||Y.set(e,r=new Set),!r.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.C)?n:O(f);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ie(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ue(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},re=null,ie=(e,t,n,o)=>{try{re=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.M||D(null,null),r=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.M=r,r.v=s.v=o.shadowRoot||o,K(s,r,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return re=null,null},ce=()=>re,ue=e=>{const t=e.$hostElement$,n=e.t,o=e.O;64&e.o||(e.o|=64,pe(t),he(n,"componentDidLoad"),e.P(t),o||ae()),e.j&&(e.j(),e.j=void 0),512&e.o&&$((()=>te(e,!1))),e.o&=-517},fe=e=>{{const t=n(e),o=t.$hostElement$.isConnected;return o&&2==(18&t.o)&&te(t,!1),o}},ae=()=>{pe(f.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return e.dispatchEvent(t),t})(u)))},he=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},pe=e=>e.classList.add("hydrated"),me=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.A.get(t),i=s.o,c=s.t;o=X(o,l.D[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.A.set(t,o),c&&2==(18&i)&&te(s,!1))},de=(e,t,o)=>{var l,s;const r=e.prototype;if(t.D){const i=Object.entries(null!=(l=t.D)?l:{});if(i.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(r,e,{get(){const t=n(this),o=t?t.t:r;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(r,e).set;Object.defineProperty(r,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.A.get(e)&&n&&s.A.set(e,n),o.call(this,X(l,t.D[e][0])),void me(this,e,s.$hostElement$[e],t)}if(!s)return;const r=()=>{const n=s.t[e];!s.A.get(e)&&n&&s.A.set(e,n),s.t[e]=X(l,t.D[e][0]),me(this,e,s.t[e],t)};s.t?r():s.H.then((()=>r()))}})}}else Object.defineProperty(r,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(n){me(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.R)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(r,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.R)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ye=(e,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],S:o[1],D:o[2],T:o[3]};4&l.o&&(S=!0),l.D=o[2];const c=l.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.H=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.O=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.L;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.N}" was not found`);o.isProxied||(de(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=Z(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>te(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};l.L=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,de(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=a.C)?l:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(ae,30)))},we=e=>a.C=e;export{ye as b,fe as f,ce as g,A as h,h as p,o as r,we as s}
@@ -1 +1 @@
1
- import{p as t,b as o}from"./p-41539f88.js";export{s as setNonce}from"./p-41539f88.js";import{g as r}from"./p-e1255160.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),t(r)})().then((async t=>(await r(),o([["p-d01536ca",[[1,"proto-tinker",{tag:[1]}]]]],t))));
1
+ import{p as t,b as o}from"./p-dd7bb00c.js";export{s as setNonce}from"./p-dd7bb00c.js";import{g as r}from"./p-e1255160.js";(()=>{const o=import.meta.url,r={};return""!==o&&(r.resourcesUrl=new URL(".",o).href),t(r)})().then((async t=>(await r(),o([["p-b5c7ee40",[[1,"proto-tinker",{tag:[1]}]]]],t))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-tinker-wc",
3
- "version": "0.0.577",
3
+ "version": "0.0.578",
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": "4.22.3",
31
+ "@stencil/core": "4.23.0",
32
32
  "@stencil/store": "2.0.16",
33
33
  "between.js": "0.1.2-fix.2"
34
34
  },
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&a.o?b($):a.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(d),v(y),(m=d.length>0)&&a.raf($)},b=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!j(o))&&(o+=""),s&&r?i[i.length-1].i+=o:i.push(s?D(null,o):o),r=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,R);const u=D(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),H={},R={forEach:(e,t)=>e.map(T).forEach(t),map:(e,t)=>e.map(T).map(t).map(L)},T=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),L=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),A(e.vtag,t,...e.vchildren||[])}const t=D(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},N=new WeakMap,U=e=>"sc-"+e.S,F=(e,t,n,o,s,r)=>{if(n!==o){let i=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=q(n),s=q(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(G);t=t.replace(V,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},W=/\s/,q=e=>e?e.split(W):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(l)))e in s||F(o,e,l[e],void 0,n,t.o);for(const e of z(Object.keys(s)))F(o,e,l[e],s[e],n,t.o)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const o=t.h[n];let l,s,r=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=f.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=I(e,o,r),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=M,l},J=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=I(null,n,l),r&&(o[l].v=r,Y(i,r,t)))},K=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,r=t.m,i=t.i;null===i?(_(e,t,B="svg"===r||"foreignObject"!==r&&B),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=t.length-1,h=t[0],p=t[a],m=o.length-1,d=o[0],y=o[m];for(;i<=a&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--a];else if(null==d)d=o[++c];else if(null==y)y=o[--m];else if(Q(h,d,l))X(h,d,l),h=t[++i],d=o[++c];else if(Q(p,y,l))X(p,y,l),p=t[--a],y=o[--m];else if(Q(h,y,l))X(h,y,l),Y(e,h.v,p.v.nextSibling),h=t[++i],y=o[--m];else if(Q(p,d,l))X(p,d,l),Y(e,p.v,h.v),p=t[--a],d=o[++c];else{for(u=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===d.p){u=f;break}u>=0?(r=t[u],r.m!==d.m?s=I(t&&t[c],n,u):(X(r,d,l),t[u]=void 0,s=r.v),d=o[++c]):(s=I(t&&t[c],n,c),d=o[++c]),s&&Y(h.v.parentNode,s,h.v)}i>a?J(e,null==o[m+1]?null:o[m+1].v,n,o,c,m):c>m&&K(t,i,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),J(o,null,t,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(o.data=i)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ee=(e,t)=>{if(e.o|=16,!(4&e.o))return Z(e,e.k),g((()=>te(e,t)));e.o|=512},te=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return ne(void 0,(()=>le(e,n,t)))},ne=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=U(t),l=i.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.C)?n:k(f);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);re(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},se=null,re=(e,t,n,o)=>{try{se=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.M||D(null,null),r=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.M=r,r.v=s.v=o.shadowRoot||o,X(s,r,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return se=null,null},ie=()=>se,ce=e=>{const t=e.$hostElement$,n=e.t,o=e.k;64&e.o||(e.o|=64,he(t),ae(n,"componentDidLoad"),e.P(t),o||fe()),e.j&&(e.j(),e.j=void 0),512&e.o&&b((()=>ee(e,!1))),e.o&=-517},ue=e=>{{const t=n(e),o=t.$hostElement$.isConnected;return o&&2==(18&t.o)&&ee(t,!1),o}},fe=()=>{he(f.documentElement),b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return e.dispatchEvent(t),t})(u)))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},he=e=>e.classList.add("hydrated"),pe=(e,t,o)=>{var l,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(l=t.A)?l:{});if(i.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(o){((e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.D.get(t),i=s.o,c=s.t;o=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(o,l.A[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.D.set(t,o),c&&2==(18&i)&&ee(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.H)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},me=(e,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=f.head,w=y.querySelector("meta[charset]"),v=f.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],S:o[1],A:o[2],R:o[3]};4&l.o&&(S=!0),l.A=o[2];const c=l.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,D:new Map};o.T=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.k=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.L){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.L;if(!n)return;const o=r.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.N}" was not found`);o.isProxied||(pe(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=U(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.k,c=()=>ee(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};l.L=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,pe(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=a.C)?l:k(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(fe,30)))},de=e=>a.C=e;export{me as b,ue as f,ie as g,A as h,h as p,o as r,de as s}