@xiping/react-components 1.0.16 → 1.0.19

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 (109) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  2. package/dist/cjs/_virtual/alignment-pattern.js +1 -0
  3. package/dist/cjs/_virtual/browser.js +1 -0
  4. package/dist/cjs/_virtual/browser2.js +1 -0
  5. package/dist/cjs/_virtual/canvas.js +1 -0
  6. package/dist/cjs/_virtual/dijkstra.js +1 -0
  7. package/dist/cjs/_virtual/error-correction-code.js +1 -0
  8. package/dist/cjs/_virtual/error-correction-level.js +1 -0
  9. package/dist/cjs/_virtual/finder-pattern.js +1 -0
  10. package/dist/cjs/_virtual/format-info.js +1 -0
  11. package/dist/cjs/_virtual/galois-field.js +1 -0
  12. package/dist/cjs/_virtual/mask-pattern.js +1 -0
  13. package/dist/cjs/_virtual/mode.js +1 -0
  14. package/dist/cjs/_virtual/polynomial.js +1 -0
  15. package/dist/cjs/_virtual/qrcode.js +1 -0
  16. package/dist/cjs/_virtual/regex.js +1 -0
  17. package/dist/cjs/_virtual/segments.js +1 -0
  18. package/dist/cjs/_virtual/svg-tag.js +1 -0
  19. package/dist/cjs/_virtual/utils.js +1 -0
  20. package/dist/cjs/_virtual/utils2.js +1 -0
  21. package/dist/cjs/_virtual/version-check.js +1 -0
  22. package/dist/cjs/_virtual/version.js +1 -0
  23. package/dist/cjs/components/qr-code/index.js +1 -0
  24. package/dist/cjs/components/react-force-graph-3d/index.d.ts +2 -0
  25. package/dist/cjs/index.d.ts +2 -0
  26. package/dist/cjs/index.js +1 -1
  27. package/dist/cjs/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +1 -0
  28. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +1 -0
  29. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +1 -0
  30. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +1 -0
  31. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +1 -0
  32. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +1 -0
  33. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +1 -0
  34. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +1 -0
  35. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +1 -0
  36. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +1 -0
  37. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +1 -0
  38. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +1 -0
  39. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +1 -0
  40. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +2 -0
  41. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +1 -0
  42. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +1 -0
  43. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +1 -0
  44. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +1 -0
  45. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +4 -0
  46. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +1 -0
  47. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +2 -0
  48. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +2 -0
  49. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -0
  50. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +1 -0
  51. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +1 -0
  52. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +1 -0
  53. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +2 -0
  54. package/dist/cjs/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -0
  55. package/dist/es/_virtual/_commonjsHelpers.js +6 -0
  56. package/dist/es/_virtual/alignment-pattern.js +4 -0
  57. package/dist/es/_virtual/browser.js +7 -0
  58. package/dist/es/_virtual/browser2.js +4 -0
  59. package/dist/es/_virtual/canvas.js +4 -0
  60. package/dist/es/_virtual/dijkstra.js +4 -0
  61. package/dist/es/_virtual/error-correction-code.js +4 -0
  62. package/dist/es/_virtual/error-correction-level.js +4 -0
  63. package/dist/es/_virtual/finder-pattern.js +4 -0
  64. package/dist/es/_virtual/format-info.js +4 -0
  65. package/dist/es/_virtual/galois-field.js +4 -0
  66. package/dist/es/_virtual/mask-pattern.js +4 -0
  67. package/dist/es/_virtual/mode.js +4 -0
  68. package/dist/es/_virtual/polynomial.js +4 -0
  69. package/dist/es/_virtual/qrcode.js +4 -0
  70. package/dist/es/_virtual/regex.js +4 -0
  71. package/dist/es/_virtual/segments.js +4 -0
  72. package/dist/es/_virtual/svg-tag.js +4 -0
  73. package/dist/es/_virtual/utils.js +4 -0
  74. package/dist/es/_virtual/utils2.js +4 -0
  75. package/dist/es/_virtual/version-check.js +4 -0
  76. package/dist/es/_virtual/version.js +4 -0
  77. package/dist/es/components/qr-code/index.js +49 -0
  78. package/dist/es/components/react-force-graph-3d/index.d.ts +2 -0
  79. package/dist/es/index.d.ts +2 -0
  80. package/dist/es/index.js +22 -20
  81. package/dist/es/node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js +72 -0
  82. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js +44 -0
  83. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js +9 -0
  84. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js +26 -0
  85. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  86. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js +28 -0
  87. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js +23 -0
  88. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js +23 -0
  89. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js +362 -0
  90. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js +41 -0
  91. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
  92. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js +18 -0
  93. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js +24 -0
  94. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js +36 -0
  95. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js +102 -0
  96. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js +68 -0
  97. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  98. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js +34 -0
  99. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js +154 -0
  100. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js +27 -0
  101. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js +23 -0
  102. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js +146 -0
  103. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +74 -0
  104. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js +10 -0
  105. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js +75 -0
  106. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js +32 -0
  107. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js +32 -0
  108. package/dist/es/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +58 -0
  109. package/package.json +5 -4
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.js"),r=require("../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js");var o=r.__require();const t=e.getDefaultExportFromCjs(o);exports.default=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("react/jsx-runtime"),R=require("../../_virtual/browser.js"),i=require("react"),v=({value:l,size:c=128,fgColor:n="#000000",bgColor:u="#FFFFFF",level:a="M",marginSize:h=4,imageSettings:o})=>{const f=i.useRef(null);return i.useEffect(()=>{const d=f.current;if(!d)return;const p={errorCorrectionLevel:a,margin:h,color:{dark:n,light:u},width:c};R.default.toCanvas(d,l,p,s=>{if(s){console.error(s);return}if(o){const r=d.getContext("2d");if(!r)return;r.imageSmoothingEnabled=!0,r.imageSmoothingQuality=o.imageQuality||"high";const t=new Image;t.crossOrigin=o.crossOrigin||"anonymous",t.onload=()=>{const e=o.x??(c-o.width)/2,y=o.y??(c-o.height)/2;o.opacity!==void 0&&o.opacity!==1&&(r.save(),r.globalAlpha=o.opacity),o.excavate&&(r.fillStyle=u,r.fillRect(e,y,o.width,o.height)),r.drawImage(t,e,y,o.width,o.height),o.opacity!==void 0&&o.opacity!==1&&r.restore()},t.onerror=e=>{console.error("Failed to load QR code image:",e)},t.src=o.src}})},[l,c,n,u,a,h,o]),w.jsx("canvas",{ref:f,width:c,height:c})};exports.QRCode=v;exports.default=v;
@@ -0,0 +1,2 @@
1
+ import { default as ForceGraph3D } from 'react-force-graph-3d';
2
+ export default ForceGraph3D;
@@ -10,3 +10,5 @@ export * from './components/image-compare';
10
10
  export * from './components/dock';
11
11
  export * from './components/txt-editor';
12
12
  export * from './components/message';
13
+ export * from './components/qr-code';
14
+ export * from './components/react-force-graph-3d';
package/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const t=require("./components/button/Button.js"),r=require("./components/txt-reader/TxtReader.js"),n=require("./components/hyper-text/index.js"),i=require("./components/typing-animation/index.js"),o=require("./components/pinch-content/PinchContent.js"),a=require("./components/image-viewer/ImageViewer.js"),u=require("./components/shimmer-button/ShimmerButton.js"),c=require("./components/image-compare/ImageCompare.js"),s=require("./components/text-animate/TextAnimate.js"),e=require("./components/dock/Duck.js"),m=require("./components/txt-editor/TxtEditor.js"),d=require("./components/message/Message.js");exports.Button=t.Button;exports.TxtReader=r.TxtReader;exports.HyperText=n.HyperText;exports.TypingAnimation=i.TypingAnimation;exports.PinchContent=o.default;exports.ImageViewer=a.default;exports.ShimmerButton=u.ShimmerButton;exports.ImageCompare=c.default;exports.TextAnimate=s.TextAnimate;exports.Dock=e.Dock;exports.DockIcon=e.DockIcon;exports.dockVariants=e.dockVariants;exports.TxtEditor=m.TxtEditor;exports.Message=d.Message;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const t=require("./components/button/Button.js"),r=require("./components/txt-reader/TxtReader.js"),n=require("./components/hyper-text/index.js"),o=require("./components/typing-animation/index.js"),i=require("./components/qr-code/index.js"),u=require("./components/pinch-content/PinchContent.js"),a=require("./components/image-viewer/ImageViewer.js"),c=require("./components/shimmer-button/ShimmerButton.js"),s=require("./components/image-compare/ImageCompare.js"),d=require("./components/text-animate/TextAnimate.js"),e=require("./components/dock/Duck.js"),m=require("./components/txt-editor/TxtEditor.js"),q=require("./components/message/Message.js");exports.Button=t.Button;exports.TxtReader=r.TxtReader;exports.HyperText=n.HyperText;exports.TypingAnimation=o.TypingAnimation;exports.QRCode=i.QRCode;exports.PinchContent=u.default;exports.ImageViewer=a.default;exports.ShimmerButton=c.ShimmerButton;exports.ImageCompare=s.default;exports.TextAnimate=d.TextAnimate;exports.Dock=e.Dock;exports.DockIcon=e.DockIcon;exports.dockVariants=e.dockVariants;exports.TxtEditor=m.TxtEditor;exports.Message=q.Message;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../../_virtual/dijkstra.js");var y;function j(){return y||(y=1,function(m){var u={single_source_shortest_paths:function(o,t,e){var r={},i={};i[t]=0;var n=u.PriorityQueue.make();n.push(t,0);for(var f,c,s,h,_,d,a,l,v;!n.empty();){f=n.pop(),c=f.value,h=f.cost,_=o[c]||{};for(s in _)_.hasOwnProperty(s)&&(d=_[s],a=h+d,l=i[s],v=typeof i[s]>"u",(v||l>a)&&(i[s]=a,n.push(s,a),r[s]=c))}if(typeof e<"u"&&typeof i[e]>"u"){var q=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(q)}return r},extract_shortest_path_from_predecessor_list:function(o,t){for(var e=[],r=t;r;)e.push(r),o[r],r=o[r];return e.reverse(),e},find_path:function(o,t,e){var r=u.single_source_shortest_paths(o,t,e);return u.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(o){var t=u.PriorityQueue,e={},r;o=o||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=o.sorter||t.default_sorter,e},default_sorter:function(o,t){return o.cost-t.cost},push:function(o,t){var e={value:o,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};m.exports=u}(p.__module)),p.__module.exports}exports.__require=j;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../../../_virtual/browser2.js"),C=require("./can-promise.js"),h=require("./core/qrcode.js"),y=require("./renderer/canvas.js"),R=require("./renderer/svg-tag.js");var g;function T(){if(g)return t.__exports;g=1;const q=C.__require(),s=h.__require(),l=y.__require(),w=R.__require();function f(d,e,r,n,o){const a=[].slice.call(arguments,1),i=a.length,c=typeof a[i-1]=="function";if(!c&&!q())throw new Error("Callback required as last argument");if(c){if(i<2)throw new Error("Too few arguments provided");i===2?(o=r,r=e,e=n=void 0):i===3&&(e.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(r=e,e=n=void 0):i===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(u,m){try{const _=s.create(r,n);u(d(_,e,n))}catch(_){m(_)}})}try{const u=s.create(r,n);o(null,d(u,e,n))}catch(u){o(u)}}return t.__exports.create=s.create,t.__exports.toCanvas=f.bind(null,l.render),t.__exports.toDataURL=f.bind(null,l.renderToDataURL),t.__exports.toString=f.bind(null,function(d,e,r){return w.render(d,r)}),t.__exports}exports.__require=T;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,r;function o(){return r||(r=1,e=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),e}exports.__require=o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../../../../_virtual/alignment-pattern.js"),f=require("./utils.js");var c;function a(){return c||(c=1,function(s){const l=f.__require().getSymbolSize;s.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=l(r),n=o===145?26:Math.ceil((o-13)/(2*i-2))*2,t=[o-7];for(let e=1;e<i-1;e++)t[e]=t[e-1]-n;return t.push(6),t.reverse()},s.getPositions=function(r){const i=[],o=s.getRowColCoords(r),n=o.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)t===0&&e===0||t===0&&e===n-1||t===n-1&&e===0||i.push([o[t],o[e]]);return i}}(u.__exports)),u.__exports}exports.__require=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./mode.js");var r,o;function g(){if(o)return r;o=1;const u=s.__require(),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function t(i){this.mode=u.ALPHANUMERIC,this.data=i}return t.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let e;for(e=0;e+2<=this.data.length;e+=2){let h=a.indexOf(this.data[e])*45;h+=a.indexOf(this.data[e+1]),n.put(h,11)}this.data.length%2&&n.put(a.indexOf(this.data[e]),6)},r=t,r}exports.__require=g;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i,u;function n(){if(u)return i;u=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let f=0;f<t;f++)this.putBit((e>>>t-f-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},i=r,i}exports.__require=n;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n,s;function u(){if(s)return n;s=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,i,o){const a=t*this.size+r;this.data[a]=i,o&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,i){this.data[t*this.size+r]^=i},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},n=e,n}exports.__require=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./mode.js");var r,i;function u(){if(i)return r;i=1;const o=g.__require();function e(t){this.mode=o.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}return e.getBitsLength=function(n){return n*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let n=0,a=this.data.length;n<a;n++)t.put(this.data[n],8)},r=e,r}exports.__require=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../../../../_virtual/error-correction-code.js"),C=require("./error-correction-level.js");var c;function a(){if(c)return u.__exports;c=1;const r=C.__require(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return u.__exports.getBlocksCount=function(e,n){switch(n){case r.L:return t[(e-1)*4+0];case r.M:return t[(e-1)*4+1];case r.Q:return t[(e-1)*4+2];case r.H:return t[(e-1)*4+3];default:return}},u.__exports.getTotalCodewordsCount=function(e,n){switch(n){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}},u.__exports}exports.__require=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../../_virtual/error-correction-level.js");var n;function u(){return n||(n=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},r.from=function(e,c){if(r.isValid(e))return e;try{return o(e)}catch{return c}}}(i.__exports)),i.__exports}exports.__require=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../../_virtual/finder-pattern.js"),s=require("./utils.js");var i;function u(){if(i)return e.__exports;i=1;const n=s.__require().getSymbolSize,t=7;return e.__exports.getPositions=function(o){const r=n(o);return[[0,0],[r-t,0],[0,r-t]]},e.__exports}exports.__require=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../../../_virtual/format-info.js"),g=require("./utils.js");var s;function a(){if(s)return r.__exports;s=1;const e=g.__require(),i=1335,u=21522,o=e.getBCHDigit(i);return r.__exports.getEncodedBits=function(c,_){const n=c.bit<<3|_;let t=n<<10;for(;e.getBCHDigit(t)-o>=0;)t^=i<<e.getBCHDigit(t)-o;return(n<<10|t)^u},r.__exports}exports.__require=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../../../_virtual/galois-field.js");var u;function l(){if(u)return i.__exports;u=1;const t=new Uint8Array(512),o=new Uint8Array(256);return function(){let r=1;for(let e=0;e<255;e++)t[e]=r,o[r]=e,r<<=1,r&256&&(r^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),i.__exports.log=function(r){if(r<1)throw new Error("log("+r+")");return o[r]},i.__exports.exp=function(r){return t[r]},i.__exports.mul=function(r,e){return r===0||e===0?0:t[o[r]+o[e]]},i.__exports}exports.__require=l;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./mode.js"),h=require("./utils.js");var n,a;function g(){if(a)return n;a=1;const o=u.__require(),s=h.__require();function r(i){this.mode=o.KANJI,this.data=i}return r.getBitsLength=function(e){return e*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(i){let e;for(e=0;e<this.data.length;e++){let t=s.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
2
+ Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),i.put(t,13)}},n=r,n}exports.__require=g;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../../../../../../../_virtual/mask-pattern.js");var T;function y(){return T||(T=1,function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const P={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const l=t.size;let s=0,n=0,e=0,o=null,i=null;for(let c=0;c<l;c++){n=e=0,o=i=null;for(let f=0;f<l;f++){let a=t.get(c,f);a===o?n++:(n>=5&&(s+=P.N1+(n-5)),o=a,n=1),a=t.get(f,c),a===i?e++:(e>=5&&(s+=P.N1+(e-5)),i=a,e=1)}n>=5&&(s+=P.N1+(n-5)),e>=5&&(s+=P.N1+(e-5))}return s},r.getPenaltyN2=function(t){const l=t.size;let s=0;for(let n=0;n<l-1;n++)for(let e=0;e<l-1;e++){const o=t.get(n,e)+t.get(n,e+1)+t.get(n+1,e)+t.get(n+1,e+1);(o===4||o===0)&&s++}return s*P.N2},r.getPenaltyN3=function(t){const l=t.size;let s=0,n=0,e=0;for(let o=0;o<l;o++){n=e=0;for(let i=0;i<l;i++)n=n<<1&2047|t.get(o,i),i>=10&&(n===1488||n===93)&&s++,e=e<<1&2047|t.get(i,o),i>=10&&(e===1488||e===93)&&s++}return s*P.N3},r.getPenaltyN4=function(t){let l=0;const s=t.data.length;for(let e=0;e<s;e++)l+=t.data[e];return Math.abs(Math.ceil(l*100/s/5)-10)*P.N4};function g(u,t,l){switch(u){case r.Patterns.PATTERN000:return(t+l)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return l%3===0;case r.Patterns.PATTERN011:return(t+l)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(l/3))%2===0;case r.Patterns.PATTERN101:return t*l%2+t*l%3===0;case r.Patterns.PATTERN110:return(t*l%2+t*l%3)%2===0;case r.Patterns.PATTERN111:return(t*l%3+(t+l)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}r.applyMask=function(t,l){const s=l.size;for(let n=0;n<s;n++)for(let e=0;e<s;e++)l.isReserved(e,n)||l.xor(e,n,g(t,e,n))},r.getBestMask=function(t,l){const s=Object.keys(r.Patterns).length;let n=0,e=1/0;for(let o=0;o<s;o++){l(o),r.applyMask(o,t);const i=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(o,t),i<e&&(e=i,n=o)}return n}}(N.__exports)),N.__exports}exports.__require=y;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../../../../_virtual/mode.js"),f=require("./version-check.js"),s=require("./regex.js");var u;function l(){return u||(u=1,function(i){const a=f.__require(),n=s.__require();i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(r,e){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!a.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?r.ccBits[0]:e<27?r.ccBits[1]:r.ccBits[2]},i.getBestModeForData=function(r){return n.testNumeric(r)?i.NUMERIC:n.testAlphanumeric(r)?i.ALPHANUMERIC:n.testKanji(r)?i.KANJI:i.BYTE},i.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},i.isValid=function(r){return r&&r.bit&&r.ccBits};function o(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+t)}}i.from=function(r,e){if(i.isValid(r))return r;try{return o(r)}catch{return e}}}(c.__exports)),c.__exports}exports.__require=l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./mode.js");var u,s;function c(){if(s)return u;s=1;const g=h.__require();function t(i){this.mode=g.NUMERIC,this.data=i.toString()}return t.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(e){let r,n,a;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),a=parseInt(n,10),e.put(a,10);const o=this.data.length-r;o>0&&(n=this.data.substr(r),a=parseInt(n,10),e.put(a,o*3+1))},u=t,u}exports.__require=c;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../../../_virtual/polynomial.js"),g=require("./galois-field.js");var c;function m(){return c||(c=1,function(o){const u=g.__require();o.mul=function(l,n){const e=new Uint8Array(l.length+n.length-1);for(let r=0;r<l.length;r++)for(let t=0;t<n.length;t++)e[r+t]^=u.mul(l[r],n[t]);return e},o.mod=function(l,n){let e=new Uint8Array(l);for(;e.length-n.length>=0;){const r=e[0];for(let i=0;i<n.length;i++)e[i]^=u.mul(n[i],r);let t=0;for(;t<e.length&&e[t]===0;)t++;e=e.slice(t)}return e},o.generateECPolynomial=function(l){let n=new Uint8Array([1]);for(let e=0;e<l;e++)n=o.mul(n,new Uint8Array([1,u.exp(e)]));return n}}(f.__exports)),f.__exports}exports.__require=m;
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("../../../../../../../_virtual/qrcode.js"),Y=require("./utils.js"),Z=require("./error-correction-level.js"),$=require("./bit-buffer.js"),x=require("./bit-matrix.js"),v=require("./alignment-pattern.js"),ee=require("./finder-pattern.js"),te=require("./mask-pattern.js"),oe=require("./error-correction-code.js"),re=require("./reed-solomon-encoder.js"),ne=require("./version.js"),se=require("./format-info.js"),ie=require("./mode.js"),ce=require("./segments.js");var P;function ue(){if(P)return M.__exports;P=1;const w=Y.__require(),h=Z.__require(),k=$.__require(),A=x.__require(),F=v.__require(),D=ee.__require(),C=te.__require(),b=oe.__require(),V=re.__require(),_=ne.__require(),G=se.__require(),R=ie.__require(),m=ce.__require();function Q(r,c){const n=r.size,e=D.getPositions(c);for(let u=0;u<e.length;u++){const t=e[u][0],o=e[u][1];for(let i=-1;i<=7;i++)if(!(t+i<=-1||n<=t+i))for(let s=-1;s<=7;s++)o+s<=-1||n<=o+s||(i>=0&&i<=6&&(s===0||s===6)||s>=0&&s<=6&&(i===0||i===6)||i>=2&&i<=4&&s>=2&&s<=4?r.set(t+i,o+s,!0,!0):r.set(t+i,o+s,!1,!0))}}function J(r){const c=r.size;for(let n=8;n<c-8;n++){const e=n%2===0;r.set(n,6,e,!0),r.set(6,n,e,!0)}}function N(r,c){const n=F.getPositions(c);for(let e=0;e<n.length;e++){const u=n[e][0],t=n[e][1];for(let o=-2;o<=2;o++)for(let i=-2;i<=2;i++)o===-2||o===2||i===-2||i===2||o===0&&i===0?r.set(u+o,t+i,!0,!0):r.set(u+o,t+i,!1,!0)}}function U(r,c){const n=r.size,e=_.getEncodedBits(c);let u,t,o;for(let i=0;i<18;i++)u=Math.floor(i/3),t=i%3+n-8-3,o=(e>>i&1)===1,r.set(u,t,o,!0),r.set(t,u,o,!0)}function p(r,c,n){const e=r.size,u=G.getEncodedBits(c,n);let t,o;for(t=0;t<15;t++)o=(u>>t&1)===1,t<6?r.set(t,8,o,!0):t<8?r.set(t+1,8,o,!0):r.set(e-15+t,8,o,!0),t<8?r.set(8,e-t-1,o,!0):t<9?r.set(8,15-t-1+1,o,!0):r.set(8,15-t-1,o,!0);r.set(e-8,8,1,!0)}function j(r,c){const n=r.size;let e=-1,u=n-1,t=7,o=0;for(let i=n-1;i>0;i-=2)for(i===6&&i--;;){for(let s=0;s<2;s++)if(!r.isReserved(u,i-s)){let d=!1;o<c.length&&(d=(c[o]>>>t&1)===1),r.set(u,i-s,d),t--,t===-1&&(o++,t=7)}if(u+=e,u<0||n<=u){u-=e,e=-e;break}}}function L(r,c,n){const e=new k;n.forEach(function(s){e.put(s.mode.bit,4),e.put(s.getLength(),R.getCharCountIndicator(s.mode,r)),s.write(e)});const u=w.getSymbolTotalCodewords(r),t=b.getTotalCodewordsCount(r,c),o=(u-t)*8;for(e.getLengthInBits()+4<=o&&e.put(0,4);e.getLengthInBits()%8!==0;)e.putBit(0);const i=(o-e.getLengthInBits())/8;for(let s=0;s<i;s++)e.put(s%2?17:236,8);return O(e,r,c)}function O(r,c,n){const e=w.getSymbolTotalCodewords(c),u=b.getTotalCodewordsCount(c,n),t=e-u,o=b.getBlocksCount(c,n),i=e%o,s=o-i,d=Math.floor(e/o),g=Math.floor(t/o),K=g+1,T=d-g,W=new V(T);let S=0;const q=new Array(o),z=new Array(o);let y=0;const X=new Uint8Array(r.buffer);for(let a=0;a<o;a++){const B=a<s?g:K;q[a]=X.slice(S,S+B),z[a]=W.encode(q[a]),S+=B,y=Math.max(y,B)}const I=new Uint8Array(e);let E=0,f,l;for(f=0;f<y;f++)for(l=0;l<o;l++)f<q[l].length&&(I[E++]=q[l][f]);for(f=0;f<T;f++)for(l=0;l<o;l++)I[E++]=z[l][f];return I}function H(r,c,n,e){let u;if(Array.isArray(r))u=m.fromArray(r);else if(typeof r=="string"){let d=c;if(!d){const g=m.rawSplit(r);d=_.getBestVersionForData(g,n)}u=m.fromString(r,d||40)}else throw new Error("Invalid data");const t=_.getBestVersionForData(u,n);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(!c)c=t;else if(c<t)throw new Error(`
2
+ The chosen QR Code version cannot contain this amount of data.
3
+ Minimum version required to store current data is: `+t+`.
4
+ `);const o=L(c,n,u),i=w.getSymbolSize(c),s=new A(i);return Q(s,c),J(s),N(s,c),p(s,n,0),c>=7&&U(s,c),j(s,o),isNaN(e)&&(e=C.getBestMask(s,p.bind(null,s,n))),C.applyMask(e,s),p(s,n,e),{modules:s,version:c,errorCorrectionLevel:n,maskPattern:e,segments:u}}return M.__exports.create=function(c,n){if(typeof c>"u"||c==="")throw new Error("No input text");let e=h.M,u,t;return typeof n<"u"&&(e=h.from(n.errorCorrectionLevel,h.M),u=_.from(n.version),t=C.from(n.maskPattern),n.toSJISFunc&&w.setToSJISFunction(n.toSJISFunc)),H(c,u,e,t)},M.__exports}exports.__require=ue;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./polynomial.js");var o,c;function u(){if(c)return o;c=1;const r=a.__require();function n(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return n.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const d=new Uint8Array(e.length+this.degree);d.set(e);const t=r.mod(d,this.genPoly),s=this.degree-t.length;if(s>0){const l=new Uint8Array(this.degree);return l.set(t,s),l}return t},o=n,o}exports.__require=u;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../../_virtual/regex.js");var s;function c(){if(s)return e.__exports;s=1;const r="[0-9]+",_="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
2
+ ]))+`;e.__exports.KANJI=new RegExp(u,"g"),e.__exports.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.__exports.BYTE=new RegExp(o,"g"),e.__exports.NUMERIC=new RegExp(r,"g"),e.__exports.ALPHANUMERIC=new RegExp(_,"g");const p=new RegExp("^"+u+"$"),i=new RegExp("^"+r+"$"),x=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return e.__exports.testKanji=function(t){return p.test(t)},e.__exports.testNumeric=function(t){return i.test(t)},e.__exports.testAlphanumeric=function(t){return x.test(t)},e.__exports}exports.__require=c;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("../../../../../../../_virtual/segments.js"),Y=require("./mode.js"),y=require("./numeric-data.js"),K=require("./alphanumeric-data.js"),L=require("./byte-data.js"),j=require("./kanji-data.js"),D=require("./regex.js"),k=require("./utils.js"),J=require("../../../../../dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js");var M;function P(){return M||(M=1,function(c){const r=Y.__require(),N=y.__require(),I=K.__require(),B=L.__require(),S=j.__require(),h=D.__require(),p=k.__require(),R=J.__require();function q(n){return unescape(encodeURIComponent(n)).length}function m(n,o,t){const e=[];let s;for(;(s=n.exec(t))!==null;)e.push({data:s[0],index:s.index,mode:o,length:s[0].length});return e}function b(n){const o=m(h.NUMERIC,r.NUMERIC,n),t=m(h.ALPHANUMERIC,r.ALPHANUMERIC,n);let e,s;return p.isKanjiModeEnabled()?(e=m(h.BYTE,r.BYTE,n),s=m(h.KANJI,r.KANJI,n)):(e=m(h.BYTE_KANJI,r.BYTE,n),s=[]),o.concat(t,e,s).sort(function(u,g){return u.index-g.index}).map(function(u){return{data:u.data,mode:u.mode,length:u.length}})}function E(n,o){switch(o){case r.NUMERIC:return N.getBitsLength(n);case r.ALPHANUMERIC:return I.getBitsLength(n);case r.KANJI:return S.getBitsLength(n);case r.BYTE:return B.getBitsLength(n)}}function T(n){return n.reduce(function(o,t){const e=o.length-1>=0?o[o.length-1]:null;return e&&e.mode===t.mode?(o[o.length-1].data+=t.data,o):(o.push(t),o)},[])}function w(n){const o=[];for(let t=0;t<n.length;t++){const e=n[t];switch(e.mode){case r.NUMERIC:o.push([e,{data:e.data,mode:r.ALPHANUMERIC,length:e.length},{data:e.data,mode:r.BYTE,length:e.length}]);break;case r.ALPHANUMERIC:o.push([e,{data:e.data,mode:r.BYTE,length:e.length}]);break;case r.KANJI:o.push([e,{data:e.data,mode:r.BYTE,length:q(e.data)}]);break;case r.BYTE:o.push([{data:e.data,mode:r.BYTE,length:q(e.data)}])}}return o}function U(n,o){const t={},e={start:{}};let s=["start"];for(let i=0;i<n.length;i++){const u=n[i],g=[];for(let l=0;l<u.length;l++){const a=u[l],f=""+i+l;g.push(f),t[f]={node:a,lastCount:0},e[f]={};for(let _=0;_<s.length;_++){const d=s[_];t[d]&&t[d].node.mode===a.mode?(e[d][f]=E(t[d].lastCount+a.length,a.mode)-E(t[d].lastCount,a.mode),t[d].lastCount+=a.length):(t[d]&&(t[d].lastCount=a.length),e[d][f]=E(a.length,a.mode)+4+r.getCharCountIndicator(a.mode,o))}}s=g}for(let i=0;i<s.length;i++)e[s[i]].end=0;return{map:e,table:t}}function C(n,o){let t;const e=r.getBestModeForData(n);if(t=r.from(o,e),t!==r.BYTE&&t.bit<e.bit)throw new Error('"'+n+'" cannot be encoded with mode '+r.toString(t)+`.
2
+ Suggested mode is: `+r.toString(e));switch(t===r.KANJI&&!p.isKanjiModeEnabled()&&(t=r.BYTE),t){case r.NUMERIC:return new N(n);case r.ALPHANUMERIC:return new I(n);case r.KANJI:return new S(n);case r.BYTE:return new B(n)}}c.fromArray=function(o){return o.reduce(function(t,e){return typeof e=="string"?t.push(C(e,null)):e.data&&t.push(C(e.data,e.mode)),t},[])},c.fromString=function(o,t){const e=b(o,p.isKanjiModeEnabled()),s=w(e),i=U(s,t),u=R.find_path(i.map,"start","end"),g=[];for(let l=1;l<u.length-1;l++)g.push(i.table[u[l]].node);return c.fromArray(T(g))},c.rawSplit=function(o){return c.fromArray(b(o,p.isKanjiModeEnabled()))}}(A.__exports)),A.__exports}exports.__require=P;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../../../../_virtual/utils.js");var r;function u(){if(r)return e.__exports;r=1;let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return e.__exports.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},e.__exports.getSymbolTotalCodewords=function(t){return i[t]},e.__exports.getBCHDigit=function(o){let t=0;for(;o!==0;)t++,o>>>=1;return t},e.__exports.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');n=t},e.__exports.isKanjiModeEnabled=function(){return typeof n<"u"},e.__exports.toSJIS=function(t){return n(t)},e.__exports}exports.__require=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../../../../_virtual/version-check.js");var i;function t(){return i||(i=1,r.__exports.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),r.__exports}exports.__require=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../../../_virtual/version.js"),w=require("./utils.js"),y=require("./error-correction-code.js"),D=require("./error-correction-level.js"),I=require("./mode.js"),T=require("./version-check.js");var B;function A(){return B||(B=1,function(i){const u=w.__require(),_=y.__require(),l=D.__require(),o=I.__require(),a=T.__require(),d=7973,g=u.getBCHDigit(d);function q(n,e,t){for(let r=1;r<=40;r++)if(e<=i.getCapacity(r,t,n))return r}function C(n,e){return o.getCharCountIndicator(n,e)+4}function E(n,e){let t=0;return n.forEach(function(r){const s=C(r.mode,e);t+=s+r.getBitsLength()}),t}function M(n,e){for(let t=1;t<=40;t++)if(E(n,t)<=i.getCapacity(t,e,o.MIXED))return t}i.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},i.getCapacity=function(e,t,r){if(!a.isValid(e))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=o.BYTE);const s=u.getSymbolTotalCodewords(e),V=_.getTotalCodewordsCount(e,t),h=(s-V)*8;if(r===o.MIXED)return h;const c=h-C(r,e);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},i.getBestVersionForData=function(e,t){let r;const s=l.from(t,l.M);if(Array.isArray(e)){if(e.length>1)return M(e,s);if(e.length===0)return 1;r=e[0]}else r=e;return q(r.mode,r.getLength(),s)},i.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;u.getBCHDigit(t)-g>=0;)t^=d<<u.getBCHDigit(t)-g;return e<<12|t}}(f.__exports)),f.__exports}exports.__require=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../../../../../../_virtual/canvas.js"),h=require("./utils.js");var c;function y(){return c||(c=1,function(d){const l=h.__require();function p(u,r,e){u.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=e,r.width=e,r.style.height=e+"px",r.style.width=e+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}d.render=function(r,e,f){let t=f,n=e;typeof t>"u"&&(!e||!e.getContext)&&(t=e,e=void 0),e||(n=a()),t=l.getOptions(t);const i=l.getImageWidth(r.modules.size,t),o=n.getContext("2d"),s=o.createImageData(i,i);return l.qrToImageData(s.data,r,t),p(o,n,i),o.putImageData(s,0,0),n},d.renderToDataURL=function(r,e,f){let t=f;typeof t>"u"&&(!e||!e.getContext)&&(t=e,e=void 0),t||(t={});const n=d.render(r,e,t),i=t.type||"image/png",o=t.rendererOpts||{};return n.toDataURL(i,o.quality)}}(g.__exports)),g.__exports}exports.__require=y;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../../../../../_virtual/svg-tag.js"),_=require("./utils.js");var a;function m(){if(a)return h.__exports;a=1;const p=_.__require();function f(n,r){const i=n.a/255,e=r+'="'+n.hex+'"';return i<1?e+" "+r+'-opacity="'+i.toFixed(2).slice(1)+'"':e}function u(n,r,i){let e=n+r;return typeof i<"u"&&(e+=" "+i),e}function w(n,r,i){let e="",o=0,s=!1,c=0;for(let t=0;t<n.length;t++){const l=Math.floor(t%r),g=Math.floor(t/r);!l&&!s&&(s=!0),n[t]?(c++,t>0&&l>0&&n[t-1]||(e+=s?u("M",l+i,.5+g+i):u("m",o,0),o=0,s=!1),l+1<r&&n[t+1]||(e+=u("h",c),c=0)):o++}return e}return h.__exports.render=function(r,i,e){const o=p.getOptions(i),s=r.modules.size,c=r.modules.data,t=s+o.margin*2,l=o.color.light.a?"<path "+f(o.color.light,"fill")+' d="M0 0h'+t+"v"+t+'H0z"/>':"",g="<path "+f(o.color.dark,"stroke")+' d="'+w(c,s,o.margin)+'"/>',v='viewBox="0 0 '+t+" "+t+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+v+' shape-rendering="crispEdges">'+l+g+`</svg>
2
+ `;return typeof e=="function"&&e(null,d),d},h.__exports}exports.__require=m;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../../../../../_virtual/utils2.js");var m;function _(){return m||(m=1,function(l){function s(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let e=n.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+n);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),e.length===6&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}l.getOptions=function(e){e||(e={}),e.color||(e.color={});const r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,t=e.width&&e.width>=21?e.width:void 0,f=e.scale||4;return{width:t,scale:t?4:f,margin:r,color:{dark:s(e.color.dark||"#000000ff"),light:s(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},l.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale},l.getImageWidth=function(e,r){const t=l.getScale(e,r);return Math.floor((e+r.margin*2)*t)},l.qrToImageData=function(e,r,t){const f=r.modules.size,w=r.modules.data,d=l.getScale(f,t),g=Math.floor((f+t.margin*2)*d),a=t.margin*d,y=[t.color.light,t.color.dark];for(let i=0;i<g;i++)for(let c=0;c<g;c++){let u=(i*g+c)*4,o=t.color.light;if(i>=a&&c>=a&&i<g-a&&c<g-a){const b=Math.floor((i-a)/d),S=Math.floor((c-a)/d);o=y[w[b*f+S]?1:0]}e[u++]=o.r,e[u++]=o.g,e[u++]=o.b,e[u]=o.a}}}(h.__exports)),h.__exports}exports.__require=_;
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
4
+ export {
5
+ e as getDefaultExportFromCjs
6
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js";
3
+ var e = o();
4
+ const a = /* @__PURE__ */ r(e);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = { exports: {} };
2
+ export {
3
+ r as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,49 @@
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import F from "../../_virtual/browser.js";
3
+ import { useRef as R, useEffect as i } from "react";
4
+ const C = ({
5
+ value: l,
6
+ size: c = 128,
7
+ fgColor: n = "#000000",
8
+ bgColor: f = "#FFFFFF",
9
+ level: t = "M",
10
+ marginSize: u = 4,
11
+ imageSettings: o
12
+ }) => {
13
+ const p = R(null);
14
+ return i(() => {
15
+ const a = p.current;
16
+ if (!a) return;
17
+ const w = {
18
+ errorCorrectionLevel: t,
19
+ margin: u,
20
+ color: {
21
+ dark: n,
22
+ light: f
23
+ },
24
+ width: c
25
+ };
26
+ F.toCanvas(a, l, w, (y) => {
27
+ if (y) {
28
+ console.error(y);
29
+ return;
30
+ }
31
+ if (o) {
32
+ const r = a.getContext("2d");
33
+ if (!r) return;
34
+ r.imageSmoothingEnabled = !0, r.imageSmoothingQuality = o.imageQuality || "high";
35
+ const h = new Image();
36
+ h.crossOrigin = o.crossOrigin || "anonymous", h.onload = () => {
37
+ const d = o.x ?? (c - o.width) / 2, v = o.y ?? (c - o.height) / 2;
38
+ o.opacity !== void 0 && o.opacity !== 1 && (r.save(), r.globalAlpha = o.opacity), o.excavate && (r.fillStyle = f, r.fillRect(d, v, o.width, o.height)), r.drawImage(h, d, v, o.width, o.height), o.opacity !== void 0 && o.opacity !== 1 && r.restore();
39
+ }, h.onerror = (d) => {
40
+ console.error("Failed to load QR code image:", d);
41
+ }, h.src = o.src;
42
+ }
43
+ });
44
+ }, [l, c, n, f, t, u, o]), /* @__PURE__ */ x("canvas", { ref: p, width: c, height: c });
45
+ };
46
+ export {
47
+ C as QRCode,
48
+ C as default
49
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ForceGraph3D } from 'react-force-graph-3d';
2
+ export default ForceGraph3D;
@@ -10,3 +10,5 @@ export * from './components/image-compare';
10
10
  export * from './components/dock';
11
11
  export * from './components/txt-editor';
12
12
  export * from './components/message';
13
+ export * from './components/qr-code';
14
+ export * from './components/react-force-graph-3d';
package/dist/es/index.js CHANGED
@@ -1,29 +1,31 @@
1
1
  /* empty css */
2
2
  import { Button as t } from "./components/button/Button.js";
3
3
  import { TxtReader as p } from "./components/txt-reader/TxtReader.js";
4
- import { HyperText as a } from "./components/hyper-text/index.js";
4
+ import { HyperText as f } from "./components/hyper-text/index.js";
5
5
  import { TypingAnimation as n } from "./components/typing-animation/index.js";
6
- import { default as d } from "./components/pinch-content/PinchContent.js";
7
- import { default as c } from "./components/image-viewer/ImageViewer.js";
8
- import { ShimmerButton as T } from "./components/shimmer-button/ShimmerButton.js";
9
- import { default as k } from "./components/image-compare/ImageCompare.js";
10
- import { TextAnimate as I } from "./components/text-animate/TextAnimate.js";
11
- import { Dock as y, DockIcon as A, dockVariants as B } from "./components/dock/Duck.js";
12
- import { TxtEditor as D } from "./components/txt-editor/TxtEditor.js";
13
- import { Message as w } from "./components/message/Message.js";
6
+ import { QRCode as d } from "./components/qr-code/index.js";
7
+ import { default as c } from "./components/pinch-content/PinchContent.js";
8
+ import { default as T } from "./components/image-viewer/ImageViewer.js";
9
+ import { ShimmerButton as k } from "./components/shimmer-button/ShimmerButton.js";
10
+ import { default as C } from "./components/image-compare/ImageCompare.js";
11
+ import { TextAnimate as h } from "./components/text-animate/TextAnimate.js";
12
+ import { Dock as A, DockIcon as B, dockVariants as D } from "./components/dock/Duck.js";
13
+ import { TxtEditor as V } from "./components/txt-editor/TxtEditor.js";
14
+ import { Message as E } from "./components/message/Message.js";
14
15
  export {
15
16
  t as Button,
16
- y as Dock,
17
- A as DockIcon,
18
- a as HyperText,
19
- k as ImageCompare,
20
- c as ImageViewer,
21
- w as Message,
22
- d as PinchContent,
23
- T as ShimmerButton,
24
- I as TextAnimate,
25
- D as TxtEditor,
17
+ A as Dock,
18
+ B as DockIcon,
19
+ f as HyperText,
20
+ C as ImageCompare,
21
+ T as ImageViewer,
22
+ E as Message,
23
+ c as PinchContent,
24
+ d as QRCode,
25
+ k as ShimmerButton,
26
+ h as TextAnimate,
27
+ V as TxtEditor,
26
28
  p as TxtReader,
27
29
  n as TypingAnimation,
28
- B as dockVariants
30
+ D as dockVariants
29
31
  };
@@ -0,0 +1,72 @@
1
+ import { __module as c } from "../../../../../_virtual/dijkstra.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
+ };