proto-sudoku-wc 0.0.412 → 0.0.413

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.
@@ -18,6 +18,7 @@ const Alien = props => {
18
18
 
19
19
  const KEY = 'proto-sudoku';
20
20
  const INPUTS = `${KEY}-inputs`;
21
+ const PICK = `${KEY}-pick`;
21
22
  const getForKey = (key) => {
22
23
  const json = localStorage.getItem(key);
23
24
  return json ? JSON.parse(json) : undefined;
@@ -42,6 +43,15 @@ const bag = {
42
43
  storeForKey(INPUTS, value.join(''));
43
44
  },
44
45
  },
46
+ pick: {
47
+ get: () => {
48
+ const pick = getForKey(PICK);
49
+ return pick !== null ? pick : undefined;
50
+ },
51
+ store: (value) => {
52
+ storeForKey(PICK, value ? value : null);
53
+ },
54
+ },
45
55
  };
46
56
 
47
57
  const CHECK = 'Check ?';
@@ -2371,7 +2381,7 @@ const processData = next => {
2371
2381
  state.list = [];
2372
2382
  }
2373
2383
  };
2374
- const processPick = next => {
2384
+ const processPick = (next) => {
2375
2385
  if (next !== undefined && next.indx != state.pick) {
2376
2386
  const { isClue, indx, row, column, box } = next;
2377
2387
  const locs = computeLocs(indx, row, column, box);
@@ -2387,6 +2397,7 @@ const processPick = next => {
2387
2397
  state.keys = [];
2388
2398
  state.locs = [];
2389
2399
  }
2400
+ savePick(state.pick);
2390
2401
  };
2391
2402
  // --------------------------------------------------------[ utils ]
2392
2403
  const api = axios.create({
@@ -2397,6 +2408,9 @@ const api = axios.create({
2397
2408
  const saveInputs = (inputs) => {
2398
2409
  bag.inputs.store(inputs);
2399
2410
  };
2411
+ const savePick = (pick) => {
2412
+ bag.pick.store(pick);
2413
+ };
2400
2414
  const clearStore = (loading = false) => {
2401
2415
  state.list = [];
2402
2416
  state.keys = [];
@@ -2420,12 +2434,20 @@ const initApp = () => {
2420
2434
  clearStore();
2421
2435
  // this retrieves the last data we stored in the bag...
2422
2436
  const data = bag.get();
2437
+ const pick = bag.pick.get();
2423
2438
  if (data) {
2424
2439
  updateStore(data, false);
2440
+ if (pick) {
2441
+ const { list } = state;
2442
+ const cell = list[pick];
2443
+ processPick(cell);
2444
+ }
2425
2445
  }
2426
2446
  };
2427
2447
  const refresh = () => {
2428
2448
  clearStore(true);
2449
+ saveInputs([]);
2450
+ savePick(state.pick);
2429
2451
  // fetch a new puzzle from the api...
2430
2452
  api
2431
2453
  .get('/puzzle')
@@ -1,5 +1,6 @@
1
1
  const KEY = 'proto-sudoku';
2
2
  const INPUTS = `${KEY}-inputs`;
3
+ const PICK = `${KEY}-pick`;
3
4
  const getForKey = (key) => {
4
5
  const json = localStorage.getItem(key);
5
6
  return json ? JSON.parse(json) : undefined;
@@ -24,6 +25,15 @@ const bag = {
24
25
  storeForKey(INPUTS, value.join(''));
25
26
  },
26
27
  },
28
+ pick: {
29
+ get: () => {
30
+ const pick = getForKey(PICK);
31
+ return pick !== null ? pick : undefined;
32
+ },
33
+ store: (value) => {
34
+ storeForKey(PICK, value ? value : null);
35
+ },
36
+ },
27
37
  };
28
38
  export { bag };
29
39
  export default bag;
@@ -117,7 +117,7 @@ const processData = next => {
117
117
  state.list = [];
118
118
  }
119
119
  };
120
- const processPick = next => {
120
+ const processPick = (next) => {
121
121
  if (next !== undefined && next.indx != state.pick) {
122
122
  const { isClue, indx, row, column, box } = next;
123
123
  const locs = computeLocs(indx, row, column, box);
@@ -133,6 +133,7 @@ const processPick = next => {
133
133
  state.keys = [];
134
134
  state.locs = [];
135
135
  }
136
+ savePick(state.pick);
136
137
  };
137
138
  // --------------------------------------------------------[ utils ]
138
139
  const api = axios.create({
@@ -143,6 +144,9 @@ const api = axios.create({
143
144
  const saveInputs = (inputs) => {
144
145
  bag.inputs.store(inputs);
145
146
  };
147
+ const savePick = (pick) => {
148
+ bag.pick.store(pick);
149
+ };
146
150
  const clearStore = (loading = false) => {
147
151
  state.list = [];
148
152
  state.keys = [];
@@ -166,12 +170,20 @@ const initApp = () => {
166
170
  clearStore();
167
171
  // this retrieves the last data we stored in the bag...
168
172
  const data = bag.get();
173
+ const pick = bag.pick.get();
169
174
  if (data) {
170
175
  updateStore(data, false);
176
+ if (pick) {
177
+ const { list } = state;
178
+ const cell = list[pick];
179
+ processPick(cell);
180
+ }
171
181
  }
172
182
  };
173
183
  const refresh = () => {
174
184
  clearStore(true);
185
+ saveInputs([]);
186
+ savePick(state.pick);
175
187
  // fetch a new puzzle from the api...
176
188
  api
177
189
  .get('/puzzle')
@@ -14,6 +14,7 @@ const Alien = props => {
14
14
 
15
15
  const KEY = 'proto-sudoku';
16
16
  const INPUTS = `${KEY}-inputs`;
17
+ const PICK = `${KEY}-pick`;
17
18
  const getForKey = (key) => {
18
19
  const json = localStorage.getItem(key);
19
20
  return json ? JSON.parse(json) : undefined;
@@ -38,6 +39,15 @@ const bag = {
38
39
  storeForKey(INPUTS, value.join(''));
39
40
  },
40
41
  },
42
+ pick: {
43
+ get: () => {
44
+ const pick = getForKey(PICK);
45
+ return pick !== null ? pick : undefined;
46
+ },
47
+ store: (value) => {
48
+ storeForKey(PICK, value ? value : null);
49
+ },
50
+ },
41
51
  };
42
52
 
43
53
  const CHECK = 'Check ?';
@@ -2367,7 +2377,7 @@ const processData = next => {
2367
2377
  state.list = [];
2368
2378
  }
2369
2379
  };
2370
- const processPick = next => {
2380
+ const processPick = (next) => {
2371
2381
  if (next !== undefined && next.indx != state.pick) {
2372
2382
  const { isClue, indx, row, column, box } = next;
2373
2383
  const locs = computeLocs(indx, row, column, box);
@@ -2383,6 +2393,7 @@ const processPick = next => {
2383
2393
  state.keys = [];
2384
2394
  state.locs = [];
2385
2395
  }
2396
+ savePick(state.pick);
2386
2397
  };
2387
2398
  // --------------------------------------------------------[ utils ]
2388
2399
  const api = axios.create({
@@ -2393,6 +2404,9 @@ const api = axios.create({
2393
2404
  const saveInputs = (inputs) => {
2394
2405
  bag.inputs.store(inputs);
2395
2406
  };
2407
+ const savePick = (pick) => {
2408
+ bag.pick.store(pick);
2409
+ };
2396
2410
  const clearStore = (loading = false) => {
2397
2411
  state.list = [];
2398
2412
  state.keys = [];
@@ -2416,12 +2430,20 @@ const initApp = () => {
2416
2430
  clearStore();
2417
2431
  // this retrieves the last data we stored in the bag...
2418
2432
  const data = bag.get();
2433
+ const pick = bag.pick.get();
2419
2434
  if (data) {
2420
2435
  updateStore(data, false);
2436
+ if (pick) {
2437
+ const { list } = state;
2438
+ const cell = list[pick];
2439
+ processPick(cell);
2440
+ }
2421
2441
  }
2422
2442
  };
2423
2443
  const refresh = () => {
2424
2444
  clearStore(true);
2445
+ saveInputs([]);
2446
+ savePick(state.pick);
2425
2447
  // fetch a new puzzle from the api...
2426
2448
  api
2427
2449
  .get('/puzzle')
@@ -0,0 +1 @@
1
+ import{h as t,g as e,f as r,r as n}from"./p-9f6ae661.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}-inputs`,s=`${i}-pick`,c=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},l=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},u=()=>[...c(a)],f=t=>{l(a,t.join(""))},d=()=>{const t=c(s);return null!==t?t:void 0},p=t=>{l(s,t||null)},h=t=>!("isConnected"in t)||t.isConnected,m=(()=>{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(h))})(...e)}),2e3)}})(),w=t=>"function"==typeof t?t():t;var v,g=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)}},b=Object.prototype.toString,y=(v=Object.create(null),function(t){var e=b.call(t);return v[e]||(v[e]=e.slice(8,-1).toLowerCase())});function x(t){return t=t.toLowerCase(),function(e){return y(e)===t}}function C(t){return Array.isArray(t)}function k(t){return void 0===t}var O=x("ArrayBuffer");function R(t){return null!==t&&"object"==typeof t}function E(t){if("object"!==y(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var j=x("Date"),A=x("File"),S=x("Blob"),N=x("FileList");function M(t){return"[object Function]"===b.call(t)}var z=x("URLSearchParams");function B(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),C(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 T,P=(T="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return T&&t instanceof T}),D={isArray:C,isArrayBuffer:O,isBuffer:function(t){return null!==t&&!k(t)&&null!==t.constructor&&!k(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||b.call(t)===e||M(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&O(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:R,isPlainObject:E,isUndefined:k,isDate:j,isFile:A,isBlob:S,isFunction:M,isStream:function(t){return R(t)&&M(t.pipe)},isURLSearchParams:z,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:B,merge:function t(){var e={};function r(r,n){e[n]=E(e[n])&&E(r)?t(e[n],r):E(r)?t({},r):C(r)?r.slice():r}for(var n=0,o=arguments.length;n<o;n++)B(arguments[n],r);return e},extend:function(t,e,r){return B(e,(function(e,n){t[n]=r&&"function"==typeof e?g(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:y,kindOfTest:x,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(k(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:P,isFileList:N};function U(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var _=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(D.isURLSearchParams(e))n=e.toString();else{var o=[];D.forEach(e,(function(t,e){null!=t&&(D.isArray(t)?e+="[]":t=[t],D.forEach(t,(function(t){D.isDate(t)?t=t.toISOString():D.isObject(t)&&(t=JSON.stringify(t)),o.push(U(e)+"="+U(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 F(){this.handlers=[]}F.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},F.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},F.prototype.forEach=function(t){D.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var L=F,H=function(t,e){D.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))};function J(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)}D.inherits(J,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 I=J.prototype,q={};["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){q[t]={value:t}})),Object.defineProperties(J,q),Object.defineProperty(I,"isAxiosError",{value:!0}),J.from=function(t,e,r,n,o,i){var a=Object.create(I);return D.toFlatObject(t,a,(function(t){return t!==Error.prototype})),J.call(a,t.message,e,r,n,o),a.name=t.name,i&&Object.assign(a,i),a};var $=J,X={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},K=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":D.isDate(t)?t.toISOString():D.isArrayBuffer(t)||D.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,i){if(D.isPlainObject(o)||D.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),D.forEach(o,(function(r,o){if(!D.isUndefined(r)){var a,s=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(D.endsWith(o,"{}"))r=JSON.stringify(r);else if(D.endsWith(o,"[]")&&(a=D.toArray(r)))return void a.forEach((function(t){!D.isUndefined(t)&&e.append(s,n(t))}));t(r,s)}})),r.pop()}else e.append(i,n(o))}(t),e},W=D.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),D.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),D.isString(n)&&a.push("path="+n),D.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(){}},V=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},Y=["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"],Z=D.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=D.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function Q(t){$.call(this,null==t?"canceled":t,$.ERR_CANCELED),this.name="CanceledError"}D.inherits(Q,$,{__CANCEL__:!0});var G=Q,tt={"Content-Type":"application/x-www-form-urlencoded"};function et(t,e){!D.isUndefined(t)&&D.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var rt,nt={transitional:X,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(rt=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)}D.isFormData(o)&&D.isStandardBrowserEnv()&&delete i["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+u)}var f=V(t.baseURL,t.url);function d(){if(c){var n,o,i,l,u,f="getAllResponseHeaders"in c?(n=c.getAllResponseHeaders(),u={},n?(D.forEach(n.split("\n"),(function(t){if(l=t.indexOf(":"),o=D.trim(t.substr(0,l)).toLowerCase(),i=D.trim(t.substr(l+1)),o){if(u[o]&&Y.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 $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.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?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:f,config:t,request:c}),c=null}}if(c.open(t.method.toUpperCase(),_(f,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new $("Request aborted",$.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,t,c,c)),c=null},c.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new $(e,(t.transitional||X).clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,c)),c=null},D.isStandardBrowserEnv()){var p=(t.withCredentials||Z(f))&&t.xsrfCookieName?W.read(t.xsrfCookieName):void 0;p&&(i[t.xsrfHeaderName]=p)}"setRequestHeader"in c&&D.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:c.setRequestHeader(e,t)})),D.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&"json"!==a&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){c&&(r(!t||t&&t.type?new G:t),c.abort(),c=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 $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,t)):c.send(o)}))}),rt),transformRequest:[function(t,e){if(H(e,"Accept"),H(e,"Content-Type"),D.isFormData(t)||D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return et(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=D.isObject(t),o=e&&e["Content-Type"];if((r=D.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return K(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(et(e,"application/json"),function(t){if(D.isString(t))try{return(0,JSON.parse)(t),D.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||nt.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&D.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw $.from(t,$.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, */*"}}};D.forEach(["delete","get","head"],(function(t){nt.headers[t]={}})),D.forEach(["post","put","patch"],(function(t){nt.headers[t]=D.merge(tt)}));var ot=nt,it=function(t,e,r){var n=this||ot;return D.forEach(r,(function(r){t=r.call(n,t,e)})),t},at=function(t){return!(!t||!t.__CANCEL__)};function st(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new G}var ct=function(t){return st(t),t.headers=t.headers||{},t.data=it.call(t,t.data,t.headers,t.transformRequest),t.headers=D.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),D.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||ot.adapter)(t).then((function(e){return st(t),e.data=it.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return at(e)||(st(t),e&&e.response&&(e.response.data=it.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},lt=function(t,e){e=e||{};var r={};function n(t,e){return D.isPlainObject(t)&&D.isPlainObject(e)?D.merge(t,e):D.isPlainObject(e)?D.merge({},e):D.isArray(e)?e.slice():e}function o(r){return D.isUndefined(e[r])?D.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!D.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return D.isUndefined(e[r])?D.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 c={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 D.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||o,n=e(t);D.isUndefined(n)&&e!==s||(r[t]=n)})),r},ut={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){ut[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var ft={};ut.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 $(n(o," has been removed"+(e?" in "+e:"")),$.ERR_DEPRECATED);return e&&!ft[o]&&(ft[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 dt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new $("options must be an object",$.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],c=void 0===s||a(s,i,t);if(!0!==c)throw new $("option "+i+" must be "+c,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:ut},pt=dt.validators;function ht(t){this.defaults=t,this.interceptors={request:new L,response:new L}}ht.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=lt(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&dt.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.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 c=e;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(t){u(t);break}}try{i=ct(c)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ht.prototype.getUri=function(t){t=lt(this.defaults,t);var e=V(t.baseURL,t.url);return _(e,t.params,t.paramsSerializer)},D.forEach(["delete","get","head","options"],(function(t){ht.prototype[t]=function(e,r){return this.request(lt(r||{},{method:t,url:e,data:(r||{}).data}))}})),D.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(lt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ht.prototype[t]=e(),ht.prototype[t+"Form"]=e(!0)}));var mt=ht;function wt(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 G(t),e(r.reason))}))}wt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},wt.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},wt.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},wt.source=function(){var t;return{token:new wt((function(e){t=e})),cancel:t}};var vt=wt,gt=function t(e){var r=new mt(e),n=g(mt.prototype.request,r);return D.extend(n,mt.prototype,r),D.extend(n,r),n.create=function(r){return t(lt(e,r))},n}(ot);gt.Axios=mt,gt.CanceledError=G,gt.CancelToken=vt,gt.isCancel=at,gt.VERSION="0.27.2",gt.toFormData=K,gt.AxiosError=$,gt.Cancel=gt.CanceledError,gt.all=function(t){return Promise.all(t)},gt.spread=function(t){return function(e){return t.apply(null,e)}},gt.isAxiosError=function(t){return D.isObject(t)&&!0===t.isAxiosError};var bt=gt;bt.default=gt;var yt=bt;const xt={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:Ct}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=w(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=w(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))))},c="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)}),l=(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:c,get:a,set:s,on:l,onChange:(e,r)=>{const n=l("set",((t,n)=>{t===e&&r(n)})),o=l("reset",(()=>r(w(t)[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(l("set",e.set)),e.get&&t.push(l("get",e.get)),e.reset&&t.push(l("reset",e.reset)),e.dispose&&t.push(l("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)))}}})(xt,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)),m(t)},reset:()=>{t.forEach((t=>t.forEach(r))),m(t)}}})()),t})(),kt=new Map([["row",new Map],["column",new Map],["box",new Map]]),Ot=["1","2","3","4","5","6","7","8","9"],Rt=t=>{if(void 0!==t&&t.indx!=Ct.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)=>{kt.get(r).get(e).forEach((e=>{e!==t&&i.add(e)}))})),Array.from(i)})(r,n,o,i),s=e?[]:(t=>{const{list:e}=Ct,r=new Set;return t.map((t=>{const{key:n}=e[t];"."!=n&&r.add(n)})),Ot.filter((t=>!r.has(t)))})(a);Ct.pick=r,Ct.keys=s,Ct.locs=a}else Ct.pick=void 0,Ct.keys=[],Ct.locs=[];At(Ct.pick)},Et=yt.create({baseURL:"https://rust-sudoku-api.herokuapp.com/api/",timeout:1e4,headers:{"X-Custom-Header":"foobar"}}),jt=t=>{f(t)},At=t=>{p(t)},St=(t=!1)=>{Ct.list=[],Ct.keys=[],Ct.locs=[],Ct.loading=t,Ct.solved=!1,Ct.error=void 0,Ct.pick=void 0,Ct.data=void 0},Nt=(t,e=!0)=>{const{puzzle:r,ref:n}=t;e&&(f([]),l(i,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=kt.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=>{u().forEach(((e,r)=>{const n=t[r],{isClue:o}=n;o||(n.key=e)}))})(a),Ct.data=t,Ct.list=a}else Ct.data=void 0,Ct.list=[]})({puzzle:r,ref:n})},Mt=t=>{Ct.list=[...t],t.length=0},zt={initApp:()=>{St();const t=c(i),e=d();if(t&&(Nt(t,!1),e)){const{list:t}=Ct;Rt(t[e])}},refresh:()=>{St(!0),jt([]),At(Ct.pick),Et.get("/puzzle").then((({data:t})=>{Nt(t)})).catch((t=>{const{message:e}=t;console.log("-- ",e),console.log(t),Ct.error=e})).then((()=>{Ct.loading=!1}))},select:t=>{Rt(t)},check:()=>{const{list:t}=Ct,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;jt(n?e:[]),r>0?Mt(t):81===i&&(Ct.solved=!0)},input:t=>{const{pick:e,list:r}=Ct;r[e].key=t,Mt(r)}},Bt=(...t)=>t.filter(Boolean).join(" "),Tt=e=>{const r=e.hex||"currentColor",n=e.label||"loading...",o=e.size||24;return t("svg",{class:Bt(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"}))},Pt=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?Tt:o,{class:"mr-2"}),n?t("label",{class:"mr-1 font-bold"},n,":"):"",t("label",{class:"italic"},r))},Dt=()=>{const{solved:e,loading:r,error:n}=Ct;return t("div",{class:"flex flex-col"},r||n||e?"":t(Pt,{message:"Welcome, are you ready to play?..."}),r?t(Pt,{message:"Loading...",spinner:!0}):"",n?t(Pt,{message:n,salute:"ERROR"}):"",e?t(Pt,{message:"You solved the puzzle!!"}):"")},Ut=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"}))},_t="eswat2",Ft=()=>t("a",{class:"absolute top-0 right-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":_t,title:_t},t(Ut,{label:_t})),Lt=(e,r)=>t("h1",{class:Bt("text-center uppercase text-clrs-red","mr-0 ml-0 mt-11 mb-11","text-6xl font-thin")},r),Ht=e=>{const{label:r,callback:n,matched:o=!1}=e;return t("button",{class:Bt("mr-2 rounded-md border border-solid border-clrs-slate4 font-bold","Check ?"===r?"bg-clrs-yellow px-3 py-2 text-clrs-navy":"New Puzzle"===r?"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)},Jt=()=>{const{keys:e,list:r,pick:n,solved:o}=Ct,i=t=>()=>{zt.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(Ht,{label:"x",callback:i(".")}),a.map((e=>t(Ht,{label:e,callback:i(e),matched:s.key===e}))))},It=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],qt=It.map((t=>t+1)),$t=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],Xt=$t.map((t=>t+9)),Kt=e=>{const{cell:r,selected:n,ref:o,solved:i}=e,{key:a,isClue:s,indx:c}=r,l="."!=a?a:"";return t("label",{class:Bt(`cell-${c}`,It.includes(c)?"border-xbr-clrs-navy":"",qt.includes(c)?"border-xbl-clrs-navy":"",$t.includes(c)?"border-xbb-clrs-navy":"",Xt.includes(c)?"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":""!==l?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||zt.select(t)})(r,i)},l)},Wt=()=>{const{list:e,pick:r,locs:n,solved:o}=Ct;return t("div",{class:Bt("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(Kt,{cell:e,selected:a,ref:s,solved:o})})))},Vt=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.6"),Yt=t=>()=>{t.refresh()},Zt=t=>()=>{t.check()},Qt=()=>{const{list:e,solved:r}=Ct;return t("div",{class:"flex flex-row"},t(Ht,{label:"New Puzzle",callback:Yt(zt)}),81!==e.length||r?"":t(Ht,{label:"Check ?",callback:Zt(zt)}),t(Vt,null))},Gt=class{constructor(t){n(this,t),this.tag="proto-sudoku"}componentDidLoad(){zt.initApp()}render(){return t("div",{id:"app",class:"ds1-main relative max-w-min p-0.5"},t(Ft,null),t(Lt,null,"Sudoku"),t(Wt,null),t(Jt,null),t("hr",{class:"ml-0 mr-0"}),t(Qt,null),t(Dt,null))}};Gt.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;}::-webkit-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;}::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:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{-webkit-animation:spin 1s linear infinite;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{Gt as proto_sudoku}
@@ -1 +1 @@
1
- import{p as o,b as p}from"./p-9f6ae661.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),o(r)})().then((o=>p([["p-d4ce4862",[[1,"proto-sudoku",{tag:[1]}]]]],o)));
1
+ import{p as o,b as a}from"./p-9f6ae661.js";(()=>{const a=import.meta.url,p={};return""!==a&&(p.resourcesUrl=new URL(".",a).href),o(p)})().then((o=>a([["p-4b2aad62",[[1,"proto-sudoku",{tag:[1]}]]]],o)));
@@ -5,6 +5,10 @@ declare const bag: {
5
5
  get: () => string[];
6
6
  store: (value: string[]) => void;
7
7
  };
8
+ pick: {
9
+ get: () => number;
10
+ store: (value: number) => void;
11
+ };
8
12
  };
9
13
  export { bag };
10
14
  export default bag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-sudoku-wc",
3
- "version": "0.0.412",
3
+ "version": "0.0.413",
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",
@@ -1 +0,0 @@
1
- import{h as t,g as e,f as r,r as n}from"./p-9f6ae661.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}-inputs`,s=t=>{const e=localStorage.getItem(t);return e?JSON.parse(e):void 0},c=(t,e)=>{const r=JSON.stringify(e);localStorage.setItem(t,r)},l=()=>[...s(a)],u=t=>{c(a,t.join(""))},f=t=>!("isConnected"in t)||t.isConnected,d=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(f))})(...e)}),2e3)}})(),p=t=>"function"==typeof t?t():t;var h,m=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)}},w=Object.prototype.toString,v=(h=Object.create(null),function(t){var e=w.call(t);return h[e]||(h[e]=e.slice(8,-1).toLowerCase())});function g(t){return t=t.toLowerCase(),function(e){return v(e)===t}}function b(t){return Array.isArray(t)}function y(t){return void 0===t}var x=g("ArrayBuffer");function C(t){return null!==t&&"object"==typeof t}function k(t){if("object"!==v(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var O=g("Date"),R=g("File"),E=g("Blob"),j=g("FileList");function A(t){return"[object Function]"===w.call(t)}var S=g("URLSearchParams");function N(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),b(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 M,z=(M="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return M&&t instanceof M}),B={isArray:b,isArrayBuffer:x,isBuffer:function(t){return null!==t&&!y(t)&&null!==t.constructor&&!y(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||w.call(t)===e||A(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&x(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:C,isPlainObject:k,isUndefined:y,isDate:O,isFile:R,isBlob:E,isFunction:A,isStream:function(t){return C(t)&&A(t.pipe)},isURLSearchParams:S,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:N,merge:function t(){var e={};function r(r,n){e[n]=k(e[n])&&k(r)?t(e[n],r):k(r)?t({},r):b(r)?r.slice():r}for(var n=0,o=arguments.length;n<o;n++)N(arguments[n],r);return e},extend:function(t,e,r){return N(e,(function(e,n){t[n]=r&&"function"==typeof e?m(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:v,kindOfTest:g,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(y(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},isTypedArray:z,isFileList:j};function T(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var P=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(B.isURLSearchParams(e))n=e.toString();else{var o=[];B.forEach(e,(function(t,e){null!=t&&(B.isArray(t)?e+="[]":t=[t],B.forEach(t,(function(t){B.isDate(t)?t=t.toISOString():B.isObject(t)&&(t=JSON.stringify(t)),o.push(T(e)+"="+T(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 D(){this.handlers=[]}D.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},D.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},D.prototype.forEach=function(t){B.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var U=D,_=function(t,e){B.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))};function F(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)}B.inherits(F,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 L=F.prototype,H={};["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){H[t]={value:t}})),Object.defineProperties(F,H),Object.defineProperty(L,"isAxiosError",{value:!0}),F.from=function(t,e,r,n,o,i){var a=Object.create(L);return B.toFlatObject(t,a,(function(t){return t!==Error.prototype})),F.call(a,t.message,e,r,n,o),a.name=t.name,i&&Object.assign(a,i),a};var J=F,I={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},q=function(t,e){e=e||new FormData;var r=[];function n(t){return null===t?"":B.isDate(t)?t.toISOString():B.isArrayBuffer(t)||B.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,i){if(B.isPlainObject(o)||B.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),B.forEach(o,(function(r,o){if(!B.isUndefined(r)){var a,s=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(B.endsWith(o,"{}"))r=JSON.stringify(r);else if(B.endsWith(o,"[]")&&(a=B.toArray(r)))return void a.forEach((function(t){!B.isUndefined(t)&&e.append(s,n(t))}));t(r,s)}})),r.pop()}else e.append(i,n(o))}(t),e},X=B.isStandardBrowserEnv()?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),B.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),B.isString(n)&&a.push("path="+n),B.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(){}},$=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},K=["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"],W=B.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=B.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function V(t){J.call(this,null==t?"canceled":t,J.ERR_CANCELED),this.name="CanceledError"}B.inherits(V,J,{__CANCEL__:!0});var Y=V,Z={"Content-Type":"application/x-www-form-urlencoded"};function Q(t,e){!B.isUndefined(t)&&B.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var G,tt={transitional:I,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(G=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)}B.isFormData(o)&&B.isStandardBrowserEnv()&&delete i["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+u)}var f=$(t.baseURL,t.url);function d(){if(c){var n,o,i,l,u,f="getAllResponseHeaders"in c?(n=c.getAllResponseHeaders(),u={},n?(B.forEach(n.split("\n"),(function(t){if(l=t.indexOf(":"),o=B.trim(t.substr(0,l)).toLowerCase(),i=B.trim(t.substr(l+1)),o){if(u[o]&&K.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 J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.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?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:f,config:t,request:c}),c=null}}if(c.open(t.method.toUpperCase(),P(f,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new J("Request aborted",J.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,t,c,c)),c=null},c.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new J(e,(t.transitional||I).clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,c)),c=null},B.isStandardBrowserEnv()){var p=(t.withCredentials||W(f))&&t.xsrfCookieName?X.read(t.xsrfCookieName):void 0;p&&(i[t.xsrfHeaderName]=p)}"setRequestHeader"in c&&B.forEach(i,(function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:c.setRequestHeader(e,t)})),B.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&"json"!==a&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(n=function(t){c&&(r(!t||t&&t.type?new Y:t),c.abort(),c=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 J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,t)):c.send(o)}))}),G),transformRequest:[function(t,e){if(_(e,"Accept"),_(e,"Content-Type"),B.isFormData(t)||B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return Q(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r,n=B.isObject(t),o=e&&e["Content-Type"];if((r=B.isFileList(t))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return q(r?{"files[]":t}:t,i&&new i)}return n||"application/json"===o?(Q(e,"application/json"),function(t){if(B.isString(t))try{return(0,JSON.parse)(t),B.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||tt.transitional,r=!(e&&e.silentJSONParsing)&&"json"===this.responseType;if(r||e&&e.forcedJSONParsing&&B.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw J.from(t,J.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, */*"}}};B.forEach(["delete","get","head"],(function(t){tt.headers[t]={}})),B.forEach(["post","put","patch"],(function(t){tt.headers[t]=B.merge(Z)}));var et=tt,rt=function(t,e,r){var n=this||et;return B.forEach(r,(function(r){t=r.call(n,t,e)})),t},nt=function(t){return!(!t||!t.__CANCEL__)};function ot(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Y}var it=function(t){return ot(t),t.headers=t.headers||{},t.data=rt.call(t,t.data,t.headers,t.transformRequest),t.headers=B.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),B.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||et.adapter)(t).then((function(e){return ot(t),e.data=rt.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return nt(e)||(ot(t),e&&e.response&&(e.response.data=rt.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},at=function(t,e){e=e||{};var r={};function n(t,e){return B.isPlainObject(t)&&B.isPlainObject(e)?B.merge(t,e):B.isPlainObject(e)?B.merge({},e):B.isArray(e)?e.slice():e}function o(r){return B.isUndefined(e[r])?B.isUndefined(t[r])?void 0:n(void 0,t[r]):n(t[r],e[r])}function i(t){if(!B.isUndefined(e[t]))return n(void 0,e[t])}function a(r){return B.isUndefined(e[r])?B.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 c={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 B.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||o,n=e(t);B.isUndefined(n)&&e!==s||(r[t]=n)})),r},st={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){st[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var ct={};st.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 J(n(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!ct[o]&&(ct[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 lt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new J("options must be an object",J.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],c=void 0===s||a(s,i,t);if(!0!==c)throw new J("option "+i+" must be "+c,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:st},ut=lt.validators;function ft(t){this.defaults=t,this.interceptors={request:new U,response:new U}}ft.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=at(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var r=e.transitional;void 0!==r&&lt.assertOptions(r,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.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=[it,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 c=e;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(t){u(t);break}}try{i=it(c)}catch(t){return Promise.reject(t)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},ft.prototype.getUri=function(t){t=at(this.defaults,t);var e=$(t.baseURL,t.url);return P(e,t.params,t.paramsSerializer)},B.forEach(["delete","get","head","options"],(function(t){ft.prototype[t]=function(e,r){return this.request(at(r||{},{method:t,url:e,data:(r||{}).data}))}})),B.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(at(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ft.prototype[t]=e(),ft.prototype[t+"Form"]=e(!0)}));var dt=ft;function pt(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 Y(t),e(r.reason))}))}pt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},pt.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},pt.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},pt.source=function(){var t;return{token:new pt((function(e){t=e})),cancel:t}};var ht=pt,mt=function t(e){var r=new dt(e),n=m(dt.prototype.request,r);return B.extend(n,dt.prototype,r),B.extend(n,r),n.create=function(r){return t(at(e,r))},n}(et);mt.Axios=dt,mt.CanceledError=Y,mt.CancelToken=ht,mt.isCancel=nt,mt.VERSION="0.27.2",mt.toFormData=q,mt.AxiosError=J,mt.Cancel=mt.CanceledError,mt.all=function(t){return Promise.all(t)},mt.spread=function(t){return function(e){return t.apply(null,e)}},mt.isAxiosError=function(t){return B.isObject(t)&&!0===t.isAxiosError};var wt=mt;wt.default=mt;var vt=wt;const gt={list:[],keys:[],locs:[],loading:!1,solved:!1,error:void 0,pick:void 0,data:void 0},{state:bt}=(()=>{const t=((t,e=((t,e)=>t!==e))=>{const r=p(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=p(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))))},c="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)}),l=(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:c,get:a,set:s,on:l,onChange:(e,r)=>{const n=l("set",((t,n)=>{t===e&&r(n)})),o=l("reset",(()=>r(p(t)[e])));return()=>{n(),o()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(l("set",e.set)),e.get&&t.push(l("get",e.get)),e.reset&&t.push(l("reset",e.reset)),e.dispose&&t.push(l("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)))}}})(gt,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)),d(t)},reset:()=>{t.forEach((t=>t.forEach(r))),d(t)}}})()),t})(),yt=new Map([["row",new Map],["column",new Map],["box",new Map]]),xt=["1","2","3","4","5","6","7","8","9"],Ct=vt.create({baseURL:"https://rust-sudoku-api.herokuapp.com/api/",timeout:1e4,headers:{"X-Custom-Header":"foobar"}}),kt=(t=!1)=>{bt.list=[],bt.keys=[],bt.locs=[],bt.loading=t,bt.solved=!1,bt.error=void 0,bt.pick=void 0,bt.data=void 0},Ot=(t,e=!0)=>{const{puzzle:r,ref:n}=t;e&&(u([]),c(i,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=yt.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=>{l().forEach(((e,r)=>{const n=t[r],{isClue:o}=n;o||(n.key=e)}))})(a),bt.data=t,bt.list=a}else bt.data=void 0,bt.list=[]})({puzzle:r,ref:n})},Rt=t=>{bt.list=[...t],t.length=0},Et={initApp:()=>{kt();const t=s(i);t&&Ot(t,!1)},refresh:()=>{kt(!0),Ct.get("/puzzle").then((({data:t})=>{Ot(t)})).catch((t=>{const{message:e}=t;console.log("-- ",e),console.log(t),bt.error=e})).then((()=>{bt.loading=!1}))},select:t=>{(t=>{if(void 0!==t&&t.indx!=bt.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)=>{yt.get(r).get(e).forEach((e=>{e!==t&&i.add(e)}))})),Array.from(i)})(r,n,o,i),s=e?[]:(t=>{const{list:e}=bt,r=new Set;return t.map((t=>{const{key:n}=e[t];"."!=n&&r.add(n)})),xt.filter((t=>!r.has(t)))})(a);bt.pick=r,bt.keys=s,bt.locs=a}else bt.pick=void 0,bt.keys=[],bt.locs=[]})(t)},check:()=>{const{list:t}=bt,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;(t=>{u(t)})(n?e:[]),r>0?Rt(t):81===i&&(bt.solved=!0)},input:t=>{const{pick:e,list:r}=bt;r[e].key=t,Rt(r)}},jt=(...t)=>t.filter(Boolean).join(" "),At=e=>{const r=e.hex||"currentColor",n=e.label||"loading...",o=e.size||24;return t("svg",{class:jt(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"}))},St=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?At:o,{class:"mr-2"}),n?t("label",{class:"mr-1 font-bold"},n,":"):"",t("label",{class:"italic"},r))},Nt=()=>{const{solved:e,loading:r,error:n}=bt;return t("div",{class:"flex flex-col"},r||n||e?"":t(St,{message:"Welcome, are you ready to play?..."}),r?t(St,{message:"Loading...",spinner:!0}):"",n?t(St,{message:n,salute:"ERROR"}):"",e?t(St,{message:"You solved the puzzle!!"}):"")},Mt=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"}))},zt="eswat2",Bt=()=>t("a",{class:"absolute top-0 right-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":zt,title:zt},t(Mt,{label:zt})),Tt=(e,r)=>t("h1",{class:jt("text-center uppercase text-clrs-red","mr-0 ml-0 mt-11 mb-11","text-6xl font-thin")},r),Pt=e=>{const{label:r,callback:n,matched:o=!1}=e;return t("button",{class:jt("mr-2 rounded-md border border-solid border-clrs-slate4 font-bold","Check ?"===r?"bg-clrs-yellow px-3 py-2 text-clrs-navy":"New Puzzle"===r?"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)},Dt=()=>{const{keys:e,list:r,pick:n,solved:o}=bt,i=t=>()=>{Et.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(Pt,{label:"x",callback:i(".")}),a.map((e=>t(Pt,{label:e,callback:i(e),matched:s.key===e}))))},Ut=[2,5,11,14,20,23,29,32,38,41,47,50,56,59,65,68,74,77],_t=Ut.map((t=>t+1)),Ft=[18,19,20,21,22,23,24,25,26,45,46,47,48,49,50,51,52,53],Lt=Ft.map((t=>t+9)),Ht=e=>{const{cell:r,selected:n,ref:o,solved:i}=e,{key:a,isClue:s,indx:c}=r,l="."!=a?a:"";return t("label",{class:jt(`cell-${c}`,Ut.includes(c)?"border-xbr-clrs-navy":"",_t.includes(c)?"border-xbl-clrs-navy":"",Ft.includes(c)?"border-xbb-clrs-navy":"",Lt.includes(c)?"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":""!==l?"border-clrs-gray text-clrs-red":"border-clrs-gray"),onClick:((t,e)=>()=>{e||Et.select(t)})(r,i)},l)},Jt=()=>{const{list:e,pick:r,locs:n,solved:o}=bt;return t("div",{class:jt("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(Ht,{cell:e,selected:a,ref:s,solved:o})})))},It=()=>t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.1.6"),qt=t=>()=>{t.refresh()},Xt=t=>()=>{t.check()},$t=()=>{const{list:e,solved:r}=bt;return t("div",{class:"flex flex-row"},t(Pt,{label:"New Puzzle",callback:qt(Et)}),81!==e.length||r?"":t(Pt,{label:"Check ?",callback:Xt(Et)}),t(It,null))},Kt=class{constructor(t){n(this,t),this.tag="proto-sudoku"}componentDidLoad(){Et.initApp()}render(){return t("div",{id:"app",class:"ds1-main relative max-w-min p-0.5"},t(Bt,null),t(Tt,null,"Sudoku"),t(Jt,null),t(Dt,null),t("hr",{class:"ml-0 mr-0"}),t($t,null),t(Nt,null))}};Kt.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;}::-webkit-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;}::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:-webkit-min-content;max-width:-moz-min-content;max-width:min-content}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{-webkit-animation:spin 1s linear infinite;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{Kt as proto_sudoku}