asterui 0.10.2 → 0.11.0

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.
Files changed (178) hide show
  1. package/README.md +12 -9
  2. package/dist/components/Segmented.d.ts +37 -0
  3. package/dist/components/Tour.d.ts +61 -0
  4. package/dist/hooks/useClickOutside.d.ts +17 -0
  5. package/dist/hooks/useClipboard.d.ts +20 -0
  6. package/dist/hooks/useDebounce.d.ts +18 -0
  7. package/dist/hooks/useDisclosure.d.ts +20 -0
  8. package/dist/hooks/useHover.d.ts +18 -0
  9. package/dist/hooks/useKeyPress.d.ts +40 -0
  10. package/dist/hooks/useLocalStorage.d.ts +12 -0
  11. package/dist/hooks/usePrevious.d.ts +15 -0
  12. package/dist/hooks/useWindowSize.d.ts +21 -0
  13. package/dist/index.d.ts +18 -0
  14. package/dist/index.js +143 -120
  15. package/dist/index.js.map +1 -1
  16. package/dist/index100.js +5 -21
  17. package/dist/index100.js.map +1 -1
  18. package/dist/index101.js +41 -23
  19. package/dist/index101.js.map +1 -1
  20. package/dist/index102.js +2 -20
  21. package/dist/index102.js.map +1 -1
  22. package/dist/index103.js +6 -99
  23. package/dist/index103.js.map +1 -1
  24. package/dist/index104.js +149 -357
  25. package/dist/index104.js.map +1 -1
  26. package/dist/index105.js +28 -23
  27. package/dist/index105.js.map +1 -1
  28. package/dist/index106.js +28 -71
  29. package/dist/index106.js.map +1 -1
  30. package/dist/index107.js +2 -16
  31. package/dist/index107.js.map +1 -1
  32. package/dist/index108.js +71 -65
  33. package/dist/index108.js.map +1 -1
  34. package/dist/index109.js +34 -139
  35. package/dist/index109.js.map +1 -1
  36. package/dist/index110.js +26 -2
  37. package/dist/index110.js.map +1 -1
  38. package/dist/index111.js +20 -55
  39. package/dist/index111.js.map +1 -1
  40. package/dist/index112.js +24 -2
  41. package/dist/index112.js.map +1 -1
  42. package/dist/index113.js +20 -2
  43. package/dist/index113.js.map +1 -1
  44. package/dist/index114.js +100 -2
  45. package/dist/index114.js.map +1 -1
  46. package/dist/index115.js +360 -2
  47. package/dist/index115.js.map +1 -1
  48. package/dist/index116.js +25 -2
  49. package/dist/index116.js.map +1 -1
  50. package/dist/index117.js +73 -2
  51. package/dist/index117.js.map +1 -1
  52. package/dist/index118.js +16 -2
  53. package/dist/index118.js.map +1 -1
  54. package/dist/index119.js +66 -2
  55. package/dist/index119.js.map +1 -1
  56. package/dist/index120.js +140 -28
  57. package/dist/index120.js.map +1 -1
  58. package/dist/index121.js +2 -2
  59. package/dist/index122.js +55 -7
  60. package/dist/index122.js.map +1 -1
  61. package/dist/index123.js +2 -2
  62. package/dist/index124.js +2 -2
  63. package/dist/index125.js +2 -21
  64. package/dist/index125.js.map +1 -1
  65. package/dist/index126.js +2 -2
  66. package/dist/index127.js +2 -24
  67. package/dist/index127.js.map +1 -1
  68. package/dist/index128.js +2 -71
  69. package/dist/index128.js.map +1 -1
  70. package/dist/index129.js +2 -21
  71. package/dist/index129.js.map +1 -1
  72. package/dist/index130.js +31 -33
  73. package/dist/index130.js.map +1 -1
  74. package/dist/index131.js +2 -70
  75. package/dist/index131.js.map +1 -1
  76. package/dist/index132.js +8 -2
  77. package/dist/index132.js.map +1 -1
  78. package/dist/index133.js +2 -22
  79. package/dist/index133.js.map +1 -1
  80. package/dist/index135.js +21 -2
  81. package/dist/index135.js.map +1 -1
  82. package/dist/index137.js +24 -2
  83. package/dist/index137.js.map +1 -1
  84. package/dist/index138.js +70 -3
  85. package/dist/index138.js.map +1 -1
  86. package/dist/index139.js +24 -0
  87. package/dist/index139.js.map +1 -0
  88. package/dist/index14.js +1 -1
  89. package/dist/index140.js +37 -0
  90. package/dist/index140.js.map +1 -0
  91. package/dist/index141.js +73 -0
  92. package/dist/index141.js.map +1 -0
  93. package/dist/index142.js +5 -0
  94. package/dist/index142.js.map +1 -0
  95. package/dist/index143.js +5 -0
  96. package/dist/index143.js.map +1 -0
  97. package/dist/index144.js +25 -0
  98. package/dist/index144.js.map +1 -0
  99. package/dist/index145.js +5 -0
  100. package/dist/index145.js.map +1 -0
  101. package/dist/index146.js +5 -0
  102. package/dist/index146.js.map +1 -0
  103. package/dist/index147.js +5 -0
  104. package/dist/index147.js.map +1 -0
  105. package/dist/index148.js +5 -0
  106. package/dist/index148.js.map +1 -0
  107. package/dist/index149.js +7 -0
  108. package/dist/index149.js.map +1 -0
  109. package/dist/index59.js +1 -1
  110. package/dist/index66.js +66 -19
  111. package/dist/index66.js.map +1 -1
  112. package/dist/index67.js +18 -43
  113. package/dist/index67.js.map +1 -1
  114. package/dist/index68.js +44 -132
  115. package/dist/index68.js.map +1 -1
  116. package/dist/index69.js +132 -50
  117. package/dist/index69.js.map +1 -1
  118. package/dist/index70.js +51 -21
  119. package/dist/index70.js.map +1 -1
  120. package/dist/index71.js +19 -19
  121. package/dist/index71.js.map +1 -1
  122. package/dist/index72.js +20 -327
  123. package/dist/index72.js.map +1 -1
  124. package/dist/index73.js +323 -50
  125. package/dist/index73.js.map +1 -1
  126. package/dist/index74.js +56 -40
  127. package/dist/index74.js.map +1 -1
  128. package/dist/index75.js +40 -95
  129. package/dist/index75.js.map +1 -1
  130. package/dist/index76.js +88 -123
  131. package/dist/index76.js.map +1 -1
  132. package/dist/index77.js +123 -154
  133. package/dist/index77.js.map +1 -1
  134. package/dist/index78.js +159 -63
  135. package/dist/index78.js.map +1 -1
  136. package/dist/index79.js +65 -35
  137. package/dist/index79.js.map +1 -1
  138. package/dist/index80.js +35 -34
  139. package/dist/index80.js.map +1 -1
  140. package/dist/index81.js +222 -198
  141. package/dist/index81.js.map +1 -1
  142. package/dist/index82.js +34 -213
  143. package/dist/index82.js.map +1 -1
  144. package/dist/index83.js +190 -275
  145. package/dist/index83.js.map +1 -1
  146. package/dist/index84.js +202 -167
  147. package/dist/index84.js.map +1 -1
  148. package/dist/index85.js +263 -226
  149. package/dist/index85.js.map +1 -1
  150. package/dist/index86.js +176 -12
  151. package/dist/index86.js.map +1 -1
  152. package/dist/index87.js +257 -32
  153. package/dist/index87.js.map +1 -1
  154. package/dist/index88.js +13 -10792
  155. package/dist/index88.js.map +1 -1
  156. package/dist/index89.js +33 -5
  157. package/dist/index89.js.map +1 -1
  158. package/dist/index90.js +5 -41
  159. package/dist/index90.js.map +1 -1
  160. package/dist/index91.js +14 -2
  161. package/dist/index91.js.map +1 -1
  162. package/dist/index92.js +45 -6
  163. package/dist/index92.js.map +1 -1
  164. package/dist/index93.js +11 -150
  165. package/dist/index93.js.map +1 -1
  166. package/dist/index94.js +13 -28
  167. package/dist/index94.js.map +1 -1
  168. package/dist/index95.js +7 -29
  169. package/dist/index95.js.map +1 -1
  170. package/dist/index96.js +13 -2
  171. package/dist/index96.js.map +1 -1
  172. package/dist/index97.js +30 -71
  173. package/dist/index97.js.map +1 -1
  174. package/dist/index98.js +16 -37
  175. package/dist/index98.js.map +1 -1
  176. package/dist/index99.js +10792 -25
  177. package/dist/index99.js.map +1 -1
  178. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index130.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js"],"sourcesContent":["const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n"],"names":["Mode","require$$0","Utils","require$$1","KanjiData","data","length","bitBuffer","i","value","kanjiData"],"mappings":";;;;;;AAAA,QAAMA,IAAOC,EAAA,GACPC,IAAQC,EAAA;AAEd,WAASC,EAAWC,GAAM;AACxB,SAAK,OAAOL,EAAK,OACjB,KAAK,OAAOK;AAAA,EACd;AAEA,SAAAD,EAAU,gBAAgB,SAAwBE,GAAQ;AACxD,WAAOA,IAAS;AAAA,EAClB,GAEAF,EAAU,UAAU,YAAY,WAAsB;AACpD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAU,UAAU,gBAAgB,WAA0B;AAC5D,WAAOA,EAAU,cAAc,KAAK,KAAK,MAAM;AAAA,EACjD,GAEAA,EAAU,UAAU,QAAQ,SAAUG,GAAW;AAC/C,QAAIC;AAKJ,SAAKA,IAAI,GAAGA,IAAI,KAAK,KAAK,QAAQA,KAAK;AACrC,UAAIC,IAAQP,EAAM,OAAO,KAAK,KAAKM,CAAC,CAAC;AAGrC,UAAIC,KAAS,SAAUA,KAAS;AAE9B,QAAAA,KAAS;AAAA,eAGAA,KAAS,SAAUA,KAAS;AAErC,QAAAA,KAAS;AAAA;AAET,cAAM,IAAI;AAAA,UACR,6BAA6B,KAAK,KAAKD,CAAC,IAAI;AAAA;AAAA,QACX;AAKrC,MAAAC,KAAWA,MAAU,IAAK,OAAQ,OAASA,IAAQ,MAGnDF,EAAU,IAAIE,GAAO,EAAE;AAAA,IAC3B;AAAA,EACA,GAEAC,IAAiBN;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index130.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js"],"sourcesContent":["const GF = require('./galois-field')\n\n/**\n * Multiplies two polynomials inside Galois Field\n *\n * @param {Uint8Array} p1 Polynomial\n * @param {Uint8Array} p2 Polynomial\n * @return {Uint8Array} Product of p1 and p2\n */\nexports.mul = function mul (p1, p2) {\n const coeff = new Uint8Array(p1.length + p2.length - 1)\n\n for (let i = 0; i < p1.length; i++) {\n for (let j = 0; j < p2.length; j++) {\n coeff[i + j] ^= GF.mul(p1[i], p2[j])\n }\n }\n\n return coeff\n}\n\n/**\n * Calculate the remainder of polynomials division\n *\n * @param {Uint8Array} divident Polynomial\n * @param {Uint8Array} divisor Polynomial\n * @return {Uint8Array} Remainder\n */\nexports.mod = function mod (divident, divisor) {\n let result = new Uint8Array(divident)\n\n while ((result.length - divisor.length) >= 0) {\n const coeff = result[0]\n\n for (let i = 0; i < divisor.length; i++) {\n result[i] ^= GF.mul(divisor[i], coeff)\n }\n\n // remove all zeros from buffer head\n let offset = 0\n while (offset < result.length && result[offset] === 0) offset++\n result = result.slice(offset)\n }\n\n return result\n}\n\n/**\n * Generate an irreducible generator polynomial of specified degree\n * (used by Reed-Solomon encoder)\n *\n * @param {Number} degree Degree of the generator polynomial\n * @return {Uint8Array} Buffer containing polynomial coefficients\n */\nexports.generateECPolynomial = function generateECPolynomial (degree) {\n let poly = new Uint8Array([1])\n for (let i = 0; i < degree; i++) {\n poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]))\n }\n\n return poly\n}\n"],"names":["GF","require$$0","exports","p1","p2","coeff","i","j","divident","divisor","result","offset","degree","poly"],"mappings":";;;;;AAAA,UAAMA,IAAKC,EAAA;AASXC,IAAAA,EAAA,MAAc,SAAcC,GAAIC,GAAI;AAClC,YAAMC,IAAQ,IAAI,WAAWF,EAAG,SAASC,EAAG,SAAS,CAAC;AAEtD,eAASE,IAAI,GAAGA,IAAIH,EAAG,QAAQG;AAC7B,iBAASC,IAAI,GAAGA,IAAIH,EAAG,QAAQG;AAC7B,UAAAF,EAAMC,IAAIC,CAAC,KAAKP,EAAG,IAAIG,EAAGG,CAAC,GAAGF,EAAGG,CAAC,CAAC;AAIvC,aAAOF;AAAA,IACT,GASAH,EAAA,MAAc,SAAcM,GAAUC,GAAS;AAC7C,UAAIC,IAAS,IAAI,WAAWF,CAAQ;AAEpC,aAAQE,EAAO,SAASD,EAAQ,UAAW,KAAG;AAC5C,cAAMJ,IAAQK,EAAO,CAAC;AAEtB,iBAAS,IAAI,GAAG,IAAID,EAAQ,QAAQ;AAClC,UAAAC,EAAO,CAAC,KAAKV,EAAG,IAAIS,EAAQ,CAAC,GAAGJ,CAAK;AAIvC,YAAIM,IAAS;AACb,eAAOA,IAASD,EAAO,UAAUA,EAAOC,CAAM,MAAM,IAAG,CAAAA;AACvD,QAAAD,IAASA,EAAO,MAAMC,CAAM;AAAA,MAChC;AAEE,aAAOD;AAAA,IACT,GASAR,EAAA,uBAA+B,SAA+BU,GAAQ;AACpE,UAAIC,IAAO,IAAI,WAAW,CAAC,CAAC,CAAC;AAC7B,eAASP,IAAI,GAAGA,IAAIM,GAAQN;AAC1B,QAAAO,IAAOX,EAAQ,IAAIW,GAAM,IAAI,WAAW,CAAC,GAAGb,EAAG,IAAIM,CAAC,CAAC,CAAC,CAAC;AAGzD,aAAOO;AAAA,IACT;AAAA;;","x_google_ignoreList":[0]}
package/dist/index131.js CHANGED
@@ -1,73 +1,5 @@
1
- import { __module as c } from "./index135.js";
2
- var m;
3
- function j() {
4
- return m ? c.exports : (m = 1, (function(y) {
5
- var u = {
6
- single_source_shortest_paths: function(o, t, e) {
7
- var r = {}, i = {};
8
- i[t] = 0;
9
- var n = u.PriorityQueue.make();
10
- n.push(t, 0);
11
- for (var f, p, s, h, _, d, a, v, l; !n.empty(); ) {
12
- f = n.pop(), p = f.value, h = f.cost, _ = o[p] || {};
13
- for (s in _)
14
- _.hasOwnProperty(s) && (d = _[s], a = h + d, v = i[s], l = typeof i[s] > "u", (l || v > a) && (i[s] = a, n.push(s, a), r[s] = p));
15
- }
16
- if (typeof e < "u" && typeof i[e] > "u") {
17
- var q = ["Could not find a path from ", t, " to ", e, "."].join("");
18
- throw new Error(q);
19
- }
20
- return r;
21
- },
22
- extract_shortest_path_from_predecessor_list: function(o, t) {
23
- for (var e = [], r = t; r; )
24
- e.push(r), o[r], r = o[r];
25
- return e.reverse(), e;
26
- },
27
- find_path: function(o, t, e) {
28
- var r = u.single_source_shortest_paths(o, t, e);
29
- return u.extract_shortest_path_from_predecessor_list(
30
- r,
31
- e
32
- );
33
- },
34
- /**
35
- * A very naive priority queue implementation.
36
- */
37
- PriorityQueue: {
38
- make: function(o) {
39
- var t = u.PriorityQueue, e = {}, r;
40
- o = o || {};
41
- for (r in t)
42
- t.hasOwnProperty(r) && (e[r] = t[r]);
43
- return e.queue = [], e.sorter = o.sorter || t.default_sorter, e;
44
- },
45
- default_sorter: function(o, t) {
46
- return o.cost - t.cost;
47
- },
48
- /**
49
- * Add a new item to the queue and ensure the highest priority element
50
- * is at the front of the queue.
51
- */
52
- push: function(o, t) {
53
- var e = { value: o, cost: t };
54
- this.queue.push(e), this.queue.sort(this.sorter);
55
- },
56
- /**
57
- * Return the highest priority element in the queue.
58
- */
59
- pop: function() {
60
- return this.queue.shift();
61
- },
62
- empty: function() {
63
- return this.queue.length === 0;
64
- }
65
- }
66
- };
67
- y.exports = u;
68
- })(c), c.exports);
69
- }
1
+ var r = {};
70
2
  export {
71
- j as __require
3
+ r as __exports
72
4
  };
73
5
  //# sourceMappingURL=index131.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index131.js","sources":["../../../node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js"],"sourcesContent":["'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n"],"names":["dijkstra","graph","s","d","predecessors","costs","open","closest","u","v","cost_of_s_to_u","adjacent_nodes","cost_of_e","cost_of_s_to_u_plus_cost_of_e","cost_of_s_to_v","first_visit","msg","nodes","opts","T","t","key","a","b","value","cost","item","module"],"mappings":";;;;AAuBA,QAAIA,IAAW;AAAA,MACb,8BAA8B,SAASC,GAAOC,GAAGC,GAAG;AAGlD,YAAIC,IAAe,CAAA,GAIfC,IAAQ,CAAA;AACZ,QAAAA,EAAMH,CAAC,IAAI;AAMX,YAAII,IAAON,EAAS,cAAc,KAAI;AACtC,QAAAM,EAAK,KAAKJ,GAAG,CAAC;AAUd,iBARIK,GACAC,GAAGC,GACHC,GACAC,GACAC,GACAC,GACAC,GACAC,GACG,CAACT,EAAK,WAAS;AAGpB,UAAAC,IAAUD,EAAK,IAAG,GAClBE,IAAID,EAAQ,OACZG,IAAiBH,EAAQ,MAGzBI,IAAiBV,EAAMO,CAAC,KAAK,CAAA;AAK7B,eAAKC,KAAKE;AACR,YAAIA,EAAe,eAAeF,CAAC,MAEjCG,IAAYD,EAAeF,CAAC,GAK5BI,IAAgCH,IAAiBE,GAMjDE,IAAiBT,EAAMI,CAAC,GACxBM,IAAe,OAAOV,EAAMI,CAAC,IAAM,MAC/BM,KAAeD,IAAiBD,OAClCR,EAAMI,CAAC,IAAII,GACXP,EAAK,KAAKG,GAAGI,CAA6B,GAC1CT,EAAaK,CAAC,IAAID;AAAA,QAI9B;AAEI,YAAI,OAAOL,IAAM,OAAe,OAAOE,EAAMF,CAAC,IAAM,KAAa;AAC/D,cAAIa,IAAM,CAAC,+BAA+Bd,GAAG,QAAQC,GAAG,GAAG,EAAE,KAAK,EAAE;AACpE,gBAAM,IAAI,MAAMa,CAAG;AAAA,QACzB;AAEI,eAAOZ;AAAA,MACX;AAAA,MAEE,6CAA6C,SAASA,GAAcD,GAAG;AAIrE,iBAHIc,IAAQ,CAAA,GACRT,IAAIL,GAEDK;AACL,UAAAS,EAAM,KAAKT,CAAC,GACEJ,EAAaI,CAAC,GAC5BA,IAAIJ,EAAaI,CAAC;AAEpB,eAAAS,EAAM,QAAO,GACNA;AAAA,MACX;AAAA,MAEE,WAAW,SAAShB,GAAOC,GAAGC,GAAG;AAC/B,YAAIC,IAAeJ,EAAS,6BAA6BC,GAAOC,GAAGC,CAAC;AACpE,eAAOH,EAAS;AAAA,UACdI;AAAA,UAAcD;AAAA,QAAC;AAAA,MACrB;AAAA;AAAA;AAAA;AAAA,MAKE,eAAe;AAAA,QACb,MAAM,SAAUe,GAAM;AACpB,cAAIC,IAAInB,EAAS,eACboB,IAAI,CAAA,GACJC;AACJ,UAAAH,IAAOA,KAAQ,CAAA;AACf,eAAKG,KAAOF;AACV,YAAIA,EAAE,eAAeE,CAAG,MACtBD,EAAEC,CAAG,IAAIF,EAAEE,CAAG;AAGlB,iBAAAD,EAAE,QAAQ,CAAA,GACVA,EAAE,SAASF,EAAK,UAAUC,EAAE,gBACrBC;AAAA,QACb;AAAA,QAEI,gBAAgB,SAAUE,GAAGC,GAAG;AAC9B,iBAAOD,EAAE,OAAOC,EAAE;AAAA,QACxB;AAAA;AAAA;AAAA;AAAA;AAAA,QAMI,MAAM,SAAUC,GAAOC,GAAM;AAC3B,cAAIC,IAAO,EAAC,OAAOF,GAAO,MAAMC,EAAI;AACpC,eAAK,MAAM,KAAKC,CAAI,GACpB,KAAK,MAAM,KAAK,KAAK,MAAM;AAAA,QACjC;AAAA;AAAA;AAAA;AAAA,QAKI,KAAK,WAAY;AACf,iBAAO,KAAK,MAAM,MAAK;AAAA,QAC7B;AAAA,QAEI,OAAO,WAAY;AACjB,iBAAO,KAAK,MAAM,WAAW;AAAA,QACnC;AAAA,MACA;AAAA;AAME,IAAAC,YAAiB3B;AAAA;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index131.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index132.js CHANGED
@@ -1,5 +1,11 @@
1
- var o = {};
1
+ import { __exports as e } from "./index145.js";
2
+ var i;
3
+ function t() {
4
+ return i ? e : (i = 1, e.isValid = function(r) {
5
+ return !isNaN(r) && r >= 1 && r <= 40;
6
+ }, e);
7
+ }
2
8
  export {
3
- o as __exports
9
+ t as __require
4
10
  };
5
11
  //# sourceMappingURL=index132.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index132.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index132.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js"],"sourcesContent":["/**\n * Check if QR Code version is valid\n *\n * @param {Number} version QR Code version\n * @return {Boolean} true if valid version, false otherwise\n */\nexports.isValid = function isValid (version) {\n return !isNaN(version) && version >= 1 && version <= 40\n}\n"],"names":["versionCheck","version"],"mappings":";;;yBAMAA,EAAA,UAAkB,SAAkBC,GAAS;AAC3C,WAAO,CAAC,MAAMA,CAAO,KAAKA,KAAW,KAAKA,KAAW;AAAA,EACvD;;","x_google_ignoreList":[0]}
package/dist/index133.js CHANGED
@@ -1,25 +1,5 @@
1
- import { __exports as t } from "./index137.js";
2
- var u;
3
- function f() {
4
- if (u) return t;
5
- u = 1;
6
- const i = new Uint8Array(512), n = new Uint8Array(256);
7
- return (function() {
8
- let r = 1;
9
- for (let e = 0; e < 255; e++)
10
- i[e] = r, n[r] = e, r <<= 1, r & 256 && (r ^= 285);
11
- for (let e = 255; e < 512; e++)
12
- i[e] = i[e - 255];
13
- })(), t.log = function(r) {
14
- if (r < 1) throw new Error("log(" + r + ")");
15
- return n[r];
16
- }, t.exp = function(r) {
17
- return i[r];
18
- }, t.mul = function(r, e) {
19
- return r === 0 || e === 0 ? 0 : i[n[r] + n[e]];
20
- }, t;
21
- }
1
+ var o = {};
22
2
  export {
23
- f as __require
3
+ o as __exports
24
4
  };
25
5
  //# sourceMappingURL=index133.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index133.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js"],"sourcesContent":["const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n"],"names":["EXP_TABLE","LOG_TABLE","x","i","galoisField","n","y"],"mappings":";;;;;AAAA,QAAMA,IAAY,IAAI,WAAW,GAAG,GAC9BC,IAAY,IAAI,WAAW,GAAG;AASnC,UAAC,WAAuB;AACvB,QAAIC,IAAI;AACR,aAASC,IAAI,GAAGA,IAAI,KAAKA;AACvB,MAAAH,EAAUG,CAAC,IAAID,GACfD,EAAUC,CAAC,IAAIC,GAEfD,MAAM,GAIFA,IAAI,QACNA,KAAK;AAQT,aAASC,IAAI,KAAKA,IAAI,KAAKA;AACzB,MAAAH,EAAUG,CAAC,IAAIH,EAAUG,IAAI,GAAG;AAAA,EAEpC,GAAC,GAQDC,EAAA,MAAc,SAAcC,GAAG;AAC7B,QAAIA,IAAI,EAAG,OAAM,IAAI,MAAM,SAASA,IAAI,GAAG;AAC3C,WAAOJ,EAAUI,CAAC;AAAA,EACpB,GAQAD,EAAA,MAAc,SAAcC,GAAG;AAC7B,WAAOL,EAAUK,CAAC;AAAA,EACpB,GASAD,EAAA,MAAc,SAAcF,GAAGI,GAAG;AAChC,WAAIJ,MAAM,KAAKI,MAAM,IAAU,IAIxBN,EAAUC,EAAUC,CAAC,IAAID,EAAUK,CAAC,CAAC;AAAA,EAC9C;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index133.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index135.js CHANGED
@@ -1,5 +1,24 @@
1
- var r = { exports: {} };
1
+ import { __exports as e } from "./index146.js";
2
+ var s;
3
+ function R() {
4
+ if (s) return e;
5
+ s = 1;
6
+ const n = "[0-9]+", E = "[A-Z $%*+\\-./:]+";
7
+ let u = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
8
+ u = u.replace(/u/g, "\\u");
9
+ const i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + u + `)(?:.|[\r
10
+ ]))+`;
11
+ e.KANJI = new RegExp(u, "g"), e.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), e.BYTE = new RegExp(i, "g"), e.NUMERIC = new RegExp(n, "g"), e.ALPHANUMERIC = new RegExp(E, "g");
12
+ const c = new RegExp("^" + u + "$"), g = new RegExp("^" + n + "$"), A = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
13
+ return e.testKanji = function(t) {
14
+ return c.test(t);
15
+ }, e.testNumeric = function(t) {
16
+ return g.test(t);
17
+ }, e.testAlphanumeric = function(t) {
18
+ return A.test(t);
19
+ }, e;
20
+ }
2
21
  export {
3
- r as __module
22
+ R as __require
4
23
  };
5
24
  //# sourceMappingURL=index135.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index135.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index135.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js"],"sourcesContent":["const numeric = '[0-9]+'\nconst alphanumeric = '[A-Z $%*+\\\\-./:]+'\nlet kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +\n '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +\n '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +\n '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'\nkanji = kanji.replace(/u/g, '\\\\u')\n\nconst byte = '(?:(?![A-Z0-9 $%*+\\\\-./:]|' + kanji + ')(?:.|[\\r\\n]))+'\n\nexports.KANJI = new RegExp(kanji, 'g')\nexports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\\\-./:]+', 'g')\nexports.BYTE = new RegExp(byte, 'g')\nexports.NUMERIC = new RegExp(numeric, 'g')\nexports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')\n\nconst TEST_KANJI = new RegExp('^' + kanji + '$')\nconst TEST_NUMERIC = new RegExp('^' + numeric + '$')\nconst TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\\\-./:]+$')\n\nexports.testKanji = function testKanji (str) {\n return TEST_KANJI.test(str)\n}\n\nexports.testNumeric = function testNumeric (str) {\n return TEST_NUMERIC.test(str)\n}\n\nexports.testAlphanumeric = function testAlphanumeric (str) {\n return TEST_ALPHANUMERIC.test(str)\n}\n"],"names":["numeric","alphanumeric","kanji","byte","regex","TEST_KANJI","TEST_NUMERIC","TEST_ALPHANUMERIC","str"],"mappings":";;;;;AAAA,QAAMA,IAAU,UACVC,IAAe;AACrB,MAAIC,IAAQ;AAIZ,EAAAA,IAAQA,EAAM,QAAQ,MAAM,KAAK;AAEjC,QAAMC,IAAO,+BAA+BD,IAAQ;AAAA;AAEpD,EAAAE,EAAA,QAAgB,IAAI,OAAOF,GAAO,GAAG,GACrCE,EAAA,aAAqB,IAAI,OAAO,yBAAyB,GAAG,GAC5DA,EAAA,OAAe,IAAI,OAAOD,GAAM,GAAG,GACnCC,EAAA,UAAkB,IAAI,OAAOJ,GAAS,GAAG,GACzCI,EAAA,eAAuB,IAAI,OAAOH,GAAc,GAAG;AAEnD,QAAMI,IAAa,IAAI,OAAO,MAAMH,IAAQ,GAAG,GACzCI,IAAe,IAAI,OAAO,MAAMN,IAAU,GAAG,GAC7CO,IAAoB,IAAI,OAAO,wBAAwB;AAE7D,SAAAH,EAAA,YAAoB,SAAoBI,GAAK;AAC3C,WAAOH,EAAW,KAAKG,CAAG;AAAA,EAC5B,GAEAJ,EAAA,cAAsB,SAAsBI,GAAK;AAC/C,WAAOF,EAAa,KAAKE,CAAG;AAAA,EAC9B,GAEAJ,EAAA,mBAA2B,SAA2BI,GAAK;AACzD,WAAOD,EAAkB,KAAKC,CAAG;AAAA,EACnC;;","x_google_ignoreList":[0]}
package/dist/index137.js CHANGED
@@ -1,5 +1,27 @@
1
- var a = {};
1
+ import { __require as h } from "./index119.js";
2
+ var u, s;
3
+ function c() {
4
+ if (s) return u;
5
+ s = 1;
6
+ const g = h();
7
+ function t(i) {
8
+ this.mode = g.NUMERIC, this.data = i.toString();
9
+ }
10
+ return t.getBitsLength = function(e) {
11
+ return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
12
+ }, t.prototype.getLength = function() {
13
+ return this.data.length;
14
+ }, t.prototype.getBitsLength = function() {
15
+ return t.getBitsLength(this.data.length);
16
+ }, t.prototype.write = function(e) {
17
+ let r, n, a;
18
+ for (r = 0; r + 3 <= this.data.length; r += 3)
19
+ n = this.data.substr(r, 3), a = parseInt(n, 10), e.put(a, 10);
20
+ const o = this.data.length - r;
21
+ o > 0 && (n = this.data.substr(r), a = parseInt(n, 10), e.put(a, o * 3 + 1));
22
+ }, u = t, u;
23
+ }
2
24
  export {
3
- a as __exports
25
+ c as __require
4
26
  };
5
27
  //# sourceMappingURL=index137.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index137.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index137.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js"],"sourcesContent":["const Mode = require('./mode')\n\nfunction NumericData (data) {\n this.mode = Mode.NUMERIC\n this.data = data.toString()\n}\n\nNumericData.getBitsLength = function getBitsLength (length) {\n return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)\n}\n\nNumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nNumericData.prototype.getBitsLength = function getBitsLength () {\n return NumericData.getBitsLength(this.data.length)\n}\n\nNumericData.prototype.write = function write (bitBuffer) {\n let i, group, value\n\n // The input data string is divided into groups of three digits,\n // and each group is converted to its 10-bit binary equivalent.\n for (i = 0; i + 3 <= this.data.length; i += 3) {\n group = this.data.substr(i, 3)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, 10)\n }\n\n // If the number of input digits is not an exact multiple of three,\n // the final one or two digits are converted to 4 or 7 bits respectively.\n const remainingNum = this.data.length - i\n if (remainingNum > 0) {\n group = this.data.substr(i)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, remainingNum * 3 + 1)\n }\n}\n\nmodule.exports = NumericData\n"],"names":["Mode","require$$0","NumericData","data","length","bitBuffer","i","group","value","remainingNum","numericData"],"mappings":";;;;;AAAA,QAAMA,IAAOC,EAAA;AAEb,WAASC,EAAaC,GAAM;AAC1B,SAAK,OAAOH,EAAK,SACjB,KAAK,OAAOG,EAAK,SAAQ;AAAA,EAC3B;AAEA,SAAAD,EAAY,gBAAgB,SAAwBE,GAAQ;AAC1D,WAAO,KAAK,KAAK,MAAMA,IAAS,CAAC,KAAMA,IAAS,IAAOA,IAAS,IAAK,IAAI,IAAK;AAAA,EAChF,GAEAF,EAAY,UAAU,YAAY,WAAsB;AACtD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAY,UAAU,gBAAgB,WAA0B;AAC9D,WAAOA,EAAY,cAAc,KAAK,KAAK,MAAM;AAAA,EACnD,GAEAA,EAAY,UAAU,QAAQ,SAAgBG,GAAW;AACvD,QAAIC,GAAGC,GAAOC;AAId,SAAKF,IAAI,GAAGA,IAAI,KAAK,KAAK,KAAK,QAAQA,KAAK;AAC1C,MAAAC,IAAQ,KAAK,KAAK,OAAOD,GAAG,CAAC,GAC7BE,IAAQ,SAASD,GAAO,EAAE,GAE1BF,EAAU,IAAIG,GAAO,EAAE;AAKzB,UAAMC,IAAe,KAAK,KAAK,SAASH;AACxC,IAAIG,IAAe,MACjBF,IAAQ,KAAK,KAAK,OAAOD,CAAC,GAC1BE,IAAQ,SAASD,GAAO,EAAE,GAE1BF,EAAU,IAAIG,GAAOC,IAAe,IAAI,CAAC;AAAA,EAE7C,GAEAC,IAAiBR;;","x_google_ignoreList":[0]}
package/dist/index138.js CHANGED
@@ -1,7 +1,74 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ import { __require as s } from "./index119.js";
2
+ var r, o;
3
+ function d() {
4
+ if (o) return r;
5
+ o = 1;
6
+ const u = s(), n = [
7
+ "0",
8
+ "1",
9
+ "2",
10
+ "3",
11
+ "4",
12
+ "5",
13
+ "6",
14
+ "7",
15
+ "8",
16
+ "9",
17
+ "A",
18
+ "B",
19
+ "C",
20
+ "D",
21
+ "E",
22
+ "F",
23
+ "G",
24
+ "H",
25
+ "I",
26
+ "J",
27
+ "K",
28
+ "L",
29
+ "M",
30
+ "N",
31
+ "O",
32
+ "P",
33
+ "Q",
34
+ "R",
35
+ "S",
36
+ "T",
37
+ "U",
38
+ "V",
39
+ "W",
40
+ "X",
41
+ "Y",
42
+ "Z",
43
+ " ",
44
+ "$",
45
+ "%",
46
+ "*",
47
+ "+",
48
+ "-",
49
+ ".",
50
+ "/",
51
+ ":"
52
+ ];
53
+ function t(i) {
54
+ this.mode = u.ALPHANUMERIC, this.data = i;
55
+ }
56
+ return t.getBitsLength = function(a) {
57
+ return 11 * Math.floor(a / 2) + 6 * (a % 2);
58
+ }, t.prototype.getLength = function() {
59
+ return this.data.length;
60
+ }, t.prototype.getBitsLength = function() {
61
+ return t.getBitsLength(this.data.length);
62
+ }, t.prototype.write = function(a) {
63
+ let e;
64
+ for (e = 0; e + 2 <= this.data.length; e += 2) {
65
+ let h = n.indexOf(this.data[e]) * 45;
66
+ h += n.indexOf(this.data[e + 1]), a.put(h, 11);
67
+ }
68
+ this.data.length % 2 && a.put(n.indexOf(this.data[e]), 6);
69
+ }, r = t, r;
3
70
  }
4
71
  export {
5
- e as getDefaultExportFromCjs
72
+ d as __require
6
73
  };
7
74
  //# sourceMappingURL=index138.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index138.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index138.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js"],"sourcesContent":["const Mode = require('./mode')\n\n/**\n * Array of characters available in alphanumeric mode\n *\n * As per QR Code specification, to each character\n * is assigned a value from 0 to 44 which in this case coincides\n * with the array index\n *\n * @type {Array}\n */\nconst ALPHA_NUM_CHARS = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',\n 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',\n ' ', '$', '%', '*', '+', '-', '.', '/', ':'\n]\n\nfunction AlphanumericData (data) {\n this.mode = Mode.ALPHANUMERIC\n this.data = data\n}\n\nAlphanumericData.getBitsLength = function getBitsLength (length) {\n return 11 * Math.floor(length / 2) + 6 * (length % 2)\n}\n\nAlphanumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nAlphanumericData.prototype.getBitsLength = function getBitsLength () {\n return AlphanumericData.getBitsLength(this.data.length)\n}\n\nAlphanumericData.prototype.write = function write (bitBuffer) {\n let i\n\n // Input data characters are divided into groups of two characters\n // and encoded as 11-bit binary codes.\n for (i = 0; i + 2 <= this.data.length; i += 2) {\n // The character value of the first character is multiplied by 45\n let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45\n\n // The character value of the second digit is added to the product\n value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])\n\n // The sum is then stored as 11-bit binary number\n bitBuffer.put(value, 11)\n }\n\n // If the number of input data characters is not a multiple of two,\n // the character value of the final character is encoded as a 6-bit binary number.\n if (this.data.length % 2) {\n bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)\n }\n}\n\nmodule.exports = AlphanumericData\n"],"names":["Mode","require$$0","ALPHA_NUM_CHARS","AlphanumericData","data","length","bitBuffer","i","value","alphanumericData"],"mappings":";;;;;AAAA,QAAMA,IAAOC,EAAA,GAWPC,IAAkB;AAAA,IACtB;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAC7C;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAC5D;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAC5D;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,IAAK;AAAA,EAC1C;AAEA,WAASC,EAAkBC,GAAM;AAC/B,SAAK,OAAOJ,EAAK,cACjB,KAAK,OAAOI;AAAA,EACd;AAEA,SAAAD,EAAiB,gBAAgB,SAAwBE,GAAQ;AAC/D,WAAO,KAAK,KAAK,MAAMA,IAAS,CAAC,IAAI,KAAKA,IAAS;AAAA,EACrD,GAEAF,EAAiB,UAAU,YAAY,WAAsB;AAC3D,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAiB,UAAU,gBAAgB,WAA0B;AACnE,WAAOA,EAAiB,cAAc,KAAK,KAAK,MAAM;AAAA,EACxD,GAEAA,EAAiB,UAAU,QAAQ,SAAgBG,GAAW;AAC5D,QAAIC;AAIJ,SAAKA,IAAI,GAAGA,IAAI,KAAK,KAAK,KAAK,QAAQA,KAAK,GAAG;AAE7C,UAAIC,IAAQN,EAAgB,QAAQ,KAAK,KAAKK,CAAC,CAAC,IAAI;AAGpD,MAAAC,KAASN,EAAgB,QAAQ,KAAK,KAAKK,IAAI,CAAC,CAAC,GAGjDD,EAAU,IAAIE,GAAO,EAAE;AAAA,IAC3B;AAIE,IAAI,KAAK,KAAK,SAAS,KACrBF,EAAU,IAAIJ,EAAgB,QAAQ,KAAK,KAAKK,CAAC,CAAC,GAAG,CAAC;AAAA,EAE1D,GAEAE,IAAiBN;;","x_google_ignoreList":[0]}
@@ -0,0 +1,24 @@
1
+ import { __require as g } from "./index119.js";
2
+ var r, i;
3
+ function s() {
4
+ if (i) return r;
5
+ i = 1;
6
+ const o = g();
7
+ function e(t) {
8
+ this.mode = o.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
9
+ }
10
+ return e.getBitsLength = function(n) {
11
+ return n * 8;
12
+ }, e.prototype.getLength = function() {
13
+ return this.data.length;
14
+ }, e.prototype.getBitsLength = function() {
15
+ return e.getBitsLength(this.data.length);
16
+ }, e.prototype.write = function(t) {
17
+ for (let n = 0, a = this.data.length; n < a; n++)
18
+ t.put(this.data[n], 8);
19
+ }, r = e, r;
20
+ }
21
+ export {
22
+ s as __require
23
+ };
24
+ //# sourceMappingURL=index139.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index139.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js"],"sourcesContent":["const Mode = require('./mode')\n\nfunction ByteData (data) {\n this.mode = Mode.BYTE\n if (typeof (data) === 'string') {\n this.data = new TextEncoder().encode(data)\n } else {\n this.data = new Uint8Array(data)\n }\n}\n\nByteData.getBitsLength = function getBitsLength (length) {\n return length * 8\n}\n\nByteData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nByteData.prototype.getBitsLength = function getBitsLength () {\n return ByteData.getBitsLength(this.data.length)\n}\n\nByteData.prototype.write = function (bitBuffer) {\n for (let i = 0, l = this.data.length; i < l; i++) {\n bitBuffer.put(this.data[i], 8)\n }\n}\n\nmodule.exports = ByteData\n"],"names":["Mode","require$$0","ByteData","data","length","bitBuffer","i","l","byteData"],"mappings":";;;;;AAAA,QAAMA,IAAOC,EAAA;AAEb,WAASC,EAAUC,GAAM;AACvB,SAAK,OAAOH,EAAK,MACb,OAAQG,KAAU,WACpB,KAAK,OAAO,IAAI,YAAW,EAAG,OAAOA,CAAI,IAEzC,KAAK,OAAO,IAAI,WAAWA,CAAI;AAAA,EAEnC;AAEA,SAAAD,EAAS,gBAAgB,SAAwBE,GAAQ;AACvD,WAAOA,IAAS;AAAA,EAClB,GAEAF,EAAS,UAAU,YAAY,WAAsB;AACnD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAS,UAAU,gBAAgB,WAA0B;AAC3D,WAAOA,EAAS,cAAc,KAAK,KAAK,MAAM;AAAA,EAChD,GAEAA,EAAS,UAAU,QAAQ,SAAUG,GAAW;AAC9C,aAASC,IAAI,GAAGC,IAAI,KAAK,KAAK,QAAQD,IAAIC,GAAGD;AAC3C,MAAAD,EAAU,IAAI,KAAK,KAAKC,CAAC,GAAG,CAAC;AAAA,EAEjC,GAEAE,IAAiBN;;","x_google_ignoreList":[0]}
package/dist/index14.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as w } from "react/jsx-runtime";
2
2
  import { useRef as C, useState as v, useEffect as M } from "react";
3
- import O from "./index88.js";
3
+ import O from "./index99.js";
4
4
  function S(o) {
5
5
  return typeof document > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(o).trim();
6
6
  }
@@ -0,0 +1,37 @@
1
+ import { __require as u } from "./index119.js";
2
+ import { __require as h } from "./index108.js";
3
+ var a, n;
4
+ function c() {
5
+ if (n) return a;
6
+ n = 1;
7
+ const o = u(), s = h();
8
+ function r(i) {
9
+ this.mode = o.KANJI, this.data = i;
10
+ }
11
+ return r.getBitsLength = function(e) {
12
+ return e * 13;
13
+ }, r.prototype.getLength = function() {
14
+ return this.data.length;
15
+ }, r.prototype.getBitsLength = function() {
16
+ return r.getBitsLength(this.data.length);
17
+ }, r.prototype.write = function(i) {
18
+ let e;
19
+ for (e = 0; e < this.data.length; e++) {
20
+ let t = s.toSJIS(this.data[e]);
21
+ if (t >= 33088 && t <= 40956)
22
+ t -= 33088;
23
+ else if (t >= 57408 && t <= 60351)
24
+ t -= 49472;
25
+ else
26
+ throw new Error(
27
+ "Invalid SJIS character: " + this.data[e] + `
28
+ Make sure your charset is UTF-8`
29
+ );
30
+ t = (t >>> 8 & 255) * 192 + (t & 255), i.put(t, 13);
31
+ }
32
+ }, a = r, a;
33
+ }
34
+ export {
35
+ c as __require
36
+ };
37
+ //# sourceMappingURL=index140.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index140.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js"],"sourcesContent":["const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n"],"names":["Mode","require$$0","Utils","require$$1","KanjiData","data","length","bitBuffer","i","value","kanjiData"],"mappings":";;;;;;AAAA,QAAMA,IAAOC,EAAA,GACPC,IAAQC,EAAA;AAEd,WAASC,EAAWC,GAAM;AACxB,SAAK,OAAOL,EAAK,OACjB,KAAK,OAAOK;AAAA,EACd;AAEA,SAAAD,EAAU,gBAAgB,SAAwBE,GAAQ;AACxD,WAAOA,IAAS;AAAA,EAClB,GAEAF,EAAU,UAAU,YAAY,WAAsB;AACpD,WAAO,KAAK,KAAK;AAAA,EACnB,GAEAA,EAAU,UAAU,gBAAgB,WAA0B;AAC5D,WAAOA,EAAU,cAAc,KAAK,KAAK,MAAM;AAAA,EACjD,GAEAA,EAAU,UAAU,QAAQ,SAAUG,GAAW;AAC/C,QAAIC;AAKJ,SAAKA,IAAI,GAAGA,IAAI,KAAK,KAAK,QAAQA,KAAK;AACrC,UAAIC,IAAQP,EAAM,OAAO,KAAK,KAAKM,CAAC,CAAC;AAGrC,UAAIC,KAAS,SAAUA,KAAS;AAE9B,QAAAA,KAAS;AAAA,eAGAA,KAAS,SAAUA,KAAS;AAErC,QAAAA,KAAS;AAAA;AAET,cAAM,IAAI;AAAA,UACR,6BAA6B,KAAK,KAAKD,CAAC,IAAI;AAAA;AAAA,QACX;AAKrC,MAAAC,KAAWA,MAAU,IAAK,OAAQ,OAASA,IAAQ,MAGnDF,EAAU,IAAIE,GAAO,EAAE;AAAA,IAC3B;AAAA,EACA,GAEAC,IAAiBN;;","x_google_ignoreList":[0]}
@@ -0,0 +1,73 @@
1
+ import { __module as c } from "./index147.js";
2
+ var m;
3
+ function j() {
4
+ return m ? c.exports : (m = 1, (function(y) {
5
+ var u = {
6
+ single_source_shortest_paths: function(o, t, e) {
7
+ var r = {}, i = {};
8
+ i[t] = 0;
9
+ var n = u.PriorityQueue.make();
10
+ n.push(t, 0);
11
+ for (var f, p, s, h, _, d, a, v, l; !n.empty(); ) {
12
+ f = n.pop(), p = f.value, h = f.cost, _ = o[p] || {};
13
+ for (s in _)
14
+ _.hasOwnProperty(s) && (d = _[s], a = h + d, v = i[s], l = typeof i[s] > "u", (l || v > a) && (i[s] = a, n.push(s, a), r[s] = p));
15
+ }
16
+ if (typeof e < "u" && typeof i[e] > "u") {
17
+ var q = ["Could not find a path from ", t, " to ", e, "."].join("");
18
+ throw new Error(q);
19
+ }
20
+ return r;
21
+ },
22
+ extract_shortest_path_from_predecessor_list: function(o, t) {
23
+ for (var e = [], r = t; r; )
24
+ e.push(r), o[r], r = o[r];
25
+ return e.reverse(), e;
26
+ },
27
+ find_path: function(o, t, e) {
28
+ var r = u.single_source_shortest_paths(o, t, e);
29
+ return u.extract_shortest_path_from_predecessor_list(
30
+ r,
31
+ e
32
+ );
33
+ },
34
+ /**
35
+ * A very naive priority queue implementation.
36
+ */
37
+ PriorityQueue: {
38
+ make: function(o) {
39
+ var t = u.PriorityQueue, e = {}, r;
40
+ o = o || {};
41
+ for (r in t)
42
+ t.hasOwnProperty(r) && (e[r] = t[r]);
43
+ return e.queue = [], e.sorter = o.sorter || t.default_sorter, e;
44
+ },
45
+ default_sorter: function(o, t) {
46
+ return o.cost - t.cost;
47
+ },
48
+ /**
49
+ * Add a new item to the queue and ensure the highest priority element
50
+ * is at the front of the queue.
51
+ */
52
+ push: function(o, t) {
53
+ var e = { value: o, cost: t };
54
+ this.queue.push(e), this.queue.sort(this.sorter);
55
+ },
56
+ /**
57
+ * Return the highest priority element in the queue.
58
+ */
59
+ pop: function() {
60
+ return this.queue.shift();
61
+ },
62
+ empty: function() {
63
+ return this.queue.length === 0;
64
+ }
65
+ }
66
+ };
67
+ y.exports = u;
68
+ })(c), c.exports);
69
+ }
70
+ export {
71
+ j as __require
72
+ };
73
+ //# sourceMappingURL=index141.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index141.js","sources":["../../../node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js"],"sourcesContent":["'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n"],"names":["dijkstra","graph","s","d","predecessors","costs","open","closest","u","v","cost_of_s_to_u","adjacent_nodes","cost_of_e","cost_of_s_to_u_plus_cost_of_e","cost_of_s_to_v","first_visit","msg","nodes","opts","T","t","key","a","b","value","cost","item","module"],"mappings":";;;;AAuBA,QAAIA,IAAW;AAAA,MACb,8BAA8B,SAASC,GAAOC,GAAGC,GAAG;AAGlD,YAAIC,IAAe,CAAA,GAIfC,IAAQ,CAAA;AACZ,QAAAA,EAAMH,CAAC,IAAI;AAMX,YAAII,IAAON,EAAS,cAAc,KAAI;AACtC,QAAAM,EAAK,KAAKJ,GAAG,CAAC;AAUd,iBARIK,GACAC,GAAGC,GACHC,GACAC,GACAC,GACAC,GACAC,GACAC,GACG,CAACT,EAAK,WAAS;AAGpB,UAAAC,IAAUD,EAAK,IAAG,GAClBE,IAAID,EAAQ,OACZG,IAAiBH,EAAQ,MAGzBI,IAAiBV,EAAMO,CAAC,KAAK,CAAA;AAK7B,eAAKC,KAAKE;AACR,YAAIA,EAAe,eAAeF,CAAC,MAEjCG,IAAYD,EAAeF,CAAC,GAK5BI,IAAgCH,IAAiBE,GAMjDE,IAAiBT,EAAMI,CAAC,GACxBM,IAAe,OAAOV,EAAMI,CAAC,IAAM,MAC/BM,KAAeD,IAAiBD,OAClCR,EAAMI,CAAC,IAAII,GACXP,EAAK,KAAKG,GAAGI,CAA6B,GAC1CT,EAAaK,CAAC,IAAID;AAAA,QAI9B;AAEI,YAAI,OAAOL,IAAM,OAAe,OAAOE,EAAMF,CAAC,IAAM,KAAa;AAC/D,cAAIa,IAAM,CAAC,+BAA+Bd,GAAG,QAAQC,GAAG,GAAG,EAAE,KAAK,EAAE;AACpE,gBAAM,IAAI,MAAMa,CAAG;AAAA,QACzB;AAEI,eAAOZ;AAAA,MACX;AAAA,MAEE,6CAA6C,SAASA,GAAcD,GAAG;AAIrE,iBAHIc,IAAQ,CAAA,GACRT,IAAIL,GAEDK;AACL,UAAAS,EAAM,KAAKT,CAAC,GACEJ,EAAaI,CAAC,GAC5BA,IAAIJ,EAAaI,CAAC;AAEpB,eAAAS,EAAM,QAAO,GACNA;AAAA,MACX;AAAA,MAEE,WAAW,SAAShB,GAAOC,GAAGC,GAAG;AAC/B,YAAIC,IAAeJ,EAAS,6BAA6BC,GAAOC,GAAGC,CAAC;AACpE,eAAOH,EAAS;AAAA,UACdI;AAAA,UAAcD;AAAA,QAAC;AAAA,MACrB;AAAA;AAAA;AAAA;AAAA,MAKE,eAAe;AAAA,QACb,MAAM,SAAUe,GAAM;AACpB,cAAIC,IAAInB,EAAS,eACboB,IAAI,CAAA,GACJC;AACJ,UAAAH,IAAOA,KAAQ,CAAA;AACf,eAAKG,KAAOF;AACV,YAAIA,EAAE,eAAeE,CAAG,MACtBD,EAAEC,CAAG,IAAIF,EAAEE,CAAG;AAGlB,iBAAAD,EAAE,QAAQ,CAAA,GACVA,EAAE,SAASF,EAAK,UAAUC,EAAE,gBACrBC;AAAA,QACb;AAAA,QAEI,gBAAgB,SAAUE,GAAGC,GAAG;AAC9B,iBAAOD,EAAE,OAAOC,EAAE;AAAA,QACxB;AAAA;AAAA;AAAA;AAAA;AAAA,QAMI,MAAM,SAAUC,GAAOC,GAAM;AAC3B,cAAIC,IAAO,EAAC,OAAOF,GAAO,MAAMC,EAAI;AACpC,eAAK,MAAM,KAAKC,CAAI,GACpB,KAAK,MAAM,KAAK,KAAK,MAAM;AAAA,QACjC;AAAA;AAAA;AAAA;AAAA,QAKI,KAAK,WAAY;AACf,iBAAO,KAAK,MAAM,MAAK;AAAA,QAC7B;AAAA,QAEI,OAAO,WAAY;AACjB,iBAAO,KAAK,MAAM,WAAW;AAAA,QACnC;AAAA,MACA;AAAA;AAME,IAAAC,YAAiB3B;AAAA;;","x_google_ignoreList":[0]}
@@ -0,0 +1,5 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
5
+ //# sourceMappingURL=index142.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index142.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
5
+ //# sourceMappingURL=index143.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index143.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,25 @@
1
+ import { __exports as t } from "./index148.js";
2
+ var u;
3
+ function f() {
4
+ if (u) return t;
5
+ u = 1;
6
+ const i = new Uint8Array(512), n = new Uint8Array(256);
7
+ return (function() {
8
+ let r = 1;
9
+ for (let e = 0; e < 255; e++)
10
+ i[e] = r, n[r] = e, r <<= 1, r & 256 && (r ^= 285);
11
+ for (let e = 255; e < 512; e++)
12
+ i[e] = i[e - 255];
13
+ })(), t.log = function(r) {
14
+ if (r < 1) throw new Error("log(" + r + ")");
15
+ return n[r];
16
+ }, t.exp = function(r) {
17
+ return i[r];
18
+ }, t.mul = function(r, e) {
19
+ return r === 0 || e === 0 ? 0 : i[n[r] + n[e]];
20
+ }, t;
21
+ }
22
+ export {
23
+ f as __require
24
+ };
25
+ //# sourceMappingURL=index144.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index144.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js"],"sourcesContent":["const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n"],"names":["EXP_TABLE","LOG_TABLE","x","i","galoisField","n","y"],"mappings":";;;;;AAAA,QAAMA,IAAY,IAAI,WAAW,GAAG,GAC9BC,IAAY,IAAI,WAAW,GAAG;AASnC,UAAC,WAAuB;AACvB,QAAIC,IAAI;AACR,aAASC,IAAI,GAAGA,IAAI,KAAKA;AACvB,MAAAH,EAAUG,CAAC,IAAID,GACfD,EAAUC,CAAC,IAAIC,GAEfD,MAAM,GAIFA,IAAI,QACNA,KAAK;AAQT,aAASC,IAAI,KAAKA,IAAI,KAAKA;AACzB,MAAAH,EAAUG,CAAC,IAAIH,EAAUG,IAAI,GAAG;AAAA,EAEpC,GAAC,GAQDC,EAAA,MAAc,SAAcC,GAAG;AAC7B,QAAIA,IAAI,EAAG,OAAM,IAAI,MAAM,SAASA,IAAI,GAAG;AAC3C,WAAOJ,EAAUI,CAAC;AAAA,EACpB,GAQAD,EAAA,MAAc,SAAcC,GAAG;AAC7B,WAAOL,EAAUK,CAAC;AAAA,EACpB,GASAD,EAAA,MAAc,SAAcF,GAAGI,GAAG;AAChC,WAAIJ,MAAM,KAAKI,MAAM,IAAU,IAIxBN,EAAUC,EAAUC,CAAC,IAAID,EAAUK,CAAC,CAAC;AAAA,EAC9C;;","x_google_ignoreList":[0]}
@@ -0,0 +1,5 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
5
+ //# sourceMappingURL=index145.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index145.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
5
+ //# sourceMappingURL=index146.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index146.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ var r = { exports: {} };
2
+ export {
3
+ r as __module
4
+ };
5
+ //# sourceMappingURL=index147.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index147.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,5 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
5
+ //# sourceMappingURL=index148.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index148.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}