proto-tinker-wc 0.0.334 → 0.0.336
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-ae0c1b74.js → index-e7b3fa55.js} +85 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-tinker-wc.cjs.js +2 -2
- package/dist/cjs/proto-tinker.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-d08df4c5.js → index-c9daea8f.js} +85 -6
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-tinker-wc.js +3 -3
- package/dist/esm/proto-tinker.entry.js +1 -1
- package/dist/proto-tinker-wc/{p-b3aa1a18.entry.js → p-74bb8491.entry.js} +1 -1
- package/dist/proto-tinker-wc/p-cfb8668e.js +2 -0
- package/dist/proto-tinker-wc/proto-tinker-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +5 -1
- package/package.json +4 -4
- package/dist/proto-tinker-wc/p-9eb75da3.js +0 -2
|
@@ -364,6 +364,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
364
364
|
*
|
|
365
365
|
* Modified for Stencil's compiler and vdom
|
|
366
366
|
*/
|
|
367
|
+
/**
|
|
368
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
369
|
+
* corresponding HTML element.
|
|
370
|
+
*
|
|
371
|
+
* Note that this function has special functionality for the `class`,
|
|
372
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
373
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
374
|
+
*
|
|
375
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
376
|
+
* @param memberName the name of the attribute to set
|
|
377
|
+
* @param oldValue the old value for the attribute
|
|
378
|
+
* @param newValue the new value for the attribute
|
|
379
|
+
* @param isSvg whether we're in an svg context or not
|
|
380
|
+
* @param flags bitflags for Vdom variables
|
|
381
|
+
*/
|
|
367
382
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
368
383
|
if (oldValue !== newValue) {
|
|
369
384
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -856,12 +871,39 @@ const patch = (oldVNode, newVNode) => {
|
|
|
856
871
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
857
872
|
* the DOM node into which it should be rendered.
|
|
858
873
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
874
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
859
875
|
*/
|
|
860
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
876
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
861
877
|
const hostElm = hostRef.$hostElement$;
|
|
862
878
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
879
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
880
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
881
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
882
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
883
|
+
// contains attrs that need to be set on the host element.
|
|
863
884
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
864
885
|
hostTagName = hostElm.tagName;
|
|
886
|
+
// On the first render and *only* on the first render we want to check for
|
|
887
|
+
// any attributes set on the host element which are also set on the vdom
|
|
888
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
889
|
+
// the value from the host element, which allows developers building apps
|
|
890
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
891
|
+
// component even if it's already set on the `Host`.
|
|
892
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
893
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
894
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
895
|
+
// `class` which reconciles values coming from the VDom with values
|
|
896
|
+
// already present on the DOM element, so we don't want to override those
|
|
897
|
+
// attributes on the VDom tree with values from the host element if they
|
|
898
|
+
// are present.
|
|
899
|
+
//
|
|
900
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
901
|
+
// runtime and we don't want to override those either.
|
|
902
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
903
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
865
907
|
rootVnode.$tag$ = null;
|
|
866
908
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
867
909
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -950,6 +992,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
|
|
|
950
992
|
*/
|
|
951
993
|
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
952
994
|
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
995
|
+
/**
|
|
996
|
+
* Update a component given reference to its host elements and so on.
|
|
997
|
+
*
|
|
998
|
+
* @param hostRef an object containing references to the element's host node,
|
|
999
|
+
* VDom nodes, and other metadata
|
|
1000
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1001
|
+
* rendered
|
|
1002
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1003
|
+
* the first render cycle
|
|
1004
|
+
*/
|
|
953
1005
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
954
1006
|
var _a;
|
|
955
1007
|
const elm = hostRef.$hostElement$;
|
|
@@ -961,7 +1013,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
961
1013
|
}
|
|
962
1014
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
963
1015
|
{
|
|
964
|
-
callRender(hostRef, instance);
|
|
1016
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
965
1017
|
}
|
|
966
1018
|
if (rc) {
|
|
967
1019
|
// ok, so turns out there are some child host elements
|
|
@@ -985,7 +1037,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
985
1037
|
}
|
|
986
1038
|
}
|
|
987
1039
|
};
|
|
988
|
-
|
|
1040
|
+
/**
|
|
1041
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
1042
|
+
* various build variables
|
|
1043
|
+
*
|
|
1044
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1045
|
+
* VDom nodes, and other metadata
|
|
1046
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1047
|
+
* rendered
|
|
1048
|
+
* @param elm the Host element for the component
|
|
1049
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1050
|
+
* @returns an empty promise
|
|
1051
|
+
*/
|
|
1052
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
989
1053
|
try {
|
|
990
1054
|
renderingRef = instance;
|
|
991
1055
|
instance = instance.render() ;
|
|
@@ -1001,7 +1065,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1001
1065
|
// or we need to update the css class/attrs on the host element
|
|
1002
1066
|
// DOM WRITE!
|
|
1003
1067
|
{
|
|
1004
|
-
renderVdom(hostRef, instance);
|
|
1068
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1005
1069
|
}
|
|
1006
1070
|
}
|
|
1007
1071
|
}
|
|
@@ -1282,6 +1346,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1282
1346
|
schedule();
|
|
1283
1347
|
}
|
|
1284
1348
|
};
|
|
1349
|
+
const fireConnectedCallback = (instance) => {
|
|
1350
|
+
};
|
|
1285
1351
|
const connectedCallback = (elm) => {
|
|
1286
1352
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1287
1353
|
const hostRef = getHostRef(elm);
|
|
@@ -1320,12 +1386,25 @@ const connectedCallback = (elm) => {
|
|
|
1320
1386
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1321
1387
|
}
|
|
1322
1388
|
}
|
|
1389
|
+
else {
|
|
1390
|
+
// fire off connectedCallback() on component instance
|
|
1391
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1392
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1393
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1323
1396
|
endConnected();
|
|
1324
1397
|
}
|
|
1325
1398
|
};
|
|
1326
|
-
const
|
|
1399
|
+
const disconnectInstance = (instance) => {
|
|
1400
|
+
};
|
|
1401
|
+
const disconnectedCallback = async (elm) => {
|
|
1327
1402
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1328
|
-
getHostRef(elm);
|
|
1403
|
+
const hostRef = getHostRef(elm);
|
|
1404
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1405
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1406
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1407
|
+
}
|
|
1329
1408
|
}
|
|
1330
1409
|
};
|
|
1331
1410
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e7b3fa55.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e7b3fa55.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.0.
|
|
8
|
+
Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
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));
|
|
@@ -342,6 +342,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
342
342
|
*
|
|
343
343
|
* Modified for Stencil's compiler and vdom
|
|
344
344
|
*/
|
|
345
|
+
/**
|
|
346
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
347
|
+
* corresponding HTML element.
|
|
348
|
+
*
|
|
349
|
+
* Note that this function has special functionality for the `class`,
|
|
350
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
351
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
352
|
+
*
|
|
353
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
354
|
+
* @param memberName the name of the attribute to set
|
|
355
|
+
* @param oldValue the old value for the attribute
|
|
356
|
+
* @param newValue the new value for the attribute
|
|
357
|
+
* @param isSvg whether we're in an svg context or not
|
|
358
|
+
* @param flags bitflags for Vdom variables
|
|
359
|
+
*/
|
|
345
360
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
346
361
|
if (oldValue !== newValue) {
|
|
347
362
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -834,12 +849,39 @@ const patch = (oldVNode, newVNode) => {
|
|
|
834
849
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
835
850
|
* the DOM node into which it should be rendered.
|
|
836
851
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
852
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
837
853
|
*/
|
|
838
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
854
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
839
855
|
const hostElm = hostRef.$hostElement$;
|
|
840
856
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
857
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
858
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
859
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
860
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
861
|
+
// contains attrs that need to be set on the host element.
|
|
841
862
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
842
863
|
hostTagName = hostElm.tagName;
|
|
864
|
+
// On the first render and *only* on the first render we want to check for
|
|
865
|
+
// any attributes set on the host element which are also set on the vdom
|
|
866
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
867
|
+
// the value from the host element, which allows developers building apps
|
|
868
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
869
|
+
// component even if it's already set on the `Host`.
|
|
870
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
871
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
872
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
873
|
+
// `class` which reconciles values coming from the VDom with values
|
|
874
|
+
// already present on the DOM element, so we don't want to override those
|
|
875
|
+
// attributes on the VDom tree with values from the host element if they
|
|
876
|
+
// are present.
|
|
877
|
+
//
|
|
878
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
879
|
+
// runtime and we don't want to override those either.
|
|
880
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
881
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
843
885
|
rootVnode.$tag$ = null;
|
|
844
886
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
845
887
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -928,6 +970,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
|
|
|
928
970
|
*/
|
|
929
971
|
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
930
972
|
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
973
|
+
/**
|
|
974
|
+
* Update a component given reference to its host elements and so on.
|
|
975
|
+
*
|
|
976
|
+
* @param hostRef an object containing references to the element's host node,
|
|
977
|
+
* VDom nodes, and other metadata
|
|
978
|
+
* @param instance a reference to the underlying host element where it will be
|
|
979
|
+
* rendered
|
|
980
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
981
|
+
* the first render cycle
|
|
982
|
+
*/
|
|
931
983
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
932
984
|
var _a;
|
|
933
985
|
const elm = hostRef.$hostElement$;
|
|
@@ -939,7 +991,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
939
991
|
}
|
|
940
992
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
941
993
|
{
|
|
942
|
-
callRender(hostRef, instance);
|
|
994
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
943
995
|
}
|
|
944
996
|
if (rc) {
|
|
945
997
|
// ok, so turns out there are some child host elements
|
|
@@ -963,7 +1015,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
963
1015
|
}
|
|
964
1016
|
}
|
|
965
1017
|
};
|
|
966
|
-
|
|
1018
|
+
/**
|
|
1019
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
1020
|
+
* various build variables
|
|
1021
|
+
*
|
|
1022
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1023
|
+
* VDom nodes, and other metadata
|
|
1024
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1025
|
+
* rendered
|
|
1026
|
+
* @param elm the Host element for the component
|
|
1027
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1028
|
+
* @returns an empty promise
|
|
1029
|
+
*/
|
|
1030
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
967
1031
|
try {
|
|
968
1032
|
renderingRef = instance;
|
|
969
1033
|
instance = instance.render() ;
|
|
@@ -979,7 +1043,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
979
1043
|
// or we need to update the css class/attrs on the host element
|
|
980
1044
|
// DOM WRITE!
|
|
981
1045
|
{
|
|
982
|
-
renderVdom(hostRef, instance);
|
|
1046
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
983
1047
|
}
|
|
984
1048
|
}
|
|
985
1049
|
}
|
|
@@ -1260,6 +1324,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1260
1324
|
schedule();
|
|
1261
1325
|
}
|
|
1262
1326
|
};
|
|
1327
|
+
const fireConnectedCallback = (instance) => {
|
|
1328
|
+
};
|
|
1263
1329
|
const connectedCallback = (elm) => {
|
|
1264
1330
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1265
1331
|
const hostRef = getHostRef(elm);
|
|
@@ -1298,12 +1364,25 @@ const connectedCallback = (elm) => {
|
|
|
1298
1364
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1299
1365
|
}
|
|
1300
1366
|
}
|
|
1367
|
+
else {
|
|
1368
|
+
// fire off connectedCallback() on component instance
|
|
1369
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1370
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1371
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1301
1374
|
endConnected();
|
|
1302
1375
|
}
|
|
1303
1376
|
};
|
|
1304
|
-
const
|
|
1377
|
+
const disconnectInstance = (instance) => {
|
|
1378
|
+
};
|
|
1379
|
+
const disconnectedCallback = async (elm) => {
|
|
1305
1380
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1306
|
-
getHostRef(elm);
|
|
1381
|
+
const hostRef = getHostRef(elm);
|
|
1382
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1383
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1384
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1385
|
+
}
|
|
1307
1386
|
}
|
|
1308
1387
|
};
|
|
1309
1388
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-c9daea8f.js';
|
|
2
|
+
export { s as setNonce } from './index-c9daea8f.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-c9daea8f.js';
|
|
2
|
+
export { s as setNonce } from './index-c9daea8f.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.0.
|
|
5
|
+
Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-
|
|
1
|
+
import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-c9daea8f.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 n}from"./p-9eb75da3.js";const a=t=>{const r=t.hex||"currentColor",n=t.selected||!1,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||"radio")," ",e("g",{fill:r},e("path",n?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};function i(e,t,r){return e(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var o={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]},l=i((function(e){var t=Array.prototype.concat,r=Array.prototype.slice,n=e.exports=function(e){for(var n,a=[],i=0,o=e.length;i<o;i++){var l=e[i];(n=l)&&"string"!=typeof n&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&"String"!==n.constructor.name))?a=t.call(a,r.call(l)):a.push(l)}return a};n.wrap=function(e){return function(){return e(n(arguments))}}})),s=i((function(e){var t=Object.hasOwnProperty,r=Object.create(null);for(var n in o)t.call(o,n)&&(r[o[n]]=n);var a=e.exports={to:{},get:{}};function i(e,t,r){return Math.min(Math.max(t,e),r)}function s(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}a.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=a.get.hsl(e),r="hsl";break;case"hwb":t=a.get.hwb(e),r="hwb";break;default:t=a.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},a.get.rgb=function(e){if(!e)return null;var r,n,a,l=[0,0,0,1];if(r=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=r[2],r=r[1],n=0;n<3;n++){var s=2*n;l[n]=parseInt(r.slice(s,s+2),16)}a&&(l[3]=parseInt(a,16)/255)}else if(r=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(r=r[1])[3],n=0;n<3;n++)l[n]=parseInt(r[n]+r[n],16);a&&(l[3]=parseInt(a+a,16)/255)}else if(r=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)l[n]=parseInt(r[n+1],0);r[4]&&(l[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}else{if(!(r=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(r=e.match(/^(\w+)$/))?"transparent"===r[1]?[0,0,0,0]:t.call(o,r[1])?((l=o[r[1]])[3]=1,l):null:null;for(n=0;n<3;n++)l[n]=Math.round(2.55*parseFloat(r[n+1]));r[4]&&(l[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}for(n=0;n<3;n++)l[n]=i(l[n],0,255);return l[3]=i(l[3],0,1),l},a.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,i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.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,i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.to.hex=function(){var e=l(arguments);return"#"+s(e[0])+s(e[1])+s(e[2])+(e[3]<1?s(Math.round(255*e[3])):"")},a.to.rgb=function(){var e=l(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},a.to.rgb.percent=function(){var e=l(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},a.to.hsl=function(){var e=l(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},a.to.hwb=function(){var e=l(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},a.to.keyword=function(e){return r[e.slice(0,3)]}})),u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c=i((function(e){var t={};for(var r in u)u.hasOwnProperty(r)&&(t[u[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in n)if(n.hasOwnProperty(a)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=n[a].channels,o=n[a].labels;delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:i}),Object.defineProperty(n[a],"labels",{value:o})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(n,a,i),l=Math.max(n,a,i),s=l-o;return l===o?t=0:n===l?t=(a-i)/s:a===l?t=2+(i-n)/s:i===l&&(t=4+(n-a)/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]},n.rgb.hsv=function(e){var t,r,n,a,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?a=i=0:(i=c/u,t=h(o),r=h(l),n=h(s),o===u?a=n-r:l===u?a=1/3+t-n:s===u&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},n.rgb.hwb=function(e){var t=e[0],r=e[1],a=e[2];return[n.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)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,a,i,o=1/0;for(var l in u)if(u.hasOwnProperty(l)){var s=(a=e,i=u[l],Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));s<o&&(o=s,n=l)}return n},n.keyword.rgb=function(e){return u[e]},n.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=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*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],a=t[1],i=t[2];return a/=100,i/=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-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},n.hsl.rgb=function(e){var t,r,n,a,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),a=[0,0,0];for(var u=0;u<3;u++)(n=o+1/3*-(u-1))<0&&n++,n>1&&n--,a[u]=255*(i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t);return a},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[t,100*(0===n?2*a/(i+a):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),l=255*n*(1-r*i),s=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,s,o];case 1:return[l,n,o];case 2:return[o,n,s];case 3:return[o,l,n];case 4:return[s,o,n];case 5:return[n,o,l]}},n.hsv.hsl=function(e){var t,r,n,a=e[0],i=e[1]/100,o=e[2]/100,l=Math.max(o,.01);return n=(2-i)*o,r=i*l,[a,100*(r=(r/=(t=(2-i)*l)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,a,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),n=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(n=1-n),a=u+n*((r=1-c)-u),t){default:case 6:case 0:i=r,o=a,l=u;break;case 1:i=a,o=r,l=u;break;case 2:i=u,o=r,l=a;break;case 3:i=u,o=a,l=r;break;case 4:i=a,o=u,l=r;break;case 5:i=r,o=u,l=a}return[255*i,255*o,255*l]},n.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},n.xyz.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-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,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=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-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n;t=e[1]/500+(r=(e[0]+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},n.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)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],a=e[2],i=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?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(n/255*5)},n.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]},n.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]},n.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},n.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 n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(r,n),a),o=Math.min(Math.min(r,n),a),l=i-o;return t=l<=0?0:i===r?(n-a)/l%6:i===n?2+(a-r)/l:4+(r-n)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?o/(1-l):0)]},n.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,a=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(a=(n-.5*t)/(1-t)),[e[0],100*t,100*a]},n.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var n,a=[0,0,0],i=e[0]/360%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return[255*(t*a[0]+(n=(1-t)*r)),255*(t*a[1]+n),255*(t*a[2]+n)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.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)]},n.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function h(e,t){return function(r){return t(e(r))}}function f(e,t){for(var r=[t[e].parent,e],n=c[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=h(c[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var d={};Object.keys(c).forEach((function(e){d[e]={},Object.defineProperty(d[e],"channels",{value:c[e].channels}),Object.defineProperty(d[e],"labels",{value:c[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(c),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(c[n]),i=a.length,o=0;o<i;o++){var l=a[o],s=t[l];-1===s.distance&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(l))}return t}(e),r={},n=Object.keys(t),a=n.length,i=0;i<a;i++){var o=n[i];null!==t[o].parent&&(r[o]=f(o,t))}return r}(e);Object.keys(t).forEach((function(r){var n=t[r];d[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 n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),d[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}(n)}))}));var g=d,b=[].slice,p=["keyword","gray","hex"],v={};Object.keys(g).forEach((function(e){v[b.call(g[e].labels).sort().join("")]=e}));var m={};function w(e,t){if(!(this instanceof w))return new w(e,t);if(t&&t in p&&(t=null),t&&!(t in g))throw new Error("Unknown model: "+t);var r,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof w)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=s.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,n=g[this.model].channels),this.valpha="number"==typeof a.value[n]?a.value[n]:1}else if(e.length){this.model=t||"rgb";var i=b.call(e,0,n=g[this.model].channels);this.color=M(i,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var 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 v))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=v[l];var u=g[this.model].labels,c=[];for(r=0;r<u.length;r++)c.push(e[u[r]]);this.color=M(c)}if(m[this.model])for(n=g[this.model].channels,r=0;r<n;r++){var h=m[this.model][r];h&&(this.color[r]=h(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function y(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(m[e]||(m[e]=[]))[t]=r})),e=e[0],function(n){var a;return arguments.length?(r&&(n=r(n)),(a=this[e]()).color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function k(e){return function(t){return Math.max(0,Math.min(e,t))}}function M(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}w.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=g[this.model].channels,r=g[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new w(this.color.map(function(e){return function(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 w(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:y("rgb",0,k(255)),green:y("rgb",1,k(255)),blue:y("rgb",2,k(255)),hue:y(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:y("hsl",1,k(100)),lightness:y("hsl",2,k(100)),saturationv:y("hsv",1,k(100)),value:y("hsv",2,k(100)),chroma:y("hcg",1,k(100)),gray:y("hcg",2,k(100)),white:y("hwb",1,k(100)),wblack:y("hwb",2,k(100)),cyan:y("cmyk",0,k(100)),magenta:y("cmyk",1,k(100)),yellow:y("cmyk",2,k(100)),black:y("cmyk",3,k(100)),x:y("xyz",0,k(100)),y:y("xyz",1,k(100)),z:y("xyz",2,k(100)),l:y("lab",0,k(100)),a:y("lab",1),b:y("lab",2),keyword:function(e){return arguments.length?new w(e):g[this.model].keyword(this.color)},hex:function(e){return arguments.length?new w(e):s.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.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 w.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(),n=this.rgb(),a=void 0===t?.5:t,i=2*a-1,o=r.alpha()-n.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return w.rgb(l*r.red()+s*n.red(),l*r.green()+s*n.green(),l*r.blue()+s*n.blue(),r.alpha()*a+n.alpha()*(1-a))}},Object.keys(g).forEach((function(e){if(-1===p.indexOf(e)){var t=g[e].channels;w.prototype[e]=function(){if(this.model===e)return new w(this);if(arguments.length)return new w(arguments,e);var r,n="number"==typeof arguments[t]?t:this.valpha;return new w((r=g[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(n),e)},w[e]=function(r){return"number"==typeof r&&(r=M(b.call(arguments),t)),new w(r,e)}}}));const x=[{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)),C={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"},j={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},O=Object.keys(C),z=e=>!("isConnected"in e)||e.isConnected,A=(()=>{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(z))})(...t)}),2e3)}})(),q=e=>"function"==typeof e?e():e,S="proto-tinker-wc::app-data",L=(()=>{const e=((e,t=((e,t)=>e!==t))=>{const r=q(e);let n=new Map(Object.entries(null!=r?r:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var t;n=new Map(Object.entries(null!==(t=q(e))&&void 0!==t?t:{})),a.reset.forEach((e=>e()))},o=e=>(a.get.forEach((t=>t(e))),n.get(e)),l=(e,r)=>{const i=n.get(e);t(r,i,e)&&(n.set(e,r),a.set.forEach((t=>t(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,t)=>o(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,r)=>(l(t,r),!0)}),u=(e,t)=>(a[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(a[e],t)});return{state:s,get:o,set:l,on:u,onChange:(t,r)=>{const n=u("set",((e,n)=>{e===t&&r(n)})),a=u("reset",(()=>r(q(e)[t])));return()=>{n(),a()}},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:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=n.get(e);a.set.forEach((r=>r(e,t,t)))}}})({count:0,pick:"bada55",values:[...x]},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const n=t();n&&((e,t,r)=>{const n=e.get(t);n?n.includes(r)||n.push(r):e.set(t,[r])})(e,r,n)},set:t=>{const n=e.get(t);n&&e.set(t,n.filter(r)),A(e)},reset:()=>{e.forEach((e=>e.forEach(r))),A(e)}}})()),e})(),{state:F}=L,E=()=>{const{count:e,pick:t,values:r}=F;(e=>{const t=JSON.stringify(e);localStorage.setItem(S,t)})({count:e,pick:t,values:r})},N={initApp:()=>{const e=(()=>{const e=localStorage.getItem(S);return e?JSON.parse(e):void 0})();if(e){const{count:t,pick:r,values:n}=e;F.count=t,F.pick=r,F.values=n}},refresh:()=>{const e=x.map((()=>Math.floor(100*Math.random())));F.count=F.count+1,F.values=e,E()},reset:()=>{F.count=0,F.values=[...x],E()},updatePick:e=>{F.pick=e,E()}},I=t=>{const{actions:r,state:n}=t,{pick:i}=n;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},O.map((t=>{const n=(e=>C[e]||j[e])(t),o=i===t;return e("div",{"aria-label":t,"aria-checked":o?"true":"false",role:"radio",onClick:()=>{r.updatePick(t)}},e(a,{hex:n,selected:o,label:t}))})))},$=t=>{const r=t.hex||"currentColor",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||"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"}))},U=t=>{const r=t.hex||"currentColor",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||"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"}))},B=t=>{const r=t.hex||"currentColor",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||"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"}))},H=t=>{const{actions:r,state:n}=t,{count:a}=n;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(B,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(U,{label:"Reset"})),e("span",{class:"flex items-center"},e($,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},R=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.3.3"),D=t=>{const{state:r}=t,{values:n,pick:a,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"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?n:"..."}`))),e(R,null))},J=t=>{const r=t.hex||"currentColor",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||"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"}))},P="eswat2",T=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":P,target:"blank",title:P},e(J,{label:"eswat2"})),Z=t=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},t.label),K=class{constructor(e){n(this,e),this.tag="proto-tinker"}componentDidLoad(){N.initApp()}render(){return e("div",{id:"app",class:"ds1-main"},e(Z,{label:"tinker wc"}),e(T,null),e(H,{actions:N,state:F}),e(I,{actions:N,state:F}),e("hr",{class:"ml-0 mr-0"}),e(D,{state:F}))}};K.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,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n '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}.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{K as proto_tinker}
|
|
1
|
+
import{h as e,g as t,f as r,r as n}from"./p-cfb8668e.js";const a=t=>{const r=t.hex||"currentColor",n=t.selected||!1,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||"radio")," ",e("g",{fill:r},e("path",n?{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),e("path",{d:"M0 0h24v24H0z",fill:"none"}))};function i(e,t,r){return e(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var o={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]},l=i((function(e){var t=Array.prototype.concat,r=Array.prototype.slice,n=e.exports=function(e){for(var n,a=[],i=0,o=e.length;i<o;i++){var l=e[i];(n=l)&&"string"!=typeof n&&(n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&"String"!==n.constructor.name))?a=t.call(a,r.call(l)):a.push(l)}return a};n.wrap=function(e){return function(){return e(n(arguments))}}})),s=i((function(e){var t=Object.hasOwnProperty,r=Object.create(null);for(var n in o)t.call(o,n)&&(r[o[n]]=n);var a=e.exports={to:{},get:{}};function i(e,t,r){return Math.min(Math.max(t,e),r)}function s(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}a.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=a.get.hsl(e),r="hsl";break;case"hwb":t=a.get.hwb(e),r="hwb";break;default:t=a.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},a.get.rgb=function(e){if(!e)return null;var r,n,a,l=[0,0,0,1];if(r=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=r[2],r=r[1],n=0;n<3;n++){var s=2*n;l[n]=parseInt(r.slice(s,s+2),16)}a&&(l[3]=parseInt(a,16)/255)}else if(r=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(r=r[1])[3],n=0;n<3;n++)l[n]=parseInt(r[n]+r[n],16);a&&(l[3]=parseInt(a+a,16)/255)}else if(r=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)l[n]=parseInt(r[n+1],0);r[4]&&(l[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}else{if(!(r=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(r=e.match(/^(\w+)$/))?"transparent"===r[1]?[0,0,0,0]:t.call(o,r[1])?((l=o[r[1]])[3]=1,l):null:null;for(n=0;n<3;n++)l[n]=Math.round(2.55*parseFloat(r[n+1]));r[4]&&(l[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}for(n=0;n<3;n++)l[n]=i(l[n],0,255);return l[3]=i(l[3],0,1),l},a.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,i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.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,i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.to.hex=function(){var e=l(arguments);return"#"+s(e[0])+s(e[1])+s(e[2])+(e[3]<1?s(Math.round(255*e[3])):"")},a.to.rgb=function(){var e=l(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},a.to.rgb.percent=function(){var e=l(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+n+"%)":"rgba("+t+"%, "+r+"%, "+n+"%, "+e[3]+")"},a.to.hsl=function(){var e=l(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},a.to.hwb=function(){var e=l(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},a.to.keyword=function(e){return r[e.slice(0,3)]}})),u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c=i((function(e){var t={};for(var r in u)u.hasOwnProperty(r)&&(t[u[r]]=r);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in n)if(n.hasOwnProperty(a)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=n[a].channels,o=n[a].labels;delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:i}),Object.defineProperty(n[a],"labels",{value:o})}n.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(n,a,i),l=Math.max(n,a,i),s=l-o;return l===o?t=0:n===l?t=(a-i)/s:a===l?t=2+(i-n)/s:i===l&&(t=4+(n-a)/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]},n.rgb.hsv=function(e){var t,r,n,a,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?a=i=0:(i=c/u,t=h(o),r=h(l),n=h(s),o===u?a=n-r:l===u?a=1/3+t-n:s===u&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},n.rgb.hwb=function(e){var t=e[0],r=e[1],a=e[2];return[n.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)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var r=t[e];if(r)return r;var n,a,i,o=1/0;for(var l in u)if(u.hasOwnProperty(l)){var s=(a=e,i=u[l],Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));s<o&&(o=s,n=l)}return n},n.keyword.rgb=function(e){return u[e]},n.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=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*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],a=t[1],i=t[2];return a/=100,i/=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-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},n.hsl.rgb=function(e){var t,r,n,a,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),a=[0,0,0];for(var u=0;u<3;u++)(n=o+1/3*-(u-1))<0&&n++,n>1&&n--,a[u]=255*(i=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t);return a},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[t,100*(0===n?2*a/(i+a):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),l=255*n*(1-r*i),s=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,s,o];case 1:return[l,n,o];case 2:return[o,n,s];case 3:return[o,l,n];case 4:return[s,o,n];case 5:return[n,o,l]}},n.hsv.hsl=function(e){var t,r,n,a=e[0],i=e[1]/100,o=e[2]/100,l=Math.max(o,.01);return n=(2-i)*o,r=i*l,[a,100*(r=(r/=(t=(2-i)*l)<=1?t:2-t)||0),100*(n/=2)]},n.hwb.rgb=function(e){var t,r,n,a,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),n=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(n=1-n),a=u+n*((r=1-c)-u),t){default:case 6:case 0:i=r,o=a,l=u;break;case 1:i=a,o=r,l=u;break;case 2:i=u,o=r,l=a;break;case 3:i=u,o=a,l=r;break;case 4:i=a,o=u,l=r;break;case 5:i=r,o=u,l=a}return[255*i,255*o,255*l]},n.cmyk.rgb=function(e){var t=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-n)+n)),255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},n.xyz.rgb=function(e){var t,r,n,a=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-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,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=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-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(e){var t,r,n;t=e[1]/500+(r=(e[0]+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),i=Math.pow(t,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},n.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},n.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)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],a=e[2],i=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?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(n/255*5)},n.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]},n.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]},n.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},n.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 n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,i=Math.max(Math.max(r,n),a),o=Math.min(Math.min(r,n),a),l=i-o;return t=l<=0?0:i===r?(n-a)/l%6:i===n?2+(a-r)/l:4+(r-n)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?o/(1-l):0)]},n.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,a=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(a=(n-.5*t)/(1-t)),[e[0],100*t,100*a]},n.hsv.hcg=function(e){var t=e[2]/100,r=e[1]/100*t,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.hcg.rgb=function(e){var t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];var n,a=[0,0,0],i=e[0]/360%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return[255*(t*a[0]+(n=(1-t)*r)),255*(t*a[1]+n),255*(t*a[2]+n)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},n.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)]},n.hwb.hcg=function(e){var t=1-e[2]/100,r=t-e[1]/100,n=0;return r<1&&(n=(t-r)/(1-r)),[e[0],100*r,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function h(e,t){return function(r){return t(e(r))}}function f(e,t){for(var r=[t[e].parent,e],n=c[t[e].parent][e],a=t[e].parent;t[a].parent;)r.unshift(t[a].parent),n=h(c[t[a].parent][a],n),a=t[a].parent;return n.conversion=r,n}var d={};Object.keys(c).forEach((function(e){d[e]={},Object.defineProperty(d[e],"channels",{value:c[e].channels}),Object.defineProperty(d[e],"labels",{value:c[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(c),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(c[n]),i=a.length,o=0;o<i;o++){var l=a[o],s=t[l];-1===s.distance&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(l))}return t}(e),r={},n=Object.keys(t),a=n.length,i=0;i<a;i++){var o=n[i];null!==t[o].parent&&(r[o]=f(o,t))}return r}(e);Object.keys(t).forEach((function(r){var n=t[r];d[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 n=r.length,a=0;a<n;a++)r[a]=Math.round(r[a]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(n),d[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}(n)}))}));var g=d,b=[].slice,p=["keyword","gray","hex"],v={};Object.keys(g).forEach((function(e){v[b.call(g[e].labels).sort().join("")]=e}));var m={};function w(e,t){if(!(this instanceof w))return new w(e,t);if(t&&t in p&&(t=null),t&&!(t in g))throw new Error("Unknown model: "+t);var r,n;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof w)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var a=s.get(e);if(null===a)throw new Error("Unable to parse color from string: "+e);this.model=a.model,this.color=a.value.slice(0,n=g[this.model].channels),this.valpha="number"==typeof a.value[n]?a.value[n]:1}else if(e.length){this.model=t||"rgb";var i=b.call(e,0,n=g[this.model].channels);this.color=M(i,n),this.valpha="number"==typeof e[n]?e[n]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var 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 v))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=v[l];var u=g[this.model].labels,c=[];for(r=0;r<u.length;r++)c.push(e[u[r]]);this.color=M(c)}if(m[this.model])for(n=g[this.model].channels,r=0;r<n;r++){var h=m[this.model][r];h&&(this.color[r]=h(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function y(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(m[e]||(m[e]=[]))[t]=r})),e=e[0],function(n){var a;return arguments.length?(r&&(n=r(n)),(a=this[e]()).color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function k(e){return function(t){return Math.max(0,Math.min(e,t))}}function M(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}w.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=g[this.model].channels,r=g[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new w(this.color.map(function(e){return function(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 w(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:y("rgb",0,k(255)),green:y("rgb",1,k(255)),blue:y("rgb",2,k(255)),hue:y(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:y("hsl",1,k(100)),lightness:y("hsl",2,k(100)),saturationv:y("hsv",1,k(100)),value:y("hsv",2,k(100)),chroma:y("hcg",1,k(100)),gray:y("hcg",2,k(100)),white:y("hwb",1,k(100)),wblack:y("hwb",2,k(100)),cyan:y("cmyk",0,k(100)),magenta:y("cmyk",1,k(100)),yellow:y("cmyk",2,k(100)),black:y("cmyk",3,k(100)),x:y("xyz",0,k(100)),y:y("xyz",1,k(100)),z:y("xyz",2,k(100)),l:y("lab",0,k(100)),a:y("lab",1),b:y("lab",2),keyword:function(e){return arguments.length?new w(e):g[this.model].keyword(this.color)},hex:function(e){return arguments.length?new w(e):s.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],r=0;r<e.length;r++){var n=e[r]/255;t[r]=n<=.03928?n/12.92:Math.pow((n+.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 w.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(),n=this.rgb(),a=void 0===t?.5:t,i=2*a-1,o=r.alpha()-n.alpha(),l=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-l;return w.rgb(l*r.red()+s*n.red(),l*r.green()+s*n.green(),l*r.blue()+s*n.blue(),r.alpha()*a+n.alpha()*(1-a))}},Object.keys(g).forEach((function(e){if(-1===p.indexOf(e)){var t=g[e].channels;w.prototype[e]=function(){if(this.model===e)return new w(this);if(arguments.length)return new w(arguments,e);var r,n="number"==typeof arguments[t]?t:this.valpha;return new w((r=g[this.model][e].raw(this.color),Array.isArray(r)?r:[r]).concat(n),e)},w[e]=function(r){return"number"==typeof r&&(r=M(b.call(arguments),t)),new w(r,e)}}}));const x=[{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)),C={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"},j={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},O=Object.keys(C),z=e=>!("isConnected"in e)||e.isConnected,A=(()=>{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(z))})(...t)}),2e3)}})(),q=e=>"function"==typeof e?e():e,S="proto-tinker-wc::app-data",L=(()=>{const e=((e,t=((e,t)=>e!==t))=>{const r=q(e);let n=new Map(Object.entries(null!=r?r:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var t;n=new Map(Object.entries(null!==(t=q(e))&&void 0!==t?t:{})),a.reset.forEach((e=>e()))},o=e=>(a.get.forEach((t=>t(e))),n.get(e)),l=(e,r)=>{const i=n.get(e);t(r,i,e)&&(n.set(e,r),a.set.forEach((t=>t(e,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(e,t)=>o(t),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>n.has(t),set:(e,t,r)=>(l(t,r),!0)}),u=(e,t)=>(a[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(a[e],t)});return{state:s,get:o,set:l,on:u,onChange:(t,r)=>{const n=u("set",((e,n)=>{e===t&&r(n)})),a=u("reset",(()=>r(q(e)[t])));return()=>{n(),a()}},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:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=n.get(e);a.set.forEach((r=>r(e,t,t)))}}})({count:0,pick:"bada55",values:[...x]},void 0);return e.use((()=>{if("function"!=typeof t)return{};const e=new Map;return{dispose:()=>e.clear(),get:r=>{const n=t();n&&((e,t,r)=>{const n=e.get(t);n?n.includes(r)||n.push(r):e.set(t,[r])})(e,r,n)},set:t=>{const n=e.get(t);n&&e.set(t,n.filter(r)),A(e)},reset:()=>{e.forEach((e=>e.forEach(r))),A(e)}}})()),e})(),{state:F}=L,E=()=>{const{count:e,pick:t,values:r}=F;(e=>{const t=JSON.stringify(e);localStorage.setItem(S,t)})({count:e,pick:t,values:r})},N={initApp:()=>{const e=(()=>{const e=localStorage.getItem(S);return e?JSON.parse(e):void 0})();if(e){const{count:t,pick:r,values:n}=e;F.count=t,F.pick=r,F.values=n}},refresh:()=>{const e=x.map((()=>Math.floor(100*Math.random())));F.count=F.count+1,F.values=e,E()},reset:()=>{F.count=0,F.values=[...x],E()},updatePick:e=>{F.pick=e,E()}},I=t=>{const{actions:r,state:n}=t,{pick:i}=n;return e("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},O.map((t=>{const n=(e=>C[e]||j[e])(t),o=i===t;return e("div",{"aria-label":t,"aria-checked":o?"true":"false",role:"radio",onClick:()=>{r.updatePick(t)}},e(a,{hex:n,selected:o,label:t}))})))},$=t=>{const r=t.hex||"currentColor",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||"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"}))},U=t=>{const r=t.hex||"currentColor",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||"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"}))},B=t=>{const r=t.hex||"currentColor",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||"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"}))},H=t=>{const{actions:r,state:n}=t,{count:a}=n;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(B,{label:"Refresh"})),e("button",{"aria-label":"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},e(U,{label:"Reset"})),e("span",{class:"flex items-center"},e($,{size:28}),e("span",{class:"italic"},"click a button... ",e("sup",null,a))))},R=()=>e("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.3.3"),D=t=>{const{state:r}=t,{values:n,pick:a,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"},a)),e("div",{class:"mt-5px flex"},e("span",{class:"mr-10px font-bold"},"sample:"),e("span",{class:"italic text-clrs-slate4"},`${i>0?n:"..."}`))),e(R,null))},J=t=>{const r=t.hex||"currentColor",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||"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"}))},P="eswat2",T=()=>e("a",{class:"absolute right-8 top-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":P,target:"blank",title:P},e(J,{label:"eswat2"})),Z=t=>e("h1",{class:"mb-11 ml-0 mr-0 mt-11 text-center text-6xl font-thin uppercase text-clrs-red"},t.label),K=class{constructor(e){n(this,e),this.tag="proto-tinker"}componentDidLoad(){N.initApp()}render(){return e("div",{id:"app",class:"ds1-main"},e(Z,{label:"tinker wc"}),e(T,null),e(H,{actions:N,state:F}),e(I,{actions:N,state:F}),e("hr",{class:"ml-0 mr-0"}),e(D,{state:F}))}};K.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,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n 'Helvetica Neue',\n Arial,\n 'Noto Sans',\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji',\n 'Segoe UI Symbol',\n '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}.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{K as proto_tinker}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t,e=!1,l=null,o=!1;const s={},i=n=>"object"==(n=typeof n)||"function"===n;function r(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const c=(n,t,...e)=>{let l=null,o=!1,s=!1;const r=[],c=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!i(l))&&(l+=""),o&&s?r[r.length-1].t+=l:r.push(o?u(null,l):l),s=o)};if(c(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}if("function"==typeof n)return n(null===t?{}:t,r,f);const a=u(n,null);return a.l=t,r.length>0&&(a.o=r),a},u=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),a={},f={forEach:(n,t)=>n.map(d).forEach(t),map:(n,t)=>n.map(d).map(t).map(y)},d=n=>({vattrs:n.l,vchildren:n.o,vkey:n.p,vname:n.v,vtag:n.u,vtext:n.t}),y=n=>{if("function"==typeof n.vtag){const t=Object.assign({},n.vattrs);return n.vkey&&(t.key=n.vkey),n.vname&&(t.name=n.vname),c(n.vtag,t,...n.vchildren||[])}const t=u(n.vtag,n.vtext);return t.l=n.vattrs,t.o=n.vchildren,t.p=n.vkey,t.v=n.vname,t},h=new WeakMap,p=n=>"sc-"+n.m,v=(n,t,e,l,o,s)=>{if(e!==l){let r=B(n,t),c=t.toLowerCase();if("class"===t){const t=n.classList,o=$(e),s=$(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if(r||"o"!==t[0]||"n"!==t[1]){const c=i(l);if((r||c&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!r||4&s||o)&&!c&&n.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):B(Q,c)?c.slice(2):c[2]+t.slice(3),e&&Y.rel(n,t,e,!1),l&&Y.ael(n,t,l,!1)}},m=/\s/,$=n=>n?n.split(m):[],w=(n,t,e,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||s,r=t.l||s;for(l in i)l in r||v(o,l,i[l],void 0,e,t.i);for(l in r)v(o,l,i[l],r[l],e,t.i)},b=(t,l,o)=>{const s=l.o[o];let i,r,c=0;if(null!==s.t)i=s.h=X.createTextNode(s.t);else{if(e||(e="svg"===s.u),i=s.h=X.createElementNS(e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),e&&"foreignObject"===s.u&&(e=!1),w(null,s,e),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.o)for(c=0;c<s.o.length;++c)r=b(t,s,c),r&&i.appendChild(r);"svg"===s.u?e=!1:"foreignObject"===i.tagName&&(e=!0)}return i},g=(n,e,l,o,s,i)=>{let r,c=n;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=b(null,l,s),r&&(o[s].h=r,c.insertBefore(r,e)))},j=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},S=(n,t)=>n.u===t.u,O=(n,t)=>{const l=t.h=n.h,o=n.o,s=t.o,i=t.u,r=t.t;null===r?(e="svg"===i||"foreignObject"!==i&&e,w(n,t,e),null!==o&&null!==s?((n,t,e,l)=>{let o,s=0,i=0,r=t.length-1,c=t[0],u=t[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&i<=a;)null==c?c=t[++s]:null==u?u=t[--r]:null==f?f=l[++i]:null==d?d=l[--a]:S(c,f)?(O(c,f),c=t[++s],f=l[++i]):S(u,d)?(O(u,d),u=t[--r],d=l[--a]):S(c,d)?(O(c,d),n.insertBefore(c.h,u.h.nextSibling),c=t[++s],d=l[--a]):S(u,f)?(O(u,f),n.insertBefore(u.h,c.h),u=t[--r],f=l[++i]):(o=b(t&&t[i],e,i),f=l[++i],o&&c.h.parentNode.insertBefore(o,c.h));s>r?g(n,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&j(t,s,r)})(l,o,t,s):null!==s?(null!==n.t&&(l.textContent=""),g(l,null,t,s,0,s.length-1)):null!==o&&j(o,0,o.length-1),e&&"svg"===i&&(e=!1)):n.t!==r&&(l.data=r)},k=(n,t)=>{t&&!n.$&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.$=t)))},M=(n,t)=>{if(n.i|=16,!(4&n.i))return k(n,n.g),cn((()=>C(n,t)));n.i|=512},C=(n,t)=>{const e=n.j;return x(void 0,(()=>E(n,e,t)))},x=(n,t)=>P(n)?n.then(t):t(),P=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,E=async(n,t,e)=>{var l;const o=n.S,s=o["s-rc"];e&&(n=>{const t=n.O,e=n.S,l=t.i,o=((n,t)=>{var e;const l=p(t),o=K.get(l);if(n=11===n.nodeType?n:X,o)if("string"==typeof o){let t,s=h.get(n=n.head||n);if(s||h.set(n,s=new Set),!s.has(l)){{t=X.createElement("style"),t.innerHTML=o;const l=null!==(e=Y.k)&&void 0!==e?e:r(X);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}s&&s.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);L(n,t,o,e),s&&(s.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>T(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},L=(e,o,s,i)=>{try{l=o,o=o.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.S,i=e.M||u(null,null),r=(n=>n&&n.u===a)(l)?l:c(null,null,l);if(t=s.tagName,o&&r.l)for(const n of Object.keys(r.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(r.l[n]=s[n]);r.u=null,r.i|=4,e.M=r,r.h=i.h=s.shadowRoot||s,n=s["s-sc"],O(i,r)})(e,o,i)}catch(n){G(n,e.S)}return l=null,null},N=()=>l,T=n=>{const t=n.S,e=n.j,l=n.g;64&n.i||(n.i|=64,W(t),U(e,"componentDidLoad"),n.C(t),l||R()),n.$&&(n.$(),n.$=void 0),512&n.i&&rn((()=>M(n,!1))),n.i&=-517},A=n=>{{const t=V(n),e=t.S.isConnected;return e&&2==(18&t.i)&&M(t,!1),e}},R=()=>{W(X.documentElement),rn((()=>(n=>{const t=Y.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return n.dispatchEvent(t),t})(Q)))},U=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){G(n)}},W=n=>n.classList.add("hydrated"),q=(n,t,e)=>{if(t.P){const l=Object.entries(t.P),o=n.prototype;if(l.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>V(this).L.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=V(n),s=o.L.get(t),r=o.i,c=o.j;e=((n,t)=>null==n||i(n)?n:1&t?n+"":n)(e,l.P[t][0]),8&r&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(o.L.set(t,e),c&&2==(18&r)&&M(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const t=new Map;o.attributeChangedCallback=function(n,e,l){Y.jmp((()=>{const e=t.get(n);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},n.observedAttributes=l.filter((([n,t])=>15&t[0])).map((([n,e])=>{const l=e[1]||n;return t.set(l,n),l}))}}return n},D=(n,t={})=>{var e;const l=[],o=t.exclude||[],s=Q.customElements,i=X.head,c=i.querySelector("meta[charset]"),u=X.createElement("style"),a=[];let f,d=!0;Object.assign(Y,t),Y.N=new URL(t.resourcesUrl||"./",X.baseURI).href,n.map((n=>{n[1].map((t=>{const e={i:t[0],m:t[1],P:t[2],T:t[3]};e.P=t[2];const i=e.m,r=class extends HTMLElement{constructor(n){super(n),z(n=this,e),1&e.i&&n.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Y.jmp((()=>(n=>{if(0==(1&Y.i)){const t=V(n),e=t.O,l=()=>{};if(1&t.i)(null==t?void 0:t.j)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){k(t,t.g=e);break}}e.P&&Object.entries(e.P).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=J(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(q(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){G(n)}t.i&=-9,n()}if(o.style){let n=o.style;const t=p(e);if(!K.has(t)){const l=()=>{};((n,t,e)=>{let l=K.get(n);nn&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,K.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.g,i=()=>M(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(async()=>{if(0==(1&Y.i)){const n=V(this);(null==n?void 0:n.j)||(null==n?void 0:n.A)&&n.A.then((()=>{}))}})()))}componentOnReady(){return V(this).A}};e.R=n[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,q(r,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=Y.k)&&void 0!==e?e:r(X);null!=n&&u.setAttribute("nonce",n),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((n=>n.connectedCallback())):Y.jmp((()=>f=setTimeout(R,30)))},F=n=>Y.k=n,H=new WeakMap,V=n=>H.get(n),_=(n,t)=>H.set(t.j=n,t),z=(n,t)=>{const e={i:0,S:n,O:t,L:new Map};return e.A=new Promise((n=>e.C=n)),n["s-p"]=[],n["s-rc"]=[],H.set(n,e)},B=(n,t)=>t in n,G=(n,t)=>(0,console.error)(n,t),I=new Map,J=n=>{const t=n.m.replace(/-/g,"_"),e=n.R,l=I.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(I.set(e,n),n[t])),G)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},Z=n=>Promise.resolve(n),nn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),tn=[],en=[],ln=(n,t)=>e=>{n.push(e),o||(o=!0,t&&4&Y.i?rn(sn):Y.raf(sn))},on=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){G(n)}n.length=0},sn=()=>{on(tn),on(en),(o=tn.length>0)&&Y.raf(sn)},rn=n=>Z().then(n),cn=ln(en,!0);export{D as b,A as f,N as g,c as h,Z as p,_ as r,F as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as t,b as e}from"./p-cfb8668e.js";export{s as setNonce}from"./p-cfb8668e.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((t=>e([["p-74bb8491",[[1,"proto-tinker",{tag:[1]}]]]],t)));
|
|
@@ -432,7 +432,7 @@ export interface QueueApi {
|
|
|
432
432
|
/**
|
|
433
433
|
* Host
|
|
434
434
|
*/
|
|
435
|
-
interface HostAttributes {
|
|
435
|
+
export interface HostAttributes {
|
|
436
436
|
class?: string | {
|
|
437
437
|
[className: string]: boolean;
|
|
438
438
|
};
|
|
@@ -930,6 +930,8 @@ export declare namespace JSXBase {
|
|
|
930
930
|
minlength?: number | string;
|
|
931
931
|
multiple?: boolean;
|
|
932
932
|
name?: string;
|
|
933
|
+
onSelect?: (event: Event) => void;
|
|
934
|
+
onselect?: (event: Event) => void;
|
|
933
935
|
pattern?: string;
|
|
934
936
|
placeholder?: string;
|
|
935
937
|
readOnly?: boolean;
|
|
@@ -1143,6 +1145,8 @@ export declare namespace JSXBase {
|
|
|
1143
1145
|
minLength?: number;
|
|
1144
1146
|
minlength?: number | string;
|
|
1145
1147
|
name?: string;
|
|
1148
|
+
onSelect?: (event: Event) => void;
|
|
1149
|
+
onselect?: (event: Event) => void;
|
|
1146
1150
|
placeholder?: string;
|
|
1147
1151
|
readOnly?: boolean;
|
|
1148
1152
|
readonly?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-tinker-wc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.336",
|
|
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.0.
|
|
31
|
+
"@stencil/core": "4.0.3",
|
|
32
32
|
"@stencil/store": "2.0.9",
|
|
33
33
|
"between.js": "0.1.2-fix.2"
|
|
34
34
|
},
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"cspell": "6.31.2",
|
|
39
39
|
"eslint": "8.46.0",
|
|
40
40
|
"postcss": "8.4.27",
|
|
41
|
-
"prettier": "3.0.
|
|
41
|
+
"prettier": "3.0.1",
|
|
42
42
|
"prettier-plugin-tailwindcss": "0.4.1",
|
|
43
|
-
"proto-tailwindcss-clrs": "0.0.
|
|
43
|
+
"proto-tailwindcss-clrs": "0.0.261",
|
|
44
44
|
"tailwindcss": "3.3.3",
|
|
45
45
|
"tslint": "6.1.3",
|
|
46
46
|
"typescript": "5.1.6"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let t,n,e=!1,l=null,o=!1;const s={},r=t=>"object"==(t=typeof t)||"function"===t;function c(t){var n,e,l;return null!==(l=null===(e=null===(n=t.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(t,n,...e)=>{let l=null,o=!1,s=!1;const c=[],i=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof t&&!r(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?u(null,l):l),s=o)};if(i(e),n){const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}if("function"==typeof t)return t(null===n?{}:n,c,f);const a=u(t,null);return a.l=n,c.length>0&&(a.o=c),a},u=(t,n)=>({i:0,u:t,t:n,p:null,o:null,l:null}),a={},f={forEach:(t,n)=>t.map(d).forEach(n),map:(t,n)=>t.map(d).map(n).map(p)},d=t=>({vattrs:t.l,vchildren:t.o,vkey:t.h,vname:t.m,vtag:t.u,vtext:t.t}),p=t=>{if("function"==typeof t.vtag){const n=Object.assign({},t.vattrs);return t.vkey&&(n.key=t.vkey),t.vname&&(n.name=t.vname),i(t.vtag,n,...t.vchildren||[])}const n=u(t.vtag,t.vtext);return n.l=t.vattrs,n.o=t.vchildren,n.h=t.vkey,n.m=t.vname,n},h=new WeakMap,y=t=>"sc-"+t.$,m=(t,n,e,l,o,s)=>{if(e!==l){let c=B(t,n),i=n.toLowerCase();if("class"===n){const n=t.classList,o=v(e),s=v(l);n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if(c||"o"!==n[0]||"n"!==n[1]){const i=r(l);if((c||i&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=e&&t[n]==o||(t[n]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!c||4&s||o)&&!i&&t.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):B(Q,i)?i.slice(2):i[2]+n.slice(3),e&&Y.rel(t,n,e,!1),l&&Y.ael(t,n,l,!1)}},$=/\s/,v=t=>t?t.split($):[],w=(t,n,e,l)=>{const o=11===n.p.nodeType&&n.p.host?n.p.host:n.p,r=t&&t.l||s,c=n.l||s;for(l in r)l in c||m(o,l,r[l],void 0,e,n.i);for(l in c)m(o,l,r[l],c[l],e,n.i)},b=(n,l,o)=>{const s=l.o[o];let r,c,i=0;if(null!==s.t)r=s.p=X.createTextNode(s.t);else{if(e||(e="svg"===s.u),r=s.p=X.createElementNS(e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),e&&"foreignObject"===s.u&&(e=!1),w(null,s,e),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),s.o)for(i=0;i<s.o.length;++i)c=b(n,s,i),c&&r.appendChild(c);"svg"===s.u?e=!1:"foreignObject"===r.tagName&&(e=!0)}return r},g=(t,e,l,o,s,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=b(null,l,s),c&&(o[s].p=c,i.insertBefore(c,e)))},j=(t,n,e)=>{for(let l=n;l<=e;++l){const n=t[l];if(n){const t=n.p;t&&t.remove()}}},S=(t,n)=>t.u===n.u,O=(t,n)=>{const l=n.p=t.p,o=t.o,s=n.o,r=n.u,c=n.t;null===c?(e="svg"===r||"foreignObject"!==r&&e,w(t,n,e),null!==o&&null!==s?((t,n,e,l)=>{let o,s=0,r=0,c=n.length-1,i=n[0],u=n[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=n[++s]:null==u?u=n[--c]:null==f?f=l[++r]:null==d?d=l[--a]:S(i,f)?(O(i,f),i=n[++s],f=l[++r]):S(u,d)?(O(u,d),u=n[--c],d=l[--a]):S(i,d)?(O(i,d),t.insertBefore(i.p,u.p.nextSibling),i=n[++s],d=l[--a]):S(u,f)?(O(u,f),t.insertBefore(u.p,i.p),u=n[--c],f=l[++r]):(o=b(n&&n[r],e,r),f=l[++r],o&&i.p.parentNode.insertBefore(o,i.p));s>c?g(t,null==l[a+1]?null:l[a+1].p,e,l,r,a):r>a&&j(n,s,c)})(l,o,n,s):null!==s?(null!==t.t&&(l.textContent=""),g(l,null,n,s,0,s.length-1)):null!==o&&j(o,0,o.length-1),e&&"svg"===r&&(e=!1)):t.t!==c&&(l.data=c)},k=(t,n)=>{n&&!t.v&&n["s-p"]&&n["s-p"].push(new Promise((n=>t.v=n)))},M=(t,n)=>{if(t.i|=16,!(4&t.i))return k(t,t.g),ct((()=>C(t,n)));t.i|=512},C=(t,n)=>{const e=t.j;return x(void 0,(()=>E(t,e,n)))},x=(t,n)=>P(t)?t.then(n):n(),P=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,E=async(t,n,e)=>{var l;const o=t.S,s=o["s-rc"];e&&(t=>{const n=t.O,e=t.S,l=n.i,o=((t,n)=>{var e;const l=y(n),o=K.get(l);if(t=11===t.nodeType?t:X,o)if("string"==typeof o){let n,s=h.get(t=t.head||t);if(s||h.set(t,s=new Set),!s.has(l)){{n=X.createElement("style"),n.innerHTML=o;const l=null!==(e=Y.k)&&void 0!==e?e:c(X);null!=l&&n.setAttribute("nonce",l),t.insertBefore(n,t.querySelector("link"))}s&&s.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(t);L(t,n),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>T(t);0===n.length?e():(Promise.all(n).then(e),t.i|=4,n.length=0)}},L=(e,o)=>{try{l=o,o=o.render(),e.i&=-17,e.i|=2,((e,l)=>{const o=e.S,s=e.M||u(null,null),r=(t=>t&&t.u===a)(l)?l:i(null,null,l);n=o.tagName,r.u=null,r.i|=4,e.M=r,r.p=s.p=o.shadowRoot||o,t=o["s-sc"],O(s,r)})(e,o)}catch(t){G(t,e.S)}return l=null,null},N=()=>l,T=t=>{const n=t.S,e=t.j,l=t.g;64&t.i||(t.i|=64,W(n),U(e,"componentDidLoad"),t.C(n),l||R()),t.v&&(t.v(),t.v=void 0),512&t.i&&rt((()=>M(t,!1))),t.i&=-517},A=t=>{{const n=V(t),e=n.S.isConnected;return e&&2==(18&n.i)&&M(n,!1),e}},R=()=>{W(X.documentElement),rt((()=>(t=>{const n=Y.ce("appload",{detail:{namespace:"proto-tinker-wc"}});return t.dispatchEvent(n),n})(Q)))},U=(t,n,e)=>{if(t&&t[n])try{return t[n](e)}catch(t){G(t)}},W=t=>t.classList.add("hydrated"),q=(t,n,e)=>{if(n.P){const l=Object.entries(n.P),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,t,{get(){return((t,n)=>V(this).L.get(n))(0,t)},set(e){((t,n,e,l)=>{const o=V(t),s=o.L.get(n),c=o.i,i=o.j;e=((t,n)=>null==t||r(t)?t:1&n?t+"":t)(e,l.P[n][0]),8&c&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(o.L.set(n,e),i&&2==(18&c)&&M(o,!1))})(this,t,e,n)},configurable:!0,enumerable:!0})})),1&e){const n=new Map;o.attributeChangedCallback=function(t,e,l){Y.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,n])=>15&n[0])).map((([t,e])=>{const l=e[1]||t;return n.set(l,t),l}))}}return t},D=(t,n={})=>{var e;const l=[],o=n.exclude||[],s=Q.customElements,r=X.head,i=r.querySelector("meta[charset]"),u=X.createElement("style"),a=[];let f,d=!0;Object.assign(Y,n),Y.N=new URL(n.resourcesUrl||"./",X.baseURI).href,t.map((t=>{t[1].map((n=>{const e={i:n[0],$:n[1],P:n[2],T:n[3]};e.P=n[2];const r=e.$,c=class extends HTMLElement{constructor(t){super(t),z(t=this,e),1&e.i&&t.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):Y.jmp((()=>(t=>{if(0==(1&Y.i)){const n=V(t),e=n.O,l=()=>{};if(!(1&n.i)){n.i|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){k(n,n.g=e);break}}e.P&&Object.entries(e.P).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e,l,o)=>{if(0==(32&n.i)){n.i|=32;{if((o=J(e)).then){const t=()=>{};o=await o,t()}o.isProxied||(q(o,e,2),o.isProxied=!0);const t=()=>{};n.i|=8;try{new o(n)}catch(t){G(t)}n.i&=-9,t()}if(o.style){let t=o.style;const n=y(e);if(!K.has(n)){const l=()=>{};((t,n,e)=>{let l=K.get(t);tt&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(t,l)})(n,t,!!(1&e.i)),l()}}}const s=n.g,r=()=>M(n,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,n,e)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>{}))}componentOnReady(){return V(this).A}};e.R=t[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,q(c,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(e=Y.k)&&void 0!==e?e:c(X);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,i?i.nextSibling:r.firstChild)}d=!1,a.length?a.map((t=>t.connectedCallback())):Y.jmp((()=>f=setTimeout(R,30)))},F=t=>Y.k=t,H=new WeakMap,V=t=>H.get(t),_=(t,n)=>H.set(n.j=t,n),z=(t,n)=>{const e={i:0,S:t,O:n,L:new Map};return e.A=new Promise((t=>e.C=t)),t["s-p"]=[],t["s-rc"]=[],H.set(t,e)},B=(t,n)=>n in t,G=(t,n)=>(0,console.error)(t,n),I=new Map,J=t=>{const n=t.$.replace(/-/g,"_"),e=t.R,l=I.get(e);return l?l[n]:import(`./${e}.entry.js`).then((t=>(I.set(e,t),t[n])),G)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={i:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,l)=>t.addEventListener(n,e,l),rel:(t,n,e,l)=>t.removeEventListener(n,e,l),ce:(t,n)=>new CustomEvent(t,n)},Z=t=>Promise.resolve(t),tt=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),nt=[],et=[],lt=(t,n)=>e=>{t.push(e),o||(o=!0,n&&4&Y.i?rt(st):Y.raf(st))},ot=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){G(t)}t.length=0},st=()=>{ot(nt),ot(et),(o=nt.length>0)&&Y.raf(st)},rt=t=>Z().then(t),ct=lt(et,!0);export{D as b,A as f,N as g,i as h,Z as p,_ as r,F as s}
|