@hexpro/qr-code-studio 0.0.0-stage → 0.1.1

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 (1341) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/LICENSE +21 -0
  3. package/README.md +62 -2
  4. package/dist/app/bulk.d.ts +21 -0
  5. package/dist/app/bulk.d.ts.map +1 -0
  6. package/dist/app/bulk.js +564 -0
  7. package/dist/app/bulk.js.map +1 -0
  8. package/dist/app/check.d.ts +23 -0
  9. package/dist/app/check.d.ts.map +1 -0
  10. package/dist/app/check.js +306 -0
  11. package/dist/app/check.js.map +1 -0
  12. package/dist/app/content.d.ts +19 -0
  13. package/dist/app/content.d.ts.map +1 -0
  14. package/dist/app/content.js +634 -0
  15. package/dist/app/content.js.map +1 -0
  16. package/dist/app/context.d.ts +25 -0
  17. package/dist/app/context.d.ts.map +1 -0
  18. package/dist/app/context.js +11 -0
  19. package/dist/app/context.js.map +1 -0
  20. package/dist/app/controls.d.ts +95 -0
  21. package/dist/app/controls.d.ts.map +1 -0
  22. package/dist/app/controls.js +278 -0
  23. package/dist/app/controls.js.map +1 -0
  24. package/dist/app/design-panels.d.ts +27 -0
  25. package/dist/app/design-panels.d.ts.map +1 -0
  26. package/dist/app/design-panels.js +1196 -0
  27. package/dist/app/design-panels.js.map +1 -0
  28. package/dist/app/dom.d.ts +74 -0
  29. package/dist/app/dom.d.ts.map +1 -0
  30. package/dist/app/dom.js +129 -0
  31. package/dist/app/dom.js.map +1 -0
  32. package/dist/app/images.d.ts +22 -0
  33. package/dist/app/images.d.ts.map +1 -0
  34. package/dist/app/images.js +50 -0
  35. package/dist/app/images.js.map +1 -0
  36. package/dist/app/library-view.d.ts +24 -0
  37. package/dist/app/library-view.d.ts.map +1 -0
  38. package/dist/app/library-view.js +260 -0
  39. package/dist/app/library-view.js.map +1 -0
  40. package/dist/app/main.d.ts +17 -0
  41. package/dist/app/main.d.ts.map +1 -0
  42. package/dist/app/main.js +518 -0
  43. package/dist/app/main.js.map +1 -0
  44. package/dist/app/measure.d.ts +26 -0
  45. package/dist/app/measure.d.ts.map +1 -0
  46. package/dist/app/measure.js +53 -0
  47. package/dist/app/measure.js.map +1 -0
  48. package/dist/app/proof.d.ts +30 -0
  49. package/dist/app/proof.d.ts.map +1 -0
  50. package/dist/app/proof.js +378 -0
  51. package/dist/app/proof.js.map +1 -0
  52. package/dist/app/save.d.ts +27 -0
  53. package/dist/app/save.d.ts.map +1 -0
  54. package/dist/app/save.js +331 -0
  55. package/dist/app/save.js.map +1 -0
  56. package/dist/app/scan.d.ts +25 -0
  57. package/dist/app/scan.d.ts.map +1 -0
  58. package/dist/app/scan.js +421 -0
  59. package/dist/app/scan.js.map +1 -0
  60. package/dist/app/shortcuts.d.ts +12 -0
  61. package/dist/app/shortcuts.d.ts.map +1 -0
  62. package/dist/app/shortcuts.js +17 -0
  63. package/dist/app/shortcuts.js.map +1 -0
  64. package/dist/app/text.d.ts +22 -0
  65. package/dist/app/text.d.ts.map +1 -0
  66. package/dist/app/text.js +50 -0
  67. package/dist/app/text.js.map +1 -0
  68. package/dist/batch/csv.d.ts +56 -0
  69. package/dist/batch/csv.d.ts.map +1 -0
  70. package/dist/batch/csv.js +327 -0
  71. package/dist/batch/csv.js.map +1 -0
  72. package/dist/batch/errors.d.ts +60 -0
  73. package/dist/batch/errors.d.ts.map +1 -0
  74. package/dist/batch/errors.js +60 -0
  75. package/dist/batch/errors.js.map +1 -0
  76. package/dist/batch/filename.d.ts +65 -0
  77. package/dist/batch/filename.d.ts.map +1 -0
  78. package/dist/batch/filename.js +205 -0
  79. package/dist/batch/filename.js.map +1 -0
  80. package/dist/batch/index.d.ts +17 -0
  81. package/dist/batch/index.d.ts.map +1 -0
  82. package/dist/batch/index.js +11 -0
  83. package/dist/batch/index.js.map +1 -0
  84. package/dist/batch/issues.d.ts +45 -0
  85. package/dist/batch/issues.d.ts.map +1 -0
  86. package/dist/batch/issues.js +47 -0
  87. package/dist/batch/issues.js.map +1 -0
  88. package/dist/batch/manifest.d.ts +43 -0
  89. package/dist/batch/manifest.d.ts.map +1 -0
  90. package/dist/batch/manifest.js +82 -0
  91. package/dist/batch/manifest.js.map +1 -0
  92. package/dist/batch/plan.d.ts +33 -0
  93. package/dist/batch/plan.d.ts.map +1 -0
  94. package/dist/batch/plan.js +254 -0
  95. package/dist/batch/plan.js.map +1 -0
  96. package/dist/batch/run.d.ts +68 -0
  97. package/dist/batch/run.d.ts.map +1 -0
  98. package/dist/batch/run.js +548 -0
  99. package/dist/batch/run.js.map +1 -0
  100. package/dist/batch/template.d.ts +54 -0
  101. package/dist/batch/template.d.ts.map +1 -0
  102. package/dist/batch/template.js +119 -0
  103. package/dist/batch/template.js.map +1 -0
  104. package/dist/batch/text-decoding.d.ts +49 -0
  105. package/dist/batch/text-decoding.d.ts.map +1 -0
  106. package/dist/batch/text-decoding.js +160 -0
  107. package/dist/batch/text-decoding.js.map +1 -0
  108. package/dist/batch/types.d.ts +240 -0
  109. package/dist/batch/types.d.ts.map +1 -0
  110. package/dist/batch/types.js +35 -0
  111. package/dist/batch/types.js.map +1 -0
  112. package/dist/batch/verify.d.ts +45 -0
  113. package/dist/batch/verify.d.ts.map +1 -0
  114. package/dist/batch/verify.js +72 -0
  115. package/dist/batch/verify.js.map +1 -0
  116. package/dist/batch/zip.d.ts +39 -0
  117. package/dist/batch/zip.d.ts.map +1 -0
  118. package/dist/batch/zip.js +201 -0
  119. package/dist/batch/zip.js.map +1 -0
  120. package/dist/conformance/finder.d.ts +67 -0
  121. package/dist/conformance/finder.d.ts.map +1 -0
  122. package/dist/conformance/finder.js +125 -0
  123. package/dist/conformance/finder.js.map +1 -0
  124. package/dist/conformance/frame.d.ts +28 -0
  125. package/dist/conformance/frame.d.ts.map +1 -0
  126. package/dist/conformance/frame.js +134 -0
  127. package/dist/conformance/frame.js.map +1 -0
  128. package/dist/conformance/index.d.ts +15 -0
  129. package/dist/conformance/index.d.ts.map +1 -0
  130. package/dist/conformance/index.js +8 -0
  131. package/dist/conformance/index.js.map +1 -0
  132. package/dist/conformance/module-shape.d.ts +35 -0
  133. package/dist/conformance/module-shape.d.ts.map +1 -0
  134. package/dist/conformance/module-shape.js +139 -0
  135. package/dist/conformance/module-shape.js.map +1 -0
  136. package/dist/conformance/payload-type.d.ts +48 -0
  137. package/dist/conformance/payload-type.d.ts.map +1 -0
  138. package/dist/conformance/payload-type.js +113 -0
  139. package/dist/conformance/payload-type.js.map +1 -0
  140. package/dist/conformance/preset.d.ts +37 -0
  141. package/dist/conformance/preset.d.ts.map +1 -0
  142. package/dist/conformance/preset.js +171 -0
  143. package/dist/conformance/preset.js.map +1 -0
  144. package/dist/conformance/region-captures.d.ts +41 -0
  145. package/dist/conformance/region-captures.d.ts.map +1 -0
  146. package/dist/conformance/region-captures.js +69 -0
  147. package/dist/conformance/region-captures.js.map +1 -0
  148. package/dist/conformance/region-shape.d.ts +43 -0
  149. package/dist/conformance/region-shape.d.ts.map +1 -0
  150. package/dist/conformance/region-shape.js +214 -0
  151. package/dist/conformance/region-shape.js.map +1 -0
  152. package/dist/conformance/sample.d.ts +13 -0
  153. package/dist/conformance/sample.d.ts.map +1 -0
  154. package/dist/conformance/sample.js +75 -0
  155. package/dist/conformance/sample.js.map +1 -0
  156. package/dist/conformance/types.d.ts +16 -0
  157. package/dist/conformance/types.d.ts.map +1 -0
  158. package/dist/conformance/types.js +10 -0
  159. package/dist/conformance/types.js.map +1 -0
  160. package/dist/core/bch.d.ts +36 -0
  161. package/dist/core/bch.d.ts.map +1 -0
  162. package/dist/core/bch.js +92 -0
  163. package/dist/core/bch.js.map +1 -0
  164. package/dist/core/bit-matrix.d.ts +56 -0
  165. package/dist/core/bit-matrix.d.ts.map +1 -0
  166. package/dist/core/bit-matrix.js +150 -0
  167. package/dist/core/bit-matrix.js.map +1 -0
  168. package/dist/core/bits.d.ts +53 -0
  169. package/dist/core/bits.d.ts.map +1 -0
  170. package/dist/core/bits.js +128 -0
  171. package/dist/core/bits.js.map +1 -0
  172. package/dist/core/checksums.d.ts +22 -0
  173. package/dist/core/checksums.d.ts.map +1 -0
  174. package/dist/core/checksums.js +64 -0
  175. package/dist/core/checksums.js.map +1 -0
  176. package/dist/core/deflate.d.ts +51 -0
  177. package/dist/core/deflate.d.ts.map +1 -0
  178. package/dist/core/deflate.js +851 -0
  179. package/dist/core/deflate.js.map +1 -0
  180. package/dist/core/errors.d.ts +123 -0
  181. package/dist/core/errors.d.ts.map +1 -0
  182. package/dist/core/errors.js +168 -0
  183. package/dist/core/errors.js.map +1 -0
  184. package/dist/core/field.d.ts +58 -0
  185. package/dist/core/field.d.ts.map +1 -0
  186. package/dist/core/field.js +184 -0
  187. package/dist/core/field.js.map +1 -0
  188. package/dist/core/huffman.d.ts +31 -0
  189. package/dist/core/huffman.d.ts.map +1 -0
  190. package/dist/core/huffman.js +131 -0
  191. package/dist/core/huffman.js.map +1 -0
  192. package/dist/core/image.d.ts +18 -0
  193. package/dist/core/image.d.ts.map +1 -0
  194. package/dist/core/image.js +2 -0
  195. package/dist/core/image.js.map +1 -0
  196. package/dist/core/index.d.ts +25 -0
  197. package/dist/core/index.d.ts.map +1 -0
  198. package/dist/core/index.js +15 -0
  199. package/dist/core/index.js.map +1 -0
  200. package/dist/core/issue.d.ts +39 -0
  201. package/dist/core/issue.d.ts.map +1 -0
  202. package/dist/core/issue.js +24 -0
  203. package/dist/core/issue.js.map +1 -0
  204. package/dist/core/math.d.ts +56 -0
  205. package/dist/core/math.d.ts.map +1 -0
  206. package/dist/core/math.js +609 -0
  207. package/dist/core/math.js.map +1 -0
  208. package/dist/core/prng.d.ts +27 -0
  209. package/dist/core/prng.d.ts.map +1 -0
  210. package/dist/core/prng.js +111 -0
  211. package/dist/core/prng.js.map +1 -0
  212. package/dist/core/reed-solomon.d.ts +69 -0
  213. package/dist/core/reed-solomon.d.ts.map +1 -0
  214. package/dist/core/reed-solomon.js +308 -0
  215. package/dist/core/reed-solomon.js.map +1 -0
  216. package/dist/core/registry.d.ts +45 -0
  217. package/dist/core/registry.d.ts.map +1 -0
  218. package/dist/core/registry.js +80 -0
  219. package/dist/core/registry.js.map +1 -0
  220. package/dist/core/result.d.ts +33 -0
  221. package/dist/core/result.d.ts.map +1 -0
  222. package/dist/core/result.js +52 -0
  223. package/dist/core/result.js.map +1 -0
  224. package/dist/core/zip.d.ts +36 -0
  225. package/dist/core/zip.d.ts.map +1 -0
  226. package/dist/core/zip.js +234 -0
  227. package/dist/core/zip.js.map +1 -0
  228. package/dist/decode/alignment.d.ts +34 -0
  229. package/dist/decode/alignment.d.ts.map +1 -0
  230. package/dist/decode/alignment.js +179 -0
  231. package/dist/decode/alignment.js.map +1 -0
  232. package/dist/decode/binarise.d.ts +95 -0
  233. package/dist/decode/binarise.d.ts.map +1 -0
  234. package/dist/decode/binarise.js +399 -0
  235. package/dist/decode/binarise.js.map +1 -0
  236. package/dist/decode/decoder.d.ts +75 -0
  237. package/dist/decode/decoder.d.ts.map +1 -0
  238. package/dist/decode/decoder.js +773 -0
  239. package/dist/decode/decoder.js.map +1 -0
  240. package/dist/decode/erasures.d.ts +26 -0
  241. package/dist/decode/erasures.d.ts.map +1 -0
  242. package/dist/decode/erasures.js +34 -0
  243. package/dist/decode/erasures.js.map +1 -0
  244. package/dist/decode/failure.d.ts +15 -0
  245. package/dist/decode/failure.d.ts.map +1 -0
  246. package/dist/decode/failure.js +22 -0
  247. package/dist/decode/failure.js.map +1 -0
  248. package/dist/decode/finder.d.ts +114 -0
  249. package/dist/decode/finder.d.ts.map +1 -0
  250. package/dist/decode/finder.js +441 -0
  251. package/dist/decode/finder.js.map +1 -0
  252. package/dist/decode/frame.d.ts +49 -0
  253. package/dist/decode/frame.d.ts.map +1 -0
  254. package/dist/decode/frame.js +228 -0
  255. package/dist/decode/frame.js.map +1 -0
  256. package/dist/decode/grey.d.ts +87 -0
  257. package/dist/decode/grey.d.ts.map +1 -0
  258. package/dist/decode/grey.js +226 -0
  259. package/dist/decode/grey.js.map +1 -0
  260. package/dist/decode/index.d.ts +4 -0
  261. package/dist/decode/index.d.ts.map +1 -0
  262. package/dist/decode/index.js +3 -0
  263. package/dist/decode/index.js.map +1 -0
  264. package/dist/decode/locate-qr.d.ts +80 -0
  265. package/dist/decode/locate-qr.d.ts.map +1 -0
  266. package/dist/decode/locate-qr.js +295 -0
  267. package/dist/decode/locate-qr.js.map +1 -0
  268. package/dist/decode/locate-single.d.ts +47 -0
  269. package/dist/decode/locate-single.d.ts.map +1 -0
  270. package/dist/decode/locate-single.js +169 -0
  271. package/dist/decode/locate-single.js.map +1 -0
  272. package/dist/decode/plain.d.ts +70 -0
  273. package/dist/decode/plain.d.ts.map +1 -0
  274. package/dist/decode/plain.js +460 -0
  275. package/dist/decode/plain.js.map +1 -0
  276. package/dist/decode/sample.d.ts +56 -0
  277. package/dist/decode/sample.d.ts.map +1 -0
  278. package/dist/decode/sample.js +154 -0
  279. package/dist/decode/sample.js.map +1 -0
  280. package/dist/decode/strict.d.ts +255 -0
  281. package/dist/decode/strict.d.ts.map +1 -0
  282. package/dist/decode/strict.js +597 -0
  283. package/dist/decode/strict.js.map +1 -0
  284. package/dist/decode/tiled.d.ts +137 -0
  285. package/dist/decode/tiled.d.ts.map +1 -0
  286. package/dist/decode/tiled.js +452 -0
  287. package/dist/decode/tiled.js.map +1 -0
  288. package/dist/decode/transform.d.ts +48 -0
  289. package/dist/decode/transform.d.ts.map +1 -0
  290. package/dist/decode/transform.js +180 -0
  291. package/dist/decode/transform.js.map +1 -0
  292. package/dist/decode/types.d.ts +163 -0
  293. package/dist/decode/types.d.ts.map +1 -0
  294. package/dist/decode/types.js +10 -0
  295. package/dist/decode/types.js.map +1 -0
  296. package/dist/design/base64.d.ts +16 -0
  297. package/dist/design/base64.d.ts.map +1 -0
  298. package/dist/design/base64.js +97 -0
  299. package/dist/design/base64.js.map +1 -0
  300. package/dist/design/canonical.d.ts +13 -0
  301. package/dist/design/canonical.d.ts.map +1 -0
  302. package/dist/design/canonical.js +100 -0
  303. package/dist/design/canonical.js.map +1 -0
  304. package/dist/design/caption.d.ts +54 -0
  305. package/dist/design/caption.d.ts.map +1 -0
  306. package/dist/design/caption.js +175 -0
  307. package/dist/design/caption.js.map +1 -0
  308. package/dist/design/catalogue/draw.d.ts +77 -0
  309. package/dist/design/catalogue/draw.d.ts.map +1 -0
  310. package/dist/design/catalogue/draw.js +260 -0
  311. package/dist/design/catalogue/draw.js.map +1 -0
  312. package/dist/design/catalogue/fills.d.ts +9 -0
  313. package/dist/design/catalogue/fills.d.ts.map +1 -0
  314. package/dist/design/catalogue/fills.js +64 -0
  315. package/dist/design/catalogue/fills.js.map +1 -0
  316. package/dist/design/catalogue/frames.d.ts +18 -0
  317. package/dist/design/catalogue/frames.d.ts.map +1 -0
  318. package/dist/design/catalogue/frames.js +451 -0
  319. package/dist/design/catalogue/frames.js.map +1 -0
  320. package/dist/design/catalogue/icons.d.ts +21 -0
  321. package/dist/design/catalogue/icons.d.ts.map +1 -0
  322. package/dist/design/catalogue/icons.js +293 -0
  323. package/dist/design/catalogue/icons.js.map +1 -0
  324. package/dist/design/catalogue/module-shapes.d.ts +21 -0
  325. package/dist/design/catalogue/module-shapes.d.ts.map +1 -0
  326. package/dist/design/catalogue/module-shapes.js +266 -0
  327. package/dist/design/catalogue/module-shapes.js.map +1 -0
  328. package/dist/design/catalogue/presets.d.ts +31 -0
  329. package/dist/design/catalogue/presets.d.ts.map +1 -0
  330. package/dist/design/catalogue/presets.js +696 -0
  331. package/dist/design/catalogue/presets.js.map +1 -0
  332. package/dist/design/catalogue/region-shapes.d.ts +41 -0
  333. package/dist/design/catalogue/region-shapes.d.ts.map +1 -0
  334. package/dist/design/catalogue/region-shapes.js +399 -0
  335. package/dist/design/catalogue/region-shapes.js.map +1 -0
  336. package/dist/design/catalogue/schema.d.ts +14 -0
  337. package/dist/design/catalogue/schema.d.ts.map +1 -0
  338. package/dist/design/catalogue/schema.js +58 -0
  339. package/dist/design/catalogue/schema.js.map +1 -0
  340. package/dist/design/constraints.d.ts +25 -0
  341. package/dist/design/constraints.d.ts.map +1 -0
  342. package/dist/design/constraints.js +194 -0
  343. package/dist/design/constraints.js.map +1 -0
  344. package/dist/design/document.d.ts +64 -0
  345. package/dist/design/document.d.ts.map +1 -0
  346. package/dist/design/document.js +66 -0
  347. package/dist/design/document.js.map +1 -0
  348. package/dist/design/finder.d.ts +79 -0
  349. package/dist/design/finder.d.ts.map +1 -0
  350. package/dist/design/finder.js +270 -0
  351. package/dist/design/finder.js.map +1 -0
  352. package/dist/design/index.d.ts +18 -0
  353. package/dist/design/index.d.ts.map +1 -0
  354. package/dist/design/index.js +15 -0
  355. package/dist/design/index.js.map +1 -0
  356. package/dist/design/link.d.ts +41 -0
  357. package/dist/design/link.d.ts.map +1 -0
  358. package/dist/design/link.js +131 -0
  359. package/dist/design/link.js.map +1 -0
  360. package/dist/design/logo.d.ts +57 -0
  361. package/dist/design/logo.d.ts.map +1 -0
  362. package/dist/design/logo.js +376 -0
  363. package/dist/design/logo.js.map +1 -0
  364. package/dist/design/migrate.d.ts +31 -0
  365. package/dist/design/migrate.d.ts.map +1 -0
  366. package/dist/design/migrate.js +87 -0
  367. package/dist/design/migrate.js.map +1 -0
  368. package/dist/design/neighbours.d.ts +24 -0
  369. package/dist/design/neighbours.d.ts.map +1 -0
  370. package/dist/design/neighbours.js +50 -0
  371. package/dist/design/neighbours.js.map +1 -0
  372. package/dist/design/paint.d.ts +47 -0
  373. package/dist/design/paint.d.ts.map +1 -0
  374. package/dist/design/paint.js +115 -0
  375. package/dist/design/paint.js.map +1 -0
  376. package/dist/design/params.d.ts +30 -0
  377. package/dist/design/params.d.ts.map +1 -0
  378. package/dist/design/params.js +85 -0
  379. package/dist/design/params.js.map +1 -0
  380. package/dist/design/preset-size.d.ts +14 -0
  381. package/dist/design/preset-size.d.ts.map +1 -0
  382. package/dist/design/preset-size.js +14 -0
  383. package/dist/design/preset-size.js.map +1 -0
  384. package/dist/design/registries.d.ts +9 -0
  385. package/dist/design/registries.d.ts.map +1 -0
  386. package/dist/design/registries.js +24 -0
  387. package/dist/design/registries.js.map +1 -0
  388. package/dist/design/scene.d.ts +38 -0
  389. package/dist/design/scene.d.ts.map +1 -0
  390. package/dist/design/scene.js +694 -0
  391. package/dist/design/scene.js.map +1 -0
  392. package/dist/design/swiss-cross.d.ts +54 -0
  393. package/dist/design/swiss-cross.d.ts.map +1 -0
  394. package/dist/design/swiss-cross.js +95 -0
  395. package/dist/design/swiss-cross.js.map +1 -0
  396. package/dist/design/types.d.ts +389 -0
  397. package/dist/design/types.d.ts.map +1 -0
  398. package/dist/design/types.js +29 -0
  399. package/dist/design/types.js.map +1 -0
  400. package/dist/design/validate.d.ts +48 -0
  401. package/dist/design/validate.d.ts.map +1 -0
  402. package/dist/design/validate.js +986 -0
  403. package/dist/design/validate.js.map +1 -0
  404. package/dist/dom/camera.d.ts +94 -0
  405. package/dist/dom/camera.d.ts.map +1 -0
  406. package/dist/dom/camera.js +288 -0
  407. package/dist/dom/camera.js.map +1 -0
  408. package/dist/dom/file-library.d.ts +297 -0
  409. package/dist/dom/file-library.d.ts.map +1 -0
  410. package/dist/dom/file-library.js +703 -0
  411. package/dist/dom/file-library.js.map +1 -0
  412. package/dist/dom/image.d.ts +77 -0
  413. package/dist/dom/image.d.ts.map +1 -0
  414. package/dist/dom/image.js +253 -0
  415. package/dist/dom/image.js.map +1 -0
  416. package/dist/dom/index.d.ts +19 -0
  417. package/dist/dom/index.d.ts.map +1 -0
  418. package/dist/dom/index.js +10 -0
  419. package/dist/dom/index.js.map +1 -0
  420. package/dist/dom/library/index.d.ts +4 -0
  421. package/dist/dom/library/index.d.ts.map +1 -0
  422. package/dist/dom/library/index.js +2 -0
  423. package/dist/dom/library/index.js.map +1 -0
  424. package/dist/dom/library/indexeddb.d.ts +71 -0
  425. package/dist/dom/library/indexeddb.d.ts.map +1 -0
  426. package/dist/dom/library/indexeddb.js +365 -0
  427. package/dist/dom/library/indexeddb.js.map +1 -0
  428. package/dist/dom/logo.d.ts +36 -0
  429. package/dist/dom/logo.d.ts.map +1 -0
  430. package/dist/dom/logo.js +99 -0
  431. package/dist/dom/logo.js.map +1 -0
  432. package/dist/dom/orientation.d.ts +32 -0
  433. package/dist/dom/orientation.d.ts.map +1 -0
  434. package/dist/dom/orientation.js +152 -0
  435. package/dist/dom/orientation.js.map +1 -0
  436. package/dist/dom/output.d.ts +58 -0
  437. package/dist/dom/output.d.ts.map +1 -0
  438. package/dist/dom/output.js +93 -0
  439. package/dist/dom/output.js.map +1 -0
  440. package/dist/dom/print.d.ts +52 -0
  441. package/dist/dom/print.d.ts.map +1 -0
  442. package/dist/dom/print.js +101 -0
  443. package/dist/dom/print.js.map +1 -0
  444. package/dist/dom/raster-encoder.d.ts +43 -0
  445. package/dist/dom/raster-encoder.d.ts.map +1 -0
  446. package/dist/dom/raster-encoder.js +102 -0
  447. package/dist/dom/raster-encoder.js.map +1 -0
  448. package/dist/dom/resample.d.ts +20 -0
  449. package/dist/dom/resample.d.ts.map +1 -0
  450. package/dist/dom/resample.js +107 -0
  451. package/dist/dom/resample.js.map +1 -0
  452. package/dist/dom/types.d.ts +54 -0
  453. package/dist/dom/types.d.ts.map +1 -0
  454. package/dist/dom/types.js +13 -0
  455. package/dist/dom/types.js.map +1 -0
  456. package/dist/encode/bitstream.d.ts +14 -0
  457. package/dist/encode/bitstream.d.ts.map +1 -0
  458. package/dist/encode/bitstream.js +31 -0
  459. package/dist/encode/bitstream.js.map +1 -0
  460. package/dist/encode/encode.d.ts +21 -0
  461. package/dist/encode/encode.d.ts.map +1 -0
  462. package/dist/encode/encode.js +65 -0
  463. package/dist/encode/encode.js.map +1 -0
  464. package/dist/encode/index.d.ts +5 -0
  465. package/dist/encode/index.d.ts.map +1 -0
  466. package/dist/encode/index.js +4 -0
  467. package/dist/encode/index.js.map +1 -0
  468. package/dist/encode/plan.d.ts +61 -0
  469. package/dist/encode/plan.d.ts.map +1 -0
  470. package/dist/encode/plan.js +177 -0
  471. package/dist/encode/plan.js.map +1 -0
  472. package/dist/encode/structured-append.d.ts +35 -0
  473. package/dist/encode/structured-append.d.ts.map +1 -0
  474. package/dist/encode/structured-append.js +153 -0
  475. package/dist/encode/structured-append.js.map +1 -0
  476. package/dist/fonts/latin.d.ts +118 -0
  477. package/dist/fonts/latin.d.ts.map +1 -0
  478. package/dist/fonts/latin.js +137 -0
  479. package/dist/fonts/latin.js.map +1 -0
  480. package/dist/geometry/flatten.d.ts +60 -0
  481. package/dist/geometry/flatten.d.ts.map +1 -0
  482. package/dist/geometry/flatten.js +177 -0
  483. package/dist/geometry/flatten.js.map +1 -0
  484. package/dist/geometry/index.d.ts +10 -0
  485. package/dist/geometry/index.d.ts.map +1 -0
  486. package/dist/geometry/index.js +6 -0
  487. package/dist/geometry/index.js.map +1 -0
  488. package/dist/geometry/matrix.d.ts +50 -0
  489. package/dist/geometry/matrix.d.ts.map +1 -0
  490. package/dist/geometry/matrix.js +113 -0
  491. package/dist/geometry/matrix.js.map +1 -0
  492. package/dist/geometry/measure.d.ts +35 -0
  493. package/dist/geometry/measure.d.ts.map +1 -0
  494. package/dist/geometry/measure.js +206 -0
  495. package/dist/geometry/measure.js.map +1 -0
  496. package/dist/geometry/path.d.ts +137 -0
  497. package/dist/geometry/path.d.ts.map +1 -0
  498. package/dist/geometry/path.js +401 -0
  499. package/dist/geometry/path.js.map +1 -0
  500. package/dist/geometry/trace.d.ts +29 -0
  501. package/dist/geometry/trace.d.ts.map +1 -0
  502. package/dist/geometry/trace.js +166 -0
  503. package/dist/geometry/trace.js.map +1 -0
  504. package/dist/index.d.ts +20 -0
  505. package/dist/index.d.ts.map +1 -0
  506. package/dist/index.js +15 -0
  507. package/dist/index.js.map +1 -0
  508. package/dist/inspect/explain.d.ts +32 -0
  509. package/dist/inspect/explain.d.ts.map +1 -0
  510. package/dist/inspect/explain.js +99 -0
  511. package/dist/inspect/explain.js.map +1 -0
  512. package/dist/inspect/gs1.d.ts +38 -0
  513. package/dist/inspect/gs1.d.ts.map +1 -0
  514. package/dist/inspect/gs1.js +130 -0
  515. package/dist/inspect/gs1.js.map +1 -0
  516. package/dist/inspect/index.d.ts +9 -0
  517. package/dist/inspect/index.d.ts.map +1 -0
  518. package/dist/inspect/index.js +6 -0
  519. package/dist/inspect/index.js.map +1 -0
  520. package/dist/inspect/inspect.d.ts +29 -0
  521. package/dist/inspect/inspect.d.ts.map +1 -0
  522. package/dist/inspect/inspect.js +98 -0
  523. package/dist/inspect/inspect.js.map +1 -0
  524. package/dist/inspect/keys.d.ts +54 -0
  525. package/dist/inspect/keys.d.ts.map +1 -0
  526. package/dist/inspect/keys.js +63 -0
  527. package/dist/inspect/keys.js.map +1 -0
  528. package/dist/inspect/sets.d.ts +27 -0
  529. package/dist/inspect/sets.d.ts.map +1 -0
  530. package/dist/inspect/sets.js +67 -0
  531. package/dist/inspect/sets.js.map +1 -0
  532. package/dist/inspect/types.d.ts +81 -0
  533. package/dist/inspect/types.d.ts.map +1 -0
  534. package/dist/inspect/types.js +16 -0
  535. package/dist/inspect/types.js.map +1 -0
  536. package/dist/messages/en/app.d.ts +11 -0
  537. package/dist/messages/en/app.d.ts.map +1 -0
  538. package/dist/messages/en/app.js +395 -0
  539. package/dist/messages/en/app.js.map +1 -0
  540. package/dist/messages/en/batch.d.ts +18 -0
  541. package/dist/messages/en/batch.d.ts.map +1 -0
  542. package/dist/messages/en/batch.js +42 -0
  543. package/dist/messages/en/batch.js.map +1 -0
  544. package/dist/messages/en/decode.d.ts +9 -0
  545. package/dist/messages/en/decode.d.ts.map +1 -0
  546. package/dist/messages/en/decode.js +21 -0
  547. package/dist/messages/en/decode.js.map +1 -0
  548. package/dist/messages/en/design.d.ts +13 -0
  549. package/dist/messages/en/design.d.ts.map +1 -0
  550. package/dist/messages/en/design.js +228 -0
  551. package/dist/messages/en/design.js.map +1 -0
  552. package/dist/messages/en/dom.d.ts +11 -0
  553. package/dist/messages/en/dom.d.ts.map +1 -0
  554. package/dist/messages/en/dom.js +14 -0
  555. package/dist/messages/en/dom.js.map +1 -0
  556. package/dist/messages/en/encode.d.ts +13 -0
  557. package/dist/messages/en/encode.d.ts.map +1 -0
  558. package/dist/messages/en/encode.js +20 -0
  559. package/dist/messages/en/encode.js.map +1 -0
  560. package/dist/messages/en/index.d.ts +48 -0
  561. package/dist/messages/en/index.d.ts.map +1 -0
  562. package/dist/messages/en/index.js +73 -0
  563. package/dist/messages/en/index.js.map +1 -0
  564. package/dist/messages/en/inspect.d.ts +13 -0
  565. package/dist/messages/en/inspect.d.ts.map +1 -0
  566. package/dist/messages/en/inspect.js +84 -0
  567. package/dist/messages/en/inspect.js.map +1 -0
  568. package/dist/messages/en/library.d.ts +12 -0
  569. package/dist/messages/en/library.d.ts.map +1 -0
  570. package/dist/messages/en/library.js +27 -0
  571. package/dist/messages/en/library.js.map +1 -0
  572. package/dist/messages/en/micro.d.ts +9 -0
  573. package/dist/messages/en/micro.d.ts.map +1 -0
  574. package/dist/messages/en/micro.js +13 -0
  575. package/dist/messages/en/micro.js.map +1 -0
  576. package/dist/messages/en/own-link.d.ts +7 -0
  577. package/dist/messages/en/own-link.d.ts.map +1 -0
  578. package/dist/messages/en/own-link.js +29 -0
  579. package/dist/messages/en/own-link.js.map +1 -0
  580. package/dist/messages/en/payload.d.ts +13 -0
  581. package/dist/messages/en/payload.d.ts.map +1 -0
  582. package/dist/messages/en/payload.js +427 -0
  583. package/dist/messages/en/payload.js.map +1 -0
  584. package/dist/messages/en/rmqr.d.ts +9 -0
  585. package/dist/messages/en/rmqr.d.ts.map +1 -0
  586. package/dist/messages/en/rmqr.js +12 -0
  587. package/dist/messages/en/rmqr.js.map +1 -0
  588. package/dist/messages/en/studio.d.ts +18 -0
  589. package/dist/messages/en/studio.d.ts.map +1 -0
  590. package/dist/messages/en/studio.js +117 -0
  591. package/dist/messages/en/studio.js.map +1 -0
  592. package/dist/messages/en/symbology.d.ts +13 -0
  593. package/dist/messages/en/symbology.d.ts.map +1 -0
  594. package/dist/messages/en/symbology.js +21 -0
  595. package/dist/messages/en/symbology.js.map +1 -0
  596. package/dist/messages/en/text.d.ts +23 -0
  597. package/dist/messages/en/text.d.ts.map +1 -0
  598. package/dist/messages/en/text.js +47 -0
  599. package/dist/messages/en/text.js.map +1 -0
  600. package/dist/messages/en/verify.d.ts +13 -0
  601. package/dist/messages/en/verify.d.ts.map +1 -0
  602. package/dist/messages/en/verify.js +117 -0
  603. package/dist/messages/en/verify.js.map +1 -0
  604. package/dist/messages/format.d.ts +30 -0
  605. package/dist/messages/format.d.ts.map +1 -0
  606. package/dist/messages/format.js +170 -0
  607. package/dist/messages/format.js.map +1 -0
  608. package/dist/own-link/index.d.ts +5 -0
  609. package/dist/own-link/index.d.ts.map +1 -0
  610. package/dist/own-link/index.js +3 -0
  611. package/dist/own-link/index.js.map +1 -0
  612. package/dist/own-link/query.d.ts +10 -0
  613. package/dist/own-link/query.d.ts.map +1 -0
  614. package/dist/own-link/query.js +33 -0
  615. package/dist/own-link/query.js.map +1 -0
  616. package/dist/own-link/redirects.d.ts +54 -0
  617. package/dist/own-link/redirects.d.ts.map +1 -0
  618. package/dist/own-link/redirects.js +271 -0
  619. package/dist/own-link/redirects.js.map +1 -0
  620. package/dist/own-link/utm.d.ts +24 -0
  621. package/dist/own-link/utm.d.ts.map +1 -0
  622. package/dist/own-link/utm.js +82 -0
  623. package/dist/own-link/utm.js.map +1 -0
  624. package/dist/payload/banking.d.ts +39 -0
  625. package/dist/payload/banking.d.ts.map +1 -0
  626. package/dist/payload/banking.js +87 -0
  627. package/dist/payload/banking.js.map +1 -0
  628. package/dist/payload/base58.d.ts +21 -0
  629. package/dist/payload/base58.d.ts.map +1 -0
  630. package/dist/payload/base58.js +75 -0
  631. package/dist/payload/base58.js.map +1 -0
  632. package/dist/payload/bech32.d.ts +59 -0
  633. package/dist/payload/bech32.d.ts.map +1 -0
  634. package/dist/payload/bech32.js +137 -0
  635. package/dist/payload/bech32.js.map +1 -0
  636. package/dist/payload/check-digits.d.ts +49 -0
  637. package/dist/payload/check-digits.d.ts.map +1 -0
  638. package/dist/payload/check-digits.js +101 -0
  639. package/dist/payload/check-digits.js.map +1 -0
  640. package/dist/payload/content/bitcoin.d.ts +34 -0
  641. package/dist/payload/content/bitcoin.d.ts.map +1 -0
  642. package/dist/payload/content/bitcoin.js +137 -0
  643. package/dist/payload/content/bitcoin.js.map +1 -0
  644. package/dist/payload/content/email.d.ts +19 -0
  645. package/dist/payload/content/email.d.ts.map +1 -0
  646. package/dist/payload/content/email.js +137 -0
  647. package/dist/payload/content/email.js.map +1 -0
  648. package/dist/payload/content/epc.d.ts +32 -0
  649. package/dist/payload/content/epc.d.ts.map +1 -0
  650. package/dist/payload/content/epc.js +160 -0
  651. package/dist/payload/content/epc.js.map +1 -0
  652. package/dist/payload/content/event.d.ts +35 -0
  653. package/dist/payload/content/event.d.ts.map +1 -0
  654. package/dist/payload/content/event.js +242 -0
  655. package/dist/payload/content/event.js.map +1 -0
  656. package/dist/payload/content/facetime.d.ts +14 -0
  657. package/dist/payload/content/facetime.d.ts.map +1 -0
  658. package/dist/payload/content/facetime.js +56 -0
  659. package/dist/payload/content/facetime.js.map +1 -0
  660. package/dist/payload/content/geo.d.ts +24 -0
  661. package/dist/payload/content/geo.d.ts.map +1 -0
  662. package/dist/payload/content/geo.js +139 -0
  663. package/dist/payload/content/geo.js.map +1 -0
  664. package/dist/payload/content/gs1-digital-link.d.ts +34 -0
  665. package/dist/payload/content/gs1-digital-link.d.ts.map +1 -0
  666. package/dist/payload/content/gs1-digital-link.js +171 -0
  667. package/dist/payload/content/gs1-digital-link.js.map +1 -0
  668. package/dist/payload/content/lightning.d.ts +22 -0
  669. package/dist/payload/content/lightning.d.ts.map +1 -0
  670. package/dist/payload/content/lightning.js +90 -0
  671. package/dist/payload/content/lightning.js.map +1 -0
  672. package/dist/payload/content/mecard.d.ts +23 -0
  673. package/dist/payload/content/mecard.d.ts.map +1 -0
  674. package/dist/payload/content/mecard.js +111 -0
  675. package/dist/payload/content/mecard.js.map +1 -0
  676. package/dist/payload/content/phone.d.ts +17 -0
  677. package/dist/payload/content/phone.d.ts.map +1 -0
  678. package/dist/payload/content/phone.js +39 -0
  679. package/dist/payload/content/phone.js.map +1 -0
  680. package/dist/payload/content/pix.d.ts +36 -0
  681. package/dist/payload/content/pix.d.ts.map +1 -0
  682. package/dist/payload/content/pix.js +191 -0
  683. package/dist/payload/content/pix.js.map +1 -0
  684. package/dist/payload/content/signal.d.ts +17 -0
  685. package/dist/payload/content/signal.d.ts.map +1 -0
  686. package/dist/payload/content/signal.js +43 -0
  687. package/dist/payload/content/signal.js.map +1 -0
  688. package/dist/payload/content/sms.d.ts +18 -0
  689. package/dist/payload/content/sms.d.ts.map +1 -0
  690. package/dist/payload/content/sms.js +64 -0
  691. package/dist/payload/content/sms.js.map +1 -0
  692. package/dist/payload/content/swiss-qr-bill.d.ts +61 -0
  693. package/dist/payload/content/swiss-qr-bill.d.ts.map +1 -0
  694. package/dist/payload/content/swiss-qr-bill.js +325 -0
  695. package/dist/payload/content/swiss-qr-bill.js.map +1 -0
  696. package/dist/payload/content/telegram.d.ts +18 -0
  697. package/dist/payload/content/telegram.d.ts.map +1 -0
  698. package/dist/payload/content/telegram.js +105 -0
  699. package/dist/payload/content/telegram.js.map +1 -0
  700. package/dist/payload/content/text.d.ts +9 -0
  701. package/dist/payload/content/text.d.ts.map +1 -0
  702. package/dist/payload/content/text.js +18 -0
  703. package/dist/payload/content/text.js.map +1 -0
  704. package/dist/payload/content/upi.d.ts +21 -0
  705. package/dist/payload/content/upi.d.ts.map +1 -0
  706. package/dist/payload/content/upi.js +89 -0
  707. package/dist/payload/content/upi.js.map +1 -0
  708. package/dist/payload/content/url.d.ts +31 -0
  709. package/dist/payload/content/url.d.ts.map +1 -0
  710. package/dist/payload/content/url.js +120 -0
  711. package/dist/payload/content/url.js.map +1 -0
  712. package/dist/payload/content/vcard.d.ts +42 -0
  713. package/dist/payload/content/vcard.d.ts.map +1 -0
  714. package/dist/payload/content/vcard.js +302 -0
  715. package/dist/payload/content/vcard.js.map +1 -0
  716. package/dist/payload/content/whatsapp.d.ts +17 -0
  717. package/dist/payload/content/whatsapp.d.ts.map +1 -0
  718. package/dist/payload/content/whatsapp.js +72 -0
  719. package/dist/payload/content/whatsapp.js.map +1 -0
  720. package/dist/payload/content/wifi.d.ts +48 -0
  721. package/dist/payload/content/wifi.d.ts.map +1 -0
  722. package/dist/payload/content/wifi.js +240 -0
  723. package/dist/payload/content/wifi.js.map +1 -0
  724. package/dist/payload/content/zatca.d.ts +35 -0
  725. package/dist/payload/content/zatca.d.ts.map +1 -0
  726. package/dist/payload/content/zatca.js +156 -0
  727. package/dist/payload/content/zatca.js.map +1 -0
  728. package/dist/payload/data/hosts.d.ts +39 -0
  729. package/dist/payload/data/hosts.d.ts.map +1 -0
  730. package/dist/payload/data/hosts.js +74 -0
  731. package/dist/payload/data/hosts.js.map +1 -0
  732. package/dist/payload/define.d.ts +57 -0
  733. package/dist/payload/define.d.ts.map +1 -0
  734. package/dist/payload/define.js +87 -0
  735. package/dist/payload/define.js.map +1 -0
  736. package/dist/payload/detect.d.ts +13 -0
  737. package/dist/payload/detect.d.ts.map +1 -0
  738. package/dist/payload/detect.js +32 -0
  739. package/dist/payload/detect.js.map +1 -0
  740. package/dist/payload/emv.d.ts +41 -0
  741. package/dist/payload/emv.d.ts.map +1 -0
  742. package/dist/payload/emv.js +73 -0
  743. package/dist/payload/emv.js.map +1 -0
  744. package/dist/payload/escape.d.ts +66 -0
  745. package/dist/payload/escape.d.ts.map +1 -0
  746. package/dist/payload/escape.js +225 -0
  747. package/dist/payload/escape.js.map +1 -0
  748. package/dist/payload/fields.d.ts +86 -0
  749. package/dist/payload/fields.d.ts.map +1 -0
  750. package/dist/payload/fields.js +368 -0
  751. package/dist/payload/fields.js.map +1 -0
  752. package/dist/payload/hash.d.ts +11 -0
  753. package/dist/payload/hash.d.ts.map +1 -0
  754. package/dist/payload/hash.js +82 -0
  755. package/dist/payload/hash.js.map +1 -0
  756. package/dist/payload/index.d.ts +58 -0
  757. package/dist/payload/index.d.ts.map +1 -0
  758. package/dist/payload/index.js +32 -0
  759. package/dist/payload/index.js.map +1 -0
  760. package/dist/payload/punycode.d.ts +18 -0
  761. package/dist/payload/punycode.d.ts.map +1 -0
  762. package/dist/payload/punycode.js +99 -0
  763. package/dist/payload/punycode.js.map +1 -0
  764. package/dist/payload/registry.d.ts +20 -0
  765. package/dist/payload/registry.d.ts.map +1 -0
  766. package/dist/payload/registry.js +64 -0
  767. package/dist/payload/registry.js.map +1 -0
  768. package/dist/payload/safety.d.ts +13 -0
  769. package/dist/payload/safety.d.ts.map +1 -0
  770. package/dist/payload/safety.js +30 -0
  771. package/dist/payload/safety.js.map +1 -0
  772. package/dist/payload/scripts.d.ts +25 -0
  773. package/dist/payload/scripts.d.ts.map +1 -0
  774. package/dist/payload/scripts.js +90 -0
  775. package/dist/payload/scripts.js.map +1 -0
  776. package/dist/payload/types.d.ts +138 -0
  777. package/dist/payload/types.d.ts.map +1 -0
  778. package/dist/payload/types.js +28 -0
  779. package/dist/payload/types.js.map +1 -0
  780. package/dist/payload/uri.d.ts +24 -0
  781. package/dist/payload/uri.d.ts.map +1 -0
  782. package/dist/payload/uri.js +69 -0
  783. package/dist/payload/uri.js.map +1 -0
  784. package/dist/payload/url-safety.d.ts +31 -0
  785. package/dist/payload/url-safety.d.ts.map +1 -0
  786. package/dist/payload/url-safety.js +221 -0
  787. package/dist/payload/url-safety.js.map +1 -0
  788. package/dist/payload/vectors/bitcoin.d.ts +13 -0
  789. package/dist/payload/vectors/bitcoin.d.ts.map +1 -0
  790. package/dist/payload/vectors/bitcoin.js +83 -0
  791. package/dist/payload/vectors/bitcoin.js.map +1 -0
  792. package/dist/payload/vectors/built-in.d.ts +15 -0
  793. package/dist/payload/vectors/built-in.d.ts.map +1 -0
  794. package/dist/payload/vectors/built-in.js +59 -0
  795. package/dist/payload/vectors/built-in.js.map +1 -0
  796. package/dist/payload/vectors/email.d.ts +8 -0
  797. package/dist/payload/vectors/email.d.ts.map +1 -0
  798. package/dist/payload/vectors/email.js +60 -0
  799. package/dist/payload/vectors/email.js.map +1 -0
  800. package/dist/payload/vectors/epc.d.ts +9 -0
  801. package/dist/payload/vectors/epc.d.ts.map +1 -0
  802. package/dist/payload/vectors/epc.js +38 -0
  803. package/dist/payload/vectors/epc.js.map +1 -0
  804. package/dist/payload/vectors/event.d.ts +9 -0
  805. package/dist/payload/vectors/event.d.ts.map +1 -0
  806. package/dist/payload/vectors/event.js +57 -0
  807. package/dist/payload/vectors/event.js.map +1 -0
  808. package/dist/payload/vectors/facetime.d.ts +9 -0
  809. package/dist/payload/vectors/facetime.d.ts.map +1 -0
  810. package/dist/payload/vectors/facetime.js +19 -0
  811. package/dist/payload/vectors/facetime.js.map +1 -0
  812. package/dist/payload/vectors/geo.d.ts +8 -0
  813. package/dist/payload/vectors/geo.d.ts.map +1 -0
  814. package/dist/payload/vectors/geo.js +22 -0
  815. package/dist/payload/vectors/geo.js.map +1 -0
  816. package/dist/payload/vectors/gs1-digital-link.d.ts +9 -0
  817. package/dist/payload/vectors/gs1-digital-link.d.ts.map +1 -0
  818. package/dist/payload/vectors/gs1-digital-link.js +21 -0
  819. package/dist/payload/vectors/gs1-digital-link.js.map +1 -0
  820. package/dist/payload/vectors/hosts.d.ts +12 -0
  821. package/dist/payload/vectors/hosts.d.ts.map +1 -0
  822. package/dist/payload/vectors/hosts.js +50 -0
  823. package/dist/payload/vectors/hosts.js.map +1 -0
  824. package/dist/payload/vectors/index.d.ts +10 -0
  825. package/dist/payload/vectors/index.d.ts.map +1 -0
  826. package/dist/payload/vectors/index.js +9 -0
  827. package/dist/payload/vectors/index.js.map +1 -0
  828. package/dist/payload/vectors/lightning.d.ts +9 -0
  829. package/dist/payload/vectors/lightning.d.ts.map +1 -0
  830. package/dist/payload/vectors/lightning.js +23 -0
  831. package/dist/payload/vectors/lightning.js.map +1 -0
  832. package/dist/payload/vectors/mecard.d.ts +9 -0
  833. package/dist/payload/vectors/mecard.d.ts.map +1 -0
  834. package/dist/payload/vectors/mecard.js +25 -0
  835. package/dist/payload/vectors/mecard.js.map +1 -0
  836. package/dist/payload/vectors/phone.d.ts +9 -0
  837. package/dist/payload/vectors/phone.d.ts.map +1 -0
  838. package/dist/payload/vectors/phone.js +13 -0
  839. package/dist/payload/vectors/phone.js.map +1 -0
  840. package/dist/payload/vectors/pix.d.ts +9 -0
  841. package/dist/payload/vectors/pix.d.ts.map +1 -0
  842. package/dist/payload/vectors/pix.js +21 -0
  843. package/dist/payload/vectors/pix.js.map +1 -0
  844. package/dist/payload/vectors/signal.d.ts +9 -0
  845. package/dist/payload/vectors/signal.d.ts.map +1 -0
  846. package/dist/payload/vectors/signal.js +14 -0
  847. package/dist/payload/vectors/signal.js.map +1 -0
  848. package/dist/payload/vectors/sms.d.ts +9 -0
  849. package/dist/payload/vectors/sms.d.ts.map +1 -0
  850. package/dist/payload/vectors/sms.js +18 -0
  851. package/dist/payload/vectors/sms.js.map +1 -0
  852. package/dist/payload/vectors/swiss-qr-bill.d.ts +9 -0
  853. package/dist/payload/vectors/swiss-qr-bill.d.ts.map +1 -0
  854. package/dist/payload/vectors/swiss-qr-bill.js +72 -0
  855. package/dist/payload/vectors/swiss-qr-bill.js.map +1 -0
  856. package/dist/payload/vectors/telegram.d.ts +9 -0
  857. package/dist/payload/vectors/telegram.d.ts.map +1 -0
  858. package/dist/payload/vectors/telegram.js +19 -0
  859. package/dist/payload/vectors/telegram.js.map +1 -0
  860. package/dist/payload/vectors/text.d.ts +9 -0
  861. package/dist/payload/vectors/text.d.ts.map +1 -0
  862. package/dist/payload/vectors/text.js +13 -0
  863. package/dist/payload/vectors/text.js.map +1 -0
  864. package/dist/payload/vectors/upi.d.ts +9 -0
  865. package/dist/payload/vectors/upi.d.ts.map +1 -0
  866. package/dist/payload/vectors/upi.js +14 -0
  867. package/dist/payload/vectors/upi.js.map +1 -0
  868. package/dist/payload/vectors/url.d.ts +8 -0
  869. package/dist/payload/vectors/url.d.ts.map +1 -0
  870. package/dist/payload/vectors/url.js +30 -0
  871. package/dist/payload/vectors/url.js.map +1 -0
  872. package/dist/payload/vectors/vcard.d.ts +9 -0
  873. package/dist/payload/vectors/vcard.d.ts.map +1 -0
  874. package/dist/payload/vectors/vcard.js +47 -0
  875. package/dist/payload/vectors/vcard.js.map +1 -0
  876. package/dist/payload/vectors/whatsapp.d.ts +9 -0
  877. package/dist/payload/vectors/whatsapp.d.ts.map +1 -0
  878. package/dist/payload/vectors/whatsapp.js +19 -0
  879. package/dist/payload/vectors/whatsapp.js.map +1 -0
  880. package/dist/payload/vectors/wifi.d.ts +13 -0
  881. package/dist/payload/vectors/wifi.d.ts.map +1 -0
  882. package/dist/payload/vectors/wifi.js +40 -0
  883. package/dist/payload/vectors/wifi.js.map +1 -0
  884. package/dist/payload/vectors/zatca.d.ts +12 -0
  885. package/dist/payload/vectors/zatca.d.ts.map +1 -0
  886. package/dist/payload/vectors/zatca.js +28 -0
  887. package/dist/payload/vectors/zatca.js.map +1 -0
  888. package/dist/qr-code-studio.html +190 -0
  889. package/dist/registries.d.ts +24 -0
  890. package/dist/registries.d.ts.map +1 -0
  891. package/dist/registries.js +23 -0
  892. package/dist/registries.js.map +1 -0
  893. package/dist/render/base64.d.ts +11 -0
  894. package/dist/render/base64.d.ts.map +1 -0
  895. package/dist/render/base64.js +40 -0
  896. package/dist/render/base64.js.map +1 -0
  897. package/dist/render/colour.d.ts +28 -0
  898. package/dist/render/colour.d.ts.map +1 -0
  899. package/dist/render/colour.js +72 -0
  900. package/dist/render/colour.js.map +1 -0
  901. package/dist/render/conic.d.ts +68 -0
  902. package/dist/render/conic.d.ts.map +1 -0
  903. package/dist/render/conic.js +205 -0
  904. package/dist/render/conic.js.map +1 -0
  905. package/dist/render/coverage.d.ts +154 -0
  906. package/dist/render/coverage.d.ts.map +1 -0
  907. package/dist/render/coverage.js +613 -0
  908. package/dist/render/coverage.js.map +1 -0
  909. package/dist/render/eps.d.ts +41 -0
  910. package/dist/render/eps.d.ts.map +1 -0
  911. package/dist/render/eps.js +377 -0
  912. package/dist/render/eps.js.map +1 -0
  913. package/dist/render/impose.d.ts +130 -0
  914. package/dist/render/impose.d.ts.map +1 -0
  915. package/dist/render/impose.js +288 -0
  916. package/dist/render/impose.js.map +1 -0
  917. package/dist/render/index.d.ts +22 -0
  918. package/dist/render/index.d.ts.map +1 -0
  919. package/dist/render/index.js +13 -0
  920. package/dist/render/index.js.map +1 -0
  921. package/dist/render/paint.d.ts +62 -0
  922. package/dist/render/paint.d.ts.map +1 -0
  923. package/dist/render/paint.js +169 -0
  924. package/dist/render/paint.js.map +1 -0
  925. package/dist/render/pdf-colour.d.ts +34 -0
  926. package/dist/render/pdf-colour.d.ts.map +1 -0
  927. package/dist/render/pdf-colour.js +64 -0
  928. package/dist/render/pdf-colour.js.map +1 -0
  929. package/dist/render/pdf-content.d.ts +90 -0
  930. package/dist/render/pdf-content.d.ts.map +1 -0
  931. package/dist/render/pdf-content.js +367 -0
  932. package/dist/render/pdf-content.js.map +1 -0
  933. package/dist/render/pdf-document.d.ts +38 -0
  934. package/dist/render/pdf-document.d.ts.map +1 -0
  935. package/dist/render/pdf-document.js +110 -0
  936. package/dist/render/pdf-document.js.map +1 -0
  937. package/dist/render/pdf-hash.d.ts +14 -0
  938. package/dist/render/pdf-hash.d.ts.map +1 -0
  939. package/dist/render/pdf-hash.js +71 -0
  940. package/dist/render/pdf-hash.js.map +1 -0
  941. package/dist/render/pdf-syntax.d.ts +45 -0
  942. package/dist/render/pdf-syntax.d.ts.map +1 -0
  943. package/dist/render/pdf-syntax.js +100 -0
  944. package/dist/render/pdf-syntax.js.map +1 -0
  945. package/dist/render/pdf.d.ts +59 -0
  946. package/dist/render/pdf.d.ts.map +1 -0
  947. package/dist/render/pdf.js +267 -0
  948. package/dist/render/pdf.js.map +1 -0
  949. package/dist/render/png-decode.d.ts +33 -0
  950. package/dist/render/png-decode.d.ts.map +1 -0
  951. package/dist/render/png-decode.js +345 -0
  952. package/dist/render/png-decode.js.map +1 -0
  953. package/dist/render/png.d.ts +37 -0
  954. package/dist/render/png.d.ts.map +1 -0
  955. package/dist/render/png.js +350 -0
  956. package/dist/render/png.js.map +1 -0
  957. package/dist/render/raster.d.ts +40 -0
  958. package/dist/render/raster.d.ts.map +1 -0
  959. package/dist/render/raster.js +245 -0
  960. package/dist/render/raster.js.map +1 -0
  961. package/dist/render/scene.d.ts +84 -0
  962. package/dist/render/scene.d.ts.map +1 -0
  963. package/dist/render/scene.js +216 -0
  964. package/dist/render/scene.js.map +1 -0
  965. package/dist/render/sheets.d.ts +26 -0
  966. package/dist/render/sheets.d.ts.map +1 -0
  967. package/dist/render/sheets.js +83 -0
  968. package/dist/render/sheets.js.map +1 -0
  969. package/dist/render/svg.d.ts +54 -0
  970. package/dist/render/svg.d.ts.map +1 -0
  971. package/dist/render/svg.js +324 -0
  972. package/dist/render/svg.js.map +1 -0
  973. package/dist/render/types.d.ts +95 -0
  974. package/dist/render/types.d.ts.map +1 -0
  975. package/dist/render/types.js +9 -0
  976. package/dist/render/types.js.map +1 -0
  977. package/dist/segment/alphanumeric.d.ts +15 -0
  978. package/dist/segment/alphanumeric.d.ts.map +1 -0
  979. package/dist/segment/alphanumeric.js +23 -0
  980. package/dist/segment/alphanumeric.js.map +1 -0
  981. package/dist/segment/eci.d.ts +41 -0
  982. package/dist/segment/eci.d.ts.map +1 -0
  983. package/dist/segment/eci.js +194 -0
  984. package/dist/segment/eci.js.map +1 -0
  985. package/dist/segment/index.d.ts +10 -0
  986. package/dist/segment/index.d.ts.map +1 -0
  987. package/dist/segment/index.js +8 -0
  988. package/dist/segment/index.js.map +1 -0
  989. package/dist/segment/kanji.d.ts +57 -0
  990. package/dist/segment/kanji.d.ts.map +1 -0
  991. package/dist/segment/kanji.js +135 -0
  992. package/dist/segment/kanji.js.map +1 -0
  993. package/dist/segment/profile.d.ts +21 -0
  994. package/dist/segment/profile.d.ts.map +1 -0
  995. package/dist/segment/profile.js +66 -0
  996. package/dist/segment/profile.js.map +1 -0
  997. package/dist/segment/read.d.ts +29 -0
  998. package/dist/segment/read.d.ts.map +1 -0
  999. package/dist/segment/read.js +360 -0
  1000. package/dist/segment/read.js.map +1 -0
  1001. package/dist/segment/segment-text.d.ts +88 -0
  1002. package/dist/segment/segment-text.d.ts.map +1 -0
  1003. package/dist/segment/segment-text.js +422 -0
  1004. package/dist/segment/segment-text.js.map +1 -0
  1005. package/dist/segment/types.d.ts +89 -0
  1006. package/dist/segment/types.d.ts.map +1 -0
  1007. package/dist/segment/types.js +13 -0
  1008. package/dist/segment/types.js.map +1 -0
  1009. package/dist/segment/write.d.ts +36 -0
  1010. package/dist/segment/write.d.ts.map +1 -0
  1011. package/dist/segment/write.js +226 -0
  1012. package/dist/segment/write.js.map +1 -0
  1013. package/dist/studio/assets.d.ts +22 -0
  1014. package/dist/studio/assets.d.ts.map +1 -0
  1015. package/dist/studio/assets.js +66 -0
  1016. package/dist/studio/assets.js.map +1 -0
  1017. package/dist/studio/catalogue.d.ts +34 -0
  1018. package/dist/studio/catalogue.d.ts.map +1 -0
  1019. package/dist/studio/catalogue.js +359 -0
  1020. package/dist/studio/catalogue.js.map +1 -0
  1021. package/dist/studio/contrast.d.ts +16 -0
  1022. package/dist/studio/contrast.d.ts.map +1 -0
  1023. package/dist/studio/contrast.js +28 -0
  1024. package/dist/studio/contrast.js.map +1 -0
  1025. package/dist/studio/document.d.ts +61 -0
  1026. package/dist/studio/document.d.ts.map +1 -0
  1027. package/dist/studio/document.js +208 -0
  1028. package/dist/studio/document.js.map +1 -0
  1029. package/dist/studio/export.d.ts +52 -0
  1030. package/dist/studio/export.d.ts.map +1 -0
  1031. package/dist/studio/export.js +269 -0
  1032. package/dist/studio/export.js.map +1 -0
  1033. package/dist/studio/form.d.ts +15 -0
  1034. package/dist/studio/form.d.ts.map +1 -0
  1035. package/dist/studio/form.js +91 -0
  1036. package/dist/studio/form.js.map +1 -0
  1037. package/dist/studio/history.d.ts +66 -0
  1038. package/dist/studio/history.d.ts.map +1 -0
  1039. package/dist/studio/history.js +109 -0
  1040. package/dist/studio/history.js.map +1 -0
  1041. package/dist/studio/index.d.ts +16 -0
  1042. package/dist/studio/index.d.ts.map +1 -0
  1043. package/dist/studio/index.js +12 -0
  1044. package/dist/studio/index.js.map +1 -0
  1045. package/dist/studio/keys.d.ts +86 -0
  1046. package/dist/studio/keys.d.ts.map +1 -0
  1047. package/dist/studio/keys.js +165 -0
  1048. package/dist/studio/keys.js.map +1 -0
  1049. package/dist/studio/kit.d.ts +44 -0
  1050. package/dist/studio/kit.d.ts.map +1 -0
  1051. package/dist/studio/kit.js +114 -0
  1052. package/dist/studio/kit.js.map +1 -0
  1053. package/dist/studio/logo.d.ts +25 -0
  1054. package/dist/studio/logo.d.ts.map +1 -0
  1055. package/dist/studio/logo.js +49 -0
  1056. package/dist/studio/logo.js.map +1 -0
  1057. package/dist/studio/names.d.ts +18 -0
  1058. package/dist/studio/names.d.ts.map +1 -0
  1059. package/dist/studio/names.js +36 -0
  1060. package/dist/studio/names.js.map +1 -0
  1061. package/dist/studio/patch.d.ts +17 -0
  1062. package/dist/studio/patch.d.ts.map +1 -0
  1063. package/dist/studio/patch.js +64 -0
  1064. package/dist/studio/patch.js.map +1 -0
  1065. package/dist/studio/seams.d.ts +44 -0
  1066. package/dist/studio/seams.d.ts.map +1 -0
  1067. package/dist/studio/seams.js +36 -0
  1068. package/dist/studio/seams.js.map +1 -0
  1069. package/dist/studio/share.d.ts +16 -0
  1070. package/dist/studio/share.d.ts.map +1 -0
  1071. package/dist/studio/share.js +57 -0
  1072. package/dist/studio/share.js.map +1 -0
  1073. package/dist/studio/shuffle.d.ts +38 -0
  1074. package/dist/studio/shuffle.d.ts.map +1 -0
  1075. package/dist/studio/shuffle.js +181 -0
  1076. package/dist/studio/shuffle.js.map +1 -0
  1077. package/dist/studio/slices.d.ts +29 -0
  1078. package/dist/studio/slices.d.ts.map +1 -0
  1079. package/dist/studio/slices.js +84 -0
  1080. package/dist/studio/slices.js.map +1 -0
  1081. package/dist/studio/studio.d.ts +29 -0
  1082. package/dist/studio/studio.d.ts.map +1 -0
  1083. package/dist/studio/studio.js +1298 -0
  1084. package/dist/studio/studio.js.map +1 -0
  1085. package/dist/studio/symbol.d.ts +47 -0
  1086. package/dist/studio/symbol.d.ts.map +1 -0
  1087. package/dist/studio/symbol.js +159 -0
  1088. package/dist/studio/symbol.js.map +1 -0
  1089. package/dist/studio/timers.d.ts +18 -0
  1090. package/dist/studio/timers.d.ts.map +1 -0
  1091. package/dist/studio/timers.js +36 -0
  1092. package/dist/studio/timers.js.map +1 -0
  1093. package/dist/studio/types.d.ts +693 -0
  1094. package/dist/studio/types.d.ts.map +1 -0
  1095. package/dist/studio/types.js +26 -0
  1096. package/dist/studio/types.js.map +1 -0
  1097. package/dist/studio/verify.d.ts +47 -0
  1098. package/dist/studio/verify.d.ts.map +1 -0
  1099. package/dist/studio/verify.js +63 -0
  1100. package/dist/studio/verify.js.map +1 -0
  1101. package/dist/symbology/index.d.ts +8 -0
  1102. package/dist/symbology/index.d.ts.map +1 -0
  1103. package/dist/symbology/index.js +6 -0
  1104. package/dist/symbology/index.js.map +1 -0
  1105. package/dist/symbology/micro/blocks.d.ts +34 -0
  1106. package/dist/symbology/micro/blocks.d.ts.map +1 -0
  1107. package/dist/symbology/micro/blocks.js +63 -0
  1108. package/dist/symbology/micro/blocks.js.map +1 -0
  1109. package/dist/symbology/micro/entry.d.ts +70 -0
  1110. package/dist/symbology/micro/entry.d.ts.map +1 -0
  1111. package/dist/symbology/micro/entry.js +181 -0
  1112. package/dist/symbology/micro/entry.js.map +1 -0
  1113. package/dist/symbology/micro/format.d.ts +31 -0
  1114. package/dist/symbology/micro/format.d.ts.map +1 -0
  1115. package/dist/symbology/micro/format.js +48 -0
  1116. package/dist/symbology/micro/format.js.map +1 -0
  1117. package/dist/symbology/micro/index.d.ts +7 -0
  1118. package/dist/symbology/micro/index.d.ts.map +1 -0
  1119. package/dist/symbology/micro/index.js +5 -0
  1120. package/dist/symbology/micro/index.js.map +1 -0
  1121. package/dist/symbology/micro/layout.d.ts +40 -0
  1122. package/dist/symbology/micro/layout.d.ts.map +1 -0
  1123. package/dist/symbology/micro/layout.js +106 -0
  1124. package/dist/symbology/micro/layout.js.map +1 -0
  1125. package/dist/symbology/micro/mask.d.ts +25 -0
  1126. package/dist/symbology/micro/mask.d.ts.map +1 -0
  1127. package/dist/symbology/micro/mask.js +41 -0
  1128. package/dist/symbology/micro/mask.js.map +1 -0
  1129. package/dist/symbology/micro/modules.d.ts +76 -0
  1130. package/dist/symbology/micro/modules.d.ts.map +1 -0
  1131. package/dist/symbology/micro/modules.js +156 -0
  1132. package/dist/symbology/micro/modules.js.map +1 -0
  1133. package/dist/symbology/micro/profile.d.ts +16 -0
  1134. package/dist/symbology/micro/profile.d.ts.map +1 -0
  1135. package/dist/symbology/micro/profile.js +45 -0
  1136. package/dist/symbology/micro/profile.js.map +1 -0
  1137. package/dist/symbology/micro/read-helpers.d.ts +31 -0
  1138. package/dist/symbology/micro/read-helpers.d.ts.map +1 -0
  1139. package/dist/symbology/micro/read-helpers.js +66 -0
  1140. package/dist/symbology/micro/read-helpers.js.map +1 -0
  1141. package/dist/symbology/micro/tables.d.ts +63 -0
  1142. package/dist/symbology/micro/tables.d.ts.map +1 -0
  1143. package/dist/symbology/micro/tables.js +163 -0
  1144. package/dist/symbology/micro/tables.js.map +1 -0
  1145. package/dist/symbology/qr/blocks.d.ts +58 -0
  1146. package/dist/symbology/qr/blocks.d.ts.map +1 -0
  1147. package/dist/symbology/qr/blocks.js +176 -0
  1148. package/dist/symbology/qr/blocks.js.map +1 -0
  1149. package/dist/symbology/qr/build.d.ts +20 -0
  1150. package/dist/symbology/qr/build.d.ts.map +1 -0
  1151. package/dist/symbology/qr/build.js +91 -0
  1152. package/dist/symbology/qr/build.js.map +1 -0
  1153. package/dist/symbology/qr/entry.d.ts +13 -0
  1154. package/dist/symbology/qr/entry.d.ts.map +1 -0
  1155. package/dist/symbology/qr/entry.js +56 -0
  1156. package/dist/symbology/qr/entry.js.map +1 -0
  1157. package/dist/symbology/qr/index.d.ts +13 -0
  1158. package/dist/symbology/qr/index.d.ts.map +1 -0
  1159. package/dist/symbology/qr/index.js +9 -0
  1160. package/dist/symbology/qr/index.js.map +1 -0
  1161. package/dist/symbology/qr/info.d.ts +29 -0
  1162. package/dist/symbology/qr/info.d.ts.map +1 -0
  1163. package/dist/symbology/qr/info.js +53 -0
  1164. package/dist/symbology/qr/info.js.map +1 -0
  1165. package/dist/symbology/qr/layout.d.ts +37 -0
  1166. package/dist/symbology/qr/layout.d.ts.map +1 -0
  1167. package/dist/symbology/qr/layout.js +174 -0
  1168. package/dist/symbology/qr/layout.js.map +1 -0
  1169. package/dist/symbology/qr/mask.d.ts +35 -0
  1170. package/dist/symbology/qr/mask.d.ts.map +1 -0
  1171. package/dist/symbology/qr/mask.js +113 -0
  1172. package/dist/symbology/qr/mask.js.map +1 -0
  1173. package/dist/symbology/qr/read.d.ts +43 -0
  1174. package/dist/symbology/qr/read.d.ts.map +1 -0
  1175. package/dist/symbology/qr/read.js +219 -0
  1176. package/dist/symbology/qr/read.js.map +1 -0
  1177. package/dist/symbology/qr/tables.d.ts +62 -0
  1178. package/dist/symbology/qr/tables.d.ts.map +1 -0
  1179. package/dist/symbology/qr/tables.js +337 -0
  1180. package/dist/symbology/qr/tables.js.map +1 -0
  1181. package/dist/symbology/registry.d.ts +11 -0
  1182. package/dist/symbology/registry.d.ts.map +1 -0
  1183. package/dist/symbology/registry.js +19 -0
  1184. package/dist/symbology/registry.js.map +1 -0
  1185. package/dist/symbology/rmqr/entry.d.ts +56 -0
  1186. package/dist/symbology/rmqr/entry.d.ts.map +1 -0
  1187. package/dist/symbology/rmqr/entry.js +165 -0
  1188. package/dist/symbology/rmqr/entry.js.map +1 -0
  1189. package/dist/symbology/rmqr/format.d.ts +45 -0
  1190. package/dist/symbology/rmqr/format.d.ts.map +1 -0
  1191. package/dist/symbology/rmqr/format.js +72 -0
  1192. package/dist/symbology/rmqr/format.js.map +1 -0
  1193. package/dist/symbology/rmqr/index.d.ts +5 -0
  1194. package/dist/symbology/rmqr/index.d.ts.map +1 -0
  1195. package/dist/symbology/rmqr/index.js +5 -0
  1196. package/dist/symbology/rmqr/index.js.map +1 -0
  1197. package/dist/symbology/rmqr/layout.d.ts +46 -0
  1198. package/dist/symbology/rmqr/layout.d.ts.map +1 -0
  1199. package/dist/symbology/rmqr/layout.js +196 -0
  1200. package/dist/symbology/rmqr/layout.js.map +1 -0
  1201. package/dist/symbology/rmqr/profile.d.ts +15 -0
  1202. package/dist/symbology/rmqr/profile.d.ts.map +1 -0
  1203. package/dist/symbology/rmqr/profile.js +52 -0
  1204. package/dist/symbology/rmqr/profile.js.map +1 -0
  1205. package/dist/symbology/rmqr/tables.d.ts +62 -0
  1206. package/dist/symbology/rmqr/tables.d.ts.map +1 -0
  1207. package/dist/symbology/rmqr/tables.js +194 -0
  1208. package/dist/symbology/rmqr/tables.js.map +1 -0
  1209. package/dist/symbology/roles.d.ts +19 -0
  1210. package/dist/symbology/roles.d.ts.map +1 -0
  1211. package/dist/symbology/roles.js +35 -0
  1212. package/dist/symbology/roles.js.map +1 -0
  1213. package/dist/symbology/types.d.ts +126 -0
  1214. package/dist/symbology/types.d.ts.map +1 -0
  1215. package/dist/symbology/types.js +11 -0
  1216. package/dist/symbology/types.js.map +1 -0
  1217. package/dist/text/base64.d.ts +11 -0
  1218. package/dist/text/base64.d.ts.map +1 -0
  1219. package/dist/text/base64.js +49 -0
  1220. package/dist/text/base64.js.map +1 -0
  1221. package/dist/text/cmap.d.ts +17 -0
  1222. package/dist/text/cmap.d.ts.map +1 -0
  1223. package/dist/text/cmap.js +161 -0
  1224. package/dist/text/cmap.js.map +1 -0
  1225. package/dist/text/compiled.d.ts +52 -0
  1226. package/dist/text/compiled.d.ts.map +1 -0
  1227. package/dist/text/compiled.js +220 -0
  1228. package/dist/text/compiled.js.map +1 -0
  1229. package/dist/text/errors.d.ts +34 -0
  1230. package/dist/text/errors.d.ts.map +1 -0
  1231. package/dist/text/errors.js +26 -0
  1232. package/dist/text/errors.js.map +1 -0
  1233. package/dist/text/font.d.ts +29 -0
  1234. package/dist/text/font.d.ts.map +1 -0
  1235. package/dist/text/font.js +67 -0
  1236. package/dist/text/font.js.map +1 -0
  1237. package/dist/text/glyf.d.ts +62 -0
  1238. package/dist/text/glyf.d.ts.map +1 -0
  1239. package/dist/text/glyf.js +276 -0
  1240. package/dist/text/glyf.js.map +1 -0
  1241. package/dist/text/index.d.ts +13 -0
  1242. package/dist/text/index.d.ts.map +1 -0
  1243. package/dist/text/index.js +9 -0
  1244. package/dist/text/index.js.map +1 -0
  1245. package/dist/text/kerning.d.ts +36 -0
  1246. package/dist/text/kerning.d.ts.map +1 -0
  1247. package/dist/text/kerning.js +382 -0
  1248. package/dist/text/kerning.js.map +1 -0
  1249. package/dist/text/layout.d.ts +35 -0
  1250. package/dist/text/layout.d.ts.map +1 -0
  1251. package/dist/text/layout.js +287 -0
  1252. package/dist/text/layout.js.map +1 -0
  1253. package/dist/text/outline.d.ts +22 -0
  1254. package/dist/text/outline.d.ts.map +1 -0
  1255. package/dist/text/outline.js +79 -0
  1256. package/dist/text/outline.js.map +1 -0
  1257. package/dist/text/reader.d.ts +43 -0
  1258. package/dist/text/reader.d.ts.map +1 -0
  1259. package/dist/text/reader.js +83 -0
  1260. package/dist/text/reader.js.map +1 -0
  1261. package/dist/text/registry.d.ts +21 -0
  1262. package/dist/text/registry.d.ts.map +1 -0
  1263. package/dist/text/registry.js +32 -0
  1264. package/dist/text/registry.js.map +1 -0
  1265. package/dist/text/truetype.d.ts +44 -0
  1266. package/dist/text/truetype.d.ts.map +1 -0
  1267. package/dist/text/truetype.js +127 -0
  1268. package/dist/text/truetype.js.map +1 -0
  1269. package/dist/text/types.d.ts +106 -0
  1270. package/dist/text/types.d.ts.map +1 -0
  1271. package/dist/text/types.js +11 -0
  1272. package/dist/text/types.js.map +1 -0
  1273. package/dist/verify/camera.d.ts +59 -0
  1274. package/dist/verify/camera.d.ts.map +1 -0
  1275. package/dist/verify/camera.js +76 -0
  1276. package/dist/verify/camera.js.map +1 -0
  1277. package/dist/verify/capture.d.ts +40 -0
  1278. package/dist/verify/capture.d.ts.map +1 -0
  1279. package/dist/verify/capture.js +118 -0
  1280. package/dist/verify/capture.js.map +1 -0
  1281. package/dist/verify/coverage.d.ts +61 -0
  1282. package/dist/verify/coverage.d.ts.map +1 -0
  1283. package/dist/verify/coverage.js +90 -0
  1284. package/dist/verify/coverage.js.map +1 -0
  1285. package/dist/verify/degrade.d.ts +143 -0
  1286. package/dist/verify/degrade.d.ts.map +1 -0
  1287. package/dist/verify/degrade.js +503 -0
  1288. package/dist/verify/degrade.js.map +1 -0
  1289. package/dist/verify/fixes.d.ts +28 -0
  1290. package/dist/verify/fixes.d.ts.map +1 -0
  1291. package/dist/verify/fixes.js +277 -0
  1292. package/dist/verify/fixes.js.map +1 -0
  1293. package/dist/verify/homography.d.ts +32 -0
  1294. package/dist/verify/homography.d.ts.map +1 -0
  1295. package/dist/verify/homography.js +79 -0
  1296. package/dist/verify/homography.js.map +1 -0
  1297. package/dist/verify/index.d.ts +17 -0
  1298. package/dist/verify/index.d.ts.map +1 -0
  1299. package/dist/verify/index.js +11 -0
  1300. package/dist/verify/index.js.map +1 -0
  1301. package/dist/verify/inks.d.ts +39 -0
  1302. package/dist/verify/inks.d.ts.map +1 -0
  1303. package/dist/verify/inks.js +101 -0
  1304. package/dist/verify/inks.js.map +1 -0
  1305. package/dist/verify/job.d.ts +89 -0
  1306. package/dist/verify/job.d.ts.map +1 -0
  1307. package/dist/verify/job.js +314 -0
  1308. package/dist/verify/job.js.map +1 -0
  1309. package/dist/verify/keys.d.ts +92 -0
  1310. package/dist/verify/keys.d.ts.map +1 -0
  1311. package/dist/verify/keys.js +95 -0
  1312. package/dist/verify/keys.js.map +1 -0
  1313. package/dist/verify/ladders.d.ts +68 -0
  1314. package/dist/verify/ladders.d.ts.map +1 -0
  1315. package/dist/verify/ladders.js +154 -0
  1316. package/dist/verify/ladders.js.map +1 -0
  1317. package/dist/verify/prepare.d.ts +78 -0
  1318. package/dist/verify/prepare.d.ts.map +1 -0
  1319. package/dist/verify/prepare.js +307 -0
  1320. package/dist/verify/prepare.js.map +1 -0
  1321. package/dist/verify/preset.d.ts +111 -0
  1322. package/dist/verify/preset.d.ts.map +1 -0
  1323. package/dist/verify/preset.js +200 -0
  1324. package/dist/verify/preset.js.map +1 -0
  1325. package/dist/verify/read.d.ts +23 -0
  1326. package/dist/verify/read.d.ts.map +1 -0
  1327. package/dist/verify/read.js +55 -0
  1328. package/dist/verify/read.js.map +1 -0
  1329. package/dist/verify/region.d.ts +37 -0
  1330. package/dist/verify/region.d.ts.map +1 -0
  1331. package/dist/verify/region.js +80 -0
  1332. package/dist/verify/region.js.map +1 -0
  1333. package/dist/verify/static.d.ts +56 -0
  1334. package/dist/verify/static.d.ts.map +1 -0
  1335. package/dist/verify/static.js +277 -0
  1336. package/dist/verify/static.js.map +1 -0
  1337. package/dist/verify/types.d.ts +173 -0
  1338. package/dist/verify/types.d.ts.map +1 -0
  1339. package/dist/verify/types.js +36 -0
  1340. package/dist/verify/types.js.map +1 -0
  1341. package/package.json +191 -5
@@ -0,0 +1,773 @@
1
+ /**
2
+ * Finding and reading codes in a picture.
3
+ *
4
+ * A ladder rather than one clever attempt. Thresholding, scale and polarity
5
+ * are all guesses, and a guess that costs a few milliseconds is not worth
6
+ * agonising over: try the cheap likely one, then the next. The exact half of
7
+ * reading sits behind each symbology's `read` and is never part of the
8
+ * guessing.
9
+ *
10
+ * Lifted from the authenticator package's reader
11
+ * (google-auth-secret-retriever, `src/qr/decode/decoder.ts`) and generalised:
12
+ * any registered symbology with a locator, several codes in one picture, soft
13
+ * samples and erasures, the strict profile beside the lenient one, and no
14
+ * clock unless the caller hands one in, so the same picture gives the same
15
+ * answer every time.
16
+ */
17
+ import { QrStudioError } from '../core/errors.js';
18
+ import { createSymbologyRegistry } from '../symbology/registry.js';
19
+ import { err, ok } from '../core/result.js';
20
+ import { binarise, binariseLocalAverage } from './binarise.js';
21
+ import { erasureFlags } from './erasures.js';
22
+ import { LENIENT_FINDER_TOLERANCE, STRICT_FINDER_TOLERANCE, STRICT_WIDE_FINDER_TOLERANCE, candidateTriples, findFinderPatterns, } from './finder.js';
23
+ import { finderFrame } from './frame.js';
24
+ import { downscaleHalf, fitPixels, looksInverted, toGrey, upscaleSmooth } from './grey.js';
25
+ import { qrHypotheses, qrTimingAgreement, strictHypothesis } from './locate-qr.js';
26
+ import { TIMING_AGREEMENT, microHypotheses, rmqrHypotheses } from './locate-single.js';
27
+ import { sampleGrid } from './sample.js';
28
+ import { plainLuminance, plainReaderGrid, plainReaderLocations, plainThreshold } from './plain.js';
29
+ import { STRICT_MAX_SPECKLE, finderCentresClosed, finderRingsTraceable, fixedPatternsAgree, speckle, strictSamples, } from './strict.js';
30
+ import { apply } from './transform.js';
31
+ import { TILED_EXTRA_ERRORS, TILED_SIZE, tiledGrids } from './tiled.js';
32
+ /**
33
+ * The working ceiling, in pixels. 2.5 megapixels is 1826 by 1369 at 4:3,
34
+ * which holds a 141-module symbol at 9.7 pixels a module across the short
35
+ * edge; Nyquist is 2. Measured in the authenticator, four megapixels read
36
+ * nothing two and a half did not, and cost a 50 MB transient on a phone.
37
+ */
38
+ export const DEFAULT_MAX_PIXELS = 2_500_000;
39
+ /**
40
+ * The strict profile's working ceiling. It reads at the picture's own scale,
41
+ * as the readers it is held to do: fitted to the scanner's ceiling, a version
42
+ * 40 symbol drawn at 10 pixels a module came down to 7, and its size measured
43
+ * off by two modules where zxing-cpp and jsQR, at full resolution, read it.
44
+ * Twelve megapixels holds such a symbol whole and keeps one strict read under
45
+ * a couple of seconds.
46
+ */
47
+ export const STRICT_MAX_PIXELS = 12_000_000;
48
+ /** The binarised frame handed to telemetry is a picture for a person: a megapixel is more than any overlay shows. */
49
+ export const TELEMETRY_PIXELS = 1_000_000;
50
+ /**
51
+ * The scanner's ladder, cheapest and most likely first.
52
+ *
53
+ * `inverted` here means the opposite of what the picture's corners suggest,
54
+ * not light-on-dark: the guess is usually right, so the second rung tries the
55
+ * other way round. The order is the authenticator's, set by what a camera can
56
+ * reach in its per-frame budget: both polarities at native and half scale come
57
+ * first, because on 32 dim scenes those four rungs won 23, and the double
58
+ * scale rung costs five to twelve times any other and goes last, where only a
59
+ * still picture's budget reaches it.
60
+ */
61
+ const LADDER = [
62
+ { binariser: 'hybrid', scale: 'one', inverted: false, majorityVote: false },
63
+ { binariser: 'hybrid', scale: 'one', inverted: true, majorityVote: false },
64
+ // Half scale is the cheapest rung and the one that reads a dim capture: the
65
+ // 2x2 average takes sensor noise out from under the binariser.
66
+ { binariser: 'hybrid', scale: 'half', inverted: false, majorityVote: true },
67
+ { binariser: 'hybrid', scale: 'half', inverted: true, majorityVote: true },
68
+ // A global threshold, for the scene the local one over-fits.
69
+ { binariser: 'otsu', scale: 'one', inverted: false, majorityVote: false },
70
+ { binariser: 'hybrid', scale: 'one', inverted: false, majorityVote: true },
71
+ { binariser: 'sauvola', scale: 'one', inverted: false, majorityVote: true },
72
+ { binariser: 'sauvola', scale: 'one', inverted: true, majorityVote: true },
73
+ // A symbol too small to sample, interpolated up.
74
+ { binariser: 'hybrid', scale: 'double', inverted: false, majorityVote: false },
75
+ ];
76
+ /**
77
+ * How many of the ladder's rungs look for the one-finder symbologies. They are
78
+ * read from clean pictures only, and a clean picture reads on the first rung
79
+ * in its own polarity, so the rest of the ladder would only spend time.
80
+ */
81
+ const SINGLE_FINDER_RUNGS = 2;
82
+ /** Finder candidates the one-finder locators consider, strongest first. */
83
+ const SINGLE_FINDER_CANDIDATES = 12;
84
+ /** Modules of the lenient grid that may fall outside the picture, as a fraction; they read as erasures. */
85
+ const LENIENT_OUTSIDE = 0.1;
86
+ const STAGE_RANK = {
87
+ finders: 0,
88
+ geometry: 1,
89
+ format: 2,
90
+ version: 3,
91
+ 'reed-solomon': 4,
92
+ segments: 5,
93
+ margin: 6,
94
+ };
95
+ /** The stage a symbology's refusal names, read as one of ours. An unknown name ranks as format. */
96
+ function stageOf(error) {
97
+ const stage = error.params.stage;
98
+ if (error.code === 'decode/unsupported')
99
+ return 'segments';
100
+ return typeof stage === 'string' && stage in STAGE_RANK ? stage : 'format';
101
+ }
102
+ /* Option checks: a wrong option is a bug in the caller, so it throws a TypeError. */
103
+ function checkImage(image) {
104
+ if (image === null ||
105
+ typeof image !== 'object' ||
106
+ !Number.isInteger(image.width) ||
107
+ !Number.isInteger(image.height) ||
108
+ image.width < 1 ||
109
+ image.height < 1 ||
110
+ image.data === null ||
111
+ typeof image.data !== 'object' ||
112
+ image.data.length !== image.width * image.height * 4) {
113
+ throw new TypeError('decodeImage takes an RgbaImage: whole-number sides and four bytes a pixel');
114
+ }
115
+ }
116
+ function positiveInteger(value, name) {
117
+ if (value === undefined)
118
+ return undefined;
119
+ if (!Number.isInteger(value) || value < 1)
120
+ throw new TypeError(`${name} is a whole number of 1 or more`);
121
+ return value;
122
+ }
123
+ function resolveProfile(options) {
124
+ const profile = options.profile ?? 'lenient';
125
+ if (profile !== 'lenient' && profile !== 'strict-v1') {
126
+ throw new TypeError("profile is 'lenient' or 'strict-v1'");
127
+ }
128
+ const polarity = options.polarity;
129
+ if (polarity !== undefined && polarity !== 'dark-on-light' && polarity !== 'light-on-dark') {
130
+ throw new TypeError("polarity is 'dark-on-light' or 'light-on-dark'");
131
+ }
132
+ if (profile === 'strict-v1') {
133
+ return {
134
+ strict: true,
135
+ // One binariser, at native scale, in the design's own polarity, one
136
+ // centre sample a module: the profile's whole definition, and what a
137
+ // phone does.
138
+ rungs: [
139
+ {
140
+ binariser: 'hybrid-mean',
141
+ scale: 'one',
142
+ inverted: (polarity ?? 'dark-on-light') === 'light-on-dark',
143
+ majorityVote: false,
144
+ },
145
+ ],
146
+ tolerance: STRICT_FINDER_TOLERANCE,
147
+ erasures: false,
148
+ };
149
+ }
150
+ return {
151
+ strict: false,
152
+ rungs: LADDER,
153
+ tolerance: LENIENT_FINDER_TOLERANCE,
154
+ erasures: options.erasures ?? true,
155
+ };
156
+ }
157
+ /** The symbologies to look for, with their sizes, in registry order: QR first in the built-in one. */
158
+ function resolveTargets(registry, wanted) {
159
+ if (wanted !== undefined) {
160
+ if (!Array.isArray(wanted))
161
+ throw new TypeError('symbologies is a list of symbology ids');
162
+ for (const id of wanted) {
163
+ if (!registry.has(id))
164
+ throw new TypeError('symbologies names one this registry does not hold');
165
+ }
166
+ }
167
+ const out = [];
168
+ for (const entry of registry.list()) {
169
+ if (wanted !== undefined && !wanted.includes(entry.id))
170
+ continue;
171
+ if (entry.id !== 'qr' && entry.id !== 'micro' && entry.id !== 'rmqr')
172
+ continue;
173
+ const versions = new Map();
174
+ const sizes = [];
175
+ for (const version of entry.versions) {
176
+ const size = entry.size(version);
177
+ versions.set(`${size.width}x${size.height}`, version);
178
+ sizes.push(size);
179
+ }
180
+ out.push({ entry, kind: entry.id, versions, sizes });
181
+ }
182
+ return out;
183
+ }
184
+ /* Masking what was found, so the next look finds something else. */
185
+ /**
186
+ * Paint a quad light in a picture's bits, grown by a module, the quad given in
187
+ * source pixels and the bits `scaleX` and `scaleY` source pixels to one.
188
+ * Pixels are tested at their centres against the four edges of the convex
189
+ * quad.
190
+ */
191
+ function paintQuad(target, scaleX, scaleY, quad, modules) {
192
+ const { bits, width, height } = target;
193
+ const local = quad.map((p) => ({ x: p.x / scaleX, y: p.y / scaleY }));
194
+ const cx = (local[0].x + local[1].x + local[2].x + local[3].x) / 4;
195
+ const cy = (local[0].y + local[1].y + local[2].y + local[3].y) / 4;
196
+ const grow = 1 + 2 / Math.max(1, modules);
197
+ const corners = local.map((p) => ({ x: cx + (p.x - cx) * grow, y: cy + (p.y - cy) * grow }));
198
+ const xs = corners.map((p) => p.x);
199
+ const ys = corners.map((p) => p.y);
200
+ const x0 = Math.max(0, Math.floor(Math.min(...xs)));
201
+ const x1 = Math.min(width - 1, Math.ceil(Math.max(...xs)));
202
+ const y0 = Math.max(0, Math.floor(Math.min(...ys)));
203
+ const y1 = Math.min(height - 1, Math.ceil(Math.max(...ys)));
204
+ // The sign of the quad's winding, so "inside" is the same side of every edge.
205
+ let area = 0;
206
+ for (let i = 0; i < 4; i += 1) {
207
+ const a = corners[i];
208
+ const b = corners[(i + 1) % 4];
209
+ area += a.x * b.y - b.x * a.y;
210
+ }
211
+ const sign = area >= 0 ? 1 : -1;
212
+ for (let y = y0; y <= y1; y += 1) {
213
+ for (let x = x0; x <= x1; x += 1) {
214
+ let inside = true;
215
+ for (let i = 0; i < 4 && inside; i += 1) {
216
+ const a = corners[i];
217
+ const b = corners[(i + 1) % 4];
218
+ const cross = (b.x - a.x) * (y + 0.5 - a.y) - (b.y - a.y) * (x + 0.5 - a.x);
219
+ if (cross * sign < 0)
220
+ inside = false;
221
+ }
222
+ if (inside)
223
+ bits[y * width + x] = 0;
224
+ }
225
+ }
226
+ }
227
+ /**
228
+ * Paint a found symbol out of a rung's bits, and out of the plain reader's
229
+ * own picture (which is at the source's scale), so the next search finds the
230
+ * next symbol.
231
+ */
232
+ function maskQuad(stage, quad, modules) {
233
+ paintQuad(stage.binarised, stage.scaleX, stage.scaleY, quad, modules);
234
+ if (stage.plainBits !== undefined)
235
+ paintQuad(stage.plainBits, 1, 1, quad, modules);
236
+ // A plain reader shown the picture with this symbol covered picks again.
237
+ stage.plain = undefined;
238
+ }
239
+ /** Whether a new symbol is one already found: its centre falls inside an earlier one's quad. */
240
+ function alreadyFound(run, corners) {
241
+ const cx = (corners[0].x + corners[1].x + corners[2].x + corners[3].x) / 4;
242
+ const cy = (corners[0].y + corners[1].y + corners[2].y + corners[3].y) / 4;
243
+ return run.found.some(({ corners: quad }) => {
244
+ let positive = 0;
245
+ let negative = 0;
246
+ for (let i = 0; i < 4; i += 1) {
247
+ const a = quad[i];
248
+ const b = quad[(i + 1) % 4];
249
+ const cross = (b.x - a.x) * (cy - a.y) - (b.y - a.y) * (cx - a.x);
250
+ if (cross > 0)
251
+ positive += 1;
252
+ if (cross < 0)
253
+ negative += 1;
254
+ }
255
+ return positive === 0 || negative === 0;
256
+ });
257
+ }
258
+ /* Reading one grid. */
259
+ /**
260
+ * The version a grid's size is. Always there: every locator is handed the
261
+ * sizes this map was built from and offers no others.
262
+ */
263
+ function versionFor(target, grid) {
264
+ return target.versions.get(`${grid.width}x${grid.height}`);
265
+ }
266
+ /** Whether a sampled grid sits on a symbol, by its timing pattern. */
267
+ function landedOn(target, grid) {
268
+ const { matrix } = grid;
269
+ if (target.kind === 'qr')
270
+ return qrTimingAgreement(matrix.data, matrix.width) >= TIMING_AGREEMENT;
271
+ // The one-finder locators only offer grids whose timing patterns already read
272
+ // in the thresholded picture.
273
+ return true;
274
+ }
275
+ function remember(run, stage, error) {
276
+ if (STAGE_RANK[stage] > STAGE_RANK[run.furthest]) {
277
+ run.furthest = stage;
278
+ run.refusal = error;
279
+ }
280
+ else if (stage === run.furthest && run.refusal === undefined) {
281
+ run.refusal = error;
282
+ }
283
+ }
284
+ /**
285
+ * Read one sampled grid: with erasures first when the lenient reader has any
286
+ * worth trying, then without. Null when the symbology refuses it.
287
+ */
288
+ function readGrid(run, target, grid, version) {
289
+ const { entry } = target;
290
+ const attempts = [];
291
+ if (!run.profile.strict && run.profile.erasures) {
292
+ const erasures = erasureFlags(grid, entry.layout(version));
293
+ if (erasures !== null)
294
+ attempts.push(erasures.flags);
295
+ }
296
+ attempts.push(undefined);
297
+ for (const flags of attempts) {
298
+ try {
299
+ return entry.read(grid.matrix, flags === undefined ? { strict: run.profile.strict } : { strict: false, erasures: flags });
300
+ }
301
+ catch (error) {
302
+ if (!(error instanceof QrStudioError))
303
+ throw error;
304
+ remember(run, stageOf(error), error);
305
+ }
306
+ }
307
+ return null;
308
+ }
309
+ function cornersOf(stage, transform, width, height) {
310
+ const corner = (u, v) => {
311
+ const p = apply(transform, u, v);
312
+ return { x: p.x * stage.scaleX, y: p.y * stage.scaleY };
313
+ };
314
+ return [corner(0, 0), corner(width, 0), corner(width, height), corner(0, height)];
315
+ }
316
+ /**
317
+ * The strict profile's margins, for a symbol that read: its modules wide
318
+ * enough and not drawn out too far, the picture not speckled, and then for
319
+ * Micro QR and rMQR its fixed patterns reading the same under both common
320
+ * thresholds (see `strict.ts`); for QR, finder rings zxing-cpp can trace with
321
+ * centres it can settle on, from version 7 the grid it lays in tiles reading
322
+ * as well (see `tiled.ts`), and the grid a plain reader would sample reading
323
+ * to the same bytes (see `plain.ts`).
324
+ */
325
+ function keepsMargin(run, stage, target, hypothesis, read) {
326
+ if (!strictSamples(hypothesis.transform, hypothesis.width, hypothesis.height))
327
+ return false;
328
+ stage.speckle ??= speckle(stage.binarised);
329
+ if (stage.speckle > STRICT_MAX_SPECKLE)
330
+ return false;
331
+ const zxing = (stage.localAverage ??= binariseLocalAverage(stage.grey));
332
+ if (target.kind !== 'qr') {
333
+ const layout = target.entry.layout(read.version);
334
+ return fixedPatternsAgree(stage.binarised, zxing, stage.grey, hypothesis.transform, layout);
335
+ }
336
+ // For QR the comparison of the two thresholds on the fixed patterns is left
337
+ // out: the rules below model what zxing-cpp does with its own threshold, and
338
+ // with them in place it caught nothing. Over 1,884 symbols the strict reader
339
+ // read with it left out where the thresholds split on a fixed pattern (the
340
+ // plain corpus's 20,000, and verify's glare, light, fading, noise and ink
341
+ // captures of every preset on three seeds), zxing-cpp and jsQR read every
342
+ // one; it had refused 356 of them.
343
+ if (!finderRingsTraceable(stage.grey, zxing, hypothesis.transform, hypothesis.width)) {
344
+ return false;
345
+ }
346
+ if (!finderCentresClosed(zxing, hypothesis.transform, hypothesis.width))
347
+ return false;
348
+ if (hypothesis.width >= TILED_SIZE && !tiledGridReads(target, zxing, hypothesis, read)) {
349
+ return false;
350
+ }
351
+ // At the source's own size, as the plain reader takes a picture: its
352
+ // scores are in pixels, so its choices change with the scale.
353
+ stage.plainBits ??= plainThreshold(plainLuminance(run.source), stage.inverted);
354
+ stage.plain ??= plainReaderLocations(stage.plainBits);
355
+ for (const location of stage.plain) {
356
+ const grid = plainReaderGrid(stage.plainBits, location);
357
+ if (grid === null)
358
+ continue;
359
+ try {
360
+ // Read as forgivingly as the plain reader decodes: format information to
361
+ // three bits, either way round. Its grid is what is being tested, and
362
+ // it has to keep the strict profile's reserve too.
363
+ const plain = target.entry.read(grid, { strict: false });
364
+ if (sameBytes(plain.bitstream.bytes, read.bitstream.bytes) && keepsPlainReserve(plain)) {
365
+ return true;
366
+ }
367
+ }
368
+ catch (error) {
369
+ if (!(error instanceof QrStudioError))
370
+ throw error;
371
+ }
372
+ }
373
+ return false;
374
+ }
375
+ /**
376
+ * Whether the grids zxing-cpp might lay in tiles from version 7 (see
377
+ * `tiled.ts`), on its own threshold `zxing` and from each finder centre it
378
+ * might take, all read to the same bytes with no block more than
379
+ * `TILED_EXTRA_ERRORS` worse than this read.
380
+ */
381
+ function tiledGridReads(target, zxing, hypothesis, read) {
382
+ const { transform, width } = hypothesis;
383
+ return tiledGrids(zxing, transform, width).every((matrix) => {
384
+ try {
385
+ const tiled = target.entry.read(matrix, { strict: false });
386
+ return (sameBytes(tiled.bitstream.bytes, read.bitstream.bytes) &&
387
+ tiled.errorsPerBlock.every((errors, i) => errors <= read.errorsPerBlock[i] + TILED_EXTRA_ERRORS));
388
+ }
389
+ catch (error) {
390
+ if (!(error instanceof QrStudioError))
391
+ throw error;
392
+ return false;
393
+ }
394
+ });
395
+ }
396
+ /**
397
+ * The share of each block's corrections the plain reader's grid has to leave
398
+ * unused, as the verify layer has the strict reader's own leave: a quarter.
399
+ * A plain grid that reads only by the skin of its teeth is one jsQR, sampling
400
+ * a module or two differently, does not read: a hex-module design faded to
401
+ * 0.6 whose plain grid read with 7 errors of a block's 9 was one jsQR missed
402
+ * and zxing-cpp and the strict reader read. Over verify's captures of every
403
+ * preset on three seeds, the 39,864 symbols both oracles read, 10 left less.
404
+ */
405
+ export const PLAIN_RESERVE = 0.25;
406
+ function keepsPlainReserve(plain) {
407
+ return plain.capacityPerBlock.every((t, i) => plain.errorsPerBlock[i] <= t - Math.ceil(PLAIN_RESERVE * t));
408
+ }
409
+ function sameBytes(a, b) {
410
+ return a.length === b.length && a.every((byte, i) => byte === b[i]);
411
+ }
412
+ /** Sample, check and read one hypothesis; the decoded symbol, or null. */
413
+ function attemptGrid(run, stage, target, hypothesis) {
414
+ const version = versionFor(target, hypothesis);
415
+ const grid = sampleGrid({ grey: stage.grey, binarised: stage.binarised }, hypothesis.transform, hypothesis.width, hypothesis.height, { majorityVote: stage.majorityVote, outside: run.profile.strict ? 0 : LENIENT_OUTSIDE });
416
+ if (grid === null) {
417
+ remember(run, 'geometry');
418
+ return null;
419
+ }
420
+ const landed = landedOn(target, grid);
421
+ if (!landed) {
422
+ remember(run, 'geometry');
423
+ // The strict reader reads only a grid that demonstrably sits on a symbol.
424
+ if (run.profile.strict)
425
+ return null;
426
+ }
427
+ // Remember the furthest stage only from grids on a symbol: a format read
428
+ // that fails on a grid in the wrong place says nothing about the symbol.
429
+ const before = { furthest: run.furthest, refusal: run.refusal };
430
+ const read = readGrid(run, target, grid, version);
431
+ if (!landed) {
432
+ run.furthest = before.furthest;
433
+ run.refusal = before.refusal;
434
+ }
435
+ else {
436
+ run.landed = true;
437
+ }
438
+ if (read === null)
439
+ return null;
440
+ run.landed = true;
441
+ if (run.profile.strict && !keepsMargin(run, stage, target, hypothesis, read)) {
442
+ remember(run, 'margin');
443
+ return null;
444
+ }
445
+ const corners = cornersOf(stage, hypothesis.transform, hypothesis.width, hypothesis.height);
446
+ const symbol = Object.freeze({
447
+ symbology: target.entry.id,
448
+ corners,
449
+ // A left-handed rMQR grid sampled the mirror image the right way round; the
450
+ // symbology saw a plain symbol, so the reflection is recorded here.
451
+ read: hypothesis.mirrored === true ? Object.freeze({ ...read, mirrored: true }) : read,
452
+ inverted: stage.inverted,
453
+ minConfidence: grid.minConfidence,
454
+ });
455
+ run.emit?.({
456
+ stage: 'located',
457
+ symbology: symbol.symbology,
458
+ corners,
459
+ width: hypothesis.width,
460
+ height: hypothesis.height,
461
+ transform: [
462
+ hypothesis.transform[0] * stage.scaleX,
463
+ hypothesis.transform[1] * stage.scaleX,
464
+ hypothesis.transform[2] * stage.scaleX,
465
+ hypothesis.transform[3] * stage.scaleY,
466
+ hypothesis.transform[4] * stage.scaleY,
467
+ hypothesis.transform[5] * stage.scaleY,
468
+ hypothesis.transform[6],
469
+ hypothesis.transform[7],
470
+ hypothesis.transform[8],
471
+ ],
472
+ });
473
+ run.emit?.({
474
+ stage: 'sampled',
475
+ symbology: symbol.symbology,
476
+ width: hypothesis.width,
477
+ height: hypothesis.height,
478
+ modules: new Uint8Array(grid.matrix.data),
479
+ uncertain: new Uint8Array(grid.uncertain),
480
+ });
481
+ run.emit?.({
482
+ stage: 'corrected',
483
+ symbology: symbol.symbology,
484
+ version: read.version,
485
+ ecLevel: read.ecLevel,
486
+ errorsPerBlock: read.errorsPerBlock,
487
+ erasuresUsed: read.erasuresUsed,
488
+ });
489
+ return { symbol, modules: hypothesis.width };
490
+ }
491
+ /** The first symbol any locator finds and reads in a rung's current bits, or null. */
492
+ function findOne(run, stage, patterns) {
493
+ const { profile } = run;
494
+ for (const target of run.targets) {
495
+ if (target.kind !== 'qr')
496
+ continue;
497
+ const legal = new Set(target.sizes.map((size) => size.width));
498
+ // The strict reader tries the best triple only, as jsQR does: a reader that
499
+ // has to hunt through combinations to find the symbol is not one a phone
500
+ // is.
501
+ const triples = candidateTriples(patterns);
502
+ // Three finders that could be one symbol's: past the finders, whatever
503
+ // the grids make of them.
504
+ if (triples.length > 0)
505
+ remember(run, 'geometry');
506
+ if (profile.strict) {
507
+ const best = triples[0];
508
+ const hypothesis = best === undefined ? null : strictHypothesis(stage.binarised, best, legal);
509
+ const symbol = hypothesis === null ? null : attemptGrid(run, stage, target, hypothesis);
510
+ if (symbol !== null)
511
+ return symbol;
512
+ continue;
513
+ }
514
+ for (const triple of triples) {
515
+ for (const hypothesis of qrHypotheses(stage.binarised, triple, legal)) {
516
+ const symbol = attemptGrid(run, stage, target, hypothesis);
517
+ if (symbol !== null)
518
+ return symbol;
519
+ }
520
+ }
521
+ }
522
+ if (!stage.singleFinder)
523
+ return null;
524
+ const singles = run.targets.filter((target) => target.kind !== 'qr');
525
+ if (singles.length === 0)
526
+ return null;
527
+ for (const pattern of patterns.slice(0, SINGLE_FINDER_CANDIDATES)) {
528
+ const frame = finderFrame(stage.binarised, pattern);
529
+ if (frame === null)
530
+ continue;
531
+ for (const target of singles) {
532
+ const hypotheses = target.kind === 'micro'
533
+ ? microHypotheses(stage.binarised, frame, target.sizes.map((size) => size.width))
534
+ : rmqrHypotheses(stage.binarised, frame, target.sizes, !profile.strict);
535
+ if (hypotheses.length === 0)
536
+ remember(run, 'geometry');
537
+ for (const hypothesis of hypotheses) {
538
+ const symbol = attemptGrid(run, stage, target, hypothesis);
539
+ if (symbol !== null)
540
+ return symbol;
541
+ }
542
+ }
543
+ }
544
+ return null;
545
+ }
546
+ function invertGrey(image) {
547
+ const data = new Uint8Array(image.data.length);
548
+ for (let i = 0; i < data.length; i += 1)
549
+ data[i] = 255 - image.data[i];
550
+ return { data, width: image.width, height: image.height };
551
+ }
552
+ /** A rung's working picture, thresholded, in the rung's polarity, with what was found masked out. */
553
+ function prepareStage(run, fitted, source, rung, attempt) {
554
+ const scaled = rung.scale === 'half'
555
+ ? downscaleHalf(fitted)
556
+ : rung.scale === 'double'
557
+ ? upscaleSmooth(fitted, 2)
558
+ : fitted;
559
+ // Light-on-dark is read by inverting the grey and thresholding that, rather
560
+ // than flipping the thresholded bits. The binariser assumes a flat area is
561
+ // light ground, which is what keeps a plain quiet zone clean, and on a dark
562
+ // ground that assumption only holds the right way up.
563
+ const grey = rung.inverted ? invertGrey(scaled) : scaled;
564
+ const binarised = binarise(grey, rung.binariser);
565
+ const stage = {
566
+ grey,
567
+ binarised,
568
+ bits: binarised.bits,
569
+ inverted: rung.inverted,
570
+ majorityVote: rung.majorityVote,
571
+ scaleX: source.width / grey.width,
572
+ scaleY: source.height / grey.height,
573
+ singleFinder: run.profile.strict || attempt <= SINGLE_FINDER_RUNGS,
574
+ };
575
+ run.found.forEach((symbol, i) => maskQuad(stage, symbol.corners, run.modules[i]));
576
+ return stage;
577
+ }
578
+ /** The binarised picture for telemetry, decimated to at most a megapixel by an integer stride. */
579
+ function binarisedFrame(stage, attempt, rung) {
580
+ const { width, height } = stage.binarised;
581
+ let stride = 1;
582
+ while (Math.ceil(width / stride) * Math.ceil(height / stride) > TELEMETRY_PIXELS)
583
+ stride += 1;
584
+ const w = Math.ceil(width / stride);
585
+ const h = Math.ceil(height / stride);
586
+ const bits = new Uint8Array(w * h);
587
+ for (let y = 0; y < h; y += 1) {
588
+ for (let x = 0; x < w; x += 1)
589
+ bits[y * w + x] = stage.bits[y * stride * width + x * stride];
590
+ }
591
+ return { stage: 'binarised', attempt, rung, width: w, height: h, bits };
592
+ }
593
+ /**
594
+ * Find and read every code in a picture, up to `maxSymbols`.
595
+ *
596
+ * A failed Result is 'decode/not-found' when no grid ever landed on a symbol,
597
+ * and 'decode/unreadable' (or the symbology's own 'decode/unsupported') when
598
+ * one did and its read was refused; both carry `params.stage`, the furthest
599
+ * stage reached. Nothing here reads a clock unless `options.clock` is given,
600
+ * so a picture gives the same answer every time.
601
+ *
602
+ * The ladder stops after the first rung that reads anything, having looked
603
+ * again on that rung, with each find masked out, until it finds nothing more:
604
+ * several codes in one picture are nearly always under the same light, and a
605
+ * camera frame with one code in it should not pay for eight more rungs.
606
+ */
607
+ export function decodeImage(image, options = {}, symbologies) {
608
+ checkImage(image);
609
+ const profile = resolveProfile(options);
610
+ const registry = symbologies ?? defaultSymbologies();
611
+ const targets = resolveTargets(registry, options.symbologies);
612
+ const budget = options.budget ?? {};
613
+ const maxPixels = positiveInteger(budget.maxPixels, 'budget.maxPixels') ??
614
+ (profile.strict ? STRICT_MAX_PIXELS : DEFAULT_MAX_PIXELS);
615
+ const maxAttempts = positiveInteger(budget.maxAttempts, 'budget.maxAttempts') ?? profile.rungs.length;
616
+ const maxSymbols = positiveInteger(options.maxSymbols, 'maxSymbols') ?? 8;
617
+ const clock = options.clock;
618
+ if (clock !== undefined && typeof clock !== 'function')
619
+ throw new TypeError('clock is a function');
620
+ if (budget.maxMs !== undefined) {
621
+ if (typeof budget.maxMs !== 'number' || !(budget.maxMs >= 0)) {
622
+ throw new TypeError('budget.maxMs is a number of milliseconds');
623
+ }
624
+ if (clock === undefined)
625
+ throw new TypeError('budget.maxMs needs a clock to measure it by');
626
+ }
627
+ const emit = options.onTelemetry;
628
+ const started = clock?.();
629
+ const elapsed = () => (clock === undefined ? null : clock() - started);
630
+ const full = toGrey(image);
631
+ const fitted = fitPixels(full, maxPixels);
632
+ emit?.({
633
+ stage: 'source',
634
+ width: image.width,
635
+ height: image.height,
636
+ workWidth: fitted.width,
637
+ workHeight: fitted.height,
638
+ });
639
+ // The lenient ladder's polarity guess: the caller's, or the picture's corners.
640
+ const startInverted = profile.strict
641
+ ? false
642
+ : options.polarity !== undefined
643
+ ? options.polarity === 'light-on-dark'
644
+ : looksInverted(fitted);
645
+ const run = {
646
+ profile,
647
+ targets,
648
+ maxSymbols,
649
+ emit,
650
+ found: [],
651
+ modules: [],
652
+ furthest: 'finders',
653
+ refusal: undefined,
654
+ landed: false,
655
+ finders: 0,
656
+ source: image,
657
+ };
658
+ let attempts = 0;
659
+ for (const listed of profile.rungs.slice(0, maxAttempts)) {
660
+ if (budget.maxMs !== undefined && elapsed() > budget.maxMs)
661
+ break;
662
+ attempts += 1;
663
+ const rung = profile.strict
664
+ ? listed
665
+ : { ...listed, inverted: listed.inverted !== startInverted };
666
+ const stage = prepareStage(run, fitted, image, rung, attempts);
667
+ if (attempts === 1 && emit !== undefined)
668
+ emit(binarisedFrame(stage, attempts, rung));
669
+ // Look again after every find, with it masked out, until a look finds
670
+ // nothing new. Bounded twice over: by maxSymbols, and by the looks, so a
671
+ // find that somehow survives its own mask cannot loop.
672
+ for (let look = 0; look < maxSymbols + 2 && run.found.length < maxSymbols; look += 1) {
673
+ let patterns = findFinderPatterns(stage.binarised, profile.tolerance);
674
+ if (profile.strict && patterns.length < 3) {
675
+ patterns = findFinderPatterns(stage.binarised, STRICT_WIDE_FINDER_TOLERANCE);
676
+ }
677
+ run.finders = Math.max(run.finders, patterns.length);
678
+ emit?.({
679
+ stage: 'finders',
680
+ attempt: attempts,
681
+ patterns: patterns.map((p) => ({
682
+ x: p.x * stage.scaleX,
683
+ y: p.y * stage.scaleY,
684
+ moduleSize: p.moduleSize * stage.scaleX,
685
+ confidence: p.count,
686
+ })),
687
+ });
688
+ const next = findOne(run, stage, patterns);
689
+ if (next === null)
690
+ break;
691
+ const { symbol, modules } = next;
692
+ if (!alreadyFound(run, symbol.corners)) {
693
+ run.found.push(symbol);
694
+ run.modules.push(modules);
695
+ }
696
+ maskQuad(stage, symbol.corners, modules);
697
+ }
698
+ if (run.found.length > 0)
699
+ break;
700
+ }
701
+ if (run.found.length > 0) {
702
+ emit?.({ stage: 'decoded', symbols: run.found.length, attempts, ms: elapsed() });
703
+ return ok(Object.freeze(run.found.slice()));
704
+ }
705
+ const failure = failureOf(run);
706
+ emit?.({
707
+ stage: 'failed',
708
+ code: failure.code,
709
+ reached: run.landed ? run.furthest : run.furthest === 'finders' ? 'finders' : 'geometry',
710
+ attempts,
711
+ ms: elapsed(),
712
+ });
713
+ return err(failure);
714
+ }
715
+ const NOT_FOUND = 'No code was found in this picture.';
716
+ const UNREADABLE = 'A code was found here, but it is too damaged or unclear to read.';
717
+ function failureOf(run) {
718
+ if (!run.landed) {
719
+ return new QrStudioError('decode/not-found', NOT_FOUND, {
720
+ stage: run.furthest === 'finders' ? 'finders' : 'geometry',
721
+ finders: run.finders,
722
+ });
723
+ }
724
+ if (run.refusal !== undefined && run.refusal.code === 'decode/unsupported')
725
+ return run.refusal;
726
+ return new QrStudioError('decode/unreadable', UNREADABLE, { stage: run.furthest });
727
+ }
728
+ /**
729
+ * Read an already sampled matrix with whichever registered symbology has a
730
+ * version of its size. Pure: throws QrStudioError 'decode/unreadable' with
731
+ * params { stage }, the furthest stage any symbology reached.
732
+ */
733
+ export function decodeMatrix(matrix, options = {}, symbologies) {
734
+ const strict = options.strict ?? false;
735
+ if (typeof strict !== 'boolean')
736
+ throw new TypeError('strict is true or false');
737
+ const registry = symbologies ?? defaultSymbologies();
738
+ if (options.symbologies !== undefined)
739
+ resolveTargets(registry, options.symbologies);
740
+ let refusal;
741
+ let rank = -1;
742
+ for (const entry of registry.list()) {
743
+ if (options.symbologies !== undefined && !options.symbologies.includes(entry.id))
744
+ continue;
745
+ const fits = entry.versions.some((version) => {
746
+ const size = entry.size(version);
747
+ return size.width === matrix.width && size.height === matrix.height;
748
+ });
749
+ if (!fits)
750
+ continue;
751
+ try {
752
+ return entry.read(matrix, { strict });
753
+ }
754
+ catch (error) {
755
+ if (!(error instanceof QrStudioError))
756
+ throw error;
757
+ const stage = STAGE_RANK[stageOf(error)];
758
+ if (stage > rank) {
759
+ rank = stage;
760
+ refusal = error;
761
+ }
762
+ }
763
+ }
764
+ throw (refusal ??
765
+ new QrStudioError('decode/unreadable', 'This is not a size any code here comes in.', {
766
+ stage: 'version',
767
+ }));
768
+ }
769
+ /** The registry used when none is passed: the built-in symbologies. */
770
+ function defaultSymbologies() {
771
+ return createSymbologyRegistry();
772
+ }
773
+ //# sourceMappingURL=decoder.js.map