funnel-gfx-wc 0.0.424 → 0.0.425

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bad123c8.js');
5
+ const index = require('./index-74a00622.js');
6
6
 
7
7
  const Radio = props => {
8
8
  const hex = props.hex || 'currentColor';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-bad123c8.js');
3
+ const index = require('./index-74a00622.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.18.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('funnel-gfx-wc.cjs.js', document.baseURI).href));
@@ -22,33 +22,19 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'funnel-gfx-wc';
24
24
 
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
25
33
  let scopeId;
26
34
  let hostTagName;
27
35
  let isSvgMode = false;
28
36
  let renderingRef = null;
29
37
  let queuePending = false;
30
- const win = typeof window !== 'undefined' ? window : {};
31
- const doc = win.document || { head: {} };
32
- const plt = {
33
- $flags$: 0,
34
- $resourcesUrl$: '',
35
- jmp: (h) => h(),
36
- raf: (h) => requestAnimationFrame(h),
37
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
38
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
39
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
40
- };
41
- const promiseResolve = (v) => Promise.resolve(v);
42
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
43
- try {
44
- new CSSStyleSheet();
45
- return typeof new CSSStyleSheet().replaceSync === 'function';
46
- }
47
- catch (e) { }
48
- return false;
49
- })()
50
- ;
51
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
52
38
  const createTime = (fnName, tagName = '') => {
53
39
  {
54
40
  return () => {
@@ -63,76 +49,7 @@ const uniqueTime = (key, measureText) => {
63
49
  };
64
50
  }
65
51
  };
66
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
67
- const registerStyle = (scopeId, cssText, allowCS) => {
68
- let style = styles.get(scopeId);
69
- if (supportsConstructableStylesheets && allowCS) {
70
- style = (style || new CSSStyleSheet());
71
- if (typeof style === 'string') {
72
- style = cssText;
73
- }
74
- else {
75
- style.replaceSync(cssText);
76
- }
77
- }
78
- else {
79
- style = cssText;
80
- }
81
- styles.set(scopeId, style);
82
- };
83
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
84
- let scopeId = getScopeId(cmpMeta);
85
- const style = styles.get(scopeId);
86
- // if an element is NOT connected then getRootNode() will return the wrong root node
87
- // so the fallback is to always use the document for the root node in those cases
88
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
89
- if (style) {
90
- if (typeof style === 'string') {
91
- styleContainerNode = styleContainerNode.head || styleContainerNode;
92
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
93
- let styleElm;
94
- if (!appliedStyles) {
95
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
96
- }
97
- if (!appliedStyles.has(scopeId)) {
98
- {
99
- {
100
- styleElm = doc.createElement('style');
101
- styleElm.innerHTML = style;
102
- }
103
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
104
- }
105
- if (appliedStyles) {
106
- appliedStyles.add(scopeId);
107
- }
108
- }
109
- }
110
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
111
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
112
- }
113
- }
114
- return scopeId;
115
- };
116
- const attachStyles = (hostRef) => {
117
- const cmpMeta = hostRef.$cmpMeta$;
118
- const elm = hostRef.$hostElement$;
119
- const flags = cmpMeta.$flags$;
120
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
121
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
122
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
123
- // only required when we're NOT using native shadow dom (slot)
124
- // or this browser doesn't support native shadow dom
125
- // and this host element was NOT created with SSR
126
- // let's pick out the inner content for slot projection
127
- // create a node to represent where the original
128
- // content was first placed, which is useful later on
129
- // DOM WRITE!!
130
- elm['s-sc'] = scopeId;
131
- elm.classList.add(scopeId + '-h');
132
- }
133
- endAttachStyles();
134
- };
135
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
52
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
136
53
  /**
137
54
  * Default style mode id
138
55
  */
@@ -260,6 +177,126 @@ const convertToPrivate = (node) => {
260
177
  vnode.$name$ = node.vname;
261
178
  return vnode;
262
179
  };
180
+ /**
181
+ * Parse a new property value for a given property type.
182
+ *
183
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
184
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
185
+ * 1. `any`, the type given to `propValue` in the function signature
186
+ * 2. the type stored from `propType`.
187
+ *
188
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
189
+ *
190
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
191
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
192
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
193
+ * ```tsx
194
+ * <my-cmp prop-val={0}></my-cmp>
195
+ * ```
196
+ *
197
+ * HTML prop values on the other hand, will always a string
198
+ *
199
+ * @param propValue the new value to coerce to some type
200
+ * @param propType the type of the prop, expressed as a binary number
201
+ * @returns the parsed/coerced value
202
+ */
203
+ const parsePropertyValue = (propValue, propType) => {
204
+ // ensure this value is of the correct prop type
205
+ if (propValue != null && !isComplexType(propValue)) {
206
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
207
+ // could have been passed as a number or boolean
208
+ // but we still want it as a string
209
+ return String(propValue);
210
+ }
211
+ // redundant return here for better minification
212
+ return propValue;
213
+ }
214
+ // not sure exactly what type we want
215
+ // so no need to change to a different type
216
+ return propValue;
217
+ };
218
+ /**
219
+ * Helper function to create & dispatch a custom Event on a provided target
220
+ * @param elm the target of the Event
221
+ * @param name the name to give the custom Event
222
+ * @param opts options for configuring a custom Event
223
+ * @returns the custom Event
224
+ */
225
+ const emitEvent = (elm, name, opts) => {
226
+ const ev = plt.ce(name, opts);
227
+ elm.dispatchEvent(ev);
228
+ return ev;
229
+ };
230
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
231
+ const registerStyle = (scopeId, cssText, allowCS) => {
232
+ let style = styles.get(scopeId);
233
+ if (supportsConstructableStylesheets && allowCS) {
234
+ style = (style || new CSSStyleSheet());
235
+ if (typeof style === 'string') {
236
+ style = cssText;
237
+ }
238
+ else {
239
+ style.replaceSync(cssText);
240
+ }
241
+ }
242
+ else {
243
+ style = cssText;
244
+ }
245
+ styles.set(scopeId, style);
246
+ };
247
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
248
+ let scopeId = getScopeId(cmpMeta);
249
+ const style = styles.get(scopeId);
250
+ // if an element is NOT connected then getRootNode() will return the wrong root node
251
+ // so the fallback is to always use the document for the root node in those cases
252
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
253
+ if (style) {
254
+ if (typeof style === 'string') {
255
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
256
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
257
+ let styleElm;
258
+ if (!appliedStyles) {
259
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
260
+ }
261
+ if (!appliedStyles.has(scopeId)) {
262
+ {
263
+ {
264
+ styleElm = doc.createElement('style');
265
+ styleElm.innerHTML = style;
266
+ }
267
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
268
+ }
269
+ if (appliedStyles) {
270
+ appliedStyles.add(scopeId);
271
+ }
272
+ }
273
+ }
274
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
275
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
276
+ }
277
+ }
278
+ return scopeId;
279
+ };
280
+ const attachStyles = (hostRef) => {
281
+ const cmpMeta = hostRef.$cmpMeta$;
282
+ const elm = hostRef.$hostElement$;
283
+ const flags = cmpMeta.$flags$;
284
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
285
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
286
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
287
+ // only required when we're NOT using native shadow dom (slot)
288
+ // or this browser doesn't support native shadow dom
289
+ // and this host element was NOT created with SSR
290
+ // let's pick out the inner content for slot projection
291
+ // create a node to represent where the original
292
+ // content was first placed, which is useful later on
293
+ // DOM WRITE!!
294
+ elm['s-sc'] = scopeId;
295
+ elm.classList.add(scopeId + '-h');
296
+ }
297
+ endAttachStyles();
298
+ };
299
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
263
300
  /**
264
301
  * Production setAccessor() function based on Preact by
265
302
  * Jason Miller (@developit)
@@ -747,18 +784,6 @@ const renderVdom = (hostRef, renderFnResults) => {
747
784
  // synchronous patch
748
785
  patch(oldVNode, rootVnode);
749
786
  };
750
- /**
751
- * Helper function to create & dispatch a custom Event on a provided target
752
- * @param elm the target of the Event
753
- * @param name the name to give the custom Event
754
- * @param opts options for configuring a custom Event
755
- * @returns the custom Event
756
- */
757
- const emitEvent = (elm, name, opts) => {
758
- const ev = plt.ce(name, opts);
759
- elm.dispatchEvent(ev);
760
- return ev;
761
- };
762
787
  const attachToAncestor = (hostRef, ancestorComponent) => {
763
788
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
764
789
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -927,44 +952,6 @@ const then = (promise, thenFn) => {
927
952
  };
928
953
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
929
954
  ;
930
- /**
931
- * Parse a new property value for a given property type.
932
- *
933
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
934
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
935
- * 1. `any`, the type given to `propValue` in the function signature
936
- * 2. the type stored from `propType`.
937
- *
938
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
939
- *
940
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
941
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
942
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
943
- * ```tsx
944
- * <my-cmp prop-val={0}></my-cmp>
945
- * ```
946
- *
947
- * HTML prop values on the other hand, will always a string
948
- *
949
- * @param propValue the new value to coerce to some type
950
- * @param propType the type of the prop, expressed as a binary number
951
- * @returns the parsed/coerced value
952
- */
953
- const parsePropertyValue = (propValue, propType) => {
954
- // ensure this value is of the correct prop type
955
- if (propValue != null && !isComplexType(propValue)) {
956
- if (propType & 1 /* MEMBER_FLAGS.String */) {
957
- // could have been passed as a number or boolean
958
- // but we still want it as a string
959
- return String(propValue);
960
- }
961
- // redundant return here for better minification
962
- return propValue;
963
- }
964
- // not sure exactly what type we want
965
- // so no need to change to a different type
966
- return propValue;
967
- };
968
955
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
969
956
  const setValue = (ref, propName, newVal, cmpMeta) => {
970
957
  // check our new property value against our internal value
@@ -991,6 +978,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
991
978
  }
992
979
  }
993
980
  };
981
+ /**
982
+ * Attach a series of runtime constructs to a compiled Stencil component
983
+ * constructor, including getters and setters for the `@Prop` and `@State`
984
+ * decorators, callbacks for when attributes change, and so on.
985
+ *
986
+ * @param Cstr the constructor for a component that we need to process
987
+ * @param cmpMeta metadata collected previously about the component
988
+ * @param flags a number used to store a series of bit flags
989
+ * @returns a reference to the same constructor passed in (but now mutated)
990
+ */
994
991
  const proxyComponent = (Cstr, cmpMeta, flags) => {
995
992
  if (cmpMeta.$members$) {
996
993
  // It's better to have a const than two Object.entries()
@@ -1326,6 +1323,27 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1326
1323
  }, consoleError);
1327
1324
  };
1328
1325
  const styles = /*@__PURE__*/ new Map();
1326
+ const win = typeof window !== 'undefined' ? window : {};
1327
+ const doc = win.document || { head: {} };
1328
+ const plt = {
1329
+ $flags$: 0,
1330
+ $resourcesUrl$: '',
1331
+ jmp: (h) => h(),
1332
+ raf: (h) => requestAnimationFrame(h),
1333
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1334
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1335
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1336
+ };
1337
+ const promiseResolve = (v) => Promise.resolve(v);
1338
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1339
+ try {
1340
+ new CSSStyleSheet();
1341
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1342
+ }
1343
+ catch (e) { }
1344
+ return false;
1345
+ })()
1346
+ ;
1329
1347
  const queueDomReads = [];
1330
1348
  const queueDomWrites = [];
1331
1349
  const queueTask = (queue, write) => (cb) => {
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bad123c8.js');
5
+ const index = require('./index-74a00622.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.18.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.18.0",
7
+ "version": "2.18.1",
8
8
  "typescriptVersion": "4.7.4"
9
9
  },
10
10
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-6136cd6b.js';
1
+ import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-1c292d56.js';
2
2
 
3
3
  const Radio = props => {
4
4
  const hex = props.hex || 'currentColor';
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6136cd6b.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-1c292d56.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.18.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -1,32 +1,18 @@
1
1
  const NAMESPACE = 'funnel-gfx-wc';
2
2
 
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
3
11
  let scopeId;
4
12
  let hostTagName;
5
13
  let isSvgMode = false;
6
14
  let renderingRef = null;
7
15
  let queuePending = false;
8
- const win = typeof window !== 'undefined' ? window : {};
9
- const doc = win.document || { head: {} };
10
- const plt = {
11
- $flags$: 0,
12
- $resourcesUrl$: '',
13
- jmp: (h) => h(),
14
- raf: (h) => requestAnimationFrame(h),
15
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
16
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
17
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
18
- };
19
- const promiseResolve = (v) => Promise.resolve(v);
20
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
21
- try {
22
- new CSSStyleSheet();
23
- return typeof new CSSStyleSheet().replaceSync === 'function';
24
- }
25
- catch (e) { }
26
- return false;
27
- })()
28
- ;
29
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
16
  const createTime = (fnName, tagName = '') => {
31
17
  {
32
18
  return () => {
@@ -41,76 +27,7 @@ const uniqueTime = (key, measureText) => {
41
27
  };
42
28
  }
43
29
  };
44
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
45
- const registerStyle = (scopeId, cssText, allowCS) => {
46
- let style = styles.get(scopeId);
47
- if (supportsConstructableStylesheets && allowCS) {
48
- style = (style || new CSSStyleSheet());
49
- if (typeof style === 'string') {
50
- style = cssText;
51
- }
52
- else {
53
- style.replaceSync(cssText);
54
- }
55
- }
56
- else {
57
- style = cssText;
58
- }
59
- styles.set(scopeId, style);
60
- };
61
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
62
- let scopeId = getScopeId(cmpMeta);
63
- const style = styles.get(scopeId);
64
- // if an element is NOT connected then getRootNode() will return the wrong root node
65
- // so the fallback is to always use the document for the root node in those cases
66
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
67
- if (style) {
68
- if (typeof style === 'string') {
69
- styleContainerNode = styleContainerNode.head || styleContainerNode;
70
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
71
- let styleElm;
72
- if (!appliedStyles) {
73
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
74
- }
75
- if (!appliedStyles.has(scopeId)) {
76
- {
77
- {
78
- styleElm = doc.createElement('style');
79
- styleElm.innerHTML = style;
80
- }
81
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
82
- }
83
- if (appliedStyles) {
84
- appliedStyles.add(scopeId);
85
- }
86
- }
87
- }
88
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
89
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
90
- }
91
- }
92
- return scopeId;
93
- };
94
- const attachStyles = (hostRef) => {
95
- const cmpMeta = hostRef.$cmpMeta$;
96
- const elm = hostRef.$hostElement$;
97
- const flags = cmpMeta.$flags$;
98
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
99
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
100
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
101
- // only required when we're NOT using native shadow dom (slot)
102
- // or this browser doesn't support native shadow dom
103
- // and this host element was NOT created with SSR
104
- // let's pick out the inner content for slot projection
105
- // create a node to represent where the original
106
- // content was first placed, which is useful later on
107
- // DOM WRITE!!
108
- elm['s-sc'] = scopeId;
109
- elm.classList.add(scopeId + '-h');
110
- }
111
- endAttachStyles();
112
- };
113
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
30
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
114
31
  /**
115
32
  * Default style mode id
116
33
  */
@@ -238,6 +155,126 @@ const convertToPrivate = (node) => {
238
155
  vnode.$name$ = node.vname;
239
156
  return vnode;
240
157
  };
158
+ /**
159
+ * Parse a new property value for a given property type.
160
+ *
161
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
162
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
163
+ * 1. `any`, the type given to `propValue` in the function signature
164
+ * 2. the type stored from `propType`.
165
+ *
166
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
167
+ *
168
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
169
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
170
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
171
+ * ```tsx
172
+ * <my-cmp prop-val={0}></my-cmp>
173
+ * ```
174
+ *
175
+ * HTML prop values on the other hand, will always a string
176
+ *
177
+ * @param propValue the new value to coerce to some type
178
+ * @param propType the type of the prop, expressed as a binary number
179
+ * @returns the parsed/coerced value
180
+ */
181
+ const parsePropertyValue = (propValue, propType) => {
182
+ // ensure this value is of the correct prop type
183
+ if (propValue != null && !isComplexType(propValue)) {
184
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
185
+ // could have been passed as a number or boolean
186
+ // but we still want it as a string
187
+ return String(propValue);
188
+ }
189
+ // redundant return here for better minification
190
+ return propValue;
191
+ }
192
+ // not sure exactly what type we want
193
+ // so no need to change to a different type
194
+ return propValue;
195
+ };
196
+ /**
197
+ * Helper function to create & dispatch a custom Event on a provided target
198
+ * @param elm the target of the Event
199
+ * @param name the name to give the custom Event
200
+ * @param opts options for configuring a custom Event
201
+ * @returns the custom Event
202
+ */
203
+ const emitEvent = (elm, name, opts) => {
204
+ const ev = plt.ce(name, opts);
205
+ elm.dispatchEvent(ev);
206
+ return ev;
207
+ };
208
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
209
+ const registerStyle = (scopeId, cssText, allowCS) => {
210
+ let style = styles.get(scopeId);
211
+ if (supportsConstructableStylesheets && allowCS) {
212
+ style = (style || new CSSStyleSheet());
213
+ if (typeof style === 'string') {
214
+ style = cssText;
215
+ }
216
+ else {
217
+ style.replaceSync(cssText);
218
+ }
219
+ }
220
+ else {
221
+ style = cssText;
222
+ }
223
+ styles.set(scopeId, style);
224
+ };
225
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
226
+ let scopeId = getScopeId(cmpMeta);
227
+ const style = styles.get(scopeId);
228
+ // if an element is NOT connected then getRootNode() will return the wrong root node
229
+ // so the fallback is to always use the document for the root node in those cases
230
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
231
+ if (style) {
232
+ if (typeof style === 'string') {
233
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
234
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
235
+ let styleElm;
236
+ if (!appliedStyles) {
237
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
238
+ }
239
+ if (!appliedStyles.has(scopeId)) {
240
+ {
241
+ {
242
+ styleElm = doc.createElement('style');
243
+ styleElm.innerHTML = style;
244
+ }
245
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
246
+ }
247
+ if (appliedStyles) {
248
+ appliedStyles.add(scopeId);
249
+ }
250
+ }
251
+ }
252
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
253
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
254
+ }
255
+ }
256
+ return scopeId;
257
+ };
258
+ const attachStyles = (hostRef) => {
259
+ const cmpMeta = hostRef.$cmpMeta$;
260
+ const elm = hostRef.$hostElement$;
261
+ const flags = cmpMeta.$flags$;
262
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
263
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
264
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
265
+ // only required when we're NOT using native shadow dom (slot)
266
+ // or this browser doesn't support native shadow dom
267
+ // and this host element was NOT created with SSR
268
+ // let's pick out the inner content for slot projection
269
+ // create a node to represent where the original
270
+ // content was first placed, which is useful later on
271
+ // DOM WRITE!!
272
+ elm['s-sc'] = scopeId;
273
+ elm.classList.add(scopeId + '-h');
274
+ }
275
+ endAttachStyles();
276
+ };
277
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
241
278
  /**
242
279
  * Production setAccessor() function based on Preact by
243
280
  * Jason Miller (@developit)
@@ -725,18 +762,6 @@ const renderVdom = (hostRef, renderFnResults) => {
725
762
  // synchronous patch
726
763
  patch(oldVNode, rootVnode);
727
764
  };
728
- /**
729
- * Helper function to create & dispatch a custom Event on a provided target
730
- * @param elm the target of the Event
731
- * @param name the name to give the custom Event
732
- * @param opts options for configuring a custom Event
733
- * @returns the custom Event
734
- */
735
- const emitEvent = (elm, name, opts) => {
736
- const ev = plt.ce(name, opts);
737
- elm.dispatchEvent(ev);
738
- return ev;
739
- };
740
765
  const attachToAncestor = (hostRef, ancestorComponent) => {
741
766
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
742
767
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -905,44 +930,6 @@ const then = (promise, thenFn) => {
905
930
  };
906
931
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
907
932
  ;
908
- /**
909
- * Parse a new property value for a given property type.
910
- *
911
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
912
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
913
- * 1. `any`, the type given to `propValue` in the function signature
914
- * 2. the type stored from `propType`.
915
- *
916
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
917
- *
918
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
919
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
920
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
921
- * ```tsx
922
- * <my-cmp prop-val={0}></my-cmp>
923
- * ```
924
- *
925
- * HTML prop values on the other hand, will always a string
926
- *
927
- * @param propValue the new value to coerce to some type
928
- * @param propType the type of the prop, expressed as a binary number
929
- * @returns the parsed/coerced value
930
- */
931
- const parsePropertyValue = (propValue, propType) => {
932
- // ensure this value is of the correct prop type
933
- if (propValue != null && !isComplexType(propValue)) {
934
- if (propType & 1 /* MEMBER_FLAGS.String */) {
935
- // could have been passed as a number or boolean
936
- // but we still want it as a string
937
- return String(propValue);
938
- }
939
- // redundant return here for better minification
940
- return propValue;
941
- }
942
- // not sure exactly what type we want
943
- // so no need to change to a different type
944
- return propValue;
945
- };
946
933
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
947
934
  const setValue = (ref, propName, newVal, cmpMeta) => {
948
935
  // check our new property value against our internal value
@@ -969,6 +956,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
969
956
  }
970
957
  }
971
958
  };
959
+ /**
960
+ * Attach a series of runtime constructs to a compiled Stencil component
961
+ * constructor, including getters and setters for the `@Prop` and `@State`
962
+ * decorators, callbacks for when attributes change, and so on.
963
+ *
964
+ * @param Cstr the constructor for a component that we need to process
965
+ * @param cmpMeta metadata collected previously about the component
966
+ * @param flags a number used to store a series of bit flags
967
+ * @returns a reference to the same constructor passed in (but now mutated)
968
+ */
972
969
  const proxyComponent = (Cstr, cmpMeta, flags) => {
973
970
  if (cmpMeta.$members$) {
974
971
  // It's better to have a const than two Object.entries()
@@ -1304,6 +1301,27 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1304
1301
  }, consoleError);
1305
1302
  };
1306
1303
  const styles = /*@__PURE__*/ new Map();
1304
+ const win = typeof window !== 'undefined' ? window : {};
1305
+ const doc = win.document || { head: {} };
1306
+ const plt = {
1307
+ $flags$: 0,
1308
+ $resourcesUrl$: '',
1309
+ jmp: (h) => h(),
1310
+ raf: (h) => requestAnimationFrame(h),
1311
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1312
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1313
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1314
+ };
1315
+ const promiseResolve = (v) => Promise.resolve(v);
1316
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1317
+ try {
1318
+ new CSSStyleSheet();
1319
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1320
+ }
1321
+ catch (e) { }
1322
+ return false;
1323
+ })()
1324
+ ;
1307
1325
  const queueDomReads = [];
1308
1326
  const queueDomWrites = [];
1309
1327
  const queueTask = (queue, write) => (cb) => {
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6136cd6b.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-1c292d56.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.18.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
1
+ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1 +1 @@
1
- import{p,b as a}from"./p-d39edc29.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),p(n)})().then((p=>a([["p-cfa18b75",[[1,"funnel-app",{tag:[1]}]]]],p)));
1
+ import{p,b as f}from"./p-38ff87bb.js";(()=>{const f=import.meta.url,n={};return""!==f&&(n.resourcesUrl=new URL(".",f).href),p(n)})().then((p=>f([["p-b660724f",[[1,"funnel-app",{tag:[1]}]]]],p)));
@@ -0,0 +1,2 @@
1
+ let t,e,n=!1,l=null,s=!1;const o={},r=t=>"object"==(t=typeof t)||"function"===t,c=(t,e,...n)=>{let l=null,s=!1,o=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!r(l))&&(l+=""),s&&o?c[c.length-1].t+=l:c.push(s?i(null,l):l),o=s)};if(u(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,c,a);const f=i(t,null);return f.l=e,c.length>0&&(f.o=c),f},i=(t,e)=>({i:0,u:t,t:e,h:null,o:null,l:null}),u={},a={forEach:(t,e)=>t.map(f).forEach(e),map:(t,e)=>t.map(f).map(e).map(h)},f=t=>({vattrs:t.l,vchildren:t.o,vkey:t.p,vname:t.$,vtag:t.u,vtext:t.t}),h=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),c(t.vtag,e,...t.vchildren||[])}const e=i(t.vtag,t.vtext);return e.l=t.vattrs,e.o=t.vchildren,e.p=t.vkey,e.$=t.vname,e},p=new WeakMap,y=t=>"sc-"+t.m,$=(t,e,n,l,s,o)=>{if(n!==l){let c=_(t,e),i=e.toLowerCase();if("class"===e){const e=t.classList,s=m(n),o=m(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("ref"===e)l&&l(t);else if(c||"o"!==e[0]||"n"!==e[1]){const i=r(l);if((c||i&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!c||4&o||s)&&!i&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):_(J,i)?i.slice(2):i[2]+e.slice(3),n&&Q.rel(t,e,n,!1),l&&Q.ael(t,e,l,!1)}},d=/\s/,m=t=>t?t.split(d):[],w=(t,e,n,l)=>{const s=11===e.h.nodeType&&e.h.host?e.h.host:e.h,r=t&&t.l||o,c=e.l||o;for(l in r)l in c||$(s,l,r[l],void 0,n,e.i);for(l in c)$(s,l,r[l],c[l],n,e.i)},b=(e,l,s)=>{const o=l.o[s];let r,c,i=0;if(null!==o.t)r=o.h=K.createTextNode(o.t);else{if(n||(n="svg"===o.u),r=o.h=K.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),w(null,o,n),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),o.o)for(i=0;i<o.o.length;++i)c=b(e,o,i),c&&r.appendChild(c);"svg"===o.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},g=(t,n,l,s,o,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=b(null,l,o),c&&(s[o].h=c,i.insertBefore(c,n)))},v=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(s=l.h,O(l),s.remove())},j=(t,e)=>t.u===e.u,S=(t,e)=>{const l=e.h=t.h,s=t.o,o=e.o,r=e.u,c=e.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,w(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],u=e[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=e[++o]:null==u?u=e[--c]:null==f?f=l[++r]:null==h?h=l[--a]:j(i,f)?(S(i,f),i=e[++o],f=l[++r]):j(u,h)?(S(u,h),u=e[--c],h=l[--a]):j(i,h)?(S(i,h),t.insertBefore(i.h,u.h.nextSibling),i=e[++o],h=l[--a]):j(u,f)?(S(u,f),t.insertBefore(u.h,i.h),u=e[--c],f=l[++r]):(s=b(e&&e[r],n,r),f=l[++r],s&&i.h.parentNode.insertBefore(s,i.h));o>c?g(t,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&v(e,o,c)})(l,s,e,o):null!==o?(null!==t.t&&(l.textContent=""),g(l,null,e,o,0,o.length-1)):null!==s&&v(s,0,s.length-1),n&&"svg"===r&&(n=!1)):t.t!==c&&(l.data=c)},O=t=>{t.l&&t.l.ref&&t.l.ref(null),t.o&&t.o.map(O)},M=(t,e)=>{e&&!t.g&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.g=e)))},k=(t,e)=>{if(t.i|=16,!(4&t.i))return M(t,t.v),ot((()=>x(t,e)));t.i|=512},x=(t,e)=>{const n=t.j;return R(void 0,(()=>C(t,n,e)))},C=async(t,e,n)=>{const l=t.S,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.S,l=e.i,s=((t,e)=>{let n=y(e);const l=I.get(n);if(t=11===t.nodeType?t:K,l)if("string"==typeof l){let e,s=p.get(t=t.head||t);s||p.set(t,s=new Set),s.has(n)||(e=K.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);E(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>L(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},E=(n,s)=>{try{l=s,s=s.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.S,o=n.M||i(null,null),r=(t=>t&&t.u===u)(l)?l:c(null,null,l);e=s.tagName,r.u=null,r.i|=4,n.M=r,r.h=o.h=s.shadowRoot||s,t=s["s-sc"],S(o,r)})(n,s)}catch(t){z(t,n.S)}return l=null,null},P=()=>l,L=t=>{const e=t.S,n=t.j,l=t.v;64&t.i||(t.i|=64,U(e),A(n,"componentDidLoad"),t.k(e),l||T()),t.g&&(t.g(),t.g=void 0),512&t.i&&st((()=>k(t,!1))),t.i&=-517},N=t=>{{const e=F(t),n=e.S.isConnected;return n&&2==(18&e.i)&&k(e,!1),n}},T=()=>{U(K.documentElement),st((()=>(t=>{const e=Q.ce("appload",{detail:{namespace:"funnel-gfx-wc"}});return t.dispatchEvent(e),e})(J)))},A=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){z(t)}},R=(t,e)=>t&&t.then?t.then(e):e(),U=t=>t.classList.add("hydrated"),W=(t,e,n)=>{if(e.C){const l=Object.entries(e.C),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>F(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=F(t),o=s.P.get(e),c=s.i,i=s.j;n=((t,e)=>null==t||r(t)?t:1&e?t+"":t)(n,l.C[e][0]),8&c&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.P.set(e,n),i&&2==(18&c)&&k(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){Q.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},q=(t,e={})=>{const n=[],l=e.exclude||[],s=J.customElements,o=K.head,r=o.querySelector("meta[charset]"),c=K.createElement("style"),i=[];let u,a=!0;Object.assign(Q,e),Q.L=new URL(e.resourcesUrl||"./",K.baseURI).href,t.map((t=>{t[1].map((e=>{const o={i:e[0],m:e[1],C:e[2],N:e[3]};o.C=e[2];const r=o.m,c=class extends HTMLElement{constructor(t){super(t),V(t=this,o),1&o.i&&t.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):Q.jmp((()=>(t=>{if(0==(1&Q.i)){const e=F(t),n=e.O,l=()=>{};if(!(1&e.i)){e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(e,e.v=n);break}}n.C&&Object.entries(n.C).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.i)){{if(e.i|=32,(s=G(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(W(s,n,2),s.isProxied=!0);const t=()=>{};e.i|=8;try{new s(e)}catch(t){z(t)}e.i&=-9,t()}if(s.style){let t=s.style;const e=y(n);if(!I.has(e)){const l=()=>{};((t,e,n)=>{let l=I.get(t);Y&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,I.set(t,l)})(e,t,!!(1&n.i)),l()}}}const o=e.v,r=()=>k(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){Q.jmp((()=>{}))}componentOnReady(){return F(this).T}};o.A=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,W(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),a=!1,i.length?i.map((t=>t.connectedCallback())):Q.jmp((()=>u=setTimeout(T,30)))},D=new WeakMap,F=t=>D.get(t),H=(t,e)=>D.set(e.j=t,e),V=(t,e)=>{const n={i:0,S:t,O:e,P:new Map};return n.T=new Promise((t=>n.k=t)),t["s-p"]=[],t["s-rc"]=[],D.set(t,n)},_=(t,e)=>e in t,z=(t,e)=>(0,console.error)(t,e),B=new Map,G=t=>{const e=t.m.replace(/-/g,"_"),n=t.A,l=B.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(B.set(n,t),t[e])),z)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},I=new Map,J="undefined"!=typeof window?window:{},K=J.document||{head:{}},Q={i:0,L:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},X=t=>Promise.resolve(t),Y=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),Z=[],tt=[],et=(t,e)=>n=>{t.push(n),s||(s=!0,e&&4&Q.i?st(lt):Q.raf(lt))},nt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){z(t)}t.length=0},lt=()=>{nt(Z),nt(tt),(s=Z.length>0)&&Q.raf(lt)},st=t=>X().then(t),ot=et(tt,!0);export{q as b,N as f,P as g,c as h,X as p,H as r}
@@ -1 +1 @@
1
- import{h as t,g as e,f as r,r as n}from"./p-d39edc29.js";const a=e=>{const r=e.hex||"currentColor",n=e.selected||!1,a=e.size||24;return t("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"radio")," ",t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))};var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e,r){return t(r={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},s=o((function(t){var e=Array.prototype.concat,r=Array.prototype.slice,n=t.exports=function(t){for(var n,a=[],i=0,o=t.length;i<o;i++){var l=t[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=e.call(a,r.call(l)):a.push(l)}return a};n.wrap=function(t){return function(){return t(n(arguments))}}})),u=o((function(t){var e=Object.hasOwnProperty,r=Object.create(null);for(var n in l)e.call(l,n)&&(r[l[n]]=n);var a=t.exports={to:{},get:{}};function i(t,e,r){return Math.min(Math.max(e,t),r)}function o(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),r="hsl";break;case"hwb":e=a.get.hwb(t),r="hwb";break;default:e=a.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},a.get.rgb=function(t){if(!t)return null;var r,n,a,o=[0,0,0,1];if(r=t.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;o[n]=parseInt(r.slice(s,s+2),16)}a&&(o[3]=parseInt(a,16)/255)}else if(r=t.match(/^#([a-f0-9]{3,4})$/i)){for(a=(r=r[1])[3],n=0;n<3;n++)o[n]=parseInt(r[n]+r[n],16);a&&(o[3]=parseInt(a+a,16)/255)}else if(r=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(r[n+1],0);r[4]&&(o[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}else{if(!(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(r=t.match(/^(\w+)$/))?"transparent"===r[1]?[0,0,0,0]:e.call(l,r[1])?((o=l[r[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(r[n+1]));r[4]&&(o[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}for(n=0;n<3;n++)o[n]=i(o[n],0,255);return o[3]=i(o[3],0,1),o},a.get.hsl=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,i(parseFloat(e[2]),0,100),i(parseFloat(e[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,i(parseFloat(e[2]),0,100),i(parseFloat(e[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.to.hex=function(){var t=s(arguments);return"#"+o(t[0])+o(t[1])+o(t[2])+(t[3]<1?o(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=s(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=s(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},a.to.hsl=function(){var t=s(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=s(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return r[t.slice(0,3)]}})),c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},h=o((function(t){var e={};for(var r in c)c.hasOwnProperty(r)&&(e[c[r]]=r);var n=t.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(t){var e,r,n=t[0]/255,a=t[1]/255,i=t[2]/255,o=Math.min(n,a,i),l=Math.max(n,a,i),s=l-o;return l===o?e=0:n===l?e=(a-i)/s:a===l?e=2+(i-n)/s:i===l&&(e=4+(n-a)/s),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+l)/2,[e,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]},n.rgb.hsv=function(t){var e,r,n,a,i,o=t[0]/255,l=t[1]/255,s=t[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),h=function(t){return(u-t)/6/c+.5};return 0===c?a=i=0:(i=c/u,e=h(o),r=h(l),n=h(s),o===u?a=n-r:l===u?a=1/3+e-n:s===u&&(a=2/3+r-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},n.rgb.hwb=function(t){var e=t[0],r=t[1],a=t[2];return[n.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(r,a))*100,100*(a=1-1/255*Math.max(e,Math.max(r,a)))]},n.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,a=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-a)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},n.rgb.keyword=function(t){var r=e[t];if(r)return r;var n,a,i,o=1/0;for(var l in c)if(c.hasOwnProperty(l)){var s=(a=t,i=c[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(t){return c[t]},n.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/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*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},n.rgb.lab=function(t){var e=n.rgb.xyz(t),r=e[0],a=e[1],i=e[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(t){var e,r,n,a,i,o=t[0]/360,l=t[1]/100,s=t[2]/100;if(0===l)return[i=255*s,i,i];e=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?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e);return a},n.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[e,100*(0===n?2*a/(i+a):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),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(t){var e,r,n,a=t[0],i=t[1]/100,o=t[2]/100,l=Math.max(o,.01);return n=(2-i)*o,r=i*l,[a,100*(r=(r/=(e=(2-i)*l)<=1?e:2-e)||0),100*(n/=2)]},n.hwb.rgb=function(t){var e,r,n,a,i,o,l,s=t[0]/360,u=t[1]/100,c=t[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=6*s-(e=Math.floor(6*s)),0!=(1&e)&&(n=1-n),a=u+n*((r=1-c)-u),e){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(t){var e=t[1]/100,r=t[2]/100,n=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-n)+n)),255*(1-Math.min(1,e*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},n.xyz.rgb=function(t){var e,r,n,a=t[0]/100,i=t[1]/100,o=t[2]/100;return r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,e=(e=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,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*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(t){var e,r,n;e=t[1]/500+(r=(t[0]+16)/116),n=r-t[2]/200;var a=Math.pow(r,3),i=Math.pow(e,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,e=i>.008856?i:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},n.lab.lch=function(t){var e,r=t[0],n=t[1],a=t[2];return(e=360*Math.atan2(a,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+a*a),e]},n.lch.lab=function(t){var e,r=t[1];return e=t[2]/360*2*Math.PI,[t[0],r*Math.cos(e),r*Math.sin(e)]},n.rgb.ansi16=function(t){var e=t[0],r=t[1],a=t[2],i=1 in arguments?arguments[1]:n.rgb.hsv(t)[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(e/255));return 2===i&&(o+=60),o},n.hsv.ansi16=function(t){return n.rgb.ansi16(n.hsv.rgb(t),t[2])},n.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},n.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},n.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,a=t[2]/255,i=Math.max(Math.max(r,n),a),o=Math.min(Math.min(r,n),a),l=i-o;return e=l<=0?0:i===r?(n-a)/l%6:i===n?2+(a-r)/l:4+(r-n)/l+4,e/=6,[360*(e%=1),100*l,100*(l<1?o/(1-l):0)]},n.hsl.hcg=function(t){var e,r=t[1]/100,n=t[2]/100,a=0;return(e=n<.5?2*r*n:2*r*(1-n))<1&&(a=(n-.5*e)/(1-e)),[t[0],100*e,100*a]},n.hsv.hcg=function(t){var e=t[2]/100,r=t[1]/100*e,n=0;return r<1&&(n=(e-r)/(1-r)),[t[0],100*r,100*n]},n.hcg.rgb=function(t){var e=t[1]/100,r=t[2]/100;if(0===e)return[255*r,255*r,255*r];var n,a=[0,0,0],i=t[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*(e*a[0]+(n=(1-e)*r)),255*(e*a[1]+n),255*(e*a[2]+n)]},n.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},n.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},n.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},n.hwb.hcg=function(t){var e=1-t[2]/100,r=e-t[1]/100,n=0;return r<1&&(n=(e-r)/(1-r)),[t[0],100*r,100*n]},n.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},n.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},n.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},n.gray.hsl=n.gray.hsv=function(t){return[0,0,t[0]]},n.gray.hwb=function(t){return[0,100,t[0]]},n.gray.cmyk=function(t){return[0,0,0,t[0]]},n.gray.lab=function(t){return[t[0],0,0]},n.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function f(t,e){return function(r){return e(t(r))}}function d(t,e){for(var r=[e[t].parent,t],n=h[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),n=f(h[e[a].parent][a],n),a=e[a].parent;return n.conversion=r,n}var b={};Object.keys(h).forEach((function(t){b[t]={},Object.defineProperty(b[t],"channels",{value:h[t].channels}),Object.defineProperty(b[t],"labels",{value:h[t].labels});var e=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(h),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(h[n]),i=a.length,o=0;o<i;o++){var l=a[o],s=e[l];-1===s.distance&&(s.distance=e[n].distance+1,s.parent=n,r.unshift(l))}return e}(t),r={},n=Object.keys(e),a=n.length,i=0;i<a;i++){var o=n[i];null!==e[o].parent&&(r[o]=d(o,e))}return r}(t);Object.keys(e).forEach((function(r){var n=e[r];b[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);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 t&&(e.conversion=t.conversion),e}(n),b[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))}));var g=b,p=[].slice,v=["keyword","gray","hex"],w={};Object.keys(g).forEach((function(t){w[p.call(g[t].labels).sort().join("")]=t}));var m={};function y(t,e){if(!(this instanceof y))return new y(t,e);if(e&&e in v&&(e=null),e&&!(e in g))throw new Error("Unknown model: "+e);var r,n;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof y)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var a=u.get(t);if(null===a)throw new Error("Unable to parse color from string: "+t);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(t.length){this.model=e||"rgb";var i=p.call(t,0,n=g[this.model].channels);this.color=C(i,n),this.valpha="number"==typeof t[n]?t[n]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var l=o.sort().join("");if(!(l in w))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=w[l];var s=g[this.model].labels,c=[];for(r=0;r<s.length;r++)c.push(t[s[r]]);this.color=C(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 k(t,e,r){return(t=Array.isArray(t)?t:[t]).forEach((function(t){(m[t]||(m[t]=[]))[e]=r})),t=t[0],function(n){var a;return arguments.length?(r&&(n=r(n)),(a=this[t]()).color[e]=n,a):(a=this[t]().color[e],r&&(a=r(a)),a)}}function M(t){return function(e){return Math.max(0,Math.min(t,e))}}function x(t){return Array.isArray(t)?t:[t]}function C(t,e){for(var r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}y.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in u.to?this:this.rgb(),r=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return u.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return u.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=g[this.model].channels,r=g[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new y(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new y(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:k("rgb",0,M(255)),green:k("rgb",1,M(255)),blue:k("rgb",2,M(255)),hue:k(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:k("hsl",1,M(100)),lightness:k("hsl",2,M(100)),saturationv:k("hsv",1,M(100)),value:k("hsv",2,M(100)),chroma:k("hcg",1,M(100)),gray:k("hcg",2,M(100)),white:k("hwb",1,M(100)),wblack:k("hwb",2,M(100)),cyan:k("cmyk",0,M(100)),magenta:k("cmyk",1,M(100)),yellow:k("cmyk",2,M(100)),black:k("cmyk",3,M(100)),x:k("xyz",0,M(100)),y:k("xyz",1,M(100)),z:k("xyz",2,M(100)),l:k("lab",0,M(100)),a:k("lab",1),b:k("lab",2),keyword:function(t){return arguments.length?new y(t):g[this.model].keyword(this.color)},hex:function(t){return arguments.length?new y(t):u.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return y.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return e.color[0]=r=(r=(r+t)%360)<0?360+r:r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),a=void 0===e?.5:e,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 y.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(t){if(-1===v.indexOf(t)){var e=g[t].channels;y.prototype[t]=function(){if(this.model===t)return new y(this);if(arguments.length)return new y(arguments,t);var r="number"==typeof arguments[e]?e:this.valpha;return new y(x(g[this.model][t].raw(this.color)).concat(r),t)},y[t]=function(r){return"number"==typeof r&&(r=C(p.call(arguments),e)),new y(r,t)}}}));var O=y,j=function(t,e,r){return t*(1-r)+e*r};const A={name:"color",test:t=>"string"==typeof t&&(t.indexOf("rgb")>=0||t.indexOf("#")>=0||t.indexOf("hsl")>=0||u.get.rgb(t)),initialize:(t,e)=>({data:{format:(t.indexOf("rgba")>=0?"rgba":t.indexOf("rgb")>=0&&"rgb")||t.indexOf("#")>=0&&"hex"||O(t).model},startValue:O(t).rgb(),destValue:O(e).rgb()}),interpolate(t,e,r,n){const a=j(t.color[0],e.color[0],r),i=j(t.color[1],e.color[1],r),o=j(t.color[2],e.color[2],r),l=j(t.valpha,e.valpha,r),s=O.rgb(a,i,o,l)["rgba"===n.format?"rgb":n.format]();return"string"==typeof s?s:s.string()}},I=[{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}],S=I.map((()=>0)),q={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},z={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},$=t=>q[t]||z[t],E=Object.keys(q),F=t=>!("isConnected"in t)||t.isConnected,L=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(F))})(...e)}),2e3)}})(),N=t=>"function"==typeof t?t():t,D="funnel-gfx-wc::app-data",R=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=N(t);let n=new Map(Object.entries(null!=r?r:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var e;n=new Map(Object.entries(null!==(e=N(t))&&void 0!==e?e:{})),a.reset.forEach((t=>t()))},o=t=>(a.get.forEach((e=>e(t))),n.get(t)),l=(t,r)=>{const i=n.get(t);e(r,i,t)&&(n.set(t,r),a.set.forEach((e=>e(t,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>o(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,r)=>(l(e,r),!0)}),u=(t,e)=>(a[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(a[t],e)});return{state:s,get:o,set:l,on:u,onChange:(e,r)=>{const n=u("set",((t,n)=>{t===e&&r(n)})),a=u("reset",(()=>r(N(t)[e])));return()=>{n(),a()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(u("set",e.set)),e.get&&t.push(u("get",e.get)),e.reset&&t.push(u("reset",e.reset)),e.dispose&&t.push(u("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{a.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=n.get(t);a.set.forEach((r=>r(t,e,e)))}}})({count:0,pick:"bada55",values:[...S]},void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const n=e();n&&((t,e,r)=>{const n=t.get(e);n?n.includes(r)||n.push(r):t.set(e,[r])})(t,r,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(r)),L(t)},reset:()=>{t.forEach((t=>t.forEach(r))),L(t)}}})()),t})(),{state:_,onChange:T}=R,B=()=>{const{count:t,pick:e,values:r}=_;(t=>{const e=JSON.stringify(t);localStorage.setItem(D,e)})({count:t,pick:e,values:r})},U={initApp:()=>{const t=(()=>{const t=localStorage.getItem(D);return t?JSON.parse(t):void 0})();if(t){const{count:e,pick:r,values:n}=t;_.count=e,_.pick=r,_.values=n}},refresh:()=>{const t=S.map((()=>Math.floor(100*Math.random())));_.count=_.count+1,_.values=t,B()},reset:()=>{_.count=0,_.values=[...S],B()},updatePick:t=>{_.pick=t,B()}},H=e=>{const{actions:r,state:n}=e,{pick:i}=n;return t("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},E.map((e=>{const n=$(e),o=i==e;return t("div",{"aria-label":e,"aria-checked":o,role:"radio",title:e,onClick:()=>{r.updatePick(e)}},t(a,{hex:n,selected:o}))})))},P=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"chevron-double-left"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},V=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"close"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},J=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"refresh"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Q=e=>{const{actions:r,state:n}=e,{count:a}=n;return t("div",{class:"mt-3 mb-10px flex items-center"},t("button",{"aria-label":"Refresh",title:"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{r.refresh()}},t(J,null)),t("button",{"aria-label":"Reset",title:"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},t(V,null)),t("span",{class:"flex items-center"},t(P,{size:28}),t("span",{class:"italic"},"click a button... ",t("sup",null,a))))},X=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.8"),Y=e=>{const{state:r}=e,{values:n,pick:a,count:i}=r;return t("div",{class:"flex"},t("div",{class:"flex flex-col"},t("div",{class:"flex"},t("span",{class:"mr-10px font-bold"},"color:"),t("span",{class:"italic text-clrs-slate4"},a)),t("div",{class:"mt-5px flex"},t("span",{class:"mr-10px font-bold"},"sample:"),t("span",{class:"italic text-clrs-slate4"},`${i>0?n:"..."}`))),t(X,null))};var Z=o((function(t){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return(a=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e,r){return(l="undefined"!=typeof Reflect&&Reflect.construct?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var a=new(t.bind.apply(t,n));return r&&o(a,r.prototype),a}).apply(null,arguments)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var u=function(t,e,r){return t*(1-r)+e*r},c="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{};function h(t,e){return t(e={exports:{}},e.exports),e.exports}for(var f=h((function(t){var e=t.exports={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},Out:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},InOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)}},Back:{In:function(t){return t*t*(2.70158*t-1.70158)},Out:function(t){return--t*t*(2.70158*t+1.70158)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-e.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*e.Bounce.In(2*t):.5*e.Bounce.Out(2*t-1)+.5}}}})),d=h((function(t){(function(){var e,r,n,a,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-i)/1e6},r=process.hrtime,a=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),o=1e9*process.uptime(),i=a-o):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(c)})),b="undefined"==typeof window?c:window,g=["moz","webkit"],p="AnimationFrame",v=b["request"+p],w=b["cancel"+p]||b["cancelRequest"+p],m=0;!v&&m<g.length;m++)v=b[g[m]+"Request"+p],w=b[g[m]+"Cancel"+p]||b[g[m]+"CancelRequest"+p];if(!v||!w){var y=0,k=0,M=[];v=function(t){if(0===M.length){var e=d(),r=Math.max(0,1e3/60-(e-y));y=r+e,setTimeout((function(){for(var t=M.slice(0),e=M.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(y)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return M.push({handle:++k,callback:t,cancelled:!1}),k},w=function(t){for(var e=0;e<M.length;e++)M[e].handle===t&&(M[e].cancelled=!0)}}var x=function(t){return v.call(b,t)};x.cancel=function(){w.apply(b,arguments)},x.polyfill=function(t){t||(t=b),t.requestAnimationFrame=v,t.cancelAnimationFrame=w};var C,O,j=[],A=Symbol("type"),I=Symbol("start_time"),S=Symbol("completed"),q=Symbol("paused"),z=requestAnimationFrame||x,$=Date.now();!function t(){z(t),C=Date.now(),O=C-$;for(var e=0;e<j.length;e++)j[e][S]||j[e](O,Date.now()-j[e][I]);$=C}();var E=function(e){function i(e,r){var o,l,c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),c=a(i).call(this),n(s(s(l=!c||"object"!=typeof c&&"function"!=typeof c?s(this):c)),"update",(function(){var t=s(s(l))._updateValue;return function(e,r){l[S]||l[q]||(0===l.localTime&&l.emit("start",l.value,s(s(l))),t(l.ease(l.loopFunction.progress(Math.min(1,(r||l.localTime)/l.duration)))),l.emit("update",l.value,s(s(l)),e),l.localTime>=l.duration&&l.loopFunction.complete((function(){l[S]=!0,l.emit("complete",l.value,s(s(l)))})),l.localTime+=e)}}));var h=l.plugin=Object.values(i._plugins).reduce((function(t,r){return t||r&&r.test&&r.test(e)&&r}),!1),f=h&&h.name||("object"===t(e)?Array.isArray(e)?"array":"object":"number");if(h){var d=h.initialize(e,r);e=d.startValue,r=d.destValue,l.data=d.data}switch(Object.assign(s(s(l)),(n(o={duration:1e3,localTime:0,startValue:e,destValue:r,loopMode:"once",loopFunction:i.DEFAULT_LOOP,ease:function(t){return t},value:"array"===f?[].concat(e):"object"===f?Object.assign({},e):e},S,!1),n(o,A,f),n(o,I,Date.now()),n(o,q,!1),o)),l[A]){case"number":l._updateValue=function(t){l.value=u(l.startValue,l.destValue,t)};break;case"array":var b=l.value.length,g=s(s(l)),p=g.startValue,v=g.destValue,w=g.value;l._updateValue=function(t){for(var e=0;e<b;e++)w[e]=u(p[e],v[e],t)};break;case"object":var m=Object.keys(l.startValue),y=m.length,k=s(s(l)),M=k.startValue,x=k.destValue,C=k.value;l._updateValue=function(t){for(var e=0;e<y;e++){var r=m[e];C[r]=u(M[r],x[r],t)}};break;default:l.plugin?l._updateValue=function(t){l.value=l.plugin.interpolate(l.startValue,l.destValue,t,l.data)}:(console.warn("Between: startValue type was unrecognized."),l._updateValue=function(){return null})}return j.push(l.update()),l}return r(i,null,[{key:"between",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return l(i,e)}}]),r(i,[{key:"pause",value:function(){return this[q]=!0,this.emit("pause",this.value,this,O),this}},{key:"play",value:function(){return this[q]=!1,this.emit("play",this.value,this,O),this}},{key:"easing",value:function(t){return this.ease=t,this}},{key:"time",value:function(t){return this.duration=t,this}},{key:"loop",value:function(){for(var t="__loop_".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"once"),e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return this.loopFunction=t in this?Object.assign({},i.DEFAULT_LOOP,this[t].apply(this,r)):i.DEFAULT_LOOP,this}},{key:"__loop_repeat",value:function(t){var e=this,r=t;return this.times=0,{complete:function(t){e.localTime=0,Number.isInteger(r)&&++e.times===r?t():Number.isInteger(r)||++e.times}}}},{key:"__loop_bounce",value:function(t){var e=this,r=t,n=1;return this.times=0,{complete:function(t){e.localTime=0,n=-n,Number.isInteger(r)&&++e.times===r?t():Number.isInteger(r)||++e.times},progress:function(t){return 0<n?t:1-t}}}},{key:"isPaused",get:function(){return this[q]}}]),function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o(t.prototype,e&&e.prototype),e&&o(t,e)}(i,e),i}((function(t){var e={},r=[];(t=t||this).on=function(r,n,a){return(e[r]=e[r]||[]).push([n,a]),t},t.off=function(n,a){n||(e={});for(var i=e[n]||r,o=i.length=a?i.length:0;o--;)a==i[o][0]&&i.splice(o,1);return t},t.emit=function(n){for(var a,i=e[n]||r,o=0<i.length?i.slice(0,i.length):i,l=0;a=o[l++];)a[0].apply(a[1],r.slice.call(arguments,1));return t}}));return n(E,"DEFAULT_LOOP",{complete:function(t){return t()},progress:function(t){return t}}),E.Easing=f,E._plugins={},E}()}));Z._plugins.color=A;let K,G=[];const W=$("white"),tt=$("bada55");let et,rt="#bada55",nt=[0,0,0,0,0],at=[void 0,void 0,void 0,void 0,void 0];const it=t=>{if(!K)return;const e=rt,r=$(t);null!==e&&e!==r&&(et&&et.pause(),et=new Z(e,r).time(1e3).easing(Z.Easing.Cubic.InOut).on("update",(t=>{K.forEach((e=>{e.setAttribute("fill",`${t}`)})),rt=t})))},ot=t=>{K&&K.forEach(((e,r)=>{const n=G[r],a=nt[r],i=t[r];null!==a&&a!==i&&(at[r]&&at[r].pause(),at[r]=new Z(a,i).time(1e3).easing(Z.Easing.Cubic.InOut).on("update",(t=>{e.setAttribute("y",""+n*((100-t)/100)),nt[r]=t})))}))},lt=()=>{const e=I.map((t=>(({id:t,height:e,width:r,x:n,y:a,drop:i})=>({id:t,height:e,width:r,x:n,y:a,maskId:`mask-${t}`,maskUri:`url('#mask-${t}')`,mask:`0.5,0.5,0.5,${e-.5},${r-.5},${e-i-.5},${r-.5},${i+.5}`,matrix:`matrix(1,0,0,1,${n},${a})`,points:`0,0,0,${e},${r},${e-i},${r},${i}`}))(t))),r="currentColor";return G=Array(e.length),K=Array(e.length),t("div",{class:"funnel"},t("svg",{viewBox:"0 0 600 420"},t("desc",null,"Created with Snap"),t("defs",null,e.map((e=>t("mask",{id:e.maskId},t("polygon",{points:e.mask,fill:W}))))),e.map(((e,n)=>{const{height:a,width:i,maskUri:o,matrix:l,points:s}=e;return G[n]=a,t("g",{transform:l},t("polygon",{points:s,fill:W,stroke:r}),t("rect",{ref:t=>K[n]=t,x:"0",y:a,width:i,height:a,mask:o,fill:tt,stroke:r}))}))))},st=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"fingerprint"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},ut=()=>t("a",{class:"absolute top-8 right-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":"eswat2",title:"eswat2"},t(st,{label:"eswat2"})),ct=class{constructor(t){n(this,t),this.tag="funnel-app"}componentDidLoad(){T("pick",it),T("values",ot),U.initApp()}render(){return t("div",{id:"app",class:"ds1-main"},t(ut,null),t(lt,null),t(Q,{actions:U,state:_}),t(H,{actions:U,state:_}),t("hr",{class:"mr-0 ml-0"}),t(Y,{state:_}))}};ct.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.funnel{border-style:solid;border-color:var(--clrs-gray, #aaaaaa);background-color:var(--clrs-silver, #dddddd);stroke-width:1}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y))\n rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))\n scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.funnel{width:calc(100% - 20px);height:100%;padding:10px;padding-bottom:7px;border-radius:10px;border-width:1px}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{ct as funnel_app}
1
+ import{h as t,g as e,f as r,r as n}from"./p-38ff87bb.js";const a=e=>{const r=e.hex||"currentColor",n=e.selected||!1,a=e.size||24;return t("svg",{class:e.class,width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"radio")," ",t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))};var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e,r){return t(r={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},s=o((function(t){var e=Array.prototype.concat,r=Array.prototype.slice,n=t.exports=function(t){for(var n,a=[],i=0,o=t.length;i<o;i++){var l=t[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=e.call(a,r.call(l)):a.push(l)}return a};n.wrap=function(t){return function(){return t(n(arguments))}}})),u=o((function(t){var e=Object.hasOwnProperty,r=Object.create(null);for(var n in l)e.call(l,n)&&(r[l[n]]=n);var a=t.exports={to:{},get:{}};function i(t,e,r){return Math.min(Math.max(e,t),r)}function o(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}a.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=a.get.hsl(t),r="hsl";break;case"hwb":e=a.get.hwb(t),r="hwb";break;default:e=a.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},a.get.rgb=function(t){if(!t)return null;var r,n,a,o=[0,0,0,1];if(r=t.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;o[n]=parseInt(r.slice(s,s+2),16)}a&&(o[3]=parseInt(a,16)/255)}else if(r=t.match(/^#([a-f0-9]{3,4})$/i)){for(a=(r=r[1])[3],n=0;n<3;n++)o[n]=parseInt(r[n]+r[n],16);a&&(o[3]=parseInt(a+a,16)/255)}else if(r=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(r[n+1],0);r[4]&&(o[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}else{if(!(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(r=t.match(/^(\w+)$/))?"transparent"===r[1]?[0,0,0,0]:e.call(l,r[1])?((o=l[r[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(r[n+1]));r[4]&&(o[3]=r[5]?.01*parseFloat(r[4]):parseFloat(r[4]))}for(n=0;n<3;n++)o[n]=i(o[n],0,255);return o[3]=i(o[3],0,1),o},a.get.hsl=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,i(parseFloat(e[2]),0,100),i(parseFloat(e[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.get.hwb=function(t){if(!t)return null;var e=t.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(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,i(parseFloat(e[2]),0,100),i(parseFloat(e[3]),0,100),i(isNaN(r)?1:r,0,1)]}return null},a.to.hex=function(){var t=s(arguments);return"#"+o(t[0])+o(t[1])+o(t[2])+(t[3]<1?o(Math.round(255*t[3])):"")},a.to.rgb=function(){var t=s(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},a.to.rgb.percent=function(){var t=s(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},a.to.hsl=function(){var t=s(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},a.to.hwb=function(){var t=s(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return r[t.slice(0,3)]}})),c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},h=o((function(t){var e={};for(var r in c)c.hasOwnProperty(r)&&(e[c[r]]=r);var n=t.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(t){var e,r,n=t[0]/255,a=t[1]/255,i=t[2]/255,o=Math.min(n,a,i),l=Math.max(n,a,i),s=l-o;return l===o?e=0:n===l?e=(a-i)/s:a===l?e=2+(i-n)/s:i===l&&(e=4+(n-a)/s),(e=Math.min(60*e,360))<0&&(e+=360),r=(o+l)/2,[e,100*(l===o?0:r<=.5?s/(l+o):s/(2-l-o)),100*r]},n.rgb.hsv=function(t){var e,r,n,a,i,o=t[0]/255,l=t[1]/255,s=t[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),h=function(t){return(u-t)/6/c+.5};return 0===c?a=i=0:(i=c/u,e=h(o),r=h(l),n=h(s),o===u?a=n-r:l===u?a=1/3+e-n:s===u&&(a=2/3+r-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*u]},n.rgb.hwb=function(t){var e=t[0],r=t[1],a=t[2];return[n.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(r,a))*100,100*(a=1-1/255*Math.max(e,Math.max(r,a)))]},n.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,a=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-a)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},n.rgb.keyword=function(t){var r=e[t];if(r)return r;var n,a,i,o=1/0;for(var l in c)if(c.hasOwnProperty(l)){var s=(a=t,i=c[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(t){return c[t]},n.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/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*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},n.rgb.lab=function(t){var e=n.rgb.xyz(t),r=e[0],a=e[1],i=e[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(t){var e,r,n,a,i,o=t[0]/360,l=t[1]/100,s=t[2]/100;if(0===l)return[i=255*s,i,i];e=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?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e);return a},n.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=i<=1?i:2-i,[e,100*(0===n?2*a/(i+a):2*r/(n+r)),(n+r)/2*100]},n.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),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(t){var e,r,n,a=t[0],i=t[1]/100,o=t[2]/100,l=Math.max(o,.01);return n=(2-i)*o,r=i*l,[a,100*(r=(r/=(e=(2-i)*l)<=1?e:2-e)||0),100*(n/=2)]},n.hwb.rgb=function(t){var e,r,n,a,i,o,l,s=t[0]/360,u=t[1]/100,c=t[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),n=6*s-(e=Math.floor(6*s)),0!=(1&e)&&(n=1-n),a=u+n*((r=1-c)-u),e){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(t){var e=t[1]/100,r=t[2]/100,n=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-n)+n)),255*(1-Math.min(1,e*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},n.xyz.rgb=function(t){var e,r,n,a=t[0]/100,i=t[1]/100,o=t[2]/100;return r=-.9689*a+1.8758*i+.0415*o,n=.0557*a+-.204*i+1.057*o,e=(e=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,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*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},n.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},n.lab.xyz=function(t){var e,r,n;e=t[1]/500+(r=(t[0]+16)/116),n=r-t[2]/200;var a=Math.pow(r,3),i=Math.pow(e,3),o=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,e=i>.008856?i:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},n.lab.lch=function(t){var e,r=t[0],n=t[1],a=t[2];return(e=360*Math.atan2(a,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+a*a),e]},n.lch.lab=function(t){var e,r=t[1];return e=t[2]/360*2*Math.PI,[t[0],r*Math.cos(e),r*Math.sin(e)]},n.rgb.ansi16=function(t){var e=t[0],r=t[1],a=t[2],i=1 in arguments?arguments[1]:n.rgb.hsv(t)[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(e/255));return 2===i&&(o+=60),o},n.hsv.ansi16=function(t){return n.rgb.ansi16(n.hsv.rgb(t),t[2])},n.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},n.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},n.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},n.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},n.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,a=t[2]/255,i=Math.max(Math.max(r,n),a),o=Math.min(Math.min(r,n),a),l=i-o;return e=l<=0?0:i===r?(n-a)/l%6:i===n?2+(a-r)/l:4+(r-n)/l+4,e/=6,[360*(e%=1),100*l,100*(l<1?o/(1-l):0)]},n.hsl.hcg=function(t){var e,r=t[1]/100,n=t[2]/100,a=0;return(e=n<.5?2*r*n:2*r*(1-n))<1&&(a=(n-.5*e)/(1-e)),[t[0],100*e,100*a]},n.hsv.hcg=function(t){var e=t[2]/100,r=t[1]/100*e,n=0;return r<1&&(n=(e-r)/(1-r)),[t[0],100*r,100*n]},n.hcg.rgb=function(t){var e=t[1]/100,r=t[2]/100;if(0===e)return[255*r,255*r,255*r];var n,a=[0,0,0],i=t[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*(e*a[0]+(n=(1-e)*r)),255*(e*a[1]+n),255*(e*a[2]+n)]},n.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},n.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},n.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},n.hwb.hcg=function(t){var e=1-t[2]/100,r=e-t[1]/100,n=0;return r<1&&(n=(e-r)/(1-r)),[t[0],100*r,100*n]},n.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},n.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},n.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},n.gray.hsl=n.gray.hsv=function(t){return[0,0,t[0]]},n.gray.hwb=function(t){return[0,100,t[0]]},n.gray.cmyk=function(t){return[0,0,0,t[0]]},n.gray.lab=function(t){return[t[0],0,0]},n.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function f(t,e){return function(r){return e(t(r))}}function d(t,e){for(var r=[e[t].parent,t],n=h[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),n=f(h[e[a].parent][a],n),a=e[a].parent;return n.conversion=r,n}var b={};Object.keys(h).forEach((function(t){b[t]={},Object.defineProperty(b[t],"channels",{value:h[t].channels}),Object.defineProperty(b[t],"labels",{value:h[t].labels});var e=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(h),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),a=Object.keys(h[n]),i=a.length,o=0;o<i;o++){var l=a[o],s=e[l];-1===s.distance&&(s.distance=e[n].distance+1,s.parent=n,r.unshift(l))}return e}(t),r={},n=Object.keys(e),a=n.length,i=0;i<a;i++){var o=n[i];null!==e[o].parent&&(r[o]=d(o,e))}return r}(t);Object.keys(e).forEach((function(r){var n=e[r];b[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);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 t&&(e.conversion=t.conversion),e}(n),b[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))}));var g=b,p=[].slice,v=["keyword","gray","hex"],w={};Object.keys(g).forEach((function(t){w[p.call(g[t].labels).sort().join("")]=t}));var m={};function y(t,e){if(!(this instanceof y))return new y(t,e);if(e&&e in v&&(e=null),e&&!(e in g))throw new Error("Unknown model: "+e);var r,n;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof y)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var a=u.get(t);if(null===a)throw new Error("Unable to parse color from string: "+t);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(t.length){this.model=e||"rgb";var i=p.call(t,0,n=g[this.model].channels);this.color=C(i,n),this.valpha="number"==typeof t[n]?t[n]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var l=o.sort().join("");if(!(l in w))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=w[l];var s=g[this.model].labels,c=[];for(r=0;r<s.length;r++)c.push(t[s[r]]);this.color=C(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 k(t,e,r){return(t=Array.isArray(t)?t:[t]).forEach((function(t){(m[t]||(m[t]=[]))[e]=r})),t=t[0],function(n){var a;return arguments.length?(r&&(n=r(n)),(a=this[t]()).color[e]=n,a):(a=this[t]().color[e],r&&(a=r(a)),a)}}function M(t){return function(e){return Math.max(0,Math.min(t,e))}}function x(t){return Array.isArray(t)?t:[t]}function C(t,e){for(var r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}y.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in u.to?this:this.rgb(),r=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return u.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return u.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=g[this.model].channels,r=g[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new y(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new y(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:k("rgb",0,M(255)),green:k("rgb",1,M(255)),blue:k("rgb",2,M(255)),hue:k(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:k("hsl",1,M(100)),lightness:k("hsl",2,M(100)),saturationv:k("hsv",1,M(100)),value:k("hsv",2,M(100)),chroma:k("hcg",1,M(100)),gray:k("hcg",2,M(100)),white:k("hwb",1,M(100)),wblack:k("hwb",2,M(100)),cyan:k("cmyk",0,M(100)),magenta:k("cmyk",1,M(100)),yellow:k("cmyk",2,M(100)),black:k("cmyk",3,M(100)),x:k("xyz",0,M(100)),y:k("xyz",1,M(100)),z:k("xyz",2,M(100)),l:k("lab",0,M(100)),a:k("lab",1),b:k("lab",2),keyword:function(t){return arguments.length?new y(t):g[this.model].keyword(this.color)},hex:function(t){return arguments.length?new y(t):u.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return y.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return e.color[0]=r=(r=(r+t)%360)<0?360+r:r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),a=void 0===e?.5:e,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 y.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(t){if(-1===v.indexOf(t)){var e=g[t].channels;y.prototype[t]=function(){if(this.model===t)return new y(this);if(arguments.length)return new y(arguments,t);var r="number"==typeof arguments[e]?e:this.valpha;return new y(x(g[this.model][t].raw(this.color)).concat(r),t)},y[t]=function(r){return"number"==typeof r&&(r=C(p.call(arguments),e)),new y(r,t)}}}));var O=y,j=function(t,e,r){return t*(1-r)+e*r};const A={name:"color",test:t=>"string"==typeof t&&(t.indexOf("rgb")>=0||t.indexOf("#")>=0||t.indexOf("hsl")>=0||u.get.rgb(t)),initialize:(t,e)=>({data:{format:(t.indexOf("rgba")>=0?"rgba":t.indexOf("rgb")>=0&&"rgb")||t.indexOf("#")>=0&&"hex"||O(t).model},startValue:O(t).rgb(),destValue:O(e).rgb()}),interpolate(t,e,r,n){const a=j(t.color[0],e.color[0],r),i=j(t.color[1],e.color[1],r),o=j(t.color[2],e.color[2],r),l=j(t.valpha,e.valpha,r),s=O.rgb(a,i,o,l)["rgba"===n.format?"rgb":n.format]();return"string"==typeof s?s:s.string()}},I=[{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}],S=I.map((()=>0)),q={bada55:"#bada55",navy:"#001f3f",blue:"#0074d9",aqua:"#7fdbff",teal:"#39cccc",olive:"#3d9970",green:"#2ecc40",lime:"#01ff70",yellow:"#ffdc00",orange:"#ff851b",red:"#ff4136",maroon:"#85144b",fuchsia:"#f012be",purple:"#b10dc9",black:"#111111",gray:"#aaaaaa",silver:"#dddddd"},z={slate:"#708090",slate4:"#4e5964",white:"#ffffff"},$=t=>q[t]||z[t],E=Object.keys(q),F=t=>!("isConnected"in t)||t.isConnected,L=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(F))})(...e)}),2e3)}})(),N=t=>"function"==typeof t?t():t,D="funnel-gfx-wc::app-data",R=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=N(t);let n=new Map(Object.entries(null!=r?r:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{var e;n=new Map(Object.entries(null!==(e=N(t))&&void 0!==e?e:{})),a.reset.forEach((t=>t()))},o=t=>(a.get.forEach((e=>e(t))),n.get(t)),l=(t,r)=>{const i=n.get(t);e(r,i,t)&&(n.set(t,r),a.set.forEach((e=>e(t,r,i))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>o(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,r)=>(l(e,r),!0)}),u=(t,e)=>(a[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(a[t],e)});return{state:s,get:o,set:l,on:u,onChange:(e,r)=>{const n=u("set",((t,n)=>{t===e&&r(n)})),a=u("reset",(()=>r(N(t)[e])));return()=>{n(),a()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(u("set",e.set)),e.get&&t.push(u("get",e.get)),e.reset&&t.push(u("reset",e.reset)),e.dispose&&t.push(u("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{a.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=n.get(t);a.set.forEach((r=>r(t,e,e)))}}})({count:0,pick:"bada55",values:[...S]},void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const n=e();n&&((t,e,r)=>{const n=t.get(e);n?n.includes(r)||n.push(r):t.set(e,[r])})(t,r,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(r)),L(t)},reset:()=>{t.forEach((t=>t.forEach(r))),L(t)}}})()),t})(),{state:_,onChange:T}=R,B=()=>{const{count:t,pick:e,values:r}=_;(t=>{const e=JSON.stringify(t);localStorage.setItem(D,e)})({count:t,pick:e,values:r})},U={initApp:()=>{const t=(()=>{const t=localStorage.getItem(D);return t?JSON.parse(t):void 0})();if(t){const{count:e,pick:r,values:n}=t;_.count=e,_.pick=r,_.values=n}},refresh:()=>{const t=S.map((()=>Math.floor(100*Math.random())));_.count=_.count+1,_.values=t,B()},reset:()=>{_.count=0,_.values=[...S],B()},updatePick:t=>{_.pick=t,B()}},H=e=>{const{actions:r,state:n}=e,{pick:i}=n;return t("div",{id:"toolbar",class:"flex flex-wrap",role:"radiogroup"},E.map((e=>{const n=$(e),o=i==e;return t("div",{"aria-label":e,"aria-checked":o,role:"radio",title:e,onClick:()=>{r.updatePick(e)}},t(a,{hex:n,selected:o}))})))},P=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"chevron-double-left"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},V=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"close"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},J=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"refresh"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Q=e=>{const{actions:r,state:n}=e,{count:a}=n;return t("div",{class:"mt-3 mb-10px flex items-center"},t("button",{"aria-label":"Refresh",title:"Refresh",class:"ds1-button data-button bg-clrs-blue",onClick:()=>{r.refresh()}},t(J,null)),t("button",{"aria-label":"Reset",title:"Reset",class:"ds1-button data-button bg-clrs-red",onClick:()=>{r.reset()}},t(V,null)),t("span",{class:"flex items-center"},t(P,{size:28}),t("span",{class:"italic"},"click a button... ",t("sup",null,a))))},X=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.8"),Y=e=>{const{state:r}=e,{values:n,pick:a,count:i}=r;return t("div",{class:"flex"},t("div",{class:"flex flex-col"},t("div",{class:"flex"},t("span",{class:"mr-10px font-bold"},"color:"),t("span",{class:"italic text-clrs-slate4"},a)),t("div",{class:"mt-5px flex"},t("span",{class:"mr-10px font-bold"},"sample:"),t("span",{class:"italic text-clrs-slate4"},`${i>0?n:"..."}`))),t(X,null))};var Z=o((function(t){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return(a=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e,r){return(l="undefined"!=typeof Reflect&&Reflect.construct?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var a=new(t.bind.apply(t,n));return r&&o(a,r.prototype),a}).apply(null,arguments)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var u=function(t,e,r){return t*(1-r)+e*r},c="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{};function h(t,e){return t(e={exports:{}},e.exports),e.exports}for(var f=h((function(t){var e=t.exports={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},Out:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},InOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)}},Back:{In:function(t){return t*t*(2.70158*t-1.70158)},Out:function(t){return--t*t*(2.70158*t+1.70158)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-e.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*e.Bounce.In(2*t):.5*e.Bounce.Out(2*t-1)+.5}}}})),d=h((function(t){(function(){var e,r,n,a,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-i)/1e6},r=process.hrtime,a=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),o=1e9*process.uptime(),i=a-o):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(c)})),b="undefined"==typeof window?c:window,g=["moz","webkit"],p="AnimationFrame",v=b["request"+p],w=b["cancel"+p]||b["cancelRequest"+p],m=0;!v&&m<g.length;m++)v=b[g[m]+"Request"+p],w=b[g[m]+"Cancel"+p]||b[g[m]+"CancelRequest"+p];if(!v||!w){var y=0,k=0,M=[];v=function(t){if(0===M.length){var e=d(),r=Math.max(0,1e3/60-(e-y));y=r+e,setTimeout((function(){for(var t=M.slice(0),e=M.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(y)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return M.push({handle:++k,callback:t,cancelled:!1}),k},w=function(t){for(var e=0;e<M.length;e++)M[e].handle===t&&(M[e].cancelled=!0)}}var x=function(t){return v.call(b,t)};x.cancel=function(){w.apply(b,arguments)},x.polyfill=function(t){t||(t=b),t.requestAnimationFrame=v,t.cancelAnimationFrame=w};var C,O,j=[],A=Symbol("type"),I=Symbol("start_time"),S=Symbol("completed"),q=Symbol("paused"),z=requestAnimationFrame||x,$=Date.now();!function t(){z(t),C=Date.now(),O=C-$;for(var e=0;e<j.length;e++)j[e][S]||j[e](O,Date.now()-j[e][I]);$=C}();var E=function(e){function i(e,r){var o,l,c;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),c=a(i).call(this),n(s(s(l=!c||"object"!=typeof c&&"function"!=typeof c?s(this):c)),"update",(function(){var t=s(s(l))._updateValue;return function(e,r){l[S]||l[q]||(0===l.localTime&&l.emit("start",l.value,s(s(l))),t(l.ease(l.loopFunction.progress(Math.min(1,(r||l.localTime)/l.duration)))),l.emit("update",l.value,s(s(l)),e),l.localTime>=l.duration&&l.loopFunction.complete((function(){l[S]=!0,l.emit("complete",l.value,s(s(l)))})),l.localTime+=e)}}));var h=l.plugin=Object.values(i._plugins).reduce((function(t,r){return t||r&&r.test&&r.test(e)&&r}),!1),f=h&&h.name||("object"===t(e)?Array.isArray(e)?"array":"object":"number");if(h){var d=h.initialize(e,r);e=d.startValue,r=d.destValue,l.data=d.data}switch(Object.assign(s(s(l)),(n(o={duration:1e3,localTime:0,startValue:e,destValue:r,loopMode:"once",loopFunction:i.DEFAULT_LOOP,ease:function(t){return t},value:"array"===f?[].concat(e):"object"===f?Object.assign({},e):e},S,!1),n(o,A,f),n(o,I,Date.now()),n(o,q,!1),o)),l[A]){case"number":l._updateValue=function(t){l.value=u(l.startValue,l.destValue,t)};break;case"array":var b=l.value.length,g=s(s(l)),p=g.startValue,v=g.destValue,w=g.value;l._updateValue=function(t){for(var e=0;e<b;e++)w[e]=u(p[e],v[e],t)};break;case"object":var m=Object.keys(l.startValue),y=m.length,k=s(s(l)),M=k.startValue,x=k.destValue,C=k.value;l._updateValue=function(t){for(var e=0;e<y;e++){var r=m[e];C[r]=u(M[r],x[r],t)}};break;default:l.plugin?l._updateValue=function(t){l.value=l.plugin.interpolate(l.startValue,l.destValue,t,l.data)}:(console.warn("Between: startValue type was unrecognized."),l._updateValue=function(){return null})}return j.push(l.update()),l}return r(i,null,[{key:"between",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return l(i,e)}}]),r(i,[{key:"pause",value:function(){return this[q]=!0,this.emit("pause",this.value,this,O),this}},{key:"play",value:function(){return this[q]=!1,this.emit("play",this.value,this,O),this}},{key:"easing",value:function(t){return this.ease=t,this}},{key:"time",value:function(t){return this.duration=t,this}},{key:"loop",value:function(){for(var t="__loop_".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"once"),e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return this.loopFunction=t in this?Object.assign({},i.DEFAULT_LOOP,this[t].apply(this,r)):i.DEFAULT_LOOP,this}},{key:"__loop_repeat",value:function(t){var e=this,r=t;return this.times=0,{complete:function(t){e.localTime=0,Number.isInteger(r)&&++e.times===r?t():Number.isInteger(r)||++e.times}}}},{key:"__loop_bounce",value:function(t){var e=this,r=t,n=1;return this.times=0,{complete:function(t){e.localTime=0,n=-n,Number.isInteger(r)&&++e.times===r?t():Number.isInteger(r)||++e.times},progress:function(t){return 0<n?t:1-t}}}},{key:"isPaused",get:function(){return this[q]}}]),function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o(t.prototype,e&&e.prototype),e&&o(t,e)}(i,e),i}((function(t){var e={},r=[];(t=t||this).on=function(r,n,a){return(e[r]=e[r]||[]).push([n,a]),t},t.off=function(n,a){n||(e={});for(var i=e[n]||r,o=i.length=a?i.length:0;o--;)a==i[o][0]&&i.splice(o,1);return t},t.emit=function(n){for(var a,i=e[n]||r,o=0<i.length?i.slice(0,i.length):i,l=0;a=o[l++];)a[0].apply(a[1],r.slice.call(arguments,1));return t}}));return n(E,"DEFAULT_LOOP",{complete:function(t){return t()},progress:function(t){return t}}),E.Easing=f,E._plugins={},E}()}));Z._plugins.color=A;let K,G=[];const W=$("white"),tt=$("bada55");let et,rt="#bada55",nt=[0,0,0,0,0],at=[void 0,void 0,void 0,void 0,void 0];const it=t=>{if(!K)return;const e=rt,r=$(t);null!==e&&e!==r&&(et&&et.pause(),et=new Z(e,r).time(1e3).easing(Z.Easing.Cubic.InOut).on("update",(t=>{K.forEach((e=>{e.setAttribute("fill",`${t}`)})),rt=t})))},ot=t=>{K&&K.forEach(((e,r)=>{const n=G[r],a=nt[r],i=t[r];null!==a&&a!==i&&(at[r]&&at[r].pause(),at[r]=new Z(a,i).time(1e3).easing(Z.Easing.Cubic.InOut).on("update",(t=>{e.setAttribute("y",""+n*((100-t)/100)),nt[r]=t})))}))},lt=()=>{const e=I.map((t=>(({id:t,height:e,width:r,x:n,y:a,drop:i})=>({id:t,height:e,width:r,x:n,y:a,maskId:`mask-${t}`,maskUri:`url('#mask-${t}')`,mask:`0.5,0.5,0.5,${e-.5},${r-.5},${e-i-.5},${r-.5},${i+.5}`,matrix:`matrix(1,0,0,1,${n},${a})`,points:`0,0,0,${e},${r},${e-i},${r},${i}`}))(t))),r="currentColor";return G=Array(e.length),K=Array(e.length),t("div",{class:"funnel"},t("svg",{viewBox:"0 0 600 420"},t("desc",null,"Created with Snap"),t("defs",null,e.map((e=>t("mask",{id:e.maskId},t("polygon",{points:e.mask,fill:W}))))),e.map(((e,n)=>{const{height:a,width:i,maskUri:o,matrix:l,points:s}=e;return G[n]=a,t("g",{transform:l},t("polygon",{points:s,fill:W,stroke:r}),t("rect",{ref:t=>K[n]=t,x:"0",y:a,width:i,height:a,mask:o,fill:tt,stroke:r}))}))))},st=e=>{const r=e.hex||"currentColor",n=e.size||24;return t("svg",{class:e.class,width:n,height:n,viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,e.label||"fingerprint"),t("g",{fill:r},t("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"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},ut=()=>t("a",{class:"absolute top-8 right-8 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":"eswat2",title:"eswat2"},t(st,{label:"eswat2"})),ct=class{constructor(t){n(this,t),this.tag="funnel-app"}componentDidLoad(){T("pick",it),T("values",ot),U.initApp()}render(){return t("div",{id:"app",class:"ds1-main"},t(ut,null),t(lt,null),t(Q,{actions:U,state:_}),t(H,{actions:U,state:_}),t("hr",{class:"mr-0 ml-0"}),t(Y,{state:_}))}};ct.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{display:flex;flex-direction:column;padding:1rem;font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ds1-button{display:flex;align-items:center;border-style:solid;border-color:var(--clrs-slate, #708090);color:var(--clrs-white, #ffffff)}.ds1-button:active{background-color:var(--clrs-gray, #aaaaaa);color:var(--clrs-navy, #001f3f)}.funnel{border-style:solid;border-color:var(--clrs-gray, #aaaaaa);background-color:var(--clrs-silver, #dddddd);stroke-width:1}.absolute{position:absolute}.top-8{top:2rem}.right-8{right:2rem}.mt-3{margin-top:0.75rem}.mb-10px{margin-bottom:10px}.mr-10px{margin-right:10px}.mt-5px{margin-top:5px}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.flex{display:flex}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y))\n rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))\n scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.align-top{vertical-align:top}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.italic{font-style:italic}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.data-button{border-radius:5px;border-width:1px;padding:5px;margin:0px;margin-right:5px;cursor:pointer}.funnel{width:calc(100% - 20px);height:100%;padding:10px;padding-bottom:7px;border-radius:10px;border-width:1px}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{ct as funnel_app}
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
221
221
  */
222
222
  export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
- * getMode
224
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
+ * @param ref a reference to the node to get styles for
225
226
  */
226
227
  export declare function getMode<T = string | undefined>(ref: any): T;
227
228
  export declare function setPlatformHelpers(helpers: {
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
234
235
  /**
235
236
  * Get the base path to where the assets can be found. Use `setAssetPath(path)`
236
237
  * if the path needs to be customized.
238
+ * @param path the path to use in calculating the asset path. this value will be
239
+ * used in conjunction with the base asset path
237
240
  */
238
241
  export declare function getAssetPath(path: string): string;
239
242
  /**
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
246
249
  * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
247
250
  * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
248
251
  * But do note that this configuration depends on how your script is bundled, or lack of
249
- * bunding, and where your assets can be loaded from. Additionally custom bundling
252
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
250
253
  * will have to ensure the static assets are copied to its build directory.
254
+ * @param path the asset path to set
251
255
  */
252
256
  export declare function setAssetPath(path: string): string;
253
257
  /**
254
- * getElement
258
+ * Retrieve a Stencil element for a given reference
259
+ * @param ref the ref to get the Stencil element for
255
260
  */
256
261
  export declare function getElement(ref: any): HTMLStencilElement;
257
262
  /**
258
263
  * Schedules a new render of the given instance or element even if no state changed.
259
264
  *
260
- * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
265
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
266
+ *
267
+ * @param ref the node/element to force the re-render of
261
268
  */
262
269
  export declare function forceUpdate(ref: any): void;
263
270
  /**
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
272
279
  * in the best moment to perform DOM mutation without causing layout thrashing.
273
280
  *
274
281
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
282
+ *
283
+ * @param task the DOM-write to schedule
275
284
  */
276
285
  export declare function writeTask(task: RafCallback): void;
277
286
  /**
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
279
288
  * in the best moment to perform DOM reads without causing layout thrashing.
280
289
  *
281
290
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
291
+ *
292
+ * @param task the DOM-read to schedule
282
293
  */
283
294
  export declare function readTask(task: RafCallback): void;
284
295
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "funnel-gfx-wc",
3
- "version": "0.0.424",
3
+ "version": "0.0.425",
4
4
  "description": "prototype -- a simple SVG demo built with Stencil and Tailwind",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "format": "prettier --write src"
30
30
  },
31
31
  "dependencies": {
32
- "@stencil/core": "2.18.0",
32
+ "@stencil/core": "2.18.1",
33
33
  "@stencil/store": "2.0.1",
34
34
  "between.js": "0.1.2-fix.2"
35
35
  },
@@ -1,2 +0,0 @@
1
- let t,e,n=!1,l=null,s=!1;const o="undefined"!=typeof window?window:{},r=o.document||{head:{}},c={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},i=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),a=new WeakMap,f=t=>"sc-"+t.o,h={},p=t=>"object"==(t=typeof t)||"function"===t,y=(t,e,...n)=>{let l=null,s=!1,o=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!p(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?$(null,l):l),o=s)};if(c(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,r,m);const i=$(t,null);return i.u=e,r.length>0&&(i.h=r),i},$=(t,e)=>({t:0,p:t,i:e,$:null,h:null,u:null}),d={},m={forEach:(t,e)=>t.map(w).forEach(e),map:(t,e)=>t.map(w).map(e).map(b)},w=t=>({vattrs:t.u,vchildren:t.h,vkey:t.m,vname:t.g,vtag:t.p,vtext:t.i}),b=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),y(t.vtag,e,...t.vchildren||[])}const e=$(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.m=t.vkey,e.g=t.vname,e},g=(t,e,n,l,s,r)=>{if(n!==l){let i=J(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,s=j(n),o=j(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("ref"===e)l&&l(t);else if(i||"o"!==e[0]||"n"!==e[1]){const o=p(l);if((i||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||s)&&!o&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):J(o,u)?u.slice(2):u[2]+e.slice(3),n&&c.rel(t,e,n,!1),l&&c.ael(t,e,l,!1)}},v=/\s/,j=t=>t?t.split(v):[],S=(t,e,n,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,o=t&&t.u||h,r=e.u||h;for(l in o)l in r||g(s,l,o[l],void 0,n,e.t);for(l in r)g(s,l,o[l],r[l],n,e.t)},O=(e,l,s)=>{const o=l.h[s];let c,i,u=0;if(null!==o.i)c=o.$=r.createTextNode(o.i);else{if(n||(n="svg"===o.p),c=o.$=r.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.p),n&&"foreignObject"===o.p&&(n=!1),S(null,o,n),null!=t&&c["s-si"]!==t&&c.classList.add(c["s-si"]=t),o.h)for(u=0;u<o.h.length;++u)i=O(e,o,u),i&&c.appendChild(i);"svg"===o.p?n=!1:"foreignObject"===c.tagName&&(n=!0)}return c},M=(t,n,l,s,o,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=O(null,l,o),c&&(s[o].$=c,i.insertBefore(c,n)))},k=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(s=l.$,E(l),s.remove())},x=(t,e)=>t.p===e.p,C=(t,e)=>{const l=e.$=t.$,s=t.h,o=e.h,r=e.p,c=e.i;null===c?(n="svg"===r||"foreignObject"!==r&&n,S(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],u=e[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=e[++o]:null==u?u=e[--c]:null==f?f=l[++r]:null==h?h=l[--a]:x(i,f)?(C(i,f),i=e[++o],f=l[++r]):x(u,h)?(C(u,h),u=e[--c],h=l[--a]):x(i,h)?(C(i,h),t.insertBefore(i.$,u.$.nextSibling),i=e[++o],h=l[--a]):x(u,f)?(C(u,f),t.insertBefore(u.$,i.$),u=e[--c],f=l[++r]):(s=O(e&&e[r],n,r),f=l[++r],s&&i.$.parentNode.insertBefore(s,i.$));o>c?M(t,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&k(e,o,c)})(l,s,e,o):null!==o?(null!==t.i&&(l.textContent=""),M(l,null,e,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):t.i!==c&&(l.data=c)},E=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(E)},P=(t,e)=>{e&&!t.v&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.v=e)))},L=(t,e)=>{if(t.t|=16,!(4&t.t))return P(t,t.j),ot((()=>N(t,e)));t.t|=512},N=(t,e)=>{const n=t.S;return F(void 0,(()=>T(t,n,e)))},T=async(t,e,n)=>{const l=t.O,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.O,l=e.t,s=((t,e)=>{let n=f(e);const l=Y.get(n);if(t=11===t.nodeType?t:r,l)if("string"==typeof l){let e,s=a.get(t=t.head||t);s||a.set(t,s=new Set),s.has(n)||(e=r.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);A(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>U(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},A=(n,s)=>{try{l=s,s=s.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.O,o=n.k||$(null,null),r=(t=>t&&t.p===d)(l)?l:y(null,null,l);e=s.tagName,r.p=null,r.t|=4,n.k=r,r.$=o.$=s.shadowRoot||s,t=s["s-sc"],C(o,r)})(n,s)}catch(t){K(t,n.O)}return l=null,null},R=()=>l,U=t=>{const e=t.O,n=t.S,l=t.j;64&t.t||(t.t|=64,H(e),D(n,"componentDidLoad"),t.C(e),l||q()),t.v&&(t.v(),t.v=void 0),512&t.t&&st((()=>L(t,!1))),t.t&=-517},W=t=>{{const e=B(t),n=e.O.isConnected;return n&&2==(18&e.t)&&L(e,!1),n}},q=()=>{H(r.documentElement),st((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"funnel-gfx-wc"}});return t.dispatchEvent(e),e})(o)))},D=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){K(t)}},F=(t,e)=>t&&t.then?t.then(e):e(),H=t=>t.classList.add("hydrated"),V=(t,e,n)=>{if(e.P){const l=Object.entries(e.P),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>B(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=B(t),o=s.L.get(e),r=s.t,c=s.S;n=((t,e)=>null==t||p(t)?t:1&e?t+"":t)(n,l.P[e][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(e,n),c&&2==(18&r)&&L(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){c.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},_=(t,e={})=>{const n=[],l=e.exclude||[],s=o.customElements,i=r.head,a=i.querySelector("meta[charset]"),h=r.createElement("style"),p=[];let y,$=!0;Object.assign(c,e),c.l=new URL(e.resourcesUrl||"./",r.baseURI).href,t.map((t=>{t[1].map((e=>{const o={t:e[0],o:e[1],P:e[2],N:e[3]};o.P=e[2];const r=o.o,i=class extends HTMLElement{constructor(t){super(t),I(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),$?p.push(this):c.jmp((()=>(t=>{if(0==(1&c.t)){const e=B(t),n=e.M,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){P(e,e.j=n);break}}n.P&&Object.entries(n.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=X(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(V(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){K(t)}e.t&=-9,t()}if(s.style){let t=s.style;const e=f(n);if(!Y.has(e)){const l=()=>{};((t,e,n)=>{let l=Y.get(t);u&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,Y.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.j,r=()=>L(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){c.jmp((()=>{}))}componentOnReady(){return B(this).T}};o.A=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,V(i,o,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),i.insertBefore(h,a?a.nextSibling:i.firstChild),$=!1,p.length?p.map((t=>t.connectedCallback())):c.jmp((()=>y=setTimeout(q,30)))},z=new WeakMap,B=t=>z.get(t),G=(t,e)=>z.set(e.S=t,e),I=(t,e)=>{const n={t:0,O:t,M:e,L:new Map};return n.T=new Promise((t=>n.C=t)),t["s-p"]=[],t["s-rc"]=[],z.set(t,n)},J=(t,e)=>e in t,K=(t,e)=>(0,console.error)(t,e),Q=new Map,X=t=>{const e=t.o.replace(/-/g,"_"),n=t.A,l=Q.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(Q.set(n,t),t[e])),K)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},Y=new Map,Z=[],tt=[],et=(t,e)=>n=>{t.push(n),s||(s=!0,e&&4&c.t?st(lt):c.raf(lt))},nt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){K(t)}t.length=0},lt=()=>{nt(Z),nt(tt),(s=Z.length>0)&&c.raf(lt)},st=t=>i().then(t),ot=et(tt,!0);export{_ as b,W as f,R as g,y as h,i as p,G as r}