proto-sudoku-wc 0.0.479 → 0.0.481

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.
@@ -22,33 +22,19 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'proto-sudoku-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-02cc516d.js');
5
+ const index = require('./index-0f8ed4ca.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();
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-02cc516d.js');
3
+ const index = require('./index-0f8ed4ca.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('proto-sudoku-wc.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-02cc516d.js');
5
+ const index = require('./index-0f8ed4ca.js');
6
6
 
7
7
  const Alien = props => {
8
8
  const hex = props.hex || 'currentColor';
@@ -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,32 +1,18 @@
1
1
  const NAMESPACE = 'proto-sudoku-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-f468fcee.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-aa4026b4.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,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-f468fcee.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-aa4026b4.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,4 +1,4 @@
1
- import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-f468fcee.js';
1
+ import { h, g as getRenderingRef, f as forceUpdate, r as registerInstance } from './index-aa4026b4.js';
2
2
 
3
3
  const Alien = props => {
4
4
  const hex = props.hex || 'currentColor';
@@ -0,0 +1,2 @@
1
+ let t,e,n=!1,l=null,o=!1;const s={},r=t=>"object"==(t=typeof t)||"function"===t,c=(t,e,...n)=>{let l=null,o=!1,s=!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&&((o="function"!=typeof t&&!r(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?i(null,l):l),s=o)};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,o,s)=>{if(n!==l){let c=_(t,e),i=e.toLowerCase();if("class"===e){const e=t.classList,o=m(n),s=m(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.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)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?c=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!c||4&s||o)&&!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 o=11===e.h.nodeType&&e.h.host?e.h.host:e.h,r=t&&t.l||s,c=e.l||s;for(l in r)l in c||$(o,l,r[l],void 0,n,e.i);for(l in c)$(o,l,r[l],c[l],n,e.i)},b=(e,l,o)=>{const s=l.o[o];let r,c,i=0;if(null!==s.t)r=s.h=K.createTextNode(s.t);else{if(n||(n="svg"===s.u),r=s.h=K.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),n&&"foreignObject"===s.u&&(n=!1),w(null,s,n),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),s.o)for(i=0;i<s.o.length;++i)c=b(e,s,i),c&&r.appendChild(c);"svg"===s.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},g=(t,n,l,o,s,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=b(null,l,s),c&&(o[s].h=c,i.insertBefore(c,n)))},v=(t,e,n,l,o)=>{for(;e<=n;++e)(l=t[e])&&(o=l.h,O(l),o.remove())},j=(t,e)=>t.u===e.u,S=(t,e)=>{const l=e.h=t.h,o=t.o,s=e.o,r=e.u,c=e.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,w(t,e,n),null!==o&&null!==s?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],u=e[c],a=l.length-1,f=l[0],h=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==u?u=e[--c]:null==f?f=l[++r]:null==h?h=l[--a]:j(i,f)?(S(i,f),i=e[++s],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[++s],h=l[--a]):j(u,f)?(S(u,f),t.insertBefore(u.h,i.h),u=e[--c],f=l[++r]):(o=b(e&&e[r],n,r),f=l[++r],o&&i.h.parentNode.insertBefore(o,i.h));s>c?g(t,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&v(e,s,c)})(l,o,e,s):null!==s?(null!==t.t&&(l.textContent=""),g(l,null,e,s,0,s.length-1)):null!==o&&v(o,0,o.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)},k=(t,e)=>{e&&!t.g&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.g=e)))},M=(t,e)=>{if(t.i|=16,!(4&t.i))return k(t,t.v),st((()=>C(t,e)));t.i|=512},C=(t,e)=>{const n=t.j;return R(void 0,(()=>x(t,n,e)))},x=async(t,e,n)=>{const l=t.S,o=l["s-rc"];n&&(t=>{const e=t.O,n=t.S,l=e.i,o=((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,o=p.get(t=t.head||t);o||p.set(t,o=new Set),o.has(n)||(e=K.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.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"]=o,n.classList.add(o+"-h"))})(t);E(t,e),o&&(o.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,o)=>{try{l=o,o=o.render(),n.i&=-17,n.i|=2,((n,l)=>{const o=n.S,s=n.k||i(null,null),r=(t=>t&&t.u===u)(l)?l:c(null,null,l);e=o.tagName,r.u=null,r.i|=4,n.k=r,r.h=s.h=o.shadowRoot||o,t=o["s-sc"],S(s,r)})(n,o)}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.M(e),l||T()),t.g&&(t.g(),t.g=void 0),512&t.i&&ot((()=>M(t,!1))),t.i&=-517},N=t=>{{const e=F(t),n=e.S.isConnected;return n&&2==(18&e.i)&&M(e,!1),n}},T=()=>{U(K.documentElement),ot((()=>(t=>{const e=Q.ce("appload",{detail:{namespace:"proto-sudoku-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),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>F(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=F(t),s=o.P.get(e),c=o.i,i=o.j;n=((t,e)=>null==t||r(t)?t:1&e?t+"":t)(n,l.C[e][0]),8&c&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(o.P.set(e,n),i&&2==(18&c)&&M(o,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){Q.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.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||[],o=J.customElements,s=K.head,r=s.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 s={i:e[0],m:e[1],C:e[2],N:e[3]};s.C=e[2];const r=s.m,c=class extends HTMLElement{constructor(t){super(t),V(t=this,s),1&s.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"]){k(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,o)=>{if(0==(32&e.i)){{if(e.i|=32,(o=G(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(W(o,n,2),o.isProxied=!0);const t=()=>{};e.i|=8;try{new o(e)}catch(t){z(t)}e.i&=-9,t()}if(o.style){let t=o.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 s=e.v,r=()=>M(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){Q.jmp((()=>{}))}componentOnReady(){return F(this).T}};s.A=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,W(c,s,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),s.insertBefore(c,r?r.nextSibling:s.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.M=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),o||(o=!0,e&&4&Q.i?ot(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),(o=Z.length>0)&&Q.raf(lt)},ot=t=>X().then(t),st=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-3561d2f7.js";const o=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||"alien"),t("g",{fill:r},t("path",{d:"M10.31 10.93C11.33 12.57 11.18 14.5 9.96 15.28C8.74 16.04 6.92 15.33\n 5.89 13.69C4.87 12.05 5.03 10.1 6.25 9.34C7.47 8.58 9.29 9.29 10.31\n 10.93M12 17.75C14 17.75 14.5 17 14.5 17C14.5 17 14 19 12 19C10 19 9.5\n 17.03 9.5 17C9.5 17 10 17.75 12 17.75M17.75 9.34C18.97 10.1 19.13 12.05\n 18.11 13.69C17.08 15.33 15.26 16.04 14.04 15.28C12.82 14.5 12.67 12.57\n 13.69 10.93C14.71 9.29 16.53 8.58 17.75 9.34M12 20C14.5 20 20 14.86 20\n 11C20 7.14 16.41 4 12 4C7.59 4 4 7.14 4 11C4 14.86 9.5 20 12 20M12 2C17.5\n 2 22 6.04 22 11C22 15.08 16.32 22 12 22C7.68 22 2 15.08 2 11C2 6.04 6.5 2\n 12 2Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},i="proto-sudoku",a=`${i}::data`,s=`${i}::inputs`,l=`${i}::pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},u=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},f=()=>[...c(s)],d=t=>{u(s,t.join(""))},p=()=>{const t=c(l);return null!==t?t:void 0},h=t=>{u(l,t>=0&&t<81?t:null)},m=t=>!("isConnected"in t)||t.isConnected,v=(()=>{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(m))})(...e)}),2e3)}})(),g=t=>"function"==typeof t?t():t;var w,b=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},y=Object.prototype.toString,x=(w=Object.create(null),function(t){var e=y.call(t);return w[e]||(w[e]=e.slice(8,-1).toLowerCase())});function C(t){return t=t.toLowerCase(),function(e){return x(e)===t}}function k(t){return Array.isArray(t)}function O(t){return void 0===t}var R=C("ArrayBuffer");function E(t){return null!==t&&"object"==typeof t}function j(t){if("object"!==x(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var A=C("Date"),S=C("File"),N=C("Blob"),M=C("FileList");function z(t){return"[object Function]"===y.call(t)}var B=C("URLSearchParams");function T(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),k(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var P,D=(P="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return P&&t instanceof P}),U={isArray:k,isArrayBuffer:R,isBuffer:function(t){return null!==t&&!O(t)&&null!==t.constructor&&!O(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||z(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&R(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:E,isPlainObject:j,isUndefined:O,isDate:A,isFile:S,isBlob:N,isFunction:z,isStream:function(t){return E(t)&&z(t.pipe)},isURLSearchParams:B,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:T,merge:function t(){var e={};function r(r,n){e[n]=j(e[n])&&j(r)?t(e[n],r):j(r)?t({},r):k(r)?r.slice():r}for(var n=0,o=arguments.length;n<o;n++)T(arguments[n],r);return e},extend:function(t,e,r){return T(e,(function(e,n){t[n]=r&&"function"==typeof e?b(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:x,kindOfTest:C,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length);var n=t.indexOf(e,r-=e.length);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(O(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:D,isFileList:M};function _(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var F=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(U.isURLSearchParams(e))n=e.toString();else{var o=[];U.forEach(e,(function(t,e){null!=t&&(U.isArray(t)?e+="[]":t=[t],U.forEach(t,(function(t){U.isDate(t)?t=t.toISOString():U.isObject(t)&&(t=JSON.stringify(t)),o.push(_(e)+"="+_(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};function L(){this.handlers=[]}L.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},L.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},L.prototype.forEach=function(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var H=L,J=function(t,e){U.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))};function I(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}U.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var q=I.prototype,$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){$[t]={value:t}})),Object.defineProperties(I,$),Object.defineProperty(q,"isAxiosError",{value:!0}),I.from=function(t,e,r,n,o,i){var a=Object.create(q);return U.toFlatObject(t,a,(function(t){return t!==Error.prototype})),I.call(a,t.message,e,r,n,o),a.name=t.name,i&&Object.assign(a,i),a};var X=I,K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":U.isDate(t)?t.toISOString():U.isArrayBuffer(t)||U.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,i){if(U.isPlainObject(o)||U.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),U.forEach(o,(function(r,o){if(!U.isUndefined(r)){var a,s=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(U.endsWith(o,"{}"))r=JSON.stringify(r);else if(U.endsWith(o,"[]")&&(a=U.toArray(r)))return void a.forEach((function(t){!U.isUndefined(t)&&e.append(s,n(t))}));t(r,s)}})),r.pop()}else e.append(i,n(o))}(t),e},V=U.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),U.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),U.isString(n)&&a.push("path="+n),U.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Y=function(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e},Z=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Q=U.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=U.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function G(t){X.call(this,null==t?"canceled":t,X.ERR_CANCELED),this.name="CanceledError"}U.inherits(G,X,{__CANCEL__:!0});var tt=G,et={"Content-Type":"application/x-www-form-urlencoded"};function rt(t,e){!U.isUndefined(t)&&U.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var nt,ot={transitional:K,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(nt=function(t){return new Promise((function(e,r){var n,o=t.data,i=t.headers,a=t.responseType;function s(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}U.isFormData(o)&&U.isStandardBrowserEnv()&&delete i["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+u)}var f=Y(t.baseURL,t.url);function d(){if(l){var n,o,i,c,u,f="getAllResponseHeaders"in l?(n=l.getAllResponseHeaders(),u={},n?(U.forEach(n.split("\n"),(function(t){if(c=t.indexOf(":"),o=U.trim(t.substr(0,c)).toLowerCase(),i=U.trim(t.substr(c+1)),o){if(u[o]&&Z.indexOf(o)>=0)return;u[o]="set-cookie"===o?(u[o]?u[o]:[]).concat([i]):u[o]?u[o]+", "+i:i}})),u):u):null;!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new X("Request failed with status code "+r.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),s()}),(function(t){r(t),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:f,config:t,request:l}),l=null}}if(l.open(t.method.toUpperCase(),F(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new X("Request aborted",X.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,t,l,l)),l=null},l.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new X(e,(t.transitional||K).clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,l)),l=null},U.isStandardBrowserEnv()){var p=(t.withCredentials||Q(f))&&t.xsrfCookieName?V.read(t.xsrfCookieName):void 0;p&&(i[t.xsrfHeaderName]=p)}"setRequestHeader"in l&&U.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:l.setRequestHeader(e,t)})),U.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){l&&(r(!t||t&&t.type?new tt:t),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,t)):l.send(o)}))}),nt),transformRequest:[function(t,e){if(J(e,"Accept"),J(e,"Content-Type"),U.isFormData(t)||U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return rt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=U.isObject(t),o=e&&e["Content-Type"];if((r=U.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return W(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(rt(e,"application/json"),function(t){if(U.isString(t))try{return(0,JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||ot.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&U.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw X.from(t,X.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],(function(t){ot.headers[t]={}})),U.forEach(["post","put","patch"],(function(t){ot.headers[t]=U.merge(et)}));var it=ot,at=function(t,e,r){var n=this||it;return U.forEach(r,(function(r){t=r.call(n,t,e)})),t},st=function(t){return!(!t||!t.__CANCEL__)};function lt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tt}var ct=function(t){return lt(t),t.headers=t.headers||{},t.data=at.call(t,t.data,t.headers,t.transformRequest),t.headers=U.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),U.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||it.adapter)(t).then((function(e){return lt(t),e.data=at.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return st(e)||(lt(t),e&&e.response&&(e.response.data=at.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ut=function(t,e){e=e||{};var r={};function n(t,e){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge(t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!U.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function s(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return U.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||o,n=e(t);U.isUndefined(n)&&e!==s||(r[t]=n)})),r},ft={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ft[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var dt={};ft.transitional=function(t,e,r){function n(t,e){return"[Axios v0.27.2] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new X(n(o," has been removed"+(e?" in "+e:"")),X.ERR_DEPRECATED);return e&&!dt[o]&&(dt[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var pt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],l=void 0===s||a(s,i,t);if(!0!==l)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}},validators:ft},ht=pt.validators;function mt(t){this.defaults=t,this.interceptors={request:new H,response:new H}}mt.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ut(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&pt.assertOptions(r,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var s=[ct,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),i=Promise.resolve(e);s.length;)i=i.then(s.shift(),s.shift());return i}for(var l=e;n.length;){var c=n.shift(),u=n.shift();try{l=c(l)}catch(t){u(t);break}}try{i=ct(l)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},mt.prototype.getUri=function(t){t=ut(this.defaults,t);var e=Y(t.baseURL,t.url);return F(e,t.params,t.paramsSerializer)},U.forEach(["delete","get","head","options"],(function(t){mt.prototype[t]=function(e,r){return this.request(ut(r||{},{method:t,url:e,data:(r||{}).data}))}})),U.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(ut(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}mt.prototype[t]=e(),mt.prototype[t+"Form"]=e(!0)}));var vt=mt;function gt(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new tt(t),e(r.reason))}))}gt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},gt.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},gt.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},gt.source=function(){var t;return{token:new gt((function(e){t=e})),cancel:t}};var wt=gt,bt=function t(e){var r=new vt(e),n=b(vt.prototype.request,r);return U.extend(n,vt.prototype,r),U.extend(n,r),n.create=function(r){return t(ut(e,r))},n}(it);bt.Axios=vt,bt.CanceledError=tt,bt.CancelToken=wt,bt.isCancel=st,bt.VERSION="0.27.2",bt.toFormData=W,bt.AxiosError=X,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=function(t){return function(e){return t.apply(null,e)}},bt.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError};var yt=bt;yt.default=bt;var xt=yt;const Ct={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:kt}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=g(t);let n=new Map(Object.entries(null!=r?r:{}));const o={dispose:[],get:[],set:[],reset:[]},i=()=>{var e;n=new Map(Object.entries(null!==(e=g(t))&&void 0!==e?e:{})),o.reset.forEach((t=>t()))},a=t=>(o.get.forEach((e=>e(t))),n.get(t)),s=(t,r)=>{const i=n.get(t);e(r,i,t)&&(n.set(t,r),o.set.forEach((e=>e(t,r,i))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>a(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,r)=>(s(e,r),!0)}),c=(t,e)=>(o[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(o[t],e)});return{state:l,get:a,set:s,on:c,onChange:(e,r)=>{const n=c("set",((t,n)=>{t===e&&r(n)})),o=c("reset",(()=>r(g(t)[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{o.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=n.get(t);o.set.forEach((r=>r(t,e,e)))}}})(Ct,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)),v(t)},reset:()=>{t.forEach((t=>t.forEach(r))),v(t)}}})()),t})(),Ot=new Map([["row",new Map],["column",new Map],["box",new Map]]),Rt=["1","2","3","4","5","6","7","8","9"],Et=t=>{if(void 0!==t&&t.indx!=kt.pick){const{isClue:e,indx:r,row:n,column:o,box:i}=t,a=((t,e,r,n)=>{const o=new Map([["row",e],["column",r],["box",n]]),i=new Set;return o.forEach(((e,r)=>{Ot.get(r).get(e).forEach((e=>{e!==t&&i.add(e)}))})),Array.from(i)})(r,n,o,i),s=e?[]:(t=>{const{list:e}=kt,r=new Set;return t.map((t=>{const{key:n}=e[t];"."!=n&&r.add(n)})),Rt.filter((t=>!r.has(t)))})(a);kt.pick=r,kt.keys=s,kt.locs=a}else kt.pick=void 0,kt.keys=[],kt.locs=[];St(kt.pick)},jt=xt.create({baseURL:"https://sudoku-rust-api.vercel.app/api/",timeout:1e4,headers:{"X-Custom-Header":"foobar"}}),At=t=>{d(t)},St=t=>{h(t)},Nt=(t=!1)=>{kt.list=[],kt.keys=[],kt.locs=[],kt.loading=t,kt.solved=!1,kt.error=void 0,kt.pick=void 0,kt.data=void 0},Mt=(t,e=!0)=>{const{puzzle:r,ref:n}=t;e&&(d([]),u(a,t)),(t=>{if(t){const{puzzle:e,ref:r}=t,n=e?[...e]:[],o=r?atob(r):void 0,i=o?[...o]:[],a=n.map(((t,e)=>{const r=i[e],n=t===r,o=Math.floor(e/9),a=e%9,s=((t,e)=>e<3?t<3?0:t<6?3:6:e<6?t<3?1:t<6?4:7:t<3?2:t<6?5:8)(o,a);return((t,e,r,n)=>{new Map([["row",e],["column",r],["box",n]]).forEach(((e,r)=>{const n=Ot.get(r);n.has(e)?n.get(e).add(t):n.set(e,new Set([t]))}))})(e,o,a,s),{key:t,isClue:n,value:r,indx:e,row:o,column:a,box:s}}));(t=>{f().forEach(((e,r)=>{const n=t[r],{isClue:o}=n;o||(n.key=e)}))})(a),kt.data=t,kt.list=a}else kt.data=void 0,kt.list=[]})({puzzle:r,ref:n})},zt=t=>{kt.list=[...t],t.length=0},Bt={initApp:()=>{Nt();const t=c(a),e=p();if(t&&(Mt(t,!1),e>=0)){const{list:t}=kt;Et(t[e])}},refresh:()=>{Nt(!0),At([]),St(kt.pick),jt.get("/puzzle").then((({data:t})=>{Mt(t)})).catch((t=>{const{message:e}=t;console.log("-- ",e),console.log(t),kt.error=e})).then((()=>{kt.loading=!1}))},select:t=>{Et(t)},check:()=>{const{list:t}=kt,e=[];let r=0,n=0,o=0;t.forEach((t=>{const{key:i,value:a,isClue:s}=t;s?o+=1:"."!==i&&(i!==a?(r+=1,t.key="."):n+=1),e.push(t.key)}));const i=o+n;At(n?e:[]),r>0?zt(t):81===i&&(kt.solved=!0)},input:t=>{const{pick:e,list:r}=kt;r[e].key=t,zt(r)}},Tt=(...t)=>t.filter(Boolean).join(" "),Pt=e=>{const r=e.hex||"currentColor",n=e.label||"loading...",o=e.size||24;return t("svg",{class:Tt(e.class||"","animate-spin"),width:o,height:o,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,n),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Dt=e=>{const{message:r,salute:n,spinner:i=!1}=e;return t("div",{class:"mt-5 flex h-24px flex-row items-center"},t(i?Pt:o,{class:"mr-2"}),n?t("label",{class:"mr-1 font-bold"},n,":"):"",t("label",{class:"italic"},r))},Ut=()=>{const{solved:e,loading:r,error:n}=kt;return t("div",{class:"flex flex-col"},r||n||e?"":t(Dt,{message:"Welcome, are you ready to play?..."}),r?t(Dt,{message:"Loading...",spinner:!0}):"",n?t(Dt,{message:n,salute:"ERROR"}):"",e?t(Dt,{message:"You solved the puzzle!!"}):"")},_t=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"}))},Ft="eswat2",Lt=()=>t("a",{class:"absolute top-0 right-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":Ft,title:Ft},t(_t,{label:Ft})),Ht=(e,r)=>t("h1",{class:Tt("text-center uppercase text-clrs-red","mr-0 ml-0 mt-11 mb-11","text-6xl font-thin")},r),Jt=e=>{const{label:r,callback:n,matched:o=!1}=e;return t("button",{class:Tt("rounded-md border border-solid border-clrs-slate4 font-bold","Check ?"===r?"mr-2 bg-clrs-yellow px-3 py-2 text-clrs-navy":"New Puzzle"===r?"mr-2 bg-clrs-navy px-3 py-2 text-white":"x"===r?"mr-1 bg-clrs-red px-2 py-1 text-white":o?"mr-1 bg-clrs-slate4 px-2 py-1 text-white":"mr-1 bg-gray-50 px-2 py-1 text-clrs-navy"),onClick:n},r)},It=()=>{const{keys:e,list:r,pick:n,solved:o}=kt,i=t=>()=>{Bt.input(t)},a=o?[]:e,s=null!=n?r[n]:void 0;return t("div",{class:"mt-2 flex flex-row justify-end"},o||!s||s.isClue||"."==s.key?"":t(Jt,{label:"x",callback:i(".")}),a.map((e=>t(Jt,{label:e,callback:i(e),matched:s.key===e}))))},qt=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],$t=qt.map((t=>t+1)),Xt=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],Kt=Xt.map((t=>t+9)),Wt=e=>{const{cell:r,selected:n,ref:o,solved:i}=e,{key:a,isClue:s,indx:l}=r,c="."!=a?a:"";return t("label",{class:Tt(`cell-${l}`,qt.includes(l)?"border-xbr-clrs-navy":"",$t.includes(l)?"border-xbl-clrs-navy":"",Xt.includes(l)?"border-xbb-clrs-navy":"",Kt.includes(l)?"border-xbt-clrs-navy":"","h-8 w-8 border border-solid text-center leading-8",n?"border-clrs-red bg-clrs-red-a50 text-clrs-red":o?"border-clrs-gray bg-clrs-green-a50 font-bold":s?"border-clrs-gray bg-clrs-silver":""!==c?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||Bt.select(t)})(r,i)},c)},Vt=()=>{const{list:e,pick:r,locs:n,solved:o}=kt;return t("div",{class:Tt("flex flex-row flex-wrap","border border-solid border-clrs-navy","h-76p5 w-76p5 text-lg")},e.map(((e,i)=>{const a=!o&&i===r,s=!o&&n.includes(i);return t(Wt,{cell:e,selected:a,ref:s,solved:o})})))},Yt=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.8"),Zt=t=>()=>{t.refresh()},Qt=t=>()=>{t.check()},Gt=()=>{const{list:e,solved:r}=kt;return t("div",{class:"flex flex-row"},t(Jt,{label:"New Puzzle",callback:Zt(Bt)}),81!==e.length||r?"":t(Jt,{label:"Check ?",callback:Qt(Bt)}),t(Yt,null))},te=class{constructor(t){n(this,t),this.tag="proto-sudoku"}componentDidLoad(){Bt.initApp()}render(){return t("div",{id:"app",class:"ds1-main relative max-w-min p-0.5"},t(Lt,null),t(Ht,null,"Sudoku"),t(Vt,null),t(It,null),t("hr",{class:"ml-0 mr-0"}),t(Gt,null),t(Ut,null))}};te.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{margin:1.5rem;display:flex;flex-direction:column;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}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.mt-5{margin-top:1.25rem}.mr-2{margin-right:0.5rem}.mr-1{margin-right:0.25rem}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.mt-2{margin-top:0.5rem}.ml-auto{margin-left:auto}.flex{display:flex}.h-24px{height:24px}.h-8{height:2rem}.h-76p5{height:19.125rem}.w-8{width:2rem}.w-76p5{width:19.125rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.p-0\\.5{padding:0.125rem}.p-0{padding:0px}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.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)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{te as proto_sudoku}
1
+ import{h as t,g as e,f as r,r as n}from"./p-68909a5a.js";const o=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||"alien"),t("g",{fill:r},t("path",{d:"M10.31 10.93C11.33 12.57 11.18 14.5 9.96 15.28C8.74 16.04 6.92 15.33\n 5.89 13.69C4.87 12.05 5.03 10.1 6.25 9.34C7.47 8.58 9.29 9.29 10.31\n 10.93M12 17.75C14 17.75 14.5 17 14.5 17C14.5 17 14 19 12 19C10 19 9.5\n 17.03 9.5 17C9.5 17 10 17.75 12 17.75M17.75 9.34C18.97 10.1 19.13 12.05\n 18.11 13.69C17.08 15.33 15.26 16.04 14.04 15.28C12.82 14.5 12.67 12.57\n 13.69 10.93C14.71 9.29 16.53 8.58 17.75 9.34M12 20C14.5 20 20 14.86 20\n 11C20 7.14 16.41 4 12 4C7.59 4 4 7.14 4 11C4 14.86 9.5 20 12 20M12 2C17.5\n 2 22 6.04 22 11C22 15.08 16.32 22 12 22C7.68 22 2 15.08 2 11C2 6.04 6.5 2\n 12 2Z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},i="proto-sudoku",a=`${i}::data`,s=`${i}::inputs`,l=`${i}::pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},u=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},f=()=>[...c(s)],d=t=>{u(s,t.join(""))},p=()=>{const t=c(l);return null!==t?t:void 0},h=t=>{u(l,t>=0&&t<81?t:null)},m=t=>!("isConnected"in t)||t.isConnected,v=(()=>{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(m))})(...e)}),2e3)}})(),g=t=>"function"==typeof t?t():t;var w,b=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},y=Object.prototype.toString,x=(w=Object.create(null),function(t){var e=y.call(t);return w[e]||(w[e]=e.slice(8,-1).toLowerCase())});function C(t){return t=t.toLowerCase(),function(e){return x(e)===t}}function k(t){return Array.isArray(t)}function O(t){return void 0===t}var R=C("ArrayBuffer");function E(t){return null!==t&&"object"==typeof t}function j(t){if("object"!==x(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var A=C("Date"),S=C("File"),N=C("Blob"),M=C("FileList");function z(t){return"[object Function]"===y.call(t)}var B=C("URLSearchParams");function T(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),k(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var P,D=(P="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return P&&t instanceof P}),U={isArray:k,isArrayBuffer:R,isBuffer:function(t){return null!==t&&!O(t)&&null!==t.constructor&&!O(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||y.call(t)===e||z(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&R(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:E,isPlainObject:j,isUndefined:O,isDate:A,isFile:S,isBlob:N,isFunction:z,isStream:function(t){return E(t)&&z(t.pipe)},isURLSearchParams:B,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:T,merge:function t(){var e={};function r(r,n){e[n]=j(e[n])&&j(r)?t(e[n],r):j(r)?t({},r):k(r)?r.slice():r}for(var n=0,o=arguments.length;n<o;n++)T(arguments[n],r);return e},extend:function(t,e,r){return T(e,(function(e,n){t[n]=r&&"function"==typeof e?b(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r){var n,o,i,a={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)a[i=n[o]]||(e[i]=t[i],a[i]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:x,kindOfTest:C,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length);var n=t.indexOf(e,r-=e.length);return-1!==n&&n===r},toArray:function(t){if(!t)return null;var e=t.length;if(O(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:D,isFileList:M};function _(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var F=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(U.isURLSearchParams(e))n=e.toString();else{var o=[];U.forEach(e,(function(t,e){null!=t&&(U.isArray(t)?e+="[]":t=[t],U.forEach(t,(function(t){U.isDate(t)?t=t.toISOString():U.isObject(t)&&(t=JSON.stringify(t)),o.push(_(e)+"="+_(t))})))})),n=o.join("&")}if(n){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t};function L(){this.handlers=[]}L.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},L.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},L.prototype.forEach=function(t){U.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var H=L,J=function(t,e){U.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))};function I(t,e,r,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}U.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var q=I.prototype,$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){$[t]={value:t}})),Object.defineProperties(I,$),Object.defineProperty(q,"isAxiosError",{value:!0}),I.from=function(t,e,r,n,o,i){var a=Object.create(q);return U.toFlatObject(t,a,(function(t){return t!==Error.prototype})),I.call(a,t.message,e,r,n,o),a.name=t.name,i&&Object.assign(a,i),a};var X=I,K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":U.isDate(t)?t.toISOString():U.isArrayBuffer(t)||U.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,i){if(U.isPlainObject(o)||U.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),U.forEach(o,(function(r,o){if(!U.isUndefined(r)){var a,s=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(U.endsWith(o,"{}"))r=JSON.stringify(r);else if(U.endsWith(o,"[]")&&(a=U.toArray(r)))return void a.forEach((function(t){!U.isUndefined(t)&&e.append(s,n(t))}));t(r,s)}})),r.pop()}else e.append(i,n(o))}(t),e},V=U.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),U.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),U.isString(n)&&a.push("path="+n),U.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Y=function(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e},Z=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Q=U.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=U.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function G(t){X.call(this,null==t?"canceled":t,X.ERR_CANCELED),this.name="CanceledError"}U.inherits(G,X,{__CANCEL__:!0});var tt=G,et={"Content-Type":"application/x-www-form-urlencoded"};function rt(t,e){!U.isUndefined(t)&&U.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var nt,ot={transitional:K,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(nt=function(t){return new Promise((function(e,r){var n,o=t.data,i=t.headers,a=t.responseType;function s(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}U.isFormData(o)&&U.isStandardBrowserEnv()&&delete i["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+u)}var f=Y(t.baseURL,t.url);function d(){if(l){var n,o,i,c,u,f="getAllResponseHeaders"in l?(n=l.getAllResponseHeaders(),u={},n?(U.forEach(n.split("\n"),(function(t){if(c=t.indexOf(":"),o=U.trim(t.substr(0,c)).toLowerCase(),i=U.trim(t.substr(c+1)),o){if(u[o]&&Z.indexOf(o)>=0)return;u[o]="set-cookie"===o?(u[o]?u[o]:[]).concat([i]):u[o]?u[o]+", "+i:i}})),u):u):null;!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new X("Request failed with status code "+r.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),s()}),(function(t){r(t),s()}),{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:f,config:t,request:l}),l=null}}if(l.open(t.method.toUpperCase(),F(f,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new X("Request aborted",X.ECONNABORTED,t,l)),l=null)},l.onerror=function(){r(new X("Network Error",X.ERR_NETWORK,t,l,l)),l=null},l.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new X(e,(t.transitional||K).clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,t,l)),l=null},U.isStandardBrowserEnv()){var p=(t.withCredentials||Q(f))&&t.xsrfCookieName?V.read(t.xsrfCookieName):void 0;p&&(i[t.xsrfHeaderName]=p)}"setRequestHeader"in l&&U.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:l.setRequestHeader(e,t)})),U.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),a&&"json"!==a&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){l&&(r(!t||t&&t.type?new tt:t),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n))),o||(o=null);var h,m=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&h[1]||"";m&&-1===["http","https","file"].indexOf(m)?r(new X("Unsupported protocol "+m+":",X.ERR_BAD_REQUEST,t)):l.send(o)}))}),nt),transformRequest:[function(t,e){if(J(e,"Accept"),J(e,"Content-Type"),U.isFormData(t)||U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return rt(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=U.isObject(t),o=e&&e["Content-Type"];if((r=U.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return W(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(rt(e,"application/json"),function(t){if(U.isString(t))try{return(0,JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||ot.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&U.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw X.from(t,X.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],(function(t){ot.headers[t]={}})),U.forEach(["post","put","patch"],(function(t){ot.headers[t]=U.merge(et)}));var it=ot,at=function(t,e,r){var n=this||it;return U.forEach(r,(function(r){t=r.call(n,t,e)})),t},st=function(t){return!(!t||!t.__CANCEL__)};function lt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new tt}var ct=function(t){return lt(t),t.headers=t.headers||{},t.data=at.call(t,t.data,t.headers,t.transformRequest),t.headers=U.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),U.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||it.adapter)(t).then((function(e){return lt(t),e.data=at.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return st(e)||(lt(t),e&&e.response&&(e.response.data=at.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},ut=function(t,e){e=e||{};var r={};function n(t,e){return U.isPlainObject(t)&&U.isPlainObject(e)?U.merge(t,e):U.isPlainObject(e)?U.merge({},e):U.isArray(e)?e.slice():e}function o(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!U.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return U.isUndefined(e[r])?U.isUndefined(t[r])?void 0:n(void 0,t[r]):n(void 0,e[r])}function s(r){return r in e?n(t[r],e[r]):r in t?n(void 0,t[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return U.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||o,n=e(t);U.isUndefined(n)&&e!==s||(r[t]=n)})),r},ft={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ft[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var dt={};ft.transitional=function(t,e,r){function n(t,e){return"[Axios v0.27.2] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new X(n(o," has been removed"+(e?" in "+e:"")),X.ERR_DEPRECATED);return e&&!dt[o]&&(dt[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var pt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],l=void 0===s||a(s,i,t);if(!0!==l)throw new X("option "+i+" must be "+l,X.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}},validators:ft},ht=pt.validators;function mt(t){this.defaults=t,this.interceptors={request:new H,response:new H}}mt.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=ut(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&pt.assertOptions(r,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(t){a.push(t.fulfilled,t.rejected)})),!o){var s=[ct,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(a),i=Promise.resolve(e);s.length;)i=i.then(s.shift(),s.shift());return i}for(var l=e;n.length;){var c=n.shift(),u=n.shift();try{l=c(l)}catch(t){u(t);break}}try{i=ct(l)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},mt.prototype.getUri=function(t){t=ut(this.defaults,t);var e=Y(t.baseURL,t.url);return F(e,t.params,t.paramsSerializer)},U.forEach(["delete","get","head","options"],(function(t){mt.prototype[t]=function(e,r){return this.request(ut(r||{},{method:t,url:e,data:(r||{}).data}))}})),U.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(ut(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}mt.prototype[t]=e(),mt.prototype[t+"Form"]=e(!0)}));var vt=mt;function gt(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new tt(t),e(r.reason))}))}gt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},gt.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},gt.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},gt.source=function(){var t;return{token:new gt((function(e){t=e})),cancel:t}};var wt=gt,bt=function t(e){var r=new vt(e),n=b(vt.prototype.request,r);return U.extend(n,vt.prototype,r),U.extend(n,r),n.create=function(r){return t(ut(e,r))},n}(it);bt.Axios=vt,bt.CanceledError=tt,bt.CancelToken=wt,bt.isCancel=st,bt.VERSION="0.27.2",bt.toFormData=W,bt.AxiosError=X,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=function(t){return function(e){return t.apply(null,e)}},bt.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError};var yt=bt;yt.default=bt;var xt=yt;const Ct={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:kt}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=g(t);let n=new Map(Object.entries(null!=r?r:{}));const o={dispose:[],get:[],set:[],reset:[]},i=()=>{var e;n=new Map(Object.entries(null!==(e=g(t))&&void 0!==e?e:{})),o.reset.forEach((t=>t()))},a=t=>(o.get.forEach((e=>e(t))),n.get(t)),s=(t,r)=>{const i=n.get(t);e(r,i,t)&&(n.set(t,r),o.set.forEach((e=>e(t,r,i))))},l="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,e)=>a(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,r)=>(s(e,r),!0)}),c=(t,e)=>(o[t].push(e),()=>{((t,e)=>{const r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.length--)})(o[t],e)});return{state:l,get:a,set:s,on:c,onChange:(e,r)=>{const n=c("set",((t,n)=>{t===e&&r(n)})),o=c("reset",(()=>r(g(t)[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{o.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=n.get(t);o.set.forEach((r=>r(t,e,e)))}}})(Ct,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)),v(t)},reset:()=>{t.forEach((t=>t.forEach(r))),v(t)}}})()),t})(),Ot=new Map([["row",new Map],["column",new Map],["box",new Map]]),Rt=["1","2","3","4","5","6","7","8","9"],Et=t=>{if(void 0!==t&&t.indx!=kt.pick){const{isClue:e,indx:r,row:n,column:o,box:i}=t,a=((t,e,r,n)=>{const o=new Map([["row",e],["column",r],["box",n]]),i=new Set;return o.forEach(((e,r)=>{Ot.get(r).get(e).forEach((e=>{e!==t&&i.add(e)}))})),Array.from(i)})(r,n,o,i),s=e?[]:(t=>{const{list:e}=kt,r=new Set;return t.map((t=>{const{key:n}=e[t];"."!=n&&r.add(n)})),Rt.filter((t=>!r.has(t)))})(a);kt.pick=r,kt.keys=s,kt.locs=a}else kt.pick=void 0,kt.keys=[],kt.locs=[];St(kt.pick)},jt=xt.create({baseURL:"https://sudoku-rust-api.vercel.app/api/",timeout:1e4,headers:{"X-Custom-Header":"foobar"}}),At=t=>{d(t)},St=t=>{h(t)},Nt=(t=!1)=>{kt.list=[],kt.keys=[],kt.locs=[],kt.loading=t,kt.solved=!1,kt.error=void 0,kt.pick=void 0,kt.data=void 0},Mt=(t,e=!0)=>{const{puzzle:r,ref:n}=t;e&&(d([]),u(a,t)),(t=>{if(t){const{puzzle:e,ref:r}=t,n=e?[...e]:[],o=r?atob(r):void 0,i=o?[...o]:[],a=n.map(((t,e)=>{const r=i[e],n=t===r,o=Math.floor(e/9),a=e%9,s=((t,e)=>e<3?t<3?0:t<6?3:6:e<6?t<3?1:t<6?4:7:t<3?2:t<6?5:8)(o,a);return((t,e,r,n)=>{new Map([["row",e],["column",r],["box",n]]).forEach(((e,r)=>{const n=Ot.get(r);n.has(e)?n.get(e).add(t):n.set(e,new Set([t]))}))})(e,o,a,s),{key:t,isClue:n,value:r,indx:e,row:o,column:a,box:s}}));(t=>{f().forEach(((e,r)=>{const n=t[r],{isClue:o}=n;o||(n.key=e)}))})(a),kt.data=t,kt.list=a}else kt.data=void 0,kt.list=[]})({puzzle:r,ref:n})},zt=t=>{kt.list=[...t],t.length=0},Bt={initApp:()=>{Nt();const t=c(a),e=p();if(t&&(Mt(t,!1),e>=0)){const{list:t}=kt;Et(t[e])}},refresh:()=>{Nt(!0),At([]),St(kt.pick),jt.get("/puzzle").then((({data:t})=>{Mt(t)})).catch((t=>{const{message:e}=t;console.log("-- ",e),console.log(t),kt.error=e})).then((()=>{kt.loading=!1}))},select:t=>{Et(t)},check:()=>{const{list:t}=kt,e=[];let r=0,n=0,o=0;t.forEach((t=>{const{key:i,value:a,isClue:s}=t;s?o+=1:"."!==i&&(i!==a?(r+=1,t.key="."):n+=1),e.push(t.key)}));const i=o+n;At(n?e:[]),r>0?zt(t):81===i&&(kt.solved=!0)},input:t=>{const{pick:e,list:r}=kt;r[e].key=t,zt(r)}},Tt=(...t)=>t.filter(Boolean).join(" "),Pt=e=>{const r=e.hex||"currentColor",n=e.label||"loading...",o=e.size||24;return t("svg",{class:Tt(e.class||"","animate-spin"),width:o,height:o,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,n),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},Dt=e=>{const{message:r,salute:n,spinner:i=!1}=e;return t("div",{class:"mt-5 flex h-24px flex-row items-center"},t(i?Pt:o,{class:"mr-2"}),n?t("label",{class:"mr-1 font-bold"},n,":"):"",t("label",{class:"italic"},r))},Ut=()=>{const{solved:e,loading:r,error:n}=kt;return t("div",{class:"flex flex-col"},r||n||e?"":t(Dt,{message:"Welcome, are you ready to play?..."}),r?t(Dt,{message:"Loading...",spinner:!0}):"",n?t(Dt,{message:n,salute:"ERROR"}):"",e?t(Dt,{message:"You solved the puzzle!!"}):"")},_t=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"}))},Ft="eswat2",Lt=()=>t("a",{class:"absolute top-0 right-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":Ft,title:Ft},t(_t,{label:Ft})),Ht=(e,r)=>t("h1",{class:Tt("text-center uppercase text-clrs-red","mr-0 ml-0 mt-11 mb-11","text-6xl font-thin")},r),Jt=e=>{const{label:r,callback:n,matched:o=!1}=e;return t("button",{class:Tt("rounded-md border border-solid border-clrs-slate4 font-bold","Check ?"===r?"mr-2 bg-clrs-yellow px-3 py-2 text-clrs-navy":"New Puzzle"===r?"mr-2 bg-clrs-navy px-3 py-2 text-white":"x"===r?"mr-1 bg-clrs-red px-2 py-1 text-white":o?"mr-1 bg-clrs-slate4 px-2 py-1 text-white":"mr-1 bg-gray-50 px-2 py-1 text-clrs-navy"),onClick:n},r)},It=()=>{const{keys:e,list:r,pick:n,solved:o}=kt,i=t=>()=>{Bt.input(t)},a=o?[]:e,s=null!=n?r[n]:void 0;return t("div",{class:"mt-2 flex flex-row justify-end"},o||!s||s.isClue||"."==s.key?"":t(Jt,{label:"x",callback:i(".")}),a.map((e=>t(Jt,{label:e,callback:i(e),matched:s.key===e}))))},qt=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],$t=qt.map((t=>t+1)),Xt=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],Kt=Xt.map((t=>t+9)),Wt=e=>{const{cell:r,selected:n,ref:o,solved:i}=e,{key:a,isClue:s,indx:l}=r,c="."!=a?a:"";return t("label",{class:Tt(`cell-${l}`,qt.includes(l)?"border-xbr-clrs-navy":"",$t.includes(l)?"border-xbl-clrs-navy":"",Xt.includes(l)?"border-xbb-clrs-navy":"",Kt.includes(l)?"border-xbt-clrs-navy":"","h-8 w-8 border border-solid text-center leading-8",n?"border-clrs-red bg-clrs-red-a50 text-clrs-red":o?"border-clrs-gray bg-clrs-green-a50 font-bold":s?"border-clrs-gray bg-clrs-silver":""!==c?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||Bt.select(t)})(r,i)},c)},Vt=()=>{const{list:e,pick:r,locs:n,solved:o}=kt;return t("div",{class:Tt("flex flex-row flex-wrap","border border-solid border-clrs-navy","h-76p5 w-76p5 text-lg")},e.map(((e,i)=>{const a=!o&&i===r,s=!o&&n.includes(i);return t(Wt,{cell:e,selected:a,ref:s,solved:o})})))},Yt=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.8"),Zt=t=>()=>{t.refresh()},Qt=t=>()=>{t.check()},Gt=()=>{const{list:e,solved:r}=kt;return t("div",{class:"flex flex-row"},t(Jt,{label:"New Puzzle",callback:Zt(Bt)}),81!==e.length||r?"":t(Jt,{label:"Check ?",callback:Qt(Bt)}),t(Yt,null))},te=class{constructor(t){n(this,t),this.tag="proto-sudoku"}componentDidLoad(){Bt.initApp()}render(){return t("div",{id:"app",class:"ds1-main relative max-w-min p-0.5"},t(Lt,null),t(Ht,null,"Sudoku"),t(Vt,null),t(It,null),t("hr",{class:"ml-0 mr-0"}),t(Gt,null),t(Ut,null))}};te.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{margin:1.5rem;display:flex;flex-direction:column;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}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.mt-5{margin-top:1.25rem}.mr-2{margin-right:0.5rem}.mr-1{margin-right:0.25rem}.mr-0{margin-right:0px}.ml-0{margin-left:0px}.mt-11{margin-top:2.75rem}.mb-11{margin-bottom:2.75rem}.mt-2{margin-top:0.5rem}.ml-auto{margin-left:auto}.flex{display:flex}.h-24px{height:24px}.h-8{height:2rem}.h-76p5{height:19.125rem}.w-8{width:2rem}.w-76p5{width:19.125rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.rounded-md{border-radius:0.375rem}.border{border-width:1px}.border-solid{border-style:solid}.border-clrs-slate4{border-color:var(--clrs-slate4, #4e5964)}.border-clrs-red{border-color:var(--clrs-red, #ff4136)}.border-clrs-gray{border-color:var(--clrs-gray, #aaaaaa)}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-slate4{background-color:var(--clrs-slate4, #4e5964)}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-clrs-red-a50{background-color:var(--clrs-red-a50, #ff413650)}.bg-clrs-green-a50{background-color:var(--clrs-green-a50, #2ecc4050)}.bg-clrs-silver{background-color:var(--clrs-silver, #dddddd)}.p-0\\.5{padding:0.125rem}.p-0{padding:0px}.px-3{padding-left:0.75rem;padding-right:0.75rem}.py-2{padding-top:0.5rem;padding-bottom:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-8{line-height:2rem}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.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)}.border-xbb-clrs-navy{border-bottom:1px solid var(--clrs-navy, #001f3f) !important}.border-xbt-clrs-navy{border-top:1px solid var(--clrs-navy, #001f3f) !important}.border-xbl-clrs-navy{border-left:1px solid var(--clrs-navy, #001f3f) !important}.border-xbr-clrs-navy{border-right:1px solid var(--clrs-navy, #001f3f) !important}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}";export{te as proto_sudoku}
@@ -1 +1 @@
1
- import{p as o,b as p}from"./p-3561d2f7.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),o(r)})().then((o=>p([["p-e3accc5e",[[1,"proto-sudoku",{tag:[1]}]]]],o)));
1
+ import{p as o,b as p}from"./p-68909a5a.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),o(r)})().then((o=>p([["p-72c4c8f5",[[1,"proto-sudoku",{tag:[1]}]]]],o)));
@@ -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": "proto-sudoku-wc",
3
- "version": "0.0.479",
3
+ "version": "0.0.481",
4
4
  "description": "prototype - a simple Sudoku app rendered in Stencil and Tailwind",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -29,22 +29,22 @@
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
  "axios": "0.27.2",
35
- "proto-tailwindcss-clrs": "0.0.167",
35
+ "proto-tailwindcss-clrs": "0.0.168",
36
36
  "tailwindcss": "3.1.8"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/jest": "29.1.0",
39
+ "@types/jest": "29.1.1",
40
40
  "@types/puppeteer": "5.4.6",
41
41
  "autoprefixer": "10.4.12",
42
42
  "concurrently": "7.4.0",
43
- "cspell": "6.10.1",
43
+ "cspell": "6.12.0",
44
44
  "cssnano": "5.1.13",
45
45
  "eslint": "8.24.0",
46
- "jest": "29.1.1",
47
- "postcss": "8.4.16",
46
+ "jest": "29.1.2",
47
+ "postcss": "8.4.17",
48
48
  "prettier": "2.7.1",
49
49
  "prettier-plugin-tailwindcss": "0.1.13",
50
50
  "puppeteer": "18.0.5",
@@ -1,2 +0,0 @@
1
- let t,e,n=!1,l=null,o=!1;const s="undefined"!=typeof window?window:{},r=s.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,o=!1,s=!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&&((o="function"!=typeof t&&!p(l))&&(l+=""),o&&s?r[r.length-1].i+=l:r.push(o?$(null,l):l),s=o)};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,o,r)=>{if(n!==l){let i=J(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,o=j(n),s=j(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("ref"===e)l&&l(t);else if(i||"o"!==e[0]||"n"!==e[1]){const s=p(l);if((i||s&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||o)&&!s&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):J(s,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 o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,s=t&&t.u||h,r=e.u||h;for(l in s)l in r||g(o,l,s[l],void 0,n,e.t);for(l in r)g(o,l,s[l],r[l],n,e.t)},O=(e,l,o)=>{const s=l.h[o];let c,i,u=0;if(null!==s.i)c=s.$=r.createTextNode(s.i);else{if(n||(n="svg"===s.p),c=s.$=r.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.p),n&&"foreignObject"===s.p&&(n=!1),S(null,s,n),null!=t&&c["s-si"]!==t&&c.classList.add(c["s-si"]=t),s.h)for(u=0;u<s.h.length;++u)i=O(e,s,u),i&&c.appendChild(i);"svg"===s.p?n=!1:"foreignObject"===c.tagName&&(n=!0)}return c},k=(t,n,l,o,s,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=O(null,l,s),c&&(o[s].$=c,i.insertBefore(c,n)))},M=(t,e,n,l,o)=>{for(;e<=n;++e)(l=t[e])&&(o=l.$,E(l),o.remove())},C=(t,e)=>t.p===e.p,x=(t,e)=>{const l=e.$=t.$,o=t.h,s=e.h,r=e.p,c=e.i;null===c?(n="svg"===r||"foreignObject"!==r&&n,S(t,e,n),null!==o&&null!==s?((t,e,n,l)=>{let o,s=0,r=0,c=e.length-1,i=e[0],u=e[c],a=l.length-1,f=l[0],h=l[a];for(;s<=c&&r<=a;)null==i?i=e[++s]:null==u?u=e[--c]:null==f?f=l[++r]:null==h?h=l[--a]:C(i,f)?(x(i,f),i=e[++s],f=l[++r]):C(u,h)?(x(u,h),u=e[--c],h=l[--a]):C(i,h)?(x(i,h),t.insertBefore(i.$,u.$.nextSibling),i=e[++s],h=l[--a]):C(u,f)?(x(u,f),t.insertBefore(u.$,i.$),u=e[--c],f=l[++r]):(o=O(e&&e[r],n,r),f=l[++r],o&&i.$.parentNode.insertBefore(o,i.$));s>c?k(t,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&M(e,s,c)})(l,o,e,s):null!==s?(null!==t.i&&(l.textContent=""),k(l,null,e,s,0,s.length-1)):null!==o&&M(o,0,o.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),st((()=>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,o=l["s-rc"];n&&(t=>{const e=t.k,n=t.O,l=e.t,o=((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,o=a.get(t=t.head||t);o||a.set(t,o=new Set),o.has(n)||(e=r.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.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"]=o,n.classList.add(o+"-h"))})(t);A(t,e),o&&(o.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,o)=>{try{l=o,o=o.render(),n.t&=-17,n.t|=2,((n,l)=>{const o=n.O,s=n.M||$(null,null),r=(t=>t&&t.p===d)(l)?l:y(null,null,l);e=o.tagName,r.p=null,r.t|=4,n.M=r,r.$=s.$=o.shadowRoot||o,t=o["s-sc"],x(s,r)})(n,o)}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&&ot((()=>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),ot((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"proto-sudoku-wc"}});return t.dispatchEvent(e),e})(s)))},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),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>B(this).L.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=B(t),s=o.L.get(e),r=o.t,c=o.S;n=((t,e)=>null==t||p(t)?t:1&e?t+"":t)(n,l.P[e][0]),8&r&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(o.L.set(e,n),c&&2==(18&r)&&L(o,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){c.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.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||[],o=s.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 s={t:e[0],o:e[1],P:e[2],N:e[3]};s.P=e[2];const r=s.o,i=class extends HTMLElement{constructor(t){super(t),I(t=this,s),1&s.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.k,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,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=X(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(V(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){K(t)}e.t&=-9,t()}if(o.style){let t=o.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 s=e.j,r=()=>L(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){c.jmp((()=>{}))}componentOnReady(){return B(this).T}};s.A=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,V(i,s,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,k: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),o||(o=!0,e&&4&c.t?ot(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),(o=Z.length>0)&&c.raf(lt)},ot=t=>i().then(t),st=et(tt,!0);export{_ as b,W as f,R as g,y as h,i as p,G as r}