@emailmaker/filemanager 0.10.101 → 0.10.103
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.
- package/adapters/systemFolderPath.d.ts +1 -1
- package/assets/image-editor/fonts/Rubik-Black.woff2 +0 -0
- package/assets/image-editor/fonts/Rubik-Bold.woff2 +0 -0
- package/assets/image-editor/fonts/Rubik-Light.woff2 +0 -0
- package/assets/image-editor/fonts/Rubik-Regular.woff2 +0 -0
- package/assets/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
- package/assets/image-editor/images/brushes/black/circle.png +0 -0
- package/assets/image-editor/images/brushes/black/diamond.png +0 -0
- package/assets/image-editor/images/brushes/black/hline.png +0 -0
- package/assets/image-editor/images/brushes/black/pencil.png +0 -0
- package/assets/image-editor/images/brushes/black/spray.png +0 -0
- package/assets/image-editor/images/brushes/black/square.png +0 -0
- package/assets/image-editor/images/brushes/black/vline.png +0 -0
- package/assets/image-editor/images/brushes/white/circle.png +0 -0
- package/assets/image-editor/images/brushes/white/diamond.png +0 -0
- package/assets/image-editor/images/brushes/white/hline.png +0 -0
- package/assets/image-editor/images/brushes/white/pencil.png +0 -0
- package/assets/image-editor/images/brushes/white/spray.png +0 -0
- package/assets/image-editor/images/brushes/white/square.png +0 -0
- package/assets/image-editor/images/brushes/white/vline.png +0 -0
- package/assets/image-editor/images/filter/blackWhite.jpg +0 -0
- package/assets/image-editor/images/filter/blendColor.jpg +0 -0
- package/assets/image-editor/images/filter/blur.jpg +0 -0
- package/assets/image-editor/images/filter/brightness.jpg +0 -0
- package/assets/image-editor/images/filter/brownie.jpg +0 -0
- package/assets/image-editor/images/filter/emboss.jpg +0 -0
- package/assets/image-editor/images/filter/gamma.jpg +0 -0
- package/assets/image-editor/images/filter/grayscale.jpg +0 -0
- package/assets/image-editor/images/filter/invert.jpg +0 -0
- package/assets/image-editor/images/filter/kodachrome.jpg +0 -0
- package/assets/image-editor/images/filter/noise.jpg +0 -0
- package/assets/image-editor/images/filter/original.jpg +0 -0
- package/assets/image-editor/images/filter/pixelate.jpg +0 -0
- package/assets/image-editor/images/filter/polaroid.jpg +0 -0
- package/assets/image-editor/images/filter/removeColor.jpg +0 -0
- package/assets/image-editor/images/filter/sepia.jpg +0 -0
- package/assets/image-editor/images/filter/sharpen.jpg +0 -0
- package/assets/image-editor/images/filter/technicolor.jpg +0 -0
- package/assets/image-editor/images/filter/vintage.jpg +0 -0
- package/assets/image-editor/images/frames/art1/bottom.png +0 -0
- package/assets/image-editor/images/frames/art1/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/art1/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/art1/left.png +0 -0
- package/assets/image-editor/images/frames/art1/right.png +0 -0
- package/assets/image-editor/images/frames/art1/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/art1/top.png +0 -0
- package/assets/image-editor/images/frames/art1/topLeft.png +0 -0
- package/assets/image-editor/images/frames/art1/topRight.png +0 -0
- package/assets/image-editor/images/frames/art2/bottom.png +0 -0
- package/assets/image-editor/images/frames/art2/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/art2/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/art2/left.png +0 -0
- package/assets/image-editor/images/frames/art2/right.png +0 -0
- package/assets/image-editor/images/frames/art2/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/art2/top.png +0 -0
- package/assets/image-editor/images/frames/art2/topLeft.png +0 -0
- package/assets/image-editor/images/frames/art2/topRight.png +0 -0
- package/assets/image-editor/images/frames/basic/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/ebony/bottom.png +0 -0
- package/assets/image-editor/images/frames/ebony/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/ebony/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/ebony/left.png +0 -0
- package/assets/image-editor/images/frames/ebony/right.png +0 -0
- package/assets/image-editor/images/frames/ebony/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/ebony/top.png +0 -0
- package/assets/image-editor/images/frames/ebony/topLeft.png +0 -0
- package/assets/image-editor/images/frames/ebony/topRight.png +0 -0
- package/assets/image-editor/images/frames/grunge1/bottom.png +0 -0
- package/assets/image-editor/images/frames/grunge1/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/grunge1/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/grunge1/left.png +0 -0
- package/assets/image-editor/images/frames/grunge1/right.png +0 -0
- package/assets/image-editor/images/frames/grunge1/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/grunge1/top.png +0 -0
- package/assets/image-editor/images/frames/grunge1/topLeft.png +0 -0
- package/assets/image-editor/images/frames/grunge1/topRight.png +0 -0
- package/assets/image-editor/images/frames/grunge2/bottom.png +0 -0
- package/assets/image-editor/images/frames/grunge2/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/grunge2/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/grunge2/left.png +0 -0
- package/assets/image-editor/images/frames/grunge2/right.png +0 -0
- package/assets/image-editor/images/frames/grunge2/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/grunge2/top.png +0 -0
- package/assets/image-editor/images/frames/grunge2/topLeft.png +0 -0
- package/assets/image-editor/images/frames/grunge2/topRight.png +0 -0
- package/assets/image-editor/images/frames/oak/bottom.png +0 -0
- package/assets/image-editor/images/frames/oak/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/oak/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/oak/left.png +0 -0
- package/assets/image-editor/images/frames/oak/right.png +0 -0
- package/assets/image-editor/images/frames/oak/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/oak/top.png +0 -0
- package/assets/image-editor/images/frames/oak/topLeft.png +0 -0
- package/assets/image-editor/images/frames/oak/topRight.png +0 -0
- package/assets/image-editor/images/frames/pine/bottom.png +0 -0
- package/assets/image-editor/images/frames/pine/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/pine/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/pine/left.png +0 -0
- package/assets/image-editor/images/frames/pine/right.png +0 -0
- package/assets/image-editor/images/frames/pine/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/pine/top.png +0 -0
- package/assets/image-editor/images/frames/pine/topLeft.png +0 -0
- package/assets/image-editor/images/frames/pine/topRight.png +0 -0
- package/assets/image-editor/images/frames/rainbow/bottom.png +0 -0
- package/assets/image-editor/images/frames/rainbow/bottomLeft.png +0 -0
- package/assets/image-editor/images/frames/rainbow/bottomRight.png +0 -0
- package/assets/image-editor/images/frames/rainbow/left.png +0 -0
- package/assets/image-editor/images/frames/rainbow/right.png +0 -0
- package/assets/image-editor/images/frames/rainbow/thumbnail.png +0 -0
- package/assets/image-editor/images/frames/rainbow/top.png +0 -0
- package/assets/image-editor/images/frames/rainbow/topLeft.png +0 -0
- package/assets/image-editor/images/frames/rainbow/topRight.png +0 -0
- package/assets/image-editor/images/gradients/0.png +0 -0
- package/assets/image-editor/images/gradients/1.png +0 -0
- package/assets/image-editor/images/gradients/10.png +0 -0
- package/assets/image-editor/images/gradients/11.png +0 -0
- package/assets/image-editor/images/gradients/12.png +0 -0
- package/assets/image-editor/images/gradients/2.png +0 -0
- package/assets/image-editor/images/gradients/3.png +0 -0
- package/assets/image-editor/images/gradients/4.png +0 -0
- package/assets/image-editor/images/gradients/5.png +0 -0
- package/assets/image-editor/images/gradients/6.png +0 -0
- package/assets/image-editor/images/gradients/7.png +0 -0
- package/assets/image-editor/images/gradients/8.png +0 -0
- package/assets/image-editor/images/gradients/9.png +0 -0
- package/assets/image-editor/images/samples/sample1.jpg +0 -0
- package/assets/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
- package/assets/image-editor/images/samples/sample2.jpg +0 -0
- package/assets/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
- package/assets/image-editor/images/samples/sample3.jpg +0 -0
- package/assets/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
- package/assets/image-editor/images/samples/sample4.json +871 -871
- package/assets/image-editor/images/stickers/beach/0.svg +25 -25
- package/assets/image-editor/images/stickers/beach/1.svg +14 -14
- package/assets/image-editor/images/stickers/beach/10.svg +34 -34
- package/assets/image-editor/images/stickers/beach/11.svg +27 -27
- package/assets/image-editor/images/stickers/beach/12.svg +10 -10
- package/assets/image-editor/images/stickers/beach/13.svg +25 -25
- package/assets/image-editor/images/stickers/beach/14.svg +16 -16
- package/assets/image-editor/images/stickers/beach/15.svg +14 -14
- package/assets/image-editor/images/stickers/beach/16.svg +44 -44
- package/assets/image-editor/images/stickers/beach/17.svg +35 -35
- package/assets/image-editor/images/stickers/beach/18.svg +32 -32
- package/assets/image-editor/images/stickers/beach/19.svg +23 -23
- package/assets/image-editor/images/stickers/beach/2.svg +14 -14
- package/assets/image-editor/images/stickers/beach/20.svg +24 -24
- package/assets/image-editor/images/stickers/beach/21.svg +11 -11
- package/assets/image-editor/images/stickers/beach/3.svg +26 -26
- package/assets/image-editor/images/stickers/beach/4.svg +25 -25
- package/assets/image-editor/images/stickers/beach/5.svg +22 -22
- package/assets/image-editor/images/stickers/beach/6.svg +20 -20
- package/assets/image-editor/images/stickers/beach/7.svg +32 -32
- package/assets/image-editor/images/stickers/beach/8.svg +28 -28
- package/assets/image-editor/images/stickers/beach/9.svg +18 -18
- package/assets/image-editor/images/stickers/bubbles/0.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/1.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/10.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/100.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/101.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/102.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/103.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/105.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/11.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/12.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/13.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/14.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/15.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/16.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/17.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/18.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/19.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/2.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/20.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/21.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/22.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/23.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/24.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/25.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/26.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/27.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/28.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/29.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/3.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/30.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/31.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/32.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/33.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/34.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/35.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/36.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/37.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/38.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/39.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/4.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/40.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/41.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/42.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/43.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/44.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/45.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/46.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/47.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/48.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/49.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/5.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/50.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/51.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/52.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/53.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/54.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/55.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/56.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/57.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/58.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/59.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/6.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/60.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/61.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/62.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/63.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/64.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/65.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/66.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/67.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/68.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/69.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/7.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/70.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/71.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/72.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/73.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/74.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/75.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/76.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/77.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/78.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/79.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/8.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/80.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/81.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/82.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/83.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/84.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/85.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/86.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/87.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/88.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/89.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/9.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/90.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/91.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/92.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/93.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/94.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/95.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/96.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/97.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/98.png +0 -0
- package/assets/image-editor/images/stickers/bubbles/99.png +0 -0
- package/assets/image-editor/images/stickers/categories/beach.svg +17 -17
- package/assets/image-editor/images/stickers/categories/clouds.svg +14 -14
- package/assets/image-editor/images/stickers/categories/doodles.svg +12 -12
- package/assets/image-editor/images/stickers/categories/emoticon.svg +9 -9
- package/assets/image-editor/images/stickers/categories/landmark.svg +19 -19
- package/assets/image-editor/images/stickers/categories/speech-bubble.svg +5 -5
- package/assets/image-editor/images/stickers/categories/star.svg +5 -5
- package/assets/image-editor/images/stickers/categories/transportation.svg +17 -17
- package/assets/image-editor/images/stickers/clouds/0.png +0 -0
- package/assets/image-editor/images/stickers/clouds/1.png +0 -0
- package/assets/image-editor/images/stickers/clouds/10.png +0 -0
- package/assets/image-editor/images/stickers/clouds/11.png +0 -0
- package/assets/image-editor/images/stickers/clouds/12.png +0 -0
- package/assets/image-editor/images/stickers/clouds/13.png +0 -0
- package/assets/image-editor/images/stickers/clouds/14.png +0 -0
- package/assets/image-editor/images/stickers/clouds/2.png +0 -0
- package/assets/image-editor/images/stickers/clouds/3.png +0 -0
- package/assets/image-editor/images/stickers/clouds/4.png +0 -0
- package/assets/image-editor/images/stickers/clouds/5.png +0 -0
- package/assets/image-editor/images/stickers/clouds/6.png +0 -0
- package/assets/image-editor/images/stickers/clouds/7.png +0 -0
- package/assets/image-editor/images/stickers/clouds/8.png +0 -0
- package/assets/image-editor/images/stickers/clouds/9.png +0 -0
- package/assets/image-editor/images/stickers/doodles/0.svg +201 -201
- package/assets/image-editor/images/stickers/doodles/1.svg +255 -255
- package/assets/image-editor/images/stickers/doodles/10.svg +160 -160
- package/assets/image-editor/images/stickers/doodles/11.svg +393 -393
- package/assets/image-editor/images/stickers/doodles/12.svg +293 -293
- package/assets/image-editor/images/stickers/doodles/13.svg +251 -251
- package/assets/image-editor/images/stickers/doodles/14.svg +370 -370
- package/assets/image-editor/images/stickers/doodles/15.svg +194 -194
- package/assets/image-editor/images/stickers/doodles/16.svg +383 -383
- package/assets/image-editor/images/stickers/doodles/17.svg +346 -346
- package/assets/image-editor/images/stickers/doodles/18.svg +286 -286
- package/assets/image-editor/images/stickers/doodles/19.svg +241 -241
- package/assets/image-editor/images/stickers/doodles/2.svg +227 -227
- package/assets/image-editor/images/stickers/doodles/20.svg +330 -330
- package/assets/image-editor/images/stickers/doodles/21.svg +200 -200
- package/assets/image-editor/images/stickers/doodles/22.svg +308 -308
- package/assets/image-editor/images/stickers/doodles/23.svg +518 -518
- package/assets/image-editor/images/stickers/doodles/24.svg +207 -207
- package/assets/image-editor/images/stickers/doodles/25.svg +260 -260
- package/assets/image-editor/images/stickers/doodles/26.svg +380 -380
- package/assets/image-editor/images/stickers/doodles/27.svg +222 -222
- package/assets/image-editor/images/stickers/doodles/28.svg +164 -164
- package/assets/image-editor/images/stickers/doodles/29.svg +271 -271
- package/assets/image-editor/images/stickers/doodles/3.svg +272 -272
- package/assets/image-editor/images/stickers/doodles/30.svg +283 -283
- package/assets/image-editor/images/stickers/doodles/31.svg +257 -257
- package/assets/image-editor/images/stickers/doodles/32.svg +276 -276
- package/assets/image-editor/images/stickers/doodles/33.svg +198 -198
- package/assets/image-editor/images/stickers/doodles/34.svg +314 -314
- package/assets/image-editor/images/stickers/doodles/35.svg +236 -236
- package/assets/image-editor/images/stickers/doodles/36.svg +273 -273
- package/assets/image-editor/images/stickers/doodles/37.svg +284 -284
- package/assets/image-editor/images/stickers/doodles/38.svg +167 -167
- package/assets/image-editor/images/stickers/doodles/39.svg +381 -381
- package/assets/image-editor/images/stickers/doodles/4.svg +216 -216
- package/assets/image-editor/images/stickers/doodles/40.svg +198 -198
- package/assets/image-editor/images/stickers/doodles/41.svg +259 -259
- package/assets/image-editor/images/stickers/doodles/42.svg +371 -371
- package/assets/image-editor/images/stickers/doodles/43.svg +198 -198
- package/assets/image-editor/images/stickers/doodles/44.svg +174 -174
- package/assets/image-editor/images/stickers/doodles/45.svg +178 -178
- package/assets/image-editor/images/stickers/doodles/46.svg +211 -211
- package/assets/image-editor/images/stickers/doodles/47.svg +195 -195
- package/assets/image-editor/images/stickers/doodles/48.svg +293 -293
- package/assets/image-editor/images/stickers/doodles/49.svg +191 -191
- package/assets/image-editor/images/stickers/doodles/5.svg +179 -179
- package/assets/image-editor/images/stickers/doodles/50.svg +323 -323
- package/assets/image-editor/images/stickers/doodles/51.svg +308 -308
- package/assets/image-editor/images/stickers/doodles/52.svg +162 -162
- package/assets/image-editor/images/stickers/doodles/53.svg +263 -263
- package/assets/image-editor/images/stickers/doodles/54.svg +175 -175
- package/assets/image-editor/images/stickers/doodles/55.svg +177 -177
- package/assets/image-editor/images/stickers/doodles/56.svg +160 -160
- package/assets/image-editor/images/stickers/doodles/57.svg +115 -115
- package/assets/image-editor/images/stickers/doodles/58.svg +327 -327
- package/assets/image-editor/images/stickers/doodles/59.svg +197 -197
- package/assets/image-editor/images/stickers/doodles/6.svg +388 -388
- package/assets/image-editor/images/stickers/doodles/60.svg +414 -414
- package/assets/image-editor/images/stickers/doodles/61.svg +287 -287
- package/assets/image-editor/images/stickers/doodles/62.svg +193 -193
- package/assets/image-editor/images/stickers/doodles/63.svg +329 -329
- package/assets/image-editor/images/stickers/doodles/64.svg +150 -150
- package/assets/image-editor/images/stickers/doodles/65.svg +275 -275
- package/assets/image-editor/images/stickers/doodles/66.svg +174 -174
- package/assets/image-editor/images/stickers/doodles/67.svg +343 -343
- package/assets/image-editor/images/stickers/doodles/68.svg +242 -242
- package/assets/image-editor/images/stickers/doodles/69.svg +160 -160
- package/assets/image-editor/images/stickers/doodles/7.svg +194 -194
- package/assets/image-editor/images/stickers/doodles/70.svg +365 -365
- package/assets/image-editor/images/stickers/doodles/71.svg +454 -454
- package/assets/image-editor/images/stickers/doodles/72.svg +162 -162
- package/assets/image-editor/images/stickers/doodles/73.svg +393 -393
- package/assets/image-editor/images/stickers/doodles/74.svg +206 -206
- package/assets/image-editor/images/stickers/doodles/75.svg +275 -275
- package/assets/image-editor/images/stickers/doodles/76.svg +350 -350
- package/assets/image-editor/images/stickers/doodles/77.svg +323 -323
- package/assets/image-editor/images/stickers/doodles/78.svg +316 -316
- package/assets/image-editor/images/stickers/doodles/79.svg +503 -503
- package/assets/image-editor/images/stickers/doodles/8.svg +185 -185
- package/assets/image-editor/images/stickers/doodles/80.svg +235 -235
- package/assets/image-editor/images/stickers/doodles/81.svg +184 -184
- package/assets/image-editor/images/stickers/doodles/82.svg +246 -246
- package/assets/image-editor/images/stickers/doodles/83.svg +125 -125
- package/assets/image-editor/images/stickers/doodles/84.svg +168 -168
- package/assets/image-editor/images/stickers/doodles/85.svg +138 -138
- package/assets/image-editor/images/stickers/doodles/86.svg +223 -223
- package/assets/image-editor/images/stickers/doodles/87.svg +475 -475
- package/assets/image-editor/images/stickers/doodles/88.svg +172 -172
- package/assets/image-editor/images/stickers/doodles/89.svg +199 -199
- package/assets/image-editor/images/stickers/doodles/9.svg +368 -368
- package/assets/image-editor/images/stickers/doodles/90.svg +298 -298
- package/assets/image-editor/images/stickers/doodles/91.svg +176 -176
- package/assets/image-editor/images/stickers/doodles/92.svg +152 -152
- package/assets/image-editor/images/stickers/doodles/93.svg +206 -206
- package/assets/image-editor/images/stickers/doodles/94.svg +202 -202
- package/assets/image-editor/images/stickers/doodles/95.svg +114 -114
- package/assets/image-editor/images/stickers/doodles/96.svg +149 -149
- package/assets/image-editor/images/stickers/doodles/97.svg +197 -197
- package/assets/image-editor/images/stickers/doodles/98.svg +397 -397
- package/assets/image-editor/images/stickers/doodles/99.svg +502 -502
- package/assets/image-editor/images/stickers/emoticons/afro-1.svg +122 -122
- package/assets/image-editor/images/stickers/emoticons/afro.svg +85 -85
- package/assets/image-editor/images/stickers/emoticons/agent.svg +114 -114
- package/assets/image-editor/images/stickers/emoticons/alien-1.svg +60 -60
- package/assets/image-editor/images/stickers/emoticons/alien.svg +64 -64
- package/assets/image-editor/images/stickers/emoticons/angel.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/angry-1.svg +83 -83
- package/assets/image-editor/images/stickers/emoticons/angry-2.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/angry-3.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/angry-4.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/angry-5.svg +62 -62
- package/assets/image-editor/images/stickers/emoticons/angry.svg +78 -78
- package/assets/image-editor/images/stickers/emoticons/arguing.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/arrogant.svg +98 -98
- package/assets/image-editor/images/stickers/emoticons/asian-1.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/asian.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/avatar.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/baby-1.svg +51 -51
- package/assets/image-editor/images/stickers/emoticons/baby-2.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/baby.svg +66 -66
- package/assets/image-editor/images/stickers/emoticons/bully.svg +68 -68
- package/assets/image-editor/images/stickers/emoticons/burglar.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/businessman.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/cheeky-1.svg +83 -83
- package/assets/image-editor/images/stickers/emoticons/cheeky.svg +73 -73
- package/assets/image-editor/images/stickers/emoticons/clown.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/confused-1.svg +74 -74
- package/assets/image-editor/images/stickers/emoticons/confused-2.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/confused-3.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/confused.svg +66 -66
- package/assets/image-editor/images/stickers/emoticons/creepy.svg +60 -60
- package/assets/image-editor/images/stickers/emoticons/crying-1.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/crying-2.svg +83 -83
- package/assets/image-editor/images/stickers/emoticons/crying-3.svg +53 -53
- package/assets/image-editor/images/stickers/emoticons/crying.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/dazed-1.svg +63 -63
- package/assets/image-editor/images/stickers/emoticons/dazed-2.svg +51 -51
- package/assets/image-editor/images/stickers/emoticons/dazed-3.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/dazed.svg +56 -56
- package/assets/image-editor/images/stickers/emoticons/dead-1.svg +61 -61
- package/assets/image-editor/images/stickers/emoticons/dead-2.svg +80 -80
- package/assets/image-editor/images/stickers/emoticons/dead-3.svg +66 -66
- package/assets/image-editor/images/stickers/emoticons/dead-4.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/dead-5.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/dead-6.svg +53 -53
- package/assets/image-editor/images/stickers/emoticons/dead.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/desperate-1.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/desperate.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/detective.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/dissapointment.svg +70 -70
- package/assets/image-editor/images/stickers/emoticons/doctor.svg +61 -61
- package/assets/image-editor/images/stickers/emoticons/drunk.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/dumb.svg +50 -50
- package/assets/image-editor/images/stickers/emoticons/emo-1.svg +104 -104
- package/assets/image-editor/images/stickers/emoticons/emo-2.svg +111 -111
- package/assets/image-editor/images/stickers/emoticons/emo.svg +56 -56
- package/assets/image-editor/images/stickers/emoticons/emoticon.svg +84 -84
- package/assets/image-editor/images/stickers/emoticons/evil.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/faint-1.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/faint.svg +84 -84
- package/assets/image-editor/images/stickers/emoticons/flirt-1.svg +81 -81
- package/assets/image-editor/images/stickers/emoticons/flirt-2.svg +68 -68
- package/assets/image-editor/images/stickers/emoticons/flirt.svg +71 -71
- package/assets/image-editor/images/stickers/emoticons/flirty.svg +60 -60
- package/assets/image-editor/images/stickers/emoticons/gangster.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/geek-1.svg +76 -76
- package/assets/image-editor/images/stickers/emoticons/geek.svg +69 -69
- package/assets/image-editor/images/stickers/emoticons/gentleman-1.svg +82 -82
- package/assets/image-editor/images/stickers/emoticons/gentleman-2.svg +58 -58
- package/assets/image-editor/images/stickers/emoticons/gentleman-3.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/gentleman-4.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/gentleman.svg +57 -57
- package/assets/image-editor/images/stickers/emoticons/ginger.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/girl-1.svg +70 -70
- package/assets/image-editor/images/stickers/emoticons/girl.svg +73 -73
- package/assets/image-editor/images/stickers/emoticons/goofy-1.svg +46 -46
- package/assets/image-editor/images/stickers/emoticons/goofy-2.svg +79 -79
- package/assets/image-editor/images/stickers/emoticons/goofy-3.svg +79 -79
- package/assets/image-editor/images/stickers/emoticons/goofy-4.svg +46 -46
- package/assets/image-editor/images/stickers/emoticons/goofy.svg +79 -79
- package/assets/image-editor/images/stickers/emoticons/grubby-1.svg +114 -114
- package/assets/image-editor/images/stickers/emoticons/grubby.svg +165 -165
- package/assets/image-editor/images/stickers/emoticons/happy-1.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/happy-10.svg +62 -62
- package/assets/image-editor/images/stickers/emoticons/happy-11.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/happy-12.svg +53 -53
- package/assets/image-editor/images/stickers/emoticons/happy-13.svg +58 -58
- package/assets/image-editor/images/stickers/emoticons/happy-14.svg +62 -62
- package/assets/image-editor/images/stickers/emoticons/happy-15.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/happy-16.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/happy-2.svg +71 -71
- package/assets/image-editor/images/stickers/emoticons/happy-3.svg +74 -74
- package/assets/image-editor/images/stickers/emoticons/happy-4.svg +77 -77
- package/assets/image-editor/images/stickers/emoticons/happy-5.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/happy-6.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/happy-7.svg +58 -58
- package/assets/image-editor/images/stickers/emoticons/happy-8.svg +42 -42
- package/assets/image-editor/images/stickers/emoticons/happy-9.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/happy.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/harry-potter.svg +68 -68
- package/assets/image-editor/images/stickers/emoticons/heisenberg.svg +80 -80
- package/assets/image-editor/images/stickers/emoticons/hipster-1.svg +118 -118
- package/assets/image-editor/images/stickers/emoticons/hipster-2.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/hipster.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/in-love-1.svg +62 -62
- package/assets/image-editor/images/stickers/emoticons/in-love-2.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/in-love-3.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/in-love-4.svg +50 -50
- package/assets/image-editor/images/stickers/emoticons/in-love-5.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/in-love-6.svg +53 -53
- package/assets/image-editor/images/stickers/emoticons/in-love.svg +57 -57
- package/assets/image-editor/images/stickers/emoticons/japan.svg +79 -79
- package/assets/image-editor/images/stickers/emoticons/jew.svg +83 -83
- package/assets/image-editor/images/stickers/emoticons/joyful-1.svg +72 -72
- package/assets/image-editor/images/stickers/emoticons/joyful-2.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/joyful.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/kiss-1.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/kiss-2.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/kiss-3.svg +53 -53
- package/assets/image-editor/images/stickers/emoticons/kiss-4.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/kiss.svg +67 -67
- package/assets/image-editor/images/stickers/emoticons/laughing-1.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/laughing-2.svg +57 -57
- package/assets/image-editor/images/stickers/emoticons/laughing-3.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/laughing.svg +56 -56
- package/assets/image-editor/images/stickers/emoticons/listening.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/love.svg +74 -74
- package/assets/image-editor/images/stickers/emoticons/manly.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/miserly-1.svg +90 -90
- package/assets/image-editor/images/stickers/emoticons/miserly.svg +82 -82
- package/assets/image-editor/images/stickers/emoticons/nerd-1.svg +88 -88
- package/assets/image-editor/images/stickers/emoticons/nerd-2.svg +73 -73
- package/assets/image-editor/images/stickers/emoticons/nerd-3.svg +60 -60
- package/assets/image-editor/images/stickers/emoticons/nerd-4.svg +70 -70
- package/assets/image-editor/images/stickers/emoticons/nerd.svg +88 -88
- package/assets/image-editor/images/stickers/emoticons/ninja.svg +51 -51
- package/assets/image-editor/images/stickers/emoticons/pirate-1.svg +92 -92
- package/assets/image-editor/images/stickers/emoticons/pirate-2.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/pirate.svg +286 -286
- package/assets/image-editor/images/stickers/emoticons/punk-1.svg +134 -134
- package/assets/image-editor/images/stickers/emoticons/punk-2.svg +153 -153
- package/assets/image-editor/images/stickers/emoticons/punk.svg +82 -82
- package/assets/image-editor/images/stickers/emoticons/rapper.svg +51 -51
- package/assets/image-editor/images/stickers/emoticons/relieved.svg +56 -56
- package/assets/image-editor/images/stickers/emoticons/rich-1.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/rich-2.svg +93 -93
- package/assets/image-editor/images/stickers/emoticons/rich.svg +88 -88
- package/assets/image-editor/images/stickers/emoticons/rockstar.svg +177 -177
- package/assets/image-editor/images/stickers/emoticons/sad-1.svg +43 -43
- package/assets/image-editor/images/stickers/emoticons/sad-2.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/sad-3.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/sad-4.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/sad-5.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/sad-6.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/sad.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/scared-1.svg +79 -79
- package/assets/image-editor/images/stickers/emoticons/scared-2.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/scared-3.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/scared.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/sceptic-1.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/sceptic-2.svg +80 -80
- package/assets/image-editor/images/stickers/emoticons/sceptic-3.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/sceptic-4.svg +46 -46
- package/assets/image-editor/images/stickers/emoticons/sceptic-5.svg +43 -43
- package/assets/image-editor/images/stickers/emoticons/sceptic-6.svg +42 -42
- package/assets/image-editor/images/stickers/emoticons/sceptic-7.svg +50 -50
- package/assets/image-editor/images/stickers/emoticons/sceptic.svg +44 -44
- package/assets/image-editor/images/stickers/emoticons/secret.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/shocked-1.svg +67 -67
- package/assets/image-editor/images/stickers/emoticons/shocked-2.svg +44 -44
- package/assets/image-editor/images/stickers/emoticons/shocked-3.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/shocked.svg +46 -46
- package/assets/image-editor/images/stickers/emoticons/sick-1.svg +55 -55
- package/assets/image-editor/images/stickers/emoticons/sick-2.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/sick-3.svg +49 -49
- package/assets/image-editor/images/stickers/emoticons/sick-4.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/sick.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/silent.svg +43 -43
- package/assets/image-editor/images/stickers/emoticons/skeleton.svg +64 -64
- package/assets/image-editor/images/stickers/emoticons/smile.svg +43 -43
- package/assets/image-editor/images/stickers/emoticons/smiling-1.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/smiling.svg +75 -75
- package/assets/image-editor/images/stickers/emoticons/smoked.svg +131 -131
- package/assets/image-editor/images/stickers/emoticons/smug-1.svg +74 -74
- package/assets/image-editor/images/stickers/emoticons/smug-2.svg +82 -82
- package/assets/image-editor/images/stickers/emoticons/smug-3.svg +71 -71
- package/assets/image-editor/images/stickers/emoticons/smug-4.svg +50 -50
- package/assets/image-editor/images/stickers/emoticons/smug-5.svg +64 -64
- package/assets/image-editor/images/stickers/emoticons/smug-6.svg +82 -82
- package/assets/image-editor/images/stickers/emoticons/smug.svg +96 -96
- package/assets/image-editor/images/stickers/emoticons/sporty.svg +68 -68
- package/assets/image-editor/images/stickers/emoticons/stunned.svg +72 -72
- package/assets/image-editor/images/stickers/emoticons/superhero-1.svg +60 -60
- package/assets/image-editor/images/stickers/emoticons/superhero-2.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/superhero-3.svg +48 -48
- package/assets/image-editor/images/stickers/emoticons/superhero-4.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/superhero.svg +45 -45
- package/assets/image-editor/images/stickers/emoticons/surprised-1.svg +47 -47
- package/assets/image-editor/images/stickers/emoticons/surprised.svg +58 -58
- package/assets/image-editor/images/stickers/emoticons/thinking.svg +43 -43
- package/assets/image-editor/images/stickers/emoticons/tired-1.svg +78 -78
- package/assets/image-editor/images/stickers/emoticons/tired-2.svg +65 -65
- package/assets/image-editor/images/stickers/emoticons/tired-3.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/tired.svg +83 -83
- package/assets/image-editor/images/stickers/emoticons/tough-1.svg +65 -65
- package/assets/image-editor/images/stickers/emoticons/tough.svg +158 -158
- package/assets/image-editor/images/stickers/emoticons/trendy.svg +57 -57
- package/assets/image-editor/images/stickers/emoticons/vampire-1.svg +56 -56
- package/assets/image-editor/images/stickers/emoticons/vampire.svg +59 -59
- package/assets/image-editor/images/stickers/emoticons/wink-1.svg +54 -54
- package/assets/image-editor/images/stickers/emoticons/wink-2.svg +64 -64
- package/assets/image-editor/images/stickers/emoticons/wink.svg +73 -73
- package/assets/image-editor/images/stickers/emoticons/winking-1.svg +52 -52
- package/assets/image-editor/images/stickers/emoticons/winking.svg +43 -43
- package/assets/image-editor/images/stickers/emoticons/yawning-1.svg +62 -62
- package/assets/image-editor/images/stickers/emoticons/yawning-2.svg +51 -51
- package/assets/image-editor/images/stickers/emoticons/yawning-3.svg +51 -51
- package/assets/image-editor/images/stickers/emoticons/yawning.svg +73 -73
- package/assets/image-editor/images/stickers/emoticons/yelling.svg +80 -80
- package/assets/image-editor/images/stickers/emoticons/zombie.svg +65 -65
- package/assets/image-editor/images/stickers/landmarks/0.svg +38 -38
- package/assets/image-editor/images/stickers/landmarks/1.svg +46 -46
- package/assets/image-editor/images/stickers/landmarks/10.svg +18 -18
- package/assets/image-editor/images/stickers/landmarks/11.svg +81 -81
- package/assets/image-editor/images/stickers/landmarks/12.svg +77 -77
- package/assets/image-editor/images/stickers/landmarks/13.svg +42 -42
- package/assets/image-editor/images/stickers/landmarks/14.svg +78 -78
- package/assets/image-editor/images/stickers/landmarks/15.svg +84 -84
- package/assets/image-editor/images/stickers/landmarks/16.svg +87 -87
- package/assets/image-editor/images/stickers/landmarks/17.svg +60 -60
- package/assets/image-editor/images/stickers/landmarks/18.svg +30 -30
- package/assets/image-editor/images/stickers/landmarks/19.svg +36 -36
- package/assets/image-editor/images/stickers/landmarks/2.svg +28 -28
- package/assets/image-editor/images/stickers/landmarks/20.svg +137 -137
- package/assets/image-editor/images/stickers/landmarks/21.svg +63 -63
- package/assets/image-editor/images/stickers/landmarks/22.svg +26 -26
- package/assets/image-editor/images/stickers/landmarks/23.svg +52 -52
- package/assets/image-editor/images/stickers/landmarks/24.svg +56 -56
- package/assets/image-editor/images/stickers/landmarks/25.svg +40 -40
- package/assets/image-editor/images/stickers/landmarks/26.svg +34 -34
- package/assets/image-editor/images/stickers/landmarks/27.svg +32 -32
- package/assets/image-editor/images/stickers/landmarks/28.svg +19 -19
- package/assets/image-editor/images/stickers/landmarks/29.svg +23 -23
- package/assets/image-editor/images/stickers/landmarks/3.svg +36 -36
- package/assets/image-editor/images/stickers/landmarks/30.svg +36 -36
- package/assets/image-editor/images/stickers/landmarks/31.svg +27 -27
- package/assets/image-editor/images/stickers/landmarks/32.svg +25 -25
- package/assets/image-editor/images/stickers/landmarks/33.svg +29 -29
- package/assets/image-editor/images/stickers/landmarks/34.svg +72 -72
- package/assets/image-editor/images/stickers/landmarks/35.svg +18 -18
- package/assets/image-editor/images/stickers/landmarks/36.svg +45 -45
- package/assets/image-editor/images/stickers/landmarks/37.svg +46 -46
- package/assets/image-editor/images/stickers/landmarks/38.svg +44 -44
- package/assets/image-editor/images/stickers/landmarks/39.svg +23 -23
- package/assets/image-editor/images/stickers/landmarks/4.svg +33 -33
- package/assets/image-editor/images/stickers/landmarks/40.svg +25 -25
- package/assets/image-editor/images/stickers/landmarks/41.svg +69 -69
- package/assets/image-editor/images/stickers/landmarks/42.svg +75 -75
- package/assets/image-editor/images/stickers/landmarks/43.svg +44 -44
- package/assets/image-editor/images/stickers/landmarks/44.svg +65 -65
- package/assets/image-editor/images/stickers/landmarks/45.svg +19 -19
- package/assets/image-editor/images/stickers/landmarks/46.svg +47 -47
- package/assets/image-editor/images/stickers/landmarks/47.svg +544 -544
- package/assets/image-editor/images/stickers/landmarks/48.svg +162 -162
- package/assets/image-editor/images/stickers/landmarks/49.svg +70 -70
- package/assets/image-editor/images/stickers/landmarks/5.svg +36 -36
- package/assets/image-editor/images/stickers/landmarks/50.svg +52 -52
- package/assets/image-editor/images/stickers/landmarks/51.svg +110 -110
- package/assets/image-editor/images/stickers/landmarks/52.svg +41 -41
- package/assets/image-editor/images/stickers/landmarks/53.svg +74 -74
- package/assets/image-editor/images/stickers/landmarks/54.svg +36 -36
- package/assets/image-editor/images/stickers/landmarks/55.svg +84 -84
- package/assets/image-editor/images/stickers/landmarks/56.svg +93 -93
- package/assets/image-editor/images/stickers/landmarks/57.svg +67 -67
- package/assets/image-editor/images/stickers/landmarks/58.svg +101 -101
- package/assets/image-editor/images/stickers/landmarks/59.svg +47 -47
- package/assets/image-editor/images/stickers/landmarks/6.svg +59 -59
- package/assets/image-editor/images/stickers/landmarks/60.svg +134 -134
- package/assets/image-editor/images/stickers/landmarks/61.svg +79 -79
- package/assets/image-editor/images/stickers/landmarks/62.svg +43 -43
- package/assets/image-editor/images/stickers/landmarks/63.svg +83 -83
- package/assets/image-editor/images/stickers/landmarks/64.svg +99 -99
- package/assets/image-editor/images/stickers/landmarks/65.svg +79 -79
- package/assets/image-editor/images/stickers/landmarks/66.svg +37 -37
- package/assets/image-editor/images/stickers/landmarks/67.svg +82 -82
- package/assets/image-editor/images/stickers/landmarks/68.svg +216 -216
- package/assets/image-editor/images/stickers/landmarks/69.svg +17 -17
- package/assets/image-editor/images/stickers/landmarks/7.svg +16 -16
- package/assets/image-editor/images/stickers/landmarks/70.svg +45 -45
- package/assets/image-editor/images/stickers/landmarks/71.svg +37 -37
- package/assets/image-editor/images/stickers/landmarks/72.svg +28 -28
- package/assets/image-editor/images/stickers/landmarks/73.svg +25 -25
- package/assets/image-editor/images/stickers/landmarks/74.svg +23 -23
- package/assets/image-editor/images/stickers/landmarks/75.svg +88 -88
- package/assets/image-editor/images/stickers/landmarks/76.svg +25 -25
- package/assets/image-editor/images/stickers/landmarks/77.svg +23 -23
- package/assets/image-editor/images/stickers/landmarks/78.svg +63 -63
- package/assets/image-editor/images/stickers/landmarks/79.svg +25 -25
- package/assets/image-editor/images/stickers/landmarks/8.svg +52 -52
- package/assets/image-editor/images/stickers/landmarks/80.svg +29 -29
- package/assets/image-editor/images/stickers/landmarks/81.svg +44 -44
- package/assets/image-editor/images/stickers/landmarks/82.svg +83 -83
- package/assets/image-editor/images/stickers/landmarks/83.svg +65 -65
- package/assets/image-editor/images/stickers/landmarks/84.svg +31 -31
- package/assets/image-editor/images/stickers/landmarks/85.svg +30 -30
- package/assets/image-editor/images/stickers/landmarks/86.svg +26 -26
- package/assets/image-editor/images/stickers/landmarks/87.svg +132 -132
- package/assets/image-editor/images/stickers/landmarks/88.svg +93 -93
- package/assets/image-editor/images/stickers/landmarks/89.svg +91 -91
- package/assets/image-editor/images/stickers/landmarks/9.svg +70 -70
- package/assets/image-editor/images/stickers/landmarks/90.svg +65 -65
- package/assets/image-editor/images/stickers/landmarks/91.svg +36 -36
- package/assets/image-editor/images/stickers/landmarks/92.svg +66 -66
- package/assets/image-editor/images/stickers/landmarks/93.svg +65 -65
- package/assets/image-editor/images/stickers/landmarks/94.svg +28 -28
- package/assets/image-editor/images/stickers/landmarks/95.svg +31 -31
- package/assets/image-editor/images/stickers/landmarks/96.svg +25 -25
- package/assets/image-editor/images/stickers/landmarks/97.svg +31 -31
- package/assets/image-editor/images/stickers/landmarks/98.svg +52 -52
- package/assets/image-editor/images/stickers/landmarks/99.svg +56 -56
- package/assets/image-editor/images/stickers/stars/0.png +0 -0
- package/assets/image-editor/images/stickers/stars/1.png +0 -0
- package/assets/image-editor/images/stickers/stars/2.png +0 -0
- package/assets/image-editor/images/stickers/stars/3.png +0 -0
- package/assets/image-editor/images/stickers/stars/4.png +0 -0
- package/assets/image-editor/images/stickers/stars/5.png +0 -0
- package/assets/image-editor/images/stickers/transportation/0.svg +26 -26
- package/assets/image-editor/images/stickers/transportation/1.svg +10 -10
- package/assets/image-editor/images/stickers/transportation/10.svg +16 -16
- package/assets/image-editor/images/stickers/transportation/11.svg +30 -30
- package/assets/image-editor/images/stickers/transportation/12.svg +22 -22
- package/assets/image-editor/images/stickers/transportation/13.svg +24 -24
- package/assets/image-editor/images/stickers/transportation/14.svg +19 -19
- package/assets/image-editor/images/stickers/transportation/15.svg +23 -23
- package/assets/image-editor/images/stickers/transportation/16.svg +25 -25
- package/assets/image-editor/images/stickers/transportation/17.svg +34 -34
- package/assets/image-editor/images/stickers/transportation/18.svg +29 -29
- package/assets/image-editor/images/stickers/transportation/19.svg +24 -24
- package/assets/image-editor/images/stickers/transportation/2.svg +27 -27
- package/assets/image-editor/images/stickers/transportation/20.svg +25 -25
- package/assets/image-editor/images/stickers/transportation/21.svg +22 -22
- package/assets/image-editor/images/stickers/transportation/3.svg +18 -18
- package/assets/image-editor/images/stickers/transportation/4.svg +24 -24
- package/assets/image-editor/images/stickers/transportation/5.svg +15 -15
- package/assets/image-editor/images/stickers/transportation/6.svg +25 -25
- package/assets/image-editor/images/stickers/transportation/7.svg +17 -17
- package/assets/image-editor/images/stickers/transportation/8.svg +28 -28
- package/assets/image-editor/images/stickers/transportation/9.svg +23 -23
- package/assets/image-editor/images/textures/0.png +0 -0
- package/assets/image-editor/images/textures/1.png +0 -0
- package/assets/image-editor/images/textures/10.png +0 -0
- package/assets/image-editor/images/textures/11.png +0 -0
- package/assets/image-editor/images/textures/12.png +0 -0
- package/assets/image-editor/images/textures/13.png +0 -0
- package/assets/image-editor/images/textures/14.png +0 -0
- package/assets/image-editor/images/textures/15.png +0 -0
- package/assets/image-editor/images/textures/16.png +0 -0
- package/assets/image-editor/images/textures/17.png +0 -0
- package/assets/image-editor/images/textures/18.png +0 -0
- package/assets/image-editor/images/textures/19.png +0 -0
- package/assets/image-editor/images/textures/2.png +0 -0
- package/assets/image-editor/images/textures/20.png +0 -0
- package/assets/image-editor/images/textures/21.png +0 -0
- package/assets/image-editor/images/textures/22.png +0 -0
- package/assets/image-editor/images/textures/23.png +0 -0
- package/assets/image-editor/images/textures/24.png +0 -0
- package/assets/image-editor/images/textures/25.png +0 -0
- package/assets/image-editor/images/textures/26.png +0 -0
- package/assets/image-editor/images/textures/27.png +0 -0
- package/assets/image-editor/images/textures/28.png +0 -0
- package/assets/image-editor/images/textures/3.png +0 -0
- package/assets/image-editor/images/textures/4.png +0 -0
- package/assets/image-editor/images/textures/5.png +0 -0
- package/assets/image-editor/images/textures/6.png +0 -0
- package/assets/image-editor/images/textures/7.png +0 -0
- package/assets/image-editor/images/textures/8.png +0 -0
- package/assets/image-editor/images/textures/9.png +0 -0
- package/components/EmIcons/EmIcons.d.ts +30 -15
- package/components/ImageIcons/useIconsCopyToFolder.d.ts +2 -2
- package/constants/index.d.ts +8 -8
- package/debug-script.js +445 -445
- package/file-manager-IconsTab-Cv51TWYV.js +2426 -0
- package/file-manager-ImageCodeGenerator-DroVucLL.js +368 -0
- package/file-manager-JsBarcode-Cji_rnaG.js +2692 -0
- package/file-manager-browser-CweGvoKm.js +1229 -0
- package/file-manager-hooks-Dg-OcR_x.js +12256 -0
- package/file-manager-rolldown-runtime-DtPi1Y-2.js +13 -0
- package/file-manager-useMediaListEngine-ByGmaaib.js +921 -0
- package/file-manager.css +2 -3373
- package/file-manager.esm.js +8932 -2
- package/file-manager.js +28 -60217
- package/hooks/notifications/useNotificationsBase.d.ts +1 -1
- package/hooks/usePixieEditor.d.ts +1 -1
- package/i18n.d.ts +0 -1
- package/index.d.ts +5 -9
- package/mockServiceWorker.js +344 -344
- package/notification.d.ts +643 -646
- package/package.json +36 -36
- package/sample-files.json +104 -104
- package/shared/fileManagerApiError.d.ts +2 -2
- package/suppress-resize-observer-errors.js +60 -60
- package/test-pixie-loading.html +108 -108
- package/types.d.ts +8 -0
- package/utils/fileFormatUtils.d.ts +2 -2
- package/utils/jsonDataProvider.d.ts +4 -4
- package/utils/libraryTabLock.d.ts +11 -0
- package/utils/libraryTabLock.test.d.ts +1 -0
- package/utils/sortHelpers.d.ts +1 -1
- package/utils/themeUtils.d.ts +2 -2
- package/widgets/layout/errorBoundary/errorBoundary.d.ts +1 -2
- package/129.1f7048a0e93daec2ca44.js +0 -3893
- package/276.c0a535f6d0c018f0ff32.js +0 -426
- package/583.177f1aa2edb14f5f073e.js +0 -2978
- package/file-manager-IconsTab-_WPQISpD.js +0 -2
- package/file-manager-ImageCodeGenerator-BDrvWfI1.js +0 -2
- package/file-manager-JsBarcode-zmCuJ0oz.js +0 -2
- package/file-manager-browser-B-aFTXwm.js +0 -2
- package/file-manager-index-C_WmI5Gt.js +0 -10
- package/fm-icons-tab.dbc6aea218d2ab6b3de5.js +0 -2304
- package/fm-image-code-generator.50fded261e49f2abdf2b.js +0 -370
|
@@ -0,0 +1,2692 @@
|
|
|
1
|
+
import { t as e } from "./file-manager-rolldown-runtime-DtPi1Y-2.js";
|
|
2
|
+
//#region node_modules/jsbarcode/bin/barcodes/Barcode.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
7
|
+
}
|
|
8
|
+
e.default = function e(n, r) {
|
|
9
|
+
t(this, e), this.data = n, this.text = r.text || n, this.options = r;
|
|
10
|
+
};
|
|
11
|
+
})), n = /* @__PURE__ */ e(((e) => {
|
|
12
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.CODE39 = void 0;
|
|
13
|
+
var n = function() {
|
|
14
|
+
function e(e, t) {
|
|
15
|
+
for (var n = 0; n < t.length; n++) {
|
|
16
|
+
var r = t[n];
|
|
17
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return function(t, n, r) {
|
|
21
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
22
|
+
};
|
|
23
|
+
}(), r = i(t());
|
|
24
|
+
function i(e) {
|
|
25
|
+
return e && e.__esModule ? e : { default: e };
|
|
26
|
+
}
|
|
27
|
+
function a(e, t) {
|
|
28
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
29
|
+
}
|
|
30
|
+
function o(e, t) {
|
|
31
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
32
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
33
|
+
}
|
|
34
|
+
function s(e, t) {
|
|
35
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
36
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
37
|
+
value: e,
|
|
38
|
+
enumerable: !1,
|
|
39
|
+
writable: !0,
|
|
40
|
+
configurable: !0
|
|
41
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
42
|
+
}
|
|
43
|
+
var c = function(e) {
|
|
44
|
+
s(t, e);
|
|
45
|
+
function t(e, n) {
|
|
46
|
+
return a(this, t), e = e.toUpperCase(), n.mod43 && (e += p(h(e))), o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
47
|
+
}
|
|
48
|
+
return n(t, [{
|
|
49
|
+
key: "encode",
|
|
50
|
+
value: function() {
|
|
51
|
+
for (var e = d("*"), t = 0; t < this.data.length; t++) e += d(this.data[t]) + "0";
|
|
52
|
+
return e += d("*"), {
|
|
53
|
+
data: e,
|
|
54
|
+
text: this.text
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
key: "valid",
|
|
59
|
+
value: function() {
|
|
60
|
+
return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/) !== -1;
|
|
61
|
+
}
|
|
62
|
+
}]), t;
|
|
63
|
+
}(r.default), l = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*".split(""), u = [
|
|
64
|
+
20957,
|
|
65
|
+
29783,
|
|
66
|
+
23639,
|
|
67
|
+
30485,
|
|
68
|
+
20951,
|
|
69
|
+
29813,
|
|
70
|
+
23669,
|
|
71
|
+
20855,
|
|
72
|
+
29789,
|
|
73
|
+
23645,
|
|
74
|
+
29975,
|
|
75
|
+
23831,
|
|
76
|
+
30533,
|
|
77
|
+
22295,
|
|
78
|
+
30149,
|
|
79
|
+
24005,
|
|
80
|
+
21623,
|
|
81
|
+
29981,
|
|
82
|
+
23837,
|
|
83
|
+
22301,
|
|
84
|
+
30023,
|
|
85
|
+
23879,
|
|
86
|
+
30545,
|
|
87
|
+
22343,
|
|
88
|
+
30161,
|
|
89
|
+
24017,
|
|
90
|
+
21959,
|
|
91
|
+
30065,
|
|
92
|
+
23921,
|
|
93
|
+
22385,
|
|
94
|
+
29015,
|
|
95
|
+
18263,
|
|
96
|
+
29141,
|
|
97
|
+
17879,
|
|
98
|
+
29045,
|
|
99
|
+
18293,
|
|
100
|
+
17783,
|
|
101
|
+
29021,
|
|
102
|
+
18269,
|
|
103
|
+
17477,
|
|
104
|
+
17489,
|
|
105
|
+
17681,
|
|
106
|
+
20753,
|
|
107
|
+
35770
|
|
108
|
+
];
|
|
109
|
+
function d(e) {
|
|
110
|
+
return f(m(e));
|
|
111
|
+
}
|
|
112
|
+
function f(e) {
|
|
113
|
+
return u[e].toString(2);
|
|
114
|
+
}
|
|
115
|
+
function p(e) {
|
|
116
|
+
return l[e];
|
|
117
|
+
}
|
|
118
|
+
function m(e) {
|
|
119
|
+
return l.indexOf(e);
|
|
120
|
+
}
|
|
121
|
+
function h(e) {
|
|
122
|
+
for (var t = 0, n = 0; n < e.length; n++) t += m(e[n]);
|
|
123
|
+
return t %= 43, t;
|
|
124
|
+
}
|
|
125
|
+
e.CODE39 = c;
|
|
126
|
+
})), r = /* @__PURE__ */ e(((e) => {
|
|
127
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
128
|
+
var t;
|
|
129
|
+
function n(e, t, n) {
|
|
130
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
131
|
+
value: n,
|
|
132
|
+
enumerable: !0,
|
|
133
|
+
configurable: !0,
|
|
134
|
+
writable: !0
|
|
135
|
+
}) : e[t] = n, e;
|
|
136
|
+
}
|
|
137
|
+
var r = e.SET_A = 0, i = e.SET_B = 1, a = e.SET_C = 2;
|
|
138
|
+
e.SHIFT = 98;
|
|
139
|
+
var o = e.START_A = 103, s = e.START_B = 104, c = e.START_C = 105;
|
|
140
|
+
e.MODULO = 103, e.STOP = 106, e.FNC1 = 207, e.SET_BY_CODE = (t = {}, n(t, o, r), n(t, s, i), n(t, c, a), t), e.SWAP = {
|
|
141
|
+
101: r,
|
|
142
|
+
100: i,
|
|
143
|
+
99: a
|
|
144
|
+
}, e.A_START_CHAR = "Ð", e.B_START_CHAR = "Ñ", e.C_START_CHAR = "Ò", e.A_CHARS = "[\0-_È-Ï]", e.B_CHARS = "[ -È-Ï]", e.C_CHARS = "(Ï*[0-9]{2}Ï*)", e.BARS = [
|
|
145
|
+
11011001100,
|
|
146
|
+
11001101100,
|
|
147
|
+
11001100110,
|
|
148
|
+
10010011e3,
|
|
149
|
+
10010001100,
|
|
150
|
+
10001001100,
|
|
151
|
+
10011001e3,
|
|
152
|
+
10011000100,
|
|
153
|
+
10001100100,
|
|
154
|
+
11001001e3,
|
|
155
|
+
11001000100,
|
|
156
|
+
11000100100,
|
|
157
|
+
10110011100,
|
|
158
|
+
10011011100,
|
|
159
|
+
10011001110,
|
|
160
|
+
10111001100,
|
|
161
|
+
10011101100,
|
|
162
|
+
10011100110,
|
|
163
|
+
11001110010,
|
|
164
|
+
11001011100,
|
|
165
|
+
11001001110,
|
|
166
|
+
11011100100,
|
|
167
|
+
11001110100,
|
|
168
|
+
11101101110,
|
|
169
|
+
11101001100,
|
|
170
|
+
11100101100,
|
|
171
|
+
11100100110,
|
|
172
|
+
11101100100,
|
|
173
|
+
11100110100,
|
|
174
|
+
11100110010,
|
|
175
|
+
11011011e3,
|
|
176
|
+
11011000110,
|
|
177
|
+
11000110110,
|
|
178
|
+
10100011e3,
|
|
179
|
+
10001011e3,
|
|
180
|
+
10001000110,
|
|
181
|
+
10110001e3,
|
|
182
|
+
10001101e3,
|
|
183
|
+
10001100010,
|
|
184
|
+
11010001e3,
|
|
185
|
+
11000101e3,
|
|
186
|
+
11000100010,
|
|
187
|
+
10110111e3,
|
|
188
|
+
10110001110,
|
|
189
|
+
10001101110,
|
|
190
|
+
10111011e3,
|
|
191
|
+
10111000110,
|
|
192
|
+
10001110110,
|
|
193
|
+
11101110110,
|
|
194
|
+
11010001110,
|
|
195
|
+
11000101110,
|
|
196
|
+
11011101e3,
|
|
197
|
+
11011100010,
|
|
198
|
+
11011101110,
|
|
199
|
+
11101011e3,
|
|
200
|
+
11101000110,
|
|
201
|
+
11100010110,
|
|
202
|
+
11101101e3,
|
|
203
|
+
11101100010,
|
|
204
|
+
11100011010,
|
|
205
|
+
11101111010,
|
|
206
|
+
11001000010,
|
|
207
|
+
11110001010,
|
|
208
|
+
1010011e4,
|
|
209
|
+
10100001100,
|
|
210
|
+
1001011e4,
|
|
211
|
+
10010000110,
|
|
212
|
+
10000101100,
|
|
213
|
+
10000100110,
|
|
214
|
+
1011001e4,
|
|
215
|
+
10110000100,
|
|
216
|
+
1001101e4,
|
|
217
|
+
10011000010,
|
|
218
|
+
10000110100,
|
|
219
|
+
10000110010,
|
|
220
|
+
11000010010,
|
|
221
|
+
1100101e4,
|
|
222
|
+
11110111010,
|
|
223
|
+
11000010100,
|
|
224
|
+
10001111010,
|
|
225
|
+
10100111100,
|
|
226
|
+
10010111100,
|
|
227
|
+
10010011110,
|
|
228
|
+
10111100100,
|
|
229
|
+
10011110100,
|
|
230
|
+
10011110010,
|
|
231
|
+
11110100100,
|
|
232
|
+
11110010100,
|
|
233
|
+
11110010010,
|
|
234
|
+
11011011110,
|
|
235
|
+
11011110110,
|
|
236
|
+
11110110110,
|
|
237
|
+
10101111e3,
|
|
238
|
+
10100011110,
|
|
239
|
+
10001011110,
|
|
240
|
+
10111101e3,
|
|
241
|
+
10111100010,
|
|
242
|
+
11110101e3,
|
|
243
|
+
11110100010,
|
|
244
|
+
10111011110,
|
|
245
|
+
10111101110,
|
|
246
|
+
11101011110,
|
|
247
|
+
11110101110,
|
|
248
|
+
11010000100,
|
|
249
|
+
1101001e4,
|
|
250
|
+
11010011100,
|
|
251
|
+
1100011101011
|
|
252
|
+
];
|
|
253
|
+
})), i = /* @__PURE__ */ e(((e) => {
|
|
254
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
255
|
+
var n = function() {
|
|
256
|
+
function e(e, t) {
|
|
257
|
+
for (var n = 0; n < t.length; n++) {
|
|
258
|
+
var r = t[n];
|
|
259
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return function(t, n, r) {
|
|
263
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
264
|
+
};
|
|
265
|
+
}(), i = o(t()), a = r();
|
|
266
|
+
function o(e) {
|
|
267
|
+
return e && e.__esModule ? e : { default: e };
|
|
268
|
+
}
|
|
269
|
+
function s(e, t) {
|
|
270
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
271
|
+
}
|
|
272
|
+
function c(e, t) {
|
|
273
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
274
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
275
|
+
}
|
|
276
|
+
function l(e, t) {
|
|
277
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
278
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
279
|
+
value: e,
|
|
280
|
+
enumerable: !1,
|
|
281
|
+
writable: !0,
|
|
282
|
+
configurable: !0
|
|
283
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
284
|
+
}
|
|
285
|
+
e.default = function(e) {
|
|
286
|
+
l(t, e);
|
|
287
|
+
function t(e, n) {
|
|
288
|
+
s(this, t);
|
|
289
|
+
var r = c(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e.substring(1), n));
|
|
290
|
+
return r.bytes = e.split("").map(function(e) {
|
|
291
|
+
return e.charCodeAt(0);
|
|
292
|
+
}), r;
|
|
293
|
+
}
|
|
294
|
+
return n(t, [
|
|
295
|
+
{
|
|
296
|
+
key: "valid",
|
|
297
|
+
value: function() {
|
|
298
|
+
return /^[\x00-\x7F\xC8-\xD3]+$/.test(this.data);
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
key: "encode",
|
|
303
|
+
value: function() {
|
|
304
|
+
var e = this.bytes, n = e.shift() - 105, r = a.SET_BY_CODE[n];
|
|
305
|
+
if (r === void 0) throw RangeError("The encoding does not start with a start character.");
|
|
306
|
+
this.shouldEncodeAsEan128() === !0 && e.unshift(a.FNC1);
|
|
307
|
+
var i = t.next(e, 1, r);
|
|
308
|
+
return {
|
|
309
|
+
text: this.text === this.data ? this.text.replace(/[^\x20-\x7E]/g, "") : this.text,
|
|
310
|
+
data: t.getBar(n) + i.result + t.getBar((i.checksum + n) % a.MODULO) + t.getBar(a.STOP)
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
key: "shouldEncodeAsEan128",
|
|
316
|
+
value: function() {
|
|
317
|
+
var e = this.options.ean128 || !1;
|
|
318
|
+
return typeof e == "string" && (e = e.toLowerCase() === "true"), e;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
], [
|
|
322
|
+
{
|
|
323
|
+
key: "getBar",
|
|
324
|
+
value: function(e) {
|
|
325
|
+
return a.BARS[e] ? a.BARS[e].toString() : "";
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
key: "correctIndex",
|
|
330
|
+
value: function(e, t) {
|
|
331
|
+
if (t === a.SET_A) {
|
|
332
|
+
var n = e.shift();
|
|
333
|
+
return n < 32 ? n + 64 : n - 32;
|
|
334
|
+
}
|
|
335
|
+
return t === a.SET_B ? e.shift() - 32 : (e.shift() - 48) * 10 + e.shift() - 48;
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
key: "next",
|
|
340
|
+
value: function(e, n, r) {
|
|
341
|
+
if (!e.length) return {
|
|
342
|
+
result: "",
|
|
343
|
+
checksum: 0
|
|
344
|
+
};
|
|
345
|
+
var i = void 0, o = void 0;
|
|
346
|
+
if (e[0] >= 200) {
|
|
347
|
+
o = e.shift() - 105;
|
|
348
|
+
var s = a.SWAP[o];
|
|
349
|
+
s === void 0 ? ((r === a.SET_A || r === a.SET_B) && o === a.SHIFT && (e[0] = r === a.SET_A ? e[0] > 95 ? e[0] - 96 : e[0] : e[0] < 32 ? e[0] + 96 : e[0]), i = t.next(e, n + 1, r)) : i = t.next(e, n + 1, s);
|
|
350
|
+
} else o = t.correctIndex(e, r), i = t.next(e, n + 1, r);
|
|
351
|
+
var c = t.getBar(o), l = o * n;
|
|
352
|
+
return {
|
|
353
|
+
result: c + i.result,
|
|
354
|
+
checksum: l + i.checksum
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
]), t;
|
|
359
|
+
}(i.default);
|
|
360
|
+
})), a = /* @__PURE__ */ e(((e) => {
|
|
361
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
362
|
+
var t = r(), n = function(e) {
|
|
363
|
+
return e.match(RegExp("^" + t.A_CHARS + "*"))[0].length;
|
|
364
|
+
}, i = function(e) {
|
|
365
|
+
return e.match(RegExp("^" + t.B_CHARS + "*"))[0].length;
|
|
366
|
+
}, a = function(e) {
|
|
367
|
+
return e.match(RegExp("^" + t.C_CHARS + "*"))[0];
|
|
368
|
+
};
|
|
369
|
+
function o(e, n) {
|
|
370
|
+
var r = n ? t.A_CHARS : t.B_CHARS, i = e.match(RegExp("^(" + r + "+?)(([0-9]{2}){2,})([^0-9]|$)"));
|
|
371
|
+
if (i) return i[1] + "Ì" + s(e.substring(i[1].length));
|
|
372
|
+
var a = e.match(RegExp("^" + r + "+"))[0];
|
|
373
|
+
return a.length === e.length ? e : a + String.fromCharCode(n ? 205 : 206) + o(e.substring(a.length), !n);
|
|
374
|
+
}
|
|
375
|
+
function s(e) {
|
|
376
|
+
var t = a(e), r = t.length;
|
|
377
|
+
if (r === e.length) return e;
|
|
378
|
+
e = e.substring(r);
|
|
379
|
+
var s = n(e) >= i(e);
|
|
380
|
+
return t + String.fromCharCode(s ? 206 : 205) + o(e, s);
|
|
381
|
+
}
|
|
382
|
+
e.default = function(e) {
|
|
383
|
+
var r = void 0;
|
|
384
|
+
if (a(e).length >= 2) r = t.C_START_CHAR + s(e);
|
|
385
|
+
else {
|
|
386
|
+
var c = n(e) > i(e);
|
|
387
|
+
r = (c ? t.A_START_CHAR : t.B_START_CHAR) + o(e, c);
|
|
388
|
+
}
|
|
389
|
+
return r.replace(/[\xCD\xCE]([^])[\xCD\xCE]/, function(e, t) {
|
|
390
|
+
return "Ë" + t;
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
})), o = /* @__PURE__ */ e(((e) => {
|
|
394
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
395
|
+
var t = r(i()), n = r(a());
|
|
396
|
+
function r(e) {
|
|
397
|
+
return e && e.__esModule ? e : { default: e };
|
|
398
|
+
}
|
|
399
|
+
function o(e, t) {
|
|
400
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
401
|
+
}
|
|
402
|
+
function s(e, t) {
|
|
403
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
404
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
405
|
+
}
|
|
406
|
+
function c(e, t) {
|
|
407
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
408
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
409
|
+
value: e,
|
|
410
|
+
enumerable: !1,
|
|
411
|
+
writable: !0,
|
|
412
|
+
configurable: !0
|
|
413
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
414
|
+
}
|
|
415
|
+
e.default = function(e) {
|
|
416
|
+
c(t, e);
|
|
417
|
+
function t(e, r) {
|
|
418
|
+
if (o(this, t), /^[\x00-\x7F\xC8-\xD3]+$/.test(e)) var i = s(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, (0, n.default)(e), r));
|
|
419
|
+
else var i = s(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, r));
|
|
420
|
+
return s(i);
|
|
421
|
+
}
|
|
422
|
+
return t;
|
|
423
|
+
}(t.default);
|
|
424
|
+
})), s = /* @__PURE__ */ e(((e) => {
|
|
425
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
426
|
+
var t = function() {
|
|
427
|
+
function e(e, t) {
|
|
428
|
+
for (var n = 0; n < t.length; n++) {
|
|
429
|
+
var r = t[n];
|
|
430
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return function(t, n, r) {
|
|
434
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
435
|
+
};
|
|
436
|
+
}(), n = o(i()), a = r();
|
|
437
|
+
function o(e) {
|
|
438
|
+
return e && e.__esModule ? e : { default: e };
|
|
439
|
+
}
|
|
440
|
+
function s(e, t) {
|
|
441
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
442
|
+
}
|
|
443
|
+
function c(e, t) {
|
|
444
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
445
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
446
|
+
}
|
|
447
|
+
function l(e, t) {
|
|
448
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
449
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
450
|
+
value: e,
|
|
451
|
+
enumerable: !1,
|
|
452
|
+
writable: !0,
|
|
453
|
+
configurable: !0
|
|
454
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
455
|
+
}
|
|
456
|
+
e.default = function(e) {
|
|
457
|
+
l(n, e);
|
|
458
|
+
function n(e, t) {
|
|
459
|
+
return s(this, n), c(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, a.A_START_CHAR + e, t));
|
|
460
|
+
}
|
|
461
|
+
return t(n, [{
|
|
462
|
+
key: "valid",
|
|
463
|
+
value: function() {
|
|
464
|
+
return RegExp("^" + a.A_CHARS + "+$").test(this.data);
|
|
465
|
+
}
|
|
466
|
+
}]), n;
|
|
467
|
+
}(n.default);
|
|
468
|
+
})), c = /* @__PURE__ */ e(((e) => {
|
|
469
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
470
|
+
var t = function() {
|
|
471
|
+
function e(e, t) {
|
|
472
|
+
for (var n = 0; n < t.length; n++) {
|
|
473
|
+
var r = t[n];
|
|
474
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
return function(t, n, r) {
|
|
478
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
479
|
+
};
|
|
480
|
+
}(), n = o(i()), a = r();
|
|
481
|
+
function o(e) {
|
|
482
|
+
return e && e.__esModule ? e : { default: e };
|
|
483
|
+
}
|
|
484
|
+
function s(e, t) {
|
|
485
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
486
|
+
}
|
|
487
|
+
function c(e, t) {
|
|
488
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
489
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
490
|
+
}
|
|
491
|
+
function l(e, t) {
|
|
492
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
493
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
494
|
+
value: e,
|
|
495
|
+
enumerable: !1,
|
|
496
|
+
writable: !0,
|
|
497
|
+
configurable: !0
|
|
498
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
499
|
+
}
|
|
500
|
+
e.default = function(e) {
|
|
501
|
+
l(n, e);
|
|
502
|
+
function n(e, t) {
|
|
503
|
+
return s(this, n), c(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, a.B_START_CHAR + e, t));
|
|
504
|
+
}
|
|
505
|
+
return t(n, [{
|
|
506
|
+
key: "valid",
|
|
507
|
+
value: function() {
|
|
508
|
+
return RegExp("^" + a.B_CHARS + "+$").test(this.data);
|
|
509
|
+
}
|
|
510
|
+
}]), n;
|
|
511
|
+
}(n.default);
|
|
512
|
+
})), l = /* @__PURE__ */ e(((e) => {
|
|
513
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
514
|
+
var t = function() {
|
|
515
|
+
function e(e, t) {
|
|
516
|
+
for (var n = 0; n < t.length; n++) {
|
|
517
|
+
var r = t[n];
|
|
518
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return function(t, n, r) {
|
|
522
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
523
|
+
};
|
|
524
|
+
}(), n = o(i()), a = r();
|
|
525
|
+
function o(e) {
|
|
526
|
+
return e && e.__esModule ? e : { default: e };
|
|
527
|
+
}
|
|
528
|
+
function s(e, t) {
|
|
529
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
530
|
+
}
|
|
531
|
+
function c(e, t) {
|
|
532
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
533
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
534
|
+
}
|
|
535
|
+
function l(e, t) {
|
|
536
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
537
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
538
|
+
value: e,
|
|
539
|
+
enumerable: !1,
|
|
540
|
+
writable: !0,
|
|
541
|
+
configurable: !0
|
|
542
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
543
|
+
}
|
|
544
|
+
e.default = function(e) {
|
|
545
|
+
l(n, e);
|
|
546
|
+
function n(e, t) {
|
|
547
|
+
return s(this, n), c(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, a.C_START_CHAR + e, t));
|
|
548
|
+
}
|
|
549
|
+
return t(n, [{
|
|
550
|
+
key: "valid",
|
|
551
|
+
value: function() {
|
|
552
|
+
return RegExp("^" + a.C_CHARS + "+$").test(this.data);
|
|
553
|
+
}
|
|
554
|
+
}]), n;
|
|
555
|
+
}(n.default);
|
|
556
|
+
})), u = /* @__PURE__ */ e(((e) => {
|
|
557
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.CODE128C = e.CODE128B = e.CODE128A = e.CODE128 = void 0;
|
|
558
|
+
var t = a(o()), n = a(s()), r = a(c()), i = a(l());
|
|
559
|
+
function a(e) {
|
|
560
|
+
return e && e.__esModule ? e : { default: e };
|
|
561
|
+
}
|
|
562
|
+
e.CODE128 = t.default, e.CODE128A = n.default, e.CODE128B = r.default, e.CODE128C = i.default;
|
|
563
|
+
})), d = /* @__PURE__ */ e(((e) => {
|
|
564
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.SIDE_BIN = "101", e.MIDDLE_BIN = "01010", e.BINARIES = {
|
|
565
|
+
L: [
|
|
566
|
+
"0001101",
|
|
567
|
+
"0011001",
|
|
568
|
+
"0010011",
|
|
569
|
+
"0111101",
|
|
570
|
+
"0100011",
|
|
571
|
+
"0110001",
|
|
572
|
+
"0101111",
|
|
573
|
+
"0111011",
|
|
574
|
+
"0110111",
|
|
575
|
+
"0001011"
|
|
576
|
+
],
|
|
577
|
+
G: [
|
|
578
|
+
"0100111",
|
|
579
|
+
"0110011",
|
|
580
|
+
"0011011",
|
|
581
|
+
"0100001",
|
|
582
|
+
"0011101",
|
|
583
|
+
"0111001",
|
|
584
|
+
"0000101",
|
|
585
|
+
"0010001",
|
|
586
|
+
"0001001",
|
|
587
|
+
"0010111"
|
|
588
|
+
],
|
|
589
|
+
R: [
|
|
590
|
+
"1110010",
|
|
591
|
+
"1100110",
|
|
592
|
+
"1101100",
|
|
593
|
+
"1000010",
|
|
594
|
+
"1011100",
|
|
595
|
+
"1001110",
|
|
596
|
+
"1010000",
|
|
597
|
+
"1000100",
|
|
598
|
+
"1001000",
|
|
599
|
+
"1110100"
|
|
600
|
+
],
|
|
601
|
+
O: [
|
|
602
|
+
"0001101",
|
|
603
|
+
"0011001",
|
|
604
|
+
"0010011",
|
|
605
|
+
"0111101",
|
|
606
|
+
"0100011",
|
|
607
|
+
"0110001",
|
|
608
|
+
"0101111",
|
|
609
|
+
"0111011",
|
|
610
|
+
"0110111",
|
|
611
|
+
"0001011"
|
|
612
|
+
],
|
|
613
|
+
E: [
|
|
614
|
+
"0100111",
|
|
615
|
+
"0110011",
|
|
616
|
+
"0011011",
|
|
617
|
+
"0100001",
|
|
618
|
+
"0011101",
|
|
619
|
+
"0111001",
|
|
620
|
+
"0000101",
|
|
621
|
+
"0010001",
|
|
622
|
+
"0001001",
|
|
623
|
+
"0010111"
|
|
624
|
+
]
|
|
625
|
+
}, e.EAN2_STRUCTURE = [
|
|
626
|
+
"LL",
|
|
627
|
+
"LG",
|
|
628
|
+
"GL",
|
|
629
|
+
"GG"
|
|
630
|
+
], e.EAN5_STRUCTURE = [
|
|
631
|
+
"GGLLL",
|
|
632
|
+
"GLGLL",
|
|
633
|
+
"GLLGL",
|
|
634
|
+
"GLLLG",
|
|
635
|
+
"LGGLL",
|
|
636
|
+
"LLGGL",
|
|
637
|
+
"LLLGG",
|
|
638
|
+
"LGLGL",
|
|
639
|
+
"LGLLG",
|
|
640
|
+
"LLGLG"
|
|
641
|
+
], e.EAN13_STRUCTURE = [
|
|
642
|
+
"LLLLLL",
|
|
643
|
+
"LLGLGG",
|
|
644
|
+
"LLGGLG",
|
|
645
|
+
"LLGGGL",
|
|
646
|
+
"LGLLGG",
|
|
647
|
+
"LGGLLG",
|
|
648
|
+
"LGGGLL",
|
|
649
|
+
"LGLGLG",
|
|
650
|
+
"LGLGGL",
|
|
651
|
+
"LGGLGL"
|
|
652
|
+
];
|
|
653
|
+
})), f = /* @__PURE__ */ e(((e) => {
|
|
654
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
655
|
+
var t = d();
|
|
656
|
+
e.default = function(e, n, r) {
|
|
657
|
+
var i = e.split("").map(function(e, r) {
|
|
658
|
+
return t.BINARIES[n[r]];
|
|
659
|
+
}).map(function(t, n) {
|
|
660
|
+
return t ? t[e[n]] : "";
|
|
661
|
+
});
|
|
662
|
+
if (r) {
|
|
663
|
+
var a = e.length - 1;
|
|
664
|
+
i = i.map(function(e, t) {
|
|
665
|
+
return t < a ? e + r : e;
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
return i.join("");
|
|
669
|
+
};
|
|
670
|
+
})), p = /* @__PURE__ */ e(((e) => {
|
|
671
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
672
|
+
var n = function() {
|
|
673
|
+
function e(e, t) {
|
|
674
|
+
for (var n = 0; n < t.length; n++) {
|
|
675
|
+
var r = t[n];
|
|
676
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return function(t, n, r) {
|
|
680
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
681
|
+
};
|
|
682
|
+
}(), r = d(), i = o(f()), a = o(t());
|
|
683
|
+
function o(e) {
|
|
684
|
+
return e && e.__esModule ? e : { default: e };
|
|
685
|
+
}
|
|
686
|
+
function s(e, t) {
|
|
687
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
688
|
+
}
|
|
689
|
+
function c(e, t) {
|
|
690
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
691
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
692
|
+
}
|
|
693
|
+
function l(e, t) {
|
|
694
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
695
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
696
|
+
value: e,
|
|
697
|
+
enumerable: !1,
|
|
698
|
+
writable: !0,
|
|
699
|
+
configurable: !0
|
|
700
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
701
|
+
}
|
|
702
|
+
e.default = function(e) {
|
|
703
|
+
l(t, e);
|
|
704
|
+
function t(e, n) {
|
|
705
|
+
s(this, t);
|
|
706
|
+
var r = c(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
707
|
+
return r.fontSize = !n.flat && n.fontSize > n.width * 10 ? n.width * 10 : n.fontSize, r.guardHeight = n.height + r.fontSize / 2 + n.textMargin, r;
|
|
708
|
+
}
|
|
709
|
+
return n(t, [
|
|
710
|
+
{
|
|
711
|
+
key: "encode",
|
|
712
|
+
value: function() {
|
|
713
|
+
return this.options.flat ? this.encodeFlat() : this.encodeGuarded();
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
key: "leftText",
|
|
718
|
+
value: function(e, t) {
|
|
719
|
+
return this.text.substr(e, t);
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
key: "leftEncode",
|
|
724
|
+
value: function(e, t) {
|
|
725
|
+
return (0, i.default)(e, t);
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
key: "rightText",
|
|
730
|
+
value: function(e, t) {
|
|
731
|
+
return this.text.substr(e, t);
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
key: "rightEncode",
|
|
736
|
+
value: function(e, t) {
|
|
737
|
+
return (0, i.default)(e, t);
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
key: "encodeGuarded",
|
|
742
|
+
value: function() {
|
|
743
|
+
var e = { fontSize: this.fontSize }, t = { height: this.guardHeight };
|
|
744
|
+
return [
|
|
745
|
+
{
|
|
746
|
+
data: r.SIDE_BIN,
|
|
747
|
+
options: t
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
data: this.leftEncode(),
|
|
751
|
+
text: this.leftText(),
|
|
752
|
+
options: e
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
data: r.MIDDLE_BIN,
|
|
756
|
+
options: t
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
data: this.rightEncode(),
|
|
760
|
+
text: this.rightText(),
|
|
761
|
+
options: e
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
data: r.SIDE_BIN,
|
|
765
|
+
options: t
|
|
766
|
+
}
|
|
767
|
+
];
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
key: "encodeFlat",
|
|
772
|
+
value: function() {
|
|
773
|
+
return {
|
|
774
|
+
data: [
|
|
775
|
+
r.SIDE_BIN,
|
|
776
|
+
this.leftEncode(),
|
|
777
|
+
r.MIDDLE_BIN,
|
|
778
|
+
this.rightEncode(),
|
|
779
|
+
r.SIDE_BIN
|
|
780
|
+
].join(""),
|
|
781
|
+
text: this.text
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
]), t;
|
|
786
|
+
}(a.default);
|
|
787
|
+
})), m = /* @__PURE__ */ e(((e) => {
|
|
788
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
789
|
+
var t = function() {
|
|
790
|
+
function e(e, t) {
|
|
791
|
+
for (var n = 0; n < t.length; n++) {
|
|
792
|
+
var r = t[n];
|
|
793
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
return function(t, n, r) {
|
|
797
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
798
|
+
};
|
|
799
|
+
}(), n = function e(t, n, r) {
|
|
800
|
+
t === null && (t = Function.prototype);
|
|
801
|
+
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
802
|
+
if (i === void 0) {
|
|
803
|
+
var a = Object.getPrototypeOf(t);
|
|
804
|
+
return a === null ? void 0 : e(a, n, r);
|
|
805
|
+
}
|
|
806
|
+
if ("value" in i) return i.value;
|
|
807
|
+
var o = i.get;
|
|
808
|
+
return o === void 0 ? void 0 : o.call(r);
|
|
809
|
+
}, r = d(), i = a(p());
|
|
810
|
+
function a(e) {
|
|
811
|
+
return e && e.__esModule ? e : { default: e };
|
|
812
|
+
}
|
|
813
|
+
function o(e, t) {
|
|
814
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
815
|
+
}
|
|
816
|
+
function s(e, t) {
|
|
817
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
818
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
819
|
+
}
|
|
820
|
+
function c(e, t) {
|
|
821
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
822
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
823
|
+
value: e,
|
|
824
|
+
enumerable: !1,
|
|
825
|
+
writable: !0,
|
|
826
|
+
configurable: !0
|
|
827
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
828
|
+
}
|
|
829
|
+
var l = function(e) {
|
|
830
|
+
return (10 - e.substr(0, 12).split("").map(function(e) {
|
|
831
|
+
return +e;
|
|
832
|
+
}).reduce(function(e, t, n) {
|
|
833
|
+
return n % 2 ? e + t * 3 : e + t;
|
|
834
|
+
}, 0) % 10) % 10;
|
|
835
|
+
};
|
|
836
|
+
e.default = function(e) {
|
|
837
|
+
c(i, e);
|
|
838
|
+
function i(e, t) {
|
|
839
|
+
o(this, i), e.search(/^[0-9]{12}$/) !== -1 && (e += l(e));
|
|
840
|
+
var n = s(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this, e, t));
|
|
841
|
+
return n.lastChar = t.lastChar, n;
|
|
842
|
+
}
|
|
843
|
+
return t(i, [
|
|
844
|
+
{
|
|
845
|
+
key: "valid",
|
|
846
|
+
value: function() {
|
|
847
|
+
return this.data.search(/^[0-9]{13}$/) !== -1 && +this.data[12] === l(this.data);
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
key: "leftText",
|
|
852
|
+
value: function() {
|
|
853
|
+
return n(i.prototype.__proto__ || Object.getPrototypeOf(i.prototype), "leftText", this).call(this, 1, 6);
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
key: "leftEncode",
|
|
858
|
+
value: function() {
|
|
859
|
+
var e = this.data.substr(1, 6), t = r.EAN13_STRUCTURE[this.data[0]];
|
|
860
|
+
return n(i.prototype.__proto__ || Object.getPrototypeOf(i.prototype), "leftEncode", this).call(this, e, t);
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
key: "rightText",
|
|
865
|
+
value: function() {
|
|
866
|
+
return n(i.prototype.__proto__ || Object.getPrototypeOf(i.prototype), "rightText", this).call(this, 7, 6);
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
key: "rightEncode",
|
|
871
|
+
value: function() {
|
|
872
|
+
var e = this.data.substr(7, 6);
|
|
873
|
+
return n(i.prototype.__proto__ || Object.getPrototypeOf(i.prototype), "rightEncode", this).call(this, e, "RRRRRR");
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
key: "encodeGuarded",
|
|
878
|
+
value: function() {
|
|
879
|
+
var e = n(i.prototype.__proto__ || Object.getPrototypeOf(i.prototype), "encodeGuarded", this).call(this);
|
|
880
|
+
return this.options.displayValue && (e.unshift({
|
|
881
|
+
data: "000000000000",
|
|
882
|
+
text: this.text.substr(0, 1),
|
|
883
|
+
options: {
|
|
884
|
+
textAlign: "left",
|
|
885
|
+
fontSize: this.fontSize
|
|
886
|
+
}
|
|
887
|
+
}), this.options.lastChar && (e.push({ data: "00" }), e.push({
|
|
888
|
+
data: "00000",
|
|
889
|
+
text: this.options.lastChar,
|
|
890
|
+
options: { fontSize: this.fontSize }
|
|
891
|
+
}))), e;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
]), i;
|
|
895
|
+
}(i.default);
|
|
896
|
+
})), h = /* @__PURE__ */ e(((e) => {
|
|
897
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
898
|
+
var t = function() {
|
|
899
|
+
function e(e, t) {
|
|
900
|
+
for (var n = 0; n < t.length; n++) {
|
|
901
|
+
var r = t[n];
|
|
902
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
return function(t, n, r) {
|
|
906
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
907
|
+
};
|
|
908
|
+
}(), n = function e(t, n, r) {
|
|
909
|
+
t === null && (t = Function.prototype);
|
|
910
|
+
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
911
|
+
if (i === void 0) {
|
|
912
|
+
var a = Object.getPrototypeOf(t);
|
|
913
|
+
return a === null ? void 0 : e(a, n, r);
|
|
914
|
+
}
|
|
915
|
+
if ("value" in i) return i.value;
|
|
916
|
+
var o = i.get;
|
|
917
|
+
return o === void 0 ? void 0 : o.call(r);
|
|
918
|
+
}, r = i(p());
|
|
919
|
+
function i(e) {
|
|
920
|
+
return e && e.__esModule ? e : { default: e };
|
|
921
|
+
}
|
|
922
|
+
function a(e, t) {
|
|
923
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
924
|
+
}
|
|
925
|
+
function o(e, t) {
|
|
926
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
927
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
928
|
+
}
|
|
929
|
+
function s(e, t) {
|
|
930
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
931
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
932
|
+
value: e,
|
|
933
|
+
enumerable: !1,
|
|
934
|
+
writable: !0,
|
|
935
|
+
configurable: !0
|
|
936
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
937
|
+
}
|
|
938
|
+
var c = function(e) {
|
|
939
|
+
return (10 - e.substr(0, 7).split("").map(function(e) {
|
|
940
|
+
return +e;
|
|
941
|
+
}).reduce(function(e, t, n) {
|
|
942
|
+
return n % 2 ? e + t : e + t * 3;
|
|
943
|
+
}, 0) % 10) % 10;
|
|
944
|
+
};
|
|
945
|
+
e.default = function(e) {
|
|
946
|
+
s(r, e);
|
|
947
|
+
function r(e, t) {
|
|
948
|
+
return a(this, r), e.search(/^[0-9]{7}$/) !== -1 && (e += c(e)), o(this, (r.__proto__ || Object.getPrototypeOf(r)).call(this, e, t));
|
|
949
|
+
}
|
|
950
|
+
return t(r, [
|
|
951
|
+
{
|
|
952
|
+
key: "valid",
|
|
953
|
+
value: function() {
|
|
954
|
+
return this.data.search(/^[0-9]{8}$/) !== -1 && +this.data[7] === c(this.data);
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
key: "leftText",
|
|
959
|
+
value: function() {
|
|
960
|
+
return n(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "leftText", this).call(this, 0, 4);
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
key: "leftEncode",
|
|
965
|
+
value: function() {
|
|
966
|
+
var e = this.data.substr(0, 4);
|
|
967
|
+
return n(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "leftEncode", this).call(this, e, "LLLL");
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
key: "rightText",
|
|
972
|
+
value: function() {
|
|
973
|
+
return n(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "rightText", this).call(this, 4, 4);
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
key: "rightEncode",
|
|
978
|
+
value: function() {
|
|
979
|
+
var e = this.data.substr(4, 4);
|
|
980
|
+
return n(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "rightEncode", this).call(this, e, "RRRR");
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
]), r;
|
|
984
|
+
}(r.default);
|
|
985
|
+
})), g = /* @__PURE__ */ e(((e) => {
|
|
986
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
987
|
+
var n = function() {
|
|
988
|
+
function e(e, t) {
|
|
989
|
+
for (var n = 0; n < t.length; n++) {
|
|
990
|
+
var r = t[n];
|
|
991
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
return function(t, n, r) {
|
|
995
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
996
|
+
};
|
|
997
|
+
}(), r = d(), i = o(f()), a = o(t());
|
|
998
|
+
function o(e) {
|
|
999
|
+
return e && e.__esModule ? e : { default: e };
|
|
1000
|
+
}
|
|
1001
|
+
function s(e, t) {
|
|
1002
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1003
|
+
}
|
|
1004
|
+
function c(e, t) {
|
|
1005
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1006
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1007
|
+
}
|
|
1008
|
+
function l(e, t) {
|
|
1009
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1010
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1011
|
+
value: e,
|
|
1012
|
+
enumerable: !1,
|
|
1013
|
+
writable: !0,
|
|
1014
|
+
configurable: !0
|
|
1015
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1016
|
+
}
|
|
1017
|
+
var u = function(e) {
|
|
1018
|
+
return e.split("").map(function(e) {
|
|
1019
|
+
return +e;
|
|
1020
|
+
}).reduce(function(e, t, n) {
|
|
1021
|
+
return n % 2 ? e + t * 9 : e + t * 3;
|
|
1022
|
+
}, 0) % 10;
|
|
1023
|
+
};
|
|
1024
|
+
e.default = function(e) {
|
|
1025
|
+
l(t, e);
|
|
1026
|
+
function t(e, n) {
|
|
1027
|
+
return s(this, t), c(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1028
|
+
}
|
|
1029
|
+
return n(t, [{
|
|
1030
|
+
key: "valid",
|
|
1031
|
+
value: function() {
|
|
1032
|
+
return this.data.search(/^[0-9]{5}$/) !== -1;
|
|
1033
|
+
}
|
|
1034
|
+
}, {
|
|
1035
|
+
key: "encode",
|
|
1036
|
+
value: function() {
|
|
1037
|
+
var e = r.EAN5_STRUCTURE[u(this.data)];
|
|
1038
|
+
return {
|
|
1039
|
+
data: "1011" + (0, i.default)(this.data, e, "01"),
|
|
1040
|
+
text: this.text
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
}]), t;
|
|
1044
|
+
}(a.default);
|
|
1045
|
+
})), _ = /* @__PURE__ */ e(((e) => {
|
|
1046
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1047
|
+
var n = function() {
|
|
1048
|
+
function e(e, t) {
|
|
1049
|
+
for (var n = 0; n < t.length; n++) {
|
|
1050
|
+
var r = t[n];
|
|
1051
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return function(t, n, r) {
|
|
1055
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1056
|
+
};
|
|
1057
|
+
}(), r = d(), i = o(f()), a = o(t());
|
|
1058
|
+
function o(e) {
|
|
1059
|
+
return e && e.__esModule ? e : { default: e };
|
|
1060
|
+
}
|
|
1061
|
+
function s(e, t) {
|
|
1062
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1063
|
+
}
|
|
1064
|
+
function c(e, t) {
|
|
1065
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1066
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1067
|
+
}
|
|
1068
|
+
function l(e, t) {
|
|
1069
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1070
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1071
|
+
value: e,
|
|
1072
|
+
enumerable: !1,
|
|
1073
|
+
writable: !0,
|
|
1074
|
+
configurable: !0
|
|
1075
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1076
|
+
}
|
|
1077
|
+
e.default = function(e) {
|
|
1078
|
+
l(t, e);
|
|
1079
|
+
function t(e, n) {
|
|
1080
|
+
return s(this, t), c(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1081
|
+
}
|
|
1082
|
+
return n(t, [{
|
|
1083
|
+
key: "valid",
|
|
1084
|
+
value: function() {
|
|
1085
|
+
return this.data.search(/^[0-9]{2}$/) !== -1;
|
|
1086
|
+
}
|
|
1087
|
+
}, {
|
|
1088
|
+
key: "encode",
|
|
1089
|
+
value: function() {
|
|
1090
|
+
var e = r.EAN2_STRUCTURE[parseInt(this.data) % 4];
|
|
1091
|
+
return {
|
|
1092
|
+
data: "1011" + (0, i.default)(this.data, e, "01"),
|
|
1093
|
+
text: this.text
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
}]), t;
|
|
1097
|
+
}(a.default);
|
|
1098
|
+
})), v = /* @__PURE__ */ e(((e) => {
|
|
1099
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1100
|
+
var n = function() {
|
|
1101
|
+
function e(e, t) {
|
|
1102
|
+
for (var n = 0; n < t.length; n++) {
|
|
1103
|
+
var r = t[n];
|
|
1104
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return function(t, n, r) {
|
|
1108
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1109
|
+
};
|
|
1110
|
+
}();
|
|
1111
|
+
e.checksum = u;
|
|
1112
|
+
var r = a(f()), i = a(t());
|
|
1113
|
+
function a(e) {
|
|
1114
|
+
return e && e.__esModule ? e : { default: e };
|
|
1115
|
+
}
|
|
1116
|
+
function o(e, t) {
|
|
1117
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1118
|
+
}
|
|
1119
|
+
function s(e, t) {
|
|
1120
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1121
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1122
|
+
}
|
|
1123
|
+
function c(e, t) {
|
|
1124
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1125
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1126
|
+
value: e,
|
|
1127
|
+
enumerable: !1,
|
|
1128
|
+
writable: !0,
|
|
1129
|
+
configurable: !0
|
|
1130
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1131
|
+
}
|
|
1132
|
+
var l = function(e) {
|
|
1133
|
+
c(t, e);
|
|
1134
|
+
function t(e, n) {
|
|
1135
|
+
o(this, t), e.search(/^[0-9]{11}$/) !== -1 && (e += u(e));
|
|
1136
|
+
var r = s(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1137
|
+
return r.displayValue = n.displayValue, r.fontSize = n.fontSize > n.width * 10 ? n.width * 10 : n.fontSize, r.guardHeight = n.height + r.fontSize / 2 + n.textMargin, r;
|
|
1138
|
+
}
|
|
1139
|
+
return n(t, [
|
|
1140
|
+
{
|
|
1141
|
+
key: "valid",
|
|
1142
|
+
value: function() {
|
|
1143
|
+
return this.data.search(/^[0-9]{12}$/) !== -1 && this.data[11] == u(this.data);
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
key: "encode",
|
|
1148
|
+
value: function() {
|
|
1149
|
+
return this.options.flat ? this.flatEncoding() : this.guardedEncoding();
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
key: "flatEncoding",
|
|
1154
|
+
value: function() {
|
|
1155
|
+
var e = "";
|
|
1156
|
+
return e += "101", e += (0, r.default)(this.data.substr(0, 6), "LLLLLL"), e += "01010", e += (0, r.default)(this.data.substr(6, 6), "RRRRRR"), e += "101", {
|
|
1157
|
+
data: e,
|
|
1158
|
+
text: this.text
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
key: "guardedEncoding",
|
|
1164
|
+
value: function() {
|
|
1165
|
+
var e = [];
|
|
1166
|
+
return this.displayValue && e.push({
|
|
1167
|
+
data: "00000000",
|
|
1168
|
+
text: this.text.substr(0, 1),
|
|
1169
|
+
options: {
|
|
1170
|
+
textAlign: "left",
|
|
1171
|
+
fontSize: this.fontSize
|
|
1172
|
+
}
|
|
1173
|
+
}), e.push({
|
|
1174
|
+
data: "101" + (0, r.default)(this.data[0], "L"),
|
|
1175
|
+
options: { height: this.guardHeight }
|
|
1176
|
+
}), e.push({
|
|
1177
|
+
data: (0, r.default)(this.data.substr(1, 5), "LLLLL"),
|
|
1178
|
+
text: this.text.substr(1, 5),
|
|
1179
|
+
options: { fontSize: this.fontSize }
|
|
1180
|
+
}), e.push({
|
|
1181
|
+
data: "01010",
|
|
1182
|
+
options: { height: this.guardHeight }
|
|
1183
|
+
}), e.push({
|
|
1184
|
+
data: (0, r.default)(this.data.substr(6, 5), "RRRRR"),
|
|
1185
|
+
text: this.text.substr(6, 5),
|
|
1186
|
+
options: { fontSize: this.fontSize }
|
|
1187
|
+
}), e.push({
|
|
1188
|
+
data: (0, r.default)(this.data[11], "R") + "101",
|
|
1189
|
+
options: { height: this.guardHeight }
|
|
1190
|
+
}), this.displayValue && e.push({
|
|
1191
|
+
data: "00000000",
|
|
1192
|
+
text: this.text.substr(11, 1),
|
|
1193
|
+
options: {
|
|
1194
|
+
textAlign: "right",
|
|
1195
|
+
fontSize: this.fontSize
|
|
1196
|
+
}
|
|
1197
|
+
}), e;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
]), t;
|
|
1201
|
+
}(i.default);
|
|
1202
|
+
function u(e) {
|
|
1203
|
+
var t = 0, n;
|
|
1204
|
+
for (n = 1; n < 11; n += 2) t += parseInt(e[n]);
|
|
1205
|
+
for (n = 0; n < 11; n += 2) t += parseInt(e[n]) * 3;
|
|
1206
|
+
return (10 - t % 10) % 10;
|
|
1207
|
+
}
|
|
1208
|
+
e.default = l;
|
|
1209
|
+
})), y = /* @__PURE__ */ e(((e) => {
|
|
1210
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1211
|
+
var n = function() {
|
|
1212
|
+
function e(e, t) {
|
|
1213
|
+
for (var n = 0; n < t.length; n++) {
|
|
1214
|
+
var r = t[n];
|
|
1215
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
return function(t, n, r) {
|
|
1219
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1220
|
+
};
|
|
1221
|
+
}(), r = o(f()), i = o(t()), a = v();
|
|
1222
|
+
function o(e) {
|
|
1223
|
+
return e && e.__esModule ? e : { default: e };
|
|
1224
|
+
}
|
|
1225
|
+
function s(e, t) {
|
|
1226
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1227
|
+
}
|
|
1228
|
+
function c(e, t) {
|
|
1229
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1230
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1231
|
+
}
|
|
1232
|
+
function l(e, t) {
|
|
1233
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1234
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1235
|
+
value: e,
|
|
1236
|
+
enumerable: !1,
|
|
1237
|
+
writable: !0,
|
|
1238
|
+
configurable: !0
|
|
1239
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1240
|
+
}
|
|
1241
|
+
var u = [
|
|
1242
|
+
"XX00000XXX",
|
|
1243
|
+
"XX10000XXX",
|
|
1244
|
+
"XX20000XXX",
|
|
1245
|
+
"XXX00000XX",
|
|
1246
|
+
"XXXX00000X",
|
|
1247
|
+
"XXXXX00005",
|
|
1248
|
+
"XXXXX00006",
|
|
1249
|
+
"XXXXX00007",
|
|
1250
|
+
"XXXXX00008",
|
|
1251
|
+
"XXXXX00009"
|
|
1252
|
+
], d = [
|
|
1253
|
+
["EEEOOO", "OOOEEE"],
|
|
1254
|
+
["EEOEOO", "OOEOEE"],
|
|
1255
|
+
["EEOOEO", "OOEEOE"],
|
|
1256
|
+
["EEOOOE", "OOEEEO"],
|
|
1257
|
+
["EOEEOO", "OEOOEE"],
|
|
1258
|
+
["EOOEEO", "OEEOOE"],
|
|
1259
|
+
["EOOOEE", "OEEEOO"],
|
|
1260
|
+
["EOEOEO", "OEOEOE"],
|
|
1261
|
+
["EOEOOE", "OEOEEO"],
|
|
1262
|
+
["EOOEOE", "OEEOEO"]
|
|
1263
|
+
], p = function(e) {
|
|
1264
|
+
l(t, e);
|
|
1265
|
+
function t(e, n) {
|
|
1266
|
+
s(this, t);
|
|
1267
|
+
var r = c(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1268
|
+
if (r.isValid = !1, e.search(/^[0-9]{6}$/) !== -1) r.middleDigits = e, r.upcA = m(e, "0"), r.text = n.text || "" + r.upcA[0] + e + r.upcA[r.upcA.length - 1], r.isValid = !0;
|
|
1269
|
+
else if (e.search(/^[01][0-9]{7}$/) !== -1) {
|
|
1270
|
+
if (r.middleDigits = e.substring(1, e.length - 1), r.upcA = m(r.middleDigits, e[0]), r.upcA[r.upcA.length - 1] === e[e.length - 1]) r.isValid = !0;
|
|
1271
|
+
else return c(r);
|
|
1272
|
+
} else return c(r);
|
|
1273
|
+
return r.displayValue = n.displayValue, r.fontSize = n.fontSize > n.width * 10 ? n.width * 10 : n.fontSize, r.guardHeight = n.height + r.fontSize / 2 + n.textMargin, r;
|
|
1274
|
+
}
|
|
1275
|
+
return n(t, [
|
|
1276
|
+
{
|
|
1277
|
+
key: "valid",
|
|
1278
|
+
value: function() {
|
|
1279
|
+
return this.isValid;
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
key: "encode",
|
|
1284
|
+
value: function() {
|
|
1285
|
+
return this.options.flat ? this.flatEncoding() : this.guardedEncoding();
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
key: "flatEncoding",
|
|
1290
|
+
value: function() {
|
|
1291
|
+
var e = "";
|
|
1292
|
+
return e += "101", e += this.encodeMiddleDigits(), e += "010101", {
|
|
1293
|
+
data: e,
|
|
1294
|
+
text: this.text
|
|
1295
|
+
};
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
key: "guardedEncoding",
|
|
1300
|
+
value: function() {
|
|
1301
|
+
var e = [];
|
|
1302
|
+
return this.displayValue && e.push({
|
|
1303
|
+
data: "00000000",
|
|
1304
|
+
text: this.text[0],
|
|
1305
|
+
options: {
|
|
1306
|
+
textAlign: "left",
|
|
1307
|
+
fontSize: this.fontSize
|
|
1308
|
+
}
|
|
1309
|
+
}), e.push({
|
|
1310
|
+
data: "101",
|
|
1311
|
+
options: { height: this.guardHeight }
|
|
1312
|
+
}), e.push({
|
|
1313
|
+
data: this.encodeMiddleDigits(),
|
|
1314
|
+
text: this.text.substring(1, 7),
|
|
1315
|
+
options: { fontSize: this.fontSize }
|
|
1316
|
+
}), e.push({
|
|
1317
|
+
data: "010101",
|
|
1318
|
+
options: { height: this.guardHeight }
|
|
1319
|
+
}), this.displayValue && e.push({
|
|
1320
|
+
data: "00000000",
|
|
1321
|
+
text: this.text[7],
|
|
1322
|
+
options: {
|
|
1323
|
+
textAlign: "right",
|
|
1324
|
+
fontSize: this.fontSize
|
|
1325
|
+
}
|
|
1326
|
+
}), e;
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
key: "encodeMiddleDigits",
|
|
1331
|
+
value: function() {
|
|
1332
|
+
var e = this.upcA[0], t = this.upcA[this.upcA.length - 1], n = d[parseInt(t)][parseInt(e)];
|
|
1333
|
+
return (0, r.default)(this.middleDigits, n);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
]), t;
|
|
1337
|
+
}(i.default);
|
|
1338
|
+
function m(e, t) {
|
|
1339
|
+
for (var n = u[parseInt(e[e.length - 1])], r = "", i = 0, o = 0; o < n.length; o++) {
|
|
1340
|
+
var s = n[o];
|
|
1341
|
+
r += s === "X" ? e[i++] : s;
|
|
1342
|
+
}
|
|
1343
|
+
return r = "" + t + r, "" + r + (0, a.checksum)(r);
|
|
1344
|
+
}
|
|
1345
|
+
e.default = p;
|
|
1346
|
+
})), b = /* @__PURE__ */ e(((e) => {
|
|
1347
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.UPCE = e.UPC = e.EAN2 = e.EAN5 = e.EAN8 = e.EAN13 = void 0;
|
|
1348
|
+
var t = s(m()), n = s(h()), r = s(g()), i = s(_()), a = s(v()), o = s(y());
|
|
1349
|
+
function s(e) {
|
|
1350
|
+
return e && e.__esModule ? e : { default: e };
|
|
1351
|
+
}
|
|
1352
|
+
e.EAN13 = t.default, e.EAN8 = n.default, e.EAN5 = r.default, e.EAN2 = i.default, e.UPC = a.default, e.UPCE = o.default;
|
|
1353
|
+
})), x = /* @__PURE__ */ e(((e) => {
|
|
1354
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.START_BIN = "1010", e.END_BIN = "11101", e.BINARIES = [
|
|
1355
|
+
"00110",
|
|
1356
|
+
"10001",
|
|
1357
|
+
"01001",
|
|
1358
|
+
"11000",
|
|
1359
|
+
"00101",
|
|
1360
|
+
"10100",
|
|
1361
|
+
"01100",
|
|
1362
|
+
"00011",
|
|
1363
|
+
"10010",
|
|
1364
|
+
"01010"
|
|
1365
|
+
];
|
|
1366
|
+
})), S = /* @__PURE__ */ e(((e) => {
|
|
1367
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1368
|
+
var n = function() {
|
|
1369
|
+
function e(e, t) {
|
|
1370
|
+
for (var n = 0; n < t.length; n++) {
|
|
1371
|
+
var r = t[n];
|
|
1372
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
return function(t, n, r) {
|
|
1376
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1377
|
+
};
|
|
1378
|
+
}(), r = x(), i = a(t());
|
|
1379
|
+
function a(e) {
|
|
1380
|
+
return e && e.__esModule ? e : { default: e };
|
|
1381
|
+
}
|
|
1382
|
+
function o(e, t) {
|
|
1383
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1384
|
+
}
|
|
1385
|
+
function s(e, t) {
|
|
1386
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1387
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1388
|
+
}
|
|
1389
|
+
function c(e, t) {
|
|
1390
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1391
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1392
|
+
value: e,
|
|
1393
|
+
enumerable: !1,
|
|
1394
|
+
writable: !0,
|
|
1395
|
+
configurable: !0
|
|
1396
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1397
|
+
}
|
|
1398
|
+
e.default = function(e) {
|
|
1399
|
+
c(t, e);
|
|
1400
|
+
function t() {
|
|
1401
|
+
return o(this, t), s(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
1402
|
+
}
|
|
1403
|
+
return n(t, [
|
|
1404
|
+
{
|
|
1405
|
+
key: "valid",
|
|
1406
|
+
value: function() {
|
|
1407
|
+
return this.data.search(/^([0-9]{2})+$/) !== -1;
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
key: "encode",
|
|
1412
|
+
value: function() {
|
|
1413
|
+
var e = this, t = this.data.match(/.{2}/g).map(function(t) {
|
|
1414
|
+
return e.encodePair(t);
|
|
1415
|
+
}).join("");
|
|
1416
|
+
return {
|
|
1417
|
+
data: r.START_BIN + t + r.END_BIN,
|
|
1418
|
+
text: this.text
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
key: "encodePair",
|
|
1424
|
+
value: function(e) {
|
|
1425
|
+
var t = r.BINARIES[e[1]];
|
|
1426
|
+
return r.BINARIES[e[0]].split("").map(function(e, n) {
|
|
1427
|
+
return (e === "1" ? "111" : "1") + (t[n] === "1" ? "000" : "0");
|
|
1428
|
+
}).join("");
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
]), t;
|
|
1432
|
+
}(i.default);
|
|
1433
|
+
})), C = /* @__PURE__ */ e(((e) => {
|
|
1434
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1435
|
+
var t = function() {
|
|
1436
|
+
function e(e, t) {
|
|
1437
|
+
for (var n = 0; n < t.length; n++) {
|
|
1438
|
+
var r = t[n];
|
|
1439
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
return function(t, n, r) {
|
|
1443
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1444
|
+
};
|
|
1445
|
+
}(), n = r(S());
|
|
1446
|
+
function r(e) {
|
|
1447
|
+
return e && e.__esModule ? e : { default: e };
|
|
1448
|
+
}
|
|
1449
|
+
function i(e, t) {
|
|
1450
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1451
|
+
}
|
|
1452
|
+
function a(e, t) {
|
|
1453
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1454
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1455
|
+
}
|
|
1456
|
+
function o(e, t) {
|
|
1457
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1458
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1459
|
+
value: e,
|
|
1460
|
+
enumerable: !1,
|
|
1461
|
+
writable: !0,
|
|
1462
|
+
configurable: !0
|
|
1463
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1464
|
+
}
|
|
1465
|
+
var s = function(e) {
|
|
1466
|
+
var t = e.substr(0, 13).split("").map(function(e) {
|
|
1467
|
+
return parseInt(e, 10);
|
|
1468
|
+
}).reduce(function(e, t, n) {
|
|
1469
|
+
return e + t * (3 - n % 2 * 2);
|
|
1470
|
+
}, 0);
|
|
1471
|
+
return Math.ceil(t / 10) * 10 - t;
|
|
1472
|
+
};
|
|
1473
|
+
e.default = function(e) {
|
|
1474
|
+
o(n, e);
|
|
1475
|
+
function n(e, t) {
|
|
1476
|
+
return i(this, n), e.search(/^[0-9]{13}$/) !== -1 && (e += s(e)), a(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e, t));
|
|
1477
|
+
}
|
|
1478
|
+
return t(n, [{
|
|
1479
|
+
key: "valid",
|
|
1480
|
+
value: function() {
|
|
1481
|
+
return this.data.search(/^[0-9]{14}$/) !== -1 && +this.data[13] === s(this.data);
|
|
1482
|
+
}
|
|
1483
|
+
}]), n;
|
|
1484
|
+
}(n.default);
|
|
1485
|
+
})), w = /* @__PURE__ */ e(((e) => {
|
|
1486
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.ITF14 = e.ITF = void 0;
|
|
1487
|
+
var t = r(S()), n = r(C());
|
|
1488
|
+
function r(e) {
|
|
1489
|
+
return e && e.__esModule ? e : { default: e };
|
|
1490
|
+
}
|
|
1491
|
+
e.ITF = t.default, e.ITF14 = n.default;
|
|
1492
|
+
})), T = /* @__PURE__ */ e(((e) => {
|
|
1493
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1494
|
+
var n = function() {
|
|
1495
|
+
function e(e, t) {
|
|
1496
|
+
for (var n = 0; n < t.length; n++) {
|
|
1497
|
+
var r = t[n];
|
|
1498
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
return function(t, n, r) {
|
|
1502
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1503
|
+
};
|
|
1504
|
+
}(), r = i(t());
|
|
1505
|
+
function i(e) {
|
|
1506
|
+
return e && e.__esModule ? e : { default: e };
|
|
1507
|
+
}
|
|
1508
|
+
function a(e, t) {
|
|
1509
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1510
|
+
}
|
|
1511
|
+
function o(e, t) {
|
|
1512
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1513
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1514
|
+
}
|
|
1515
|
+
function s(e, t) {
|
|
1516
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1517
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1518
|
+
value: e,
|
|
1519
|
+
enumerable: !1,
|
|
1520
|
+
writable: !0,
|
|
1521
|
+
configurable: !0
|
|
1522
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1523
|
+
}
|
|
1524
|
+
var c = function(e) {
|
|
1525
|
+
s(t, e);
|
|
1526
|
+
function t(e, n) {
|
|
1527
|
+
return a(this, t), o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1528
|
+
}
|
|
1529
|
+
return n(t, [{
|
|
1530
|
+
key: "encode",
|
|
1531
|
+
value: function() {
|
|
1532
|
+
for (var e = "110", t = 0; t < this.data.length; t++) {
|
|
1533
|
+
var n = parseInt(this.data[t]).toString(2);
|
|
1534
|
+
n = l(n, 4 - n.length);
|
|
1535
|
+
for (var r = 0; r < n.length; r++) e += n[r] == "0" ? "100" : "110";
|
|
1536
|
+
}
|
|
1537
|
+
return e += "1001", {
|
|
1538
|
+
data: e,
|
|
1539
|
+
text: this.text
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
}, {
|
|
1543
|
+
key: "valid",
|
|
1544
|
+
value: function() {
|
|
1545
|
+
return this.data.search(/^[0-9]+$/) !== -1;
|
|
1546
|
+
}
|
|
1547
|
+
}]), t;
|
|
1548
|
+
}(r.default);
|
|
1549
|
+
function l(e, t) {
|
|
1550
|
+
for (var n = 0; n < t; n++) e = "0" + e;
|
|
1551
|
+
return e;
|
|
1552
|
+
}
|
|
1553
|
+
e.default = c;
|
|
1554
|
+
})), E = /* @__PURE__ */ e(((e) => {
|
|
1555
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.mod10 = t, e.mod11 = n;
|
|
1556
|
+
function t(e) {
|
|
1557
|
+
for (var t = 0, n = 0; n < e.length; n++) {
|
|
1558
|
+
var r = parseInt(e[n]);
|
|
1559
|
+
(n + e.length) % 2 == 0 ? t += r : t += r * 2 % 10 + Math.floor(r * 2 / 10);
|
|
1560
|
+
}
|
|
1561
|
+
return (10 - t % 10) % 10;
|
|
1562
|
+
}
|
|
1563
|
+
function n(e) {
|
|
1564
|
+
for (var t = 0, n = [
|
|
1565
|
+
2,
|
|
1566
|
+
3,
|
|
1567
|
+
4,
|
|
1568
|
+
5,
|
|
1569
|
+
6,
|
|
1570
|
+
7
|
|
1571
|
+
], r = 0; r < e.length; r++) {
|
|
1572
|
+
var i = parseInt(e[e.length - 1 - r]);
|
|
1573
|
+
t += n[r % n.length] * i;
|
|
1574
|
+
}
|
|
1575
|
+
return (11 - t % 11) % 11;
|
|
1576
|
+
}
|
|
1577
|
+
})), D = /* @__PURE__ */ e(((e) => {
|
|
1578
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1579
|
+
var t = r(T()), n = E();
|
|
1580
|
+
function r(e) {
|
|
1581
|
+
return e && e.__esModule ? e : { default: e };
|
|
1582
|
+
}
|
|
1583
|
+
function i(e, t) {
|
|
1584
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1585
|
+
}
|
|
1586
|
+
function a(e, t) {
|
|
1587
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1588
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1589
|
+
}
|
|
1590
|
+
function o(e, t) {
|
|
1591
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1592
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1593
|
+
value: e,
|
|
1594
|
+
enumerable: !1,
|
|
1595
|
+
writable: !0,
|
|
1596
|
+
configurable: !0
|
|
1597
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1598
|
+
}
|
|
1599
|
+
e.default = function(e) {
|
|
1600
|
+
o(t, e);
|
|
1601
|
+
function t(e, r) {
|
|
1602
|
+
return i(this, t), a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e + (0, n.mod10)(e), r));
|
|
1603
|
+
}
|
|
1604
|
+
return t;
|
|
1605
|
+
}(t.default);
|
|
1606
|
+
})), O = /* @__PURE__ */ e(((e) => {
|
|
1607
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1608
|
+
var t = r(T()), n = E();
|
|
1609
|
+
function r(e) {
|
|
1610
|
+
return e && e.__esModule ? e : { default: e };
|
|
1611
|
+
}
|
|
1612
|
+
function i(e, t) {
|
|
1613
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1614
|
+
}
|
|
1615
|
+
function a(e, t) {
|
|
1616
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1617
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1618
|
+
}
|
|
1619
|
+
function o(e, t) {
|
|
1620
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1621
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1622
|
+
value: e,
|
|
1623
|
+
enumerable: !1,
|
|
1624
|
+
writable: !0,
|
|
1625
|
+
configurable: !0
|
|
1626
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1627
|
+
}
|
|
1628
|
+
e.default = function(e) {
|
|
1629
|
+
o(t, e);
|
|
1630
|
+
function t(e, r) {
|
|
1631
|
+
return i(this, t), a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e + (0, n.mod11)(e), r));
|
|
1632
|
+
}
|
|
1633
|
+
return t;
|
|
1634
|
+
}(t.default);
|
|
1635
|
+
})), k = /* @__PURE__ */ e(((e) => {
|
|
1636
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1637
|
+
var t = r(T()), n = E();
|
|
1638
|
+
function r(e) {
|
|
1639
|
+
return e && e.__esModule ? e : { default: e };
|
|
1640
|
+
}
|
|
1641
|
+
function i(e, t) {
|
|
1642
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1643
|
+
}
|
|
1644
|
+
function a(e, t) {
|
|
1645
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1646
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1647
|
+
}
|
|
1648
|
+
function o(e, t) {
|
|
1649
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1650
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1651
|
+
value: e,
|
|
1652
|
+
enumerable: !1,
|
|
1653
|
+
writable: !0,
|
|
1654
|
+
configurable: !0
|
|
1655
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1656
|
+
}
|
|
1657
|
+
e.default = function(e) {
|
|
1658
|
+
o(t, e);
|
|
1659
|
+
function t(e, r) {
|
|
1660
|
+
return i(this, t), e += (0, n.mod10)(e), e += (0, n.mod10)(e), a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, r));
|
|
1661
|
+
}
|
|
1662
|
+
return t;
|
|
1663
|
+
}(t.default);
|
|
1664
|
+
})), A = /* @__PURE__ */ e(((e) => {
|
|
1665
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1666
|
+
var t = r(T()), n = E();
|
|
1667
|
+
function r(e) {
|
|
1668
|
+
return e && e.__esModule ? e : { default: e };
|
|
1669
|
+
}
|
|
1670
|
+
function i(e, t) {
|
|
1671
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1672
|
+
}
|
|
1673
|
+
function a(e, t) {
|
|
1674
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1675
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1676
|
+
}
|
|
1677
|
+
function o(e, t) {
|
|
1678
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1679
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1680
|
+
value: e,
|
|
1681
|
+
enumerable: !1,
|
|
1682
|
+
writable: !0,
|
|
1683
|
+
configurable: !0
|
|
1684
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1685
|
+
}
|
|
1686
|
+
e.default = function(e) {
|
|
1687
|
+
o(t, e);
|
|
1688
|
+
function t(e, r) {
|
|
1689
|
+
return i(this, t), e += (0, n.mod11)(e), e += (0, n.mod10)(e), a(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, r));
|
|
1690
|
+
}
|
|
1691
|
+
return t;
|
|
1692
|
+
}(t.default);
|
|
1693
|
+
})), j = /* @__PURE__ */ e(((e) => {
|
|
1694
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.MSI1110 = e.MSI1010 = e.MSI11 = e.MSI10 = e.MSI = void 0;
|
|
1695
|
+
var t = o(T()), n = o(D()), r = o(O()), i = o(k()), a = o(A());
|
|
1696
|
+
function o(e) {
|
|
1697
|
+
return e && e.__esModule ? e : { default: e };
|
|
1698
|
+
}
|
|
1699
|
+
e.MSI = t.default, e.MSI10 = n.default, e.MSI11 = r.default, e.MSI1010 = i.default, e.MSI1110 = a.default;
|
|
1700
|
+
})), M = /* @__PURE__ */ e(((e) => {
|
|
1701
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.pharmacode = void 0;
|
|
1702
|
+
var n = function() {
|
|
1703
|
+
function e(e, t) {
|
|
1704
|
+
for (var n = 0; n < t.length; n++) {
|
|
1705
|
+
var r = t[n];
|
|
1706
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
return function(t, n, r) {
|
|
1710
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1711
|
+
};
|
|
1712
|
+
}(), r = i(t());
|
|
1713
|
+
function i(e) {
|
|
1714
|
+
return e && e.__esModule ? e : { default: e };
|
|
1715
|
+
}
|
|
1716
|
+
function a(e, t) {
|
|
1717
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1718
|
+
}
|
|
1719
|
+
function o(e, t) {
|
|
1720
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1721
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1722
|
+
}
|
|
1723
|
+
function s(e, t) {
|
|
1724
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1725
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1726
|
+
value: e,
|
|
1727
|
+
enumerable: !1,
|
|
1728
|
+
writable: !0,
|
|
1729
|
+
configurable: !0
|
|
1730
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1731
|
+
}
|
|
1732
|
+
e.pharmacode = function(e) {
|
|
1733
|
+
s(t, e);
|
|
1734
|
+
function t(e, n) {
|
|
1735
|
+
a(this, t);
|
|
1736
|
+
var r = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1737
|
+
return r.number = parseInt(e, 10), r;
|
|
1738
|
+
}
|
|
1739
|
+
return n(t, [{
|
|
1740
|
+
key: "encode",
|
|
1741
|
+
value: function() {
|
|
1742
|
+
for (var e = this.number, t = ""; !isNaN(e) && e != 0;) e % 2 == 0 ? (t = "11100" + t, e = (e - 2) / 2) : (t = "100" + t, e = (e - 1) / 2);
|
|
1743
|
+
return t = t.slice(0, -2), {
|
|
1744
|
+
data: t,
|
|
1745
|
+
text: this.text
|
|
1746
|
+
};
|
|
1747
|
+
}
|
|
1748
|
+
}, {
|
|
1749
|
+
key: "valid",
|
|
1750
|
+
value: function() {
|
|
1751
|
+
return this.number >= 3 && this.number <= 131070;
|
|
1752
|
+
}
|
|
1753
|
+
}]), t;
|
|
1754
|
+
}(r.default);
|
|
1755
|
+
})), N = /* @__PURE__ */ e(((e) => {
|
|
1756
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.codabar = void 0;
|
|
1757
|
+
var n = function() {
|
|
1758
|
+
function e(e, t) {
|
|
1759
|
+
for (var n = 0; n < t.length; n++) {
|
|
1760
|
+
var r = t[n];
|
|
1761
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
return function(t, n, r) {
|
|
1765
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1766
|
+
};
|
|
1767
|
+
}(), r = i(t());
|
|
1768
|
+
function i(e) {
|
|
1769
|
+
return e && e.__esModule ? e : { default: e };
|
|
1770
|
+
}
|
|
1771
|
+
function a(e, t) {
|
|
1772
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1773
|
+
}
|
|
1774
|
+
function o(e, t) {
|
|
1775
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1776
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1777
|
+
}
|
|
1778
|
+
function s(e, t) {
|
|
1779
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1780
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1781
|
+
value: e,
|
|
1782
|
+
enumerable: !1,
|
|
1783
|
+
writable: !0,
|
|
1784
|
+
configurable: !0
|
|
1785
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1786
|
+
}
|
|
1787
|
+
e.codabar = function(e) {
|
|
1788
|
+
s(t, e);
|
|
1789
|
+
function t(e, n) {
|
|
1790
|
+
a(this, t), e.search(/^[0-9\-\$\:\.\+\/]+$/) === 0 && (e = "A" + e + "A");
|
|
1791
|
+
var r = o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e.toUpperCase(), n));
|
|
1792
|
+
return r.text = r.options.text || r.text.replace(/[A-D]/g, ""), r;
|
|
1793
|
+
}
|
|
1794
|
+
return n(t, [
|
|
1795
|
+
{
|
|
1796
|
+
key: "valid",
|
|
1797
|
+
value: function() {
|
|
1798
|
+
return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/) !== -1;
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
key: "encode",
|
|
1803
|
+
value: function() {
|
|
1804
|
+
for (var e = [], t = this.getEncodings(), n = 0; n < this.data.length; n++) e.push(t[this.data.charAt(n)]), n !== this.data.length - 1 && e.push("0");
|
|
1805
|
+
return {
|
|
1806
|
+
text: this.text,
|
|
1807
|
+
data: e.join("")
|
|
1808
|
+
};
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
key: "getEncodings",
|
|
1813
|
+
value: function() {
|
|
1814
|
+
return {
|
|
1815
|
+
0: "101010011",
|
|
1816
|
+
1: "101011001",
|
|
1817
|
+
2: "101001011",
|
|
1818
|
+
3: "110010101",
|
|
1819
|
+
4: "101101001",
|
|
1820
|
+
5: "110101001",
|
|
1821
|
+
6: "100101011",
|
|
1822
|
+
7: "100101101",
|
|
1823
|
+
8: "100110101",
|
|
1824
|
+
9: "110100101",
|
|
1825
|
+
"-": "101001101",
|
|
1826
|
+
$: "101100101",
|
|
1827
|
+
":": "1101011011",
|
|
1828
|
+
"/": "1101101011",
|
|
1829
|
+
".": "1101101101",
|
|
1830
|
+
"+": "1011011011",
|
|
1831
|
+
A: "1011001001",
|
|
1832
|
+
B: "1001001011",
|
|
1833
|
+
C: "1010010011",
|
|
1834
|
+
D: "1010011001"
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
]), t;
|
|
1839
|
+
}(r.default);
|
|
1840
|
+
})), P = /* @__PURE__ */ e(((e) => {
|
|
1841
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.SYMBOLS = /* @__PURE__ */ "0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ".split(","), e.BINARIES = /* @__PURE__ */ "100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110".split("."), e.MULTI_SYMBOLS = {
|
|
1842
|
+
"\0": ["(%)", "U"],
|
|
1843
|
+
"": ["($)", "A"],
|
|
1844
|
+
"": ["($)", "B"],
|
|
1845
|
+
"": ["($)", "C"],
|
|
1846
|
+
"": ["($)", "D"],
|
|
1847
|
+
"": ["($)", "E"],
|
|
1848
|
+
"": ["($)", "F"],
|
|
1849
|
+
"\x07": ["($)", "G"],
|
|
1850
|
+
"\b": ["($)", "H"],
|
|
1851
|
+
" ": ["($)", "I"],
|
|
1852
|
+
"\n": ["($)", "J"],
|
|
1853
|
+
"\v": ["($)", "K"],
|
|
1854
|
+
"\f": ["($)", "L"],
|
|
1855
|
+
"\r": ["($)", "M"],
|
|
1856
|
+
"": ["($)", "N"],
|
|
1857
|
+
"": ["($)", "O"],
|
|
1858
|
+
"": ["($)", "P"],
|
|
1859
|
+
"": ["($)", "Q"],
|
|
1860
|
+
"": ["($)", "R"],
|
|
1861
|
+
"": ["($)", "S"],
|
|
1862
|
+
"": ["($)", "T"],
|
|
1863
|
+
"": ["($)", "U"],
|
|
1864
|
+
"": ["($)", "V"],
|
|
1865
|
+
"": ["($)", "W"],
|
|
1866
|
+
"": ["($)", "X"],
|
|
1867
|
+
"": ["($)", "Y"],
|
|
1868
|
+
"": ["($)", "Z"],
|
|
1869
|
+
"\x1B": ["(%)", "A"],
|
|
1870
|
+
"": ["(%)", "B"],
|
|
1871
|
+
"": ["(%)", "C"],
|
|
1872
|
+
"": ["(%)", "D"],
|
|
1873
|
+
"": ["(%)", "E"],
|
|
1874
|
+
"!": ["(/)", "A"],
|
|
1875
|
+
"\"": ["(/)", "B"],
|
|
1876
|
+
"#": ["(/)", "C"],
|
|
1877
|
+
"&": ["(/)", "F"],
|
|
1878
|
+
"'": ["(/)", "G"],
|
|
1879
|
+
"(": ["(/)", "H"],
|
|
1880
|
+
")": ["(/)", "I"],
|
|
1881
|
+
"*": ["(/)", "J"],
|
|
1882
|
+
",": ["(/)", "L"],
|
|
1883
|
+
":": ["(/)", "Z"],
|
|
1884
|
+
";": ["(%)", "F"],
|
|
1885
|
+
"<": ["(%)", "G"],
|
|
1886
|
+
"=": ["(%)", "H"],
|
|
1887
|
+
">": ["(%)", "I"],
|
|
1888
|
+
"?": ["(%)", "J"],
|
|
1889
|
+
"@": ["(%)", "V"],
|
|
1890
|
+
"[": ["(%)", "K"],
|
|
1891
|
+
"\\": ["(%)", "L"],
|
|
1892
|
+
"]": ["(%)", "M"],
|
|
1893
|
+
"^": ["(%)", "N"],
|
|
1894
|
+
_: ["(%)", "O"],
|
|
1895
|
+
"`": ["(%)", "W"],
|
|
1896
|
+
a: ["(+)", "A"],
|
|
1897
|
+
b: ["(+)", "B"],
|
|
1898
|
+
c: ["(+)", "C"],
|
|
1899
|
+
d: ["(+)", "D"],
|
|
1900
|
+
e: ["(+)", "E"],
|
|
1901
|
+
f: ["(+)", "F"],
|
|
1902
|
+
g: ["(+)", "G"],
|
|
1903
|
+
h: ["(+)", "H"],
|
|
1904
|
+
i: ["(+)", "I"],
|
|
1905
|
+
j: ["(+)", "J"],
|
|
1906
|
+
k: ["(+)", "K"],
|
|
1907
|
+
l: ["(+)", "L"],
|
|
1908
|
+
m: ["(+)", "M"],
|
|
1909
|
+
n: ["(+)", "N"],
|
|
1910
|
+
o: ["(+)", "O"],
|
|
1911
|
+
p: ["(+)", "P"],
|
|
1912
|
+
q: ["(+)", "Q"],
|
|
1913
|
+
r: ["(+)", "R"],
|
|
1914
|
+
s: ["(+)", "S"],
|
|
1915
|
+
t: ["(+)", "T"],
|
|
1916
|
+
u: ["(+)", "U"],
|
|
1917
|
+
v: ["(+)", "V"],
|
|
1918
|
+
w: ["(+)", "W"],
|
|
1919
|
+
x: ["(+)", "X"],
|
|
1920
|
+
y: ["(+)", "Y"],
|
|
1921
|
+
z: ["(+)", "Z"],
|
|
1922
|
+
"{": ["(%)", "P"],
|
|
1923
|
+
"|": ["(%)", "Q"],
|
|
1924
|
+
"}": ["(%)", "R"],
|
|
1925
|
+
"~": ["(%)", "S"],
|
|
1926
|
+
"": ["(%)", "T"]
|
|
1927
|
+
};
|
|
1928
|
+
})), F = /* @__PURE__ */ e(((e) => {
|
|
1929
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
1930
|
+
var n = function() {
|
|
1931
|
+
function e(e, t) {
|
|
1932
|
+
for (var n = 0; n < t.length; n++) {
|
|
1933
|
+
var r = t[n];
|
|
1934
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
return function(t, n, r) {
|
|
1938
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
1939
|
+
};
|
|
1940
|
+
}(), r = P(), i = a(t());
|
|
1941
|
+
function a(e) {
|
|
1942
|
+
return e && e.__esModule ? e : { default: e };
|
|
1943
|
+
}
|
|
1944
|
+
function o(e, t) {
|
|
1945
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1946
|
+
}
|
|
1947
|
+
function s(e, t) {
|
|
1948
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1949
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
1950
|
+
}
|
|
1951
|
+
function c(e, t) {
|
|
1952
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
1953
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
1954
|
+
value: e,
|
|
1955
|
+
enumerable: !1,
|
|
1956
|
+
writable: !0,
|
|
1957
|
+
configurable: !0
|
|
1958
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
1959
|
+
}
|
|
1960
|
+
e.default = function(e) {
|
|
1961
|
+
c(t, e);
|
|
1962
|
+
function t(e, n) {
|
|
1963
|
+
return o(this, t), s(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
1964
|
+
}
|
|
1965
|
+
return n(t, [{
|
|
1966
|
+
key: "valid",
|
|
1967
|
+
value: function() {
|
|
1968
|
+
return /^[0-9A-Z\-. $/+%]+$/.test(this.data);
|
|
1969
|
+
}
|
|
1970
|
+
}, {
|
|
1971
|
+
key: "encode",
|
|
1972
|
+
value: function() {
|
|
1973
|
+
var e = this.data.split("").flatMap(function(e) {
|
|
1974
|
+
return r.MULTI_SYMBOLS[e] || e;
|
|
1975
|
+
}), n = e.map(function(e) {
|
|
1976
|
+
return t.getEncoding(e);
|
|
1977
|
+
}).join(""), i = t.checksum(e, 20), a = t.checksum(e.concat(i), 15);
|
|
1978
|
+
return {
|
|
1979
|
+
text: this.text,
|
|
1980
|
+
data: t.getEncoding("ÿ") + n + t.getEncoding(i) + t.getEncoding(a) + t.getEncoding("ÿ") + "1"
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
}], [
|
|
1984
|
+
{
|
|
1985
|
+
key: "getEncoding",
|
|
1986
|
+
value: function(e) {
|
|
1987
|
+
return r.BINARIES[t.symbolValue(e)];
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
key: "getSymbol",
|
|
1992
|
+
value: function(e) {
|
|
1993
|
+
return r.SYMBOLS[e];
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
key: "symbolValue",
|
|
1998
|
+
value: function(e) {
|
|
1999
|
+
return r.SYMBOLS.indexOf(e);
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
key: "checksum",
|
|
2004
|
+
value: function(e, n) {
|
|
2005
|
+
var r = e.slice().reverse().reduce(function(e, r, i) {
|
|
2006
|
+
var a = i % n + 1;
|
|
2007
|
+
return e + t.symbolValue(r) * a;
|
|
2008
|
+
}, 0);
|
|
2009
|
+
return t.getSymbol(r % 47);
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
]), t;
|
|
2013
|
+
}(i.default);
|
|
2014
|
+
})), I = /* @__PURE__ */ e(((e) => {
|
|
2015
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2016
|
+
var t = function() {
|
|
2017
|
+
function e(e, t) {
|
|
2018
|
+
for (var n = 0; n < t.length; n++) {
|
|
2019
|
+
var r = t[n];
|
|
2020
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
return function(t, n, r) {
|
|
2024
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
2025
|
+
};
|
|
2026
|
+
}(), n = r(F());
|
|
2027
|
+
function r(e) {
|
|
2028
|
+
return e && e.__esModule ? e : { default: e };
|
|
2029
|
+
}
|
|
2030
|
+
function i(e, t) {
|
|
2031
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2032
|
+
}
|
|
2033
|
+
function a(e, t) {
|
|
2034
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2035
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
2036
|
+
}
|
|
2037
|
+
function o(e, t) {
|
|
2038
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
2039
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
2040
|
+
value: e,
|
|
2041
|
+
enumerable: !1,
|
|
2042
|
+
writable: !0,
|
|
2043
|
+
configurable: !0
|
|
2044
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
2045
|
+
}
|
|
2046
|
+
e.default = function(e) {
|
|
2047
|
+
o(n, e);
|
|
2048
|
+
function n(e, t) {
|
|
2049
|
+
return i(this, n), a(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e, t));
|
|
2050
|
+
}
|
|
2051
|
+
return t(n, [{
|
|
2052
|
+
key: "valid",
|
|
2053
|
+
value: function() {
|
|
2054
|
+
return /^[\x00-\x7f]+$/.test(this.data);
|
|
2055
|
+
}
|
|
2056
|
+
}]), n;
|
|
2057
|
+
}(n.default);
|
|
2058
|
+
})), L = /* @__PURE__ */ e(((e) => {
|
|
2059
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.CODE93FullASCII = e.CODE93 = void 0;
|
|
2060
|
+
var t = r(F()), n = r(I());
|
|
2061
|
+
function r(e) {
|
|
2062
|
+
return e && e.__esModule ? e : { default: e };
|
|
2063
|
+
}
|
|
2064
|
+
e.CODE93 = t.default, e.CODE93FullASCII = n.default;
|
|
2065
|
+
})), R = /* @__PURE__ */ e(((e) => {
|
|
2066
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.GenericBarcode = void 0;
|
|
2067
|
+
var n = function() {
|
|
2068
|
+
function e(e, t) {
|
|
2069
|
+
for (var n = 0; n < t.length; n++) {
|
|
2070
|
+
var r = t[n];
|
|
2071
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
return function(t, n, r) {
|
|
2075
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
2076
|
+
};
|
|
2077
|
+
}(), r = i(t());
|
|
2078
|
+
function i(e) {
|
|
2079
|
+
return e && e.__esModule ? e : { default: e };
|
|
2080
|
+
}
|
|
2081
|
+
function a(e, t) {
|
|
2082
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2083
|
+
}
|
|
2084
|
+
function o(e, t) {
|
|
2085
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2086
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
2087
|
+
}
|
|
2088
|
+
function s(e, t) {
|
|
2089
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
2090
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
2091
|
+
value: e,
|
|
2092
|
+
enumerable: !1,
|
|
2093
|
+
writable: !0,
|
|
2094
|
+
configurable: !0
|
|
2095
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
2096
|
+
}
|
|
2097
|
+
e.GenericBarcode = function(e) {
|
|
2098
|
+
s(t, e);
|
|
2099
|
+
function t(e, n) {
|
|
2100
|
+
return a(this, t), o(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n));
|
|
2101
|
+
}
|
|
2102
|
+
return n(t, [{
|
|
2103
|
+
key: "encode",
|
|
2104
|
+
value: function() {
|
|
2105
|
+
return {
|
|
2106
|
+
data: "10101010101010101010101010101010101010101",
|
|
2107
|
+
text: this.text
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2110
|
+
}, {
|
|
2111
|
+
key: "valid",
|
|
2112
|
+
value: function() {
|
|
2113
|
+
return !0;
|
|
2114
|
+
}
|
|
2115
|
+
}]), t;
|
|
2116
|
+
}(r.default);
|
|
2117
|
+
})), z = /* @__PURE__ */ e(((e) => {
|
|
2118
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2119
|
+
var t = n(), r = u(), i = b(), a = w(), o = j(), s = M(), c = N(), l = L(), d = R();
|
|
2120
|
+
e.default = {
|
|
2121
|
+
CODE39: t.CODE39,
|
|
2122
|
+
CODE128: r.CODE128,
|
|
2123
|
+
CODE128A: r.CODE128A,
|
|
2124
|
+
CODE128B: r.CODE128B,
|
|
2125
|
+
CODE128C: r.CODE128C,
|
|
2126
|
+
EAN13: i.EAN13,
|
|
2127
|
+
EAN8: i.EAN8,
|
|
2128
|
+
EAN5: i.EAN5,
|
|
2129
|
+
EAN2: i.EAN2,
|
|
2130
|
+
UPC: i.UPC,
|
|
2131
|
+
UPCE: i.UPCE,
|
|
2132
|
+
ITF14: a.ITF14,
|
|
2133
|
+
ITF: a.ITF,
|
|
2134
|
+
MSI: o.MSI,
|
|
2135
|
+
MSI10: o.MSI10,
|
|
2136
|
+
MSI11: o.MSI11,
|
|
2137
|
+
MSI1010: o.MSI1010,
|
|
2138
|
+
MSI1110: o.MSI1110,
|
|
2139
|
+
pharmacode: s.pharmacode,
|
|
2140
|
+
codabar: c.codabar,
|
|
2141
|
+
CODE93: l.CODE93,
|
|
2142
|
+
CODE93FullASCII: l.CODE93FullASCII,
|
|
2143
|
+
GenericBarcode: d.GenericBarcode
|
|
2144
|
+
};
|
|
2145
|
+
})), B = /* @__PURE__ */ e(((e) => {
|
|
2146
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2147
|
+
var t = Object.assign || function(e) {
|
|
2148
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2149
|
+
var n = arguments[t];
|
|
2150
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2151
|
+
}
|
|
2152
|
+
return e;
|
|
2153
|
+
};
|
|
2154
|
+
e.default = function(e, n) {
|
|
2155
|
+
return t({}, e, n);
|
|
2156
|
+
};
|
|
2157
|
+
})), V = /* @__PURE__ */ e(((e) => {
|
|
2158
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = t;
|
|
2159
|
+
function t(e) {
|
|
2160
|
+
var t = [];
|
|
2161
|
+
function n(e) {
|
|
2162
|
+
if (Array.isArray(e)) for (var r = 0; r < e.length; r++) n(e[r]);
|
|
2163
|
+
else e.text = e.text || "", e.data = e.data || "", t.push(e);
|
|
2164
|
+
}
|
|
2165
|
+
return n(e), t;
|
|
2166
|
+
}
|
|
2167
|
+
})), H = /* @__PURE__ */ e(((e) => {
|
|
2168
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = t;
|
|
2169
|
+
function t(e) {
|
|
2170
|
+
return e.marginTop = e.marginTop || e.margin, e.marginBottom = e.marginBottom || e.margin, e.marginRight = e.marginRight || e.margin, e.marginLeft = e.marginLeft || e.margin, e;
|
|
2171
|
+
}
|
|
2172
|
+
})), U = /* @__PURE__ */ e(((e) => {
|
|
2173
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = t;
|
|
2174
|
+
function t(e) {
|
|
2175
|
+
var t = [
|
|
2176
|
+
"width",
|
|
2177
|
+
"height",
|
|
2178
|
+
"textMargin",
|
|
2179
|
+
"fontSize",
|
|
2180
|
+
"margin",
|
|
2181
|
+
"marginTop",
|
|
2182
|
+
"marginBottom",
|
|
2183
|
+
"marginLeft",
|
|
2184
|
+
"marginRight"
|
|
2185
|
+
];
|
|
2186
|
+
for (var n in t) t.hasOwnProperty(n) && (n = t[n], typeof e[n] == "string" && (e[n] = parseInt(e[n], 10)));
|
|
2187
|
+
return typeof e.displayValue == "string" && (e.displayValue = e.displayValue != "false"), e;
|
|
2188
|
+
}
|
|
2189
|
+
})), W = /* @__PURE__ */ e(((e) => {
|
|
2190
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
2191
|
+
width: 2,
|
|
2192
|
+
height: 100,
|
|
2193
|
+
format: "auto",
|
|
2194
|
+
displayValue: !0,
|
|
2195
|
+
fontOptions: "",
|
|
2196
|
+
font: "monospace",
|
|
2197
|
+
text: void 0,
|
|
2198
|
+
textAlign: "center",
|
|
2199
|
+
textPosition: "bottom",
|
|
2200
|
+
textMargin: 2,
|
|
2201
|
+
fontSize: 20,
|
|
2202
|
+
background: "#ffffff",
|
|
2203
|
+
lineColor: "#000000",
|
|
2204
|
+
margin: 10,
|
|
2205
|
+
marginTop: void 0,
|
|
2206
|
+
marginBottom: void 0,
|
|
2207
|
+
marginLeft: void 0,
|
|
2208
|
+
marginRight: void 0,
|
|
2209
|
+
valid: function() {}
|
|
2210
|
+
};
|
|
2211
|
+
})), G = /* @__PURE__ */ e(((e) => {
|
|
2212
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2213
|
+
var t = r(U()), n = r(W());
|
|
2214
|
+
function r(e) {
|
|
2215
|
+
return e && e.__esModule ? e : { default: e };
|
|
2216
|
+
}
|
|
2217
|
+
function i(e) {
|
|
2218
|
+
var r = {};
|
|
2219
|
+
for (var i in n.default) n.default.hasOwnProperty(i) && (e.hasAttribute("jsbarcode-" + i.toLowerCase()) && (r[i] = e.getAttribute("jsbarcode-" + i.toLowerCase())), e.hasAttribute("data-" + i.toLowerCase()) && (r[i] = e.getAttribute("data-" + i.toLowerCase())));
|
|
2220
|
+
return r.value = e.getAttribute("jsbarcode-value") || e.getAttribute("data-value"), r = (0, t.default)(r), r;
|
|
2221
|
+
}
|
|
2222
|
+
e.default = i;
|
|
2223
|
+
})), K = /* @__PURE__ */ e(((e) => {
|
|
2224
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.getTotalWidthOfEncodings = e.calculateEncodingAttributes = e.getBarcodePadding = e.getEncodingHeight = e.getMaximumHeightOfEncodings = void 0;
|
|
2225
|
+
var t = n(B());
|
|
2226
|
+
function n(e) {
|
|
2227
|
+
return e && e.__esModule ? e : { default: e };
|
|
2228
|
+
}
|
|
2229
|
+
function r(e, t) {
|
|
2230
|
+
return t.height + (t.displayValue && e.text.length > 0 ? t.fontSize + t.textMargin : 0) + t.marginTop + t.marginBottom;
|
|
2231
|
+
}
|
|
2232
|
+
function i(e, t, n) {
|
|
2233
|
+
if (n.displayValue && t < e) {
|
|
2234
|
+
if (n.textAlign == "center") return Math.floor((e - t) / 2);
|
|
2235
|
+
if (n.textAlign == "left") return 0;
|
|
2236
|
+
if (n.textAlign == "right") return Math.floor(e - t);
|
|
2237
|
+
}
|
|
2238
|
+
return 0;
|
|
2239
|
+
}
|
|
2240
|
+
function a(e, n, a) {
|
|
2241
|
+
for (var o = 0; o < e.length; o++) {
|
|
2242
|
+
var s = e[o], l = (0, t.default)(n, s.options), u = l.displayValue ? c(s.text, l, a) : 0, d = s.data.length * l.width;
|
|
2243
|
+
s.width = Math.ceil(Math.max(u, d)), s.height = r(s, l), s.barcodePadding = i(u, d, l);
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
function o(e) {
|
|
2247
|
+
for (var t = 0, n = 0; n < e.length; n++) t += e[n].width;
|
|
2248
|
+
return t;
|
|
2249
|
+
}
|
|
2250
|
+
function s(e) {
|
|
2251
|
+
for (var t = 0, n = 0; n < e.length; n++) e[n].height > t && (t = e[n].height);
|
|
2252
|
+
return t;
|
|
2253
|
+
}
|
|
2254
|
+
function c(e, t, n) {
|
|
2255
|
+
var r;
|
|
2256
|
+
if (n) r = n;
|
|
2257
|
+
else if (typeof document < "u") r = document.createElement("canvas").getContext("2d");
|
|
2258
|
+
else return 0;
|
|
2259
|
+
r.font = t.fontOptions + " " + t.fontSize + "px " + t.font;
|
|
2260
|
+
var i = r.measureText(e);
|
|
2261
|
+
return i ? i.width : 0;
|
|
2262
|
+
}
|
|
2263
|
+
e.getMaximumHeightOfEncodings = s, e.getEncodingHeight = r, e.getBarcodePadding = i, e.calculateEncodingAttributes = a, e.getTotalWidthOfEncodings = o;
|
|
2264
|
+
})), q = /* @__PURE__ */ e(((e) => {
|
|
2265
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2266
|
+
var t = function() {
|
|
2267
|
+
function e(e, t) {
|
|
2268
|
+
for (var n = 0; n < t.length; n++) {
|
|
2269
|
+
var r = t[n];
|
|
2270
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
return function(t, n, r) {
|
|
2274
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
2275
|
+
};
|
|
2276
|
+
}(), n = i(B()), r = K();
|
|
2277
|
+
function i(e) {
|
|
2278
|
+
return e && e.__esModule ? e : { default: e };
|
|
2279
|
+
}
|
|
2280
|
+
function a(e, t) {
|
|
2281
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2282
|
+
}
|
|
2283
|
+
e.default = function() {
|
|
2284
|
+
function e(t, n, r) {
|
|
2285
|
+
a(this, e), this.canvas = t, this.encodings = n, this.options = r;
|
|
2286
|
+
}
|
|
2287
|
+
return t(e, [
|
|
2288
|
+
{
|
|
2289
|
+
key: "render",
|
|
2290
|
+
value: function() {
|
|
2291
|
+
if (!this.canvas.getContext) throw Error("The browser does not support canvas.");
|
|
2292
|
+
this.prepareCanvas();
|
|
2293
|
+
for (var e = 0; e < this.encodings.length; e++) {
|
|
2294
|
+
var t = (0, n.default)(this.options, this.encodings[e].options);
|
|
2295
|
+
this.drawCanvasBarcode(t, this.encodings[e]), this.drawCanvasText(t, this.encodings[e]), this.moveCanvasDrawing(this.encodings[e]);
|
|
2296
|
+
}
|
|
2297
|
+
this.restoreCanvas();
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
key: "prepareCanvas",
|
|
2302
|
+
value: function() {
|
|
2303
|
+
var e = this.canvas.getContext("2d");
|
|
2304
|
+
e.save(), (0, r.calculateEncodingAttributes)(this.encodings, this.options, e);
|
|
2305
|
+
var t = (0, r.getTotalWidthOfEncodings)(this.encodings), n = (0, r.getMaximumHeightOfEncodings)(this.encodings);
|
|
2306
|
+
this.canvas.width = t + this.options.marginLeft + this.options.marginRight, this.canvas.height = n, e.clearRect(0, 0, this.canvas.width, this.canvas.height), this.options.background && (e.fillStyle = this.options.background, e.fillRect(0, 0, this.canvas.width, this.canvas.height)), e.translate(this.options.marginLeft, 0);
|
|
2307
|
+
}
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
key: "drawCanvasBarcode",
|
|
2311
|
+
value: function(e, t) {
|
|
2312
|
+
var n = this.canvas.getContext("2d"), r = t.data, i = e.textPosition == "top" ? e.marginTop + e.fontSize + e.textMargin : e.marginTop;
|
|
2313
|
+
n.fillStyle = e.lineColor;
|
|
2314
|
+
for (var a = 0; a < r.length; a++) {
|
|
2315
|
+
var o = a * e.width + t.barcodePadding;
|
|
2316
|
+
r[a] === "1" ? n.fillRect(o, i, e.width, e.height) : r[a] && n.fillRect(o, i, e.width, e.height * r[a]);
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
key: "drawCanvasText",
|
|
2322
|
+
value: function(e, t) {
|
|
2323
|
+
var n = this.canvas.getContext("2d"), r = e.fontOptions + " " + e.fontSize + "px " + e.font;
|
|
2324
|
+
if (e.displayValue) {
|
|
2325
|
+
var i, a = e.textPosition == "top" ? e.marginTop + e.fontSize - e.textMargin : e.height + e.textMargin + e.marginTop + e.fontSize;
|
|
2326
|
+
n.font = r, e.textAlign == "left" || t.barcodePadding > 0 ? (i = 0, n.textAlign = "left") : e.textAlign == "right" ? (i = t.width - 1, n.textAlign = "right") : (i = t.width / 2, n.textAlign = "center"), n.fillText(t.text, i, a);
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
key: "moveCanvasDrawing",
|
|
2332
|
+
value: function(e) {
|
|
2333
|
+
this.canvas.getContext("2d").translate(e.width, 0);
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
key: "restoreCanvas",
|
|
2338
|
+
value: function() {
|
|
2339
|
+
this.canvas.getContext("2d").restore();
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
]), e;
|
|
2343
|
+
}();
|
|
2344
|
+
})), J = /* @__PURE__ */ e(((e) => {
|
|
2345
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2346
|
+
var t = function() {
|
|
2347
|
+
function e(e, t) {
|
|
2348
|
+
for (var n = 0; n < t.length; n++) {
|
|
2349
|
+
var r = t[n];
|
|
2350
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
return function(t, n, r) {
|
|
2354
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
2355
|
+
};
|
|
2356
|
+
}(), n = i(B()), r = K();
|
|
2357
|
+
function i(e) {
|
|
2358
|
+
return e && e.__esModule ? e : { default: e };
|
|
2359
|
+
}
|
|
2360
|
+
function a(e, t) {
|
|
2361
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2362
|
+
}
|
|
2363
|
+
var o = "http://www.w3.org/2000/svg";
|
|
2364
|
+
e.default = function() {
|
|
2365
|
+
function e(t, n, r) {
|
|
2366
|
+
a(this, e), this.svg = t, this.encodings = n, this.options = r, this.document = r.xmlDocument || document;
|
|
2367
|
+
}
|
|
2368
|
+
return t(e, [
|
|
2369
|
+
{
|
|
2370
|
+
key: "render",
|
|
2371
|
+
value: function() {
|
|
2372
|
+
var e = this.options.marginLeft;
|
|
2373
|
+
this.prepareSVG();
|
|
2374
|
+
for (var t = 0; t < this.encodings.length; t++) {
|
|
2375
|
+
var r = this.encodings[t], i = (0, n.default)(this.options, r.options), a = this.createGroup(e, i.marginTop, this.svg);
|
|
2376
|
+
this.setGroupOptions(a, i), this.drawSvgBarcode(a, i, r), this.drawSVGText(a, i, r), e += r.width;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
key: "prepareSVG",
|
|
2382
|
+
value: function() {
|
|
2383
|
+
for (; this.svg.firstChild;) this.svg.removeChild(this.svg.firstChild);
|
|
2384
|
+
(0, r.calculateEncodingAttributes)(this.encodings, this.options);
|
|
2385
|
+
var e = (0, r.getTotalWidthOfEncodings)(this.encodings), t = (0, r.getMaximumHeightOfEncodings)(this.encodings), n = e + this.options.marginLeft + this.options.marginRight;
|
|
2386
|
+
this.setSvgAttributes(n, t), this.options.background && this.drawRect(0, 0, n, t, this.svg).setAttribute("fill", this.options.background);
|
|
2387
|
+
}
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
key: "drawSvgBarcode",
|
|
2391
|
+
value: function(e, t, n) {
|
|
2392
|
+
for (var r = n.data, i = t.textPosition == "top" ? t.fontSize + t.textMargin : 0, a = 0, o = 0, s = 0; s < r.length; s++) o = s * t.width + n.barcodePadding, r[s] === "1" ? a++ : a > 0 && (this.drawRect(o - t.width * a, i, t.width * a, t.height, e), a = 0);
|
|
2393
|
+
a > 0 && this.drawRect(o - t.width * (a - 1), i, t.width * a, t.height, e);
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
key: "drawSVGText",
|
|
2398
|
+
value: function(e, t, n) {
|
|
2399
|
+
var r = this.document.createElementNS(o, "text");
|
|
2400
|
+
if (t.displayValue) {
|
|
2401
|
+
var i, a;
|
|
2402
|
+
r.setAttribute("font-family", t.font), r.setAttribute("font-size", t.fontSize), t.fontOptions.includes("bold") && r.setAttribute("font-weight", "bold"), t.fontOptions.includes("italic") && r.setAttribute("font-style", "italic"), a = t.textPosition == "top" ? t.fontSize - t.textMargin : t.height + t.textMargin + t.fontSize, t.textAlign == "left" || n.barcodePadding > 0 ? (i = 0, r.setAttribute("text-anchor", "start")) : t.textAlign == "right" ? (i = n.width - 1, r.setAttribute("text-anchor", "end")) : (i = n.width / 2, r.setAttribute("text-anchor", "middle")), r.setAttribute("x", i), r.setAttribute("y", a), r.appendChild(this.document.createTextNode(n.text)), e.appendChild(r);
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
key: "setSvgAttributes",
|
|
2408
|
+
value: function(e, t) {
|
|
2409
|
+
var n = this.svg;
|
|
2410
|
+
n.setAttribute("width", e + "px"), n.setAttribute("height", t + "px"), n.setAttribute("x", "0px"), n.setAttribute("y", "0px"), n.setAttribute("viewBox", "0 0 " + e + " " + t), n.setAttribute("xmlns", o), n.setAttribute("version", "1.1");
|
|
2411
|
+
}
|
|
2412
|
+
},
|
|
2413
|
+
{
|
|
2414
|
+
key: "createGroup",
|
|
2415
|
+
value: function(e, t, n) {
|
|
2416
|
+
var r = this.document.createElementNS(o, "g");
|
|
2417
|
+
return r.setAttribute("transform", "translate(" + e + ", " + t + ")"), n.appendChild(r), r;
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
key: "setGroupOptions",
|
|
2422
|
+
value: function(e, t) {
|
|
2423
|
+
e.setAttribute("fill", t.lineColor);
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
key: "drawRect",
|
|
2428
|
+
value: function(e, t, n, r, i) {
|
|
2429
|
+
var a = this.document.createElementNS(o, "rect");
|
|
2430
|
+
return a.setAttribute("x", e), a.setAttribute("y", t), a.setAttribute("width", n), a.setAttribute("height", r), i.appendChild(a), a;
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
]), e;
|
|
2434
|
+
}();
|
|
2435
|
+
})), Y = /* @__PURE__ */ e(((e) => {
|
|
2436
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2437
|
+
var t = function() {
|
|
2438
|
+
function e(e, t) {
|
|
2439
|
+
for (var n = 0; n < t.length; n++) {
|
|
2440
|
+
var r = t[n];
|
|
2441
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
return function(t, n, r) {
|
|
2445
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
2446
|
+
};
|
|
2447
|
+
}();
|
|
2448
|
+
function n(e, t) {
|
|
2449
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2450
|
+
}
|
|
2451
|
+
e.default = function() {
|
|
2452
|
+
function e(t, r, i) {
|
|
2453
|
+
n(this, e), this.object = t, this.encodings = r, this.options = i;
|
|
2454
|
+
}
|
|
2455
|
+
return t(e, [{
|
|
2456
|
+
key: "render",
|
|
2457
|
+
value: function() {
|
|
2458
|
+
this.object.encodings = this.encodings;
|
|
2459
|
+
}
|
|
2460
|
+
}]), e;
|
|
2461
|
+
}();
|
|
2462
|
+
})), X = /* @__PURE__ */ e(((e) => {
|
|
2463
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2464
|
+
var t = i(q()), n = i(J()), r = i(Y());
|
|
2465
|
+
function i(e) {
|
|
2466
|
+
return e && e.__esModule ? e : { default: e };
|
|
2467
|
+
}
|
|
2468
|
+
e.default = {
|
|
2469
|
+
CanvasRenderer: t.default,
|
|
2470
|
+
SVGRenderer: n.default,
|
|
2471
|
+
ObjectRenderer: r.default
|
|
2472
|
+
};
|
|
2473
|
+
})), Z = /* @__PURE__ */ e(((e) => {
|
|
2474
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2475
|
+
function t(e, t) {
|
|
2476
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2477
|
+
}
|
|
2478
|
+
function n(e, t) {
|
|
2479
|
+
if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2480
|
+
return t && (typeof t == "object" || typeof t == "function") ? t : e;
|
|
2481
|
+
}
|
|
2482
|
+
function r(e, t) {
|
|
2483
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
2484
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
2485
|
+
value: e,
|
|
2486
|
+
enumerable: !1,
|
|
2487
|
+
writable: !0,
|
|
2488
|
+
configurable: !0
|
|
2489
|
+
} }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
2490
|
+
}
|
|
2491
|
+
var i = function(e) {
|
|
2492
|
+
r(i, e);
|
|
2493
|
+
function i(e, r) {
|
|
2494
|
+
t(this, i);
|
|
2495
|
+
var a = n(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this));
|
|
2496
|
+
return a.name = "InvalidInputException", a.symbology = e, a.input = r, a.message = "\"" + a.input + "\" is not a valid input for " + a.symbology, a;
|
|
2497
|
+
}
|
|
2498
|
+
return i;
|
|
2499
|
+
}(Error), a = function(e) {
|
|
2500
|
+
r(i, e);
|
|
2501
|
+
function i() {
|
|
2502
|
+
t(this, i);
|
|
2503
|
+
var e = n(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this));
|
|
2504
|
+
return e.name = "InvalidElementException", e.message = "Not supported type to render on", e;
|
|
2505
|
+
}
|
|
2506
|
+
return i;
|
|
2507
|
+
}(Error), o = function(e) {
|
|
2508
|
+
r(i, e);
|
|
2509
|
+
function i() {
|
|
2510
|
+
t(this, i);
|
|
2511
|
+
var e = n(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this));
|
|
2512
|
+
return e.name = "NoElementException", e.message = "No element to render on.", e;
|
|
2513
|
+
}
|
|
2514
|
+
return i;
|
|
2515
|
+
}(Error);
|
|
2516
|
+
e.InvalidInputException = i, e.InvalidElementException = a, e.NoElementException = o;
|
|
2517
|
+
})), Q = /* @__PURE__ */ e(((e) => {
|
|
2518
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2519
|
+
var t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2520
|
+
return typeof e;
|
|
2521
|
+
} : function(e) {
|
|
2522
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2523
|
+
}, n = a(G()), r = a(X()), i = Z();
|
|
2524
|
+
function a(e) {
|
|
2525
|
+
return e && e.__esModule ? e : { default: e };
|
|
2526
|
+
}
|
|
2527
|
+
function o(e) {
|
|
2528
|
+
if (typeof e == "string") return s(e);
|
|
2529
|
+
if (Array.isArray(e)) {
|
|
2530
|
+
for (var a = [], l = 0; l < e.length; l++) a.push(o(e[l]));
|
|
2531
|
+
return a;
|
|
2532
|
+
}
|
|
2533
|
+
if (typeof HTMLCanvasElement < "u" && e instanceof HTMLImageElement) return c(e);
|
|
2534
|
+
if (e && e.nodeName && e.nodeName.toLowerCase() === "svg" || typeof SVGElement < "u" && e instanceof SVGElement) return {
|
|
2535
|
+
element: e,
|
|
2536
|
+
options: (0, n.default)(e),
|
|
2537
|
+
renderer: r.default.SVGRenderer
|
|
2538
|
+
};
|
|
2539
|
+
if (typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement) return {
|
|
2540
|
+
element: e,
|
|
2541
|
+
options: (0, n.default)(e),
|
|
2542
|
+
renderer: r.default.CanvasRenderer
|
|
2543
|
+
};
|
|
2544
|
+
if (e && e.getContext) return {
|
|
2545
|
+
element: e,
|
|
2546
|
+
renderer: r.default.CanvasRenderer
|
|
2547
|
+
};
|
|
2548
|
+
if (e && (e === void 0 ? "undefined" : t(e)) === "object" && !e.nodeName) return {
|
|
2549
|
+
element: e,
|
|
2550
|
+
renderer: r.default.ObjectRenderer
|
|
2551
|
+
};
|
|
2552
|
+
throw new i.InvalidElementException();
|
|
2553
|
+
}
|
|
2554
|
+
function s(e) {
|
|
2555
|
+
var t = document.querySelectorAll(e);
|
|
2556
|
+
if (t.length !== 0) {
|
|
2557
|
+
for (var n = [], r = 0; r < t.length; r++) n.push(o(t[r]));
|
|
2558
|
+
return n;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
function c(e) {
|
|
2562
|
+
var t = document.createElement("canvas");
|
|
2563
|
+
return {
|
|
2564
|
+
element: t,
|
|
2565
|
+
options: (0, n.default)(e),
|
|
2566
|
+
renderer: r.default.CanvasRenderer,
|
|
2567
|
+
afterRender: function() {
|
|
2568
|
+
e.setAttribute("src", t.toDataURL());
|
|
2569
|
+
}
|
|
2570
|
+
};
|
|
2571
|
+
}
|
|
2572
|
+
e.default = o;
|
|
2573
|
+
})), $ = /* @__PURE__ */ e(((e) => {
|
|
2574
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2575
|
+
var t = function() {
|
|
2576
|
+
function e(e, t) {
|
|
2577
|
+
for (var n = 0; n < t.length; n++) {
|
|
2578
|
+
var r = t[n];
|
|
2579
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
return function(t, n, r) {
|
|
2583
|
+
return n && e(t.prototype, n), r && e(t, r), t;
|
|
2584
|
+
};
|
|
2585
|
+
}();
|
|
2586
|
+
function n(e, t) {
|
|
2587
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2588
|
+
}
|
|
2589
|
+
e.default = function() {
|
|
2590
|
+
function e(t) {
|
|
2591
|
+
n(this, e), this.api = t;
|
|
2592
|
+
}
|
|
2593
|
+
return t(e, [{
|
|
2594
|
+
key: "handleCatch",
|
|
2595
|
+
value: function(e) {
|
|
2596
|
+
if (e.name === "InvalidInputException") {
|
|
2597
|
+
if (this.api._options.valid !== this.api._defaults.valid) this.api._options.valid(!1);
|
|
2598
|
+
else throw e.message;
|
|
2599
|
+
} else throw e;
|
|
2600
|
+
this.api.render = function() {};
|
|
2601
|
+
}
|
|
2602
|
+
}, {
|
|
2603
|
+
key: "wrapBarcodeCall",
|
|
2604
|
+
value: function(e) {
|
|
2605
|
+
try {
|
|
2606
|
+
var t = e.apply(void 0, arguments);
|
|
2607
|
+
return this.api._options.valid(!0), t;
|
|
2608
|
+
} catch (e) {
|
|
2609
|
+
return this.handleCatch(e), this.api;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
}]), e;
|
|
2613
|
+
}();
|
|
2614
|
+
})), ee = /* @__PURE__ */ e(((e, t) => {
|
|
2615
|
+
var n = d(z()), r = d(B()), i = d(V()), a = d(H()), o = d(Q()), s = d(U()), c = d($()), l = Z(), u = d(W());
|
|
2616
|
+
function d(e) {
|
|
2617
|
+
return e && e.__esModule ? e : { default: e };
|
|
2618
|
+
}
|
|
2619
|
+
var f = function() {}, p = function(e, t, n) {
|
|
2620
|
+
var r = new f();
|
|
2621
|
+
if (e === void 0) throw Error("No element to render on was provided.");
|
|
2622
|
+
return r._renderProperties = (0, o.default)(e), r._encodings = [], r._options = u.default, r._errorHandler = new c.default(r), t !== void 0 && (n ||= {}, n.format || (n.format = _()), r.options(n)[n.format](t, n).render()), r;
|
|
2623
|
+
};
|
|
2624
|
+
for (var m in p.getModule = function(e) {
|
|
2625
|
+
return n.default[e];
|
|
2626
|
+
}, n.default) n.default.hasOwnProperty(m) && h(n.default, m);
|
|
2627
|
+
function h(e, t) {
|
|
2628
|
+
f.prototype[t] = f.prototype[t.toUpperCase()] = f.prototype[t.toLowerCase()] = function(n, i) {
|
|
2629
|
+
var a = this;
|
|
2630
|
+
return a._errorHandler.wrapBarcodeCall(function() {
|
|
2631
|
+
i.text = i.text === void 0 ? void 0 : "" + i.text;
|
|
2632
|
+
var o = (0, r.default)(a._options, i);
|
|
2633
|
+
o = (0, s.default)(o);
|
|
2634
|
+
var c = e[t], l = g(n, c, o);
|
|
2635
|
+
return a._encodings.push(l), a;
|
|
2636
|
+
});
|
|
2637
|
+
};
|
|
2638
|
+
}
|
|
2639
|
+
function g(e, t, n) {
|
|
2640
|
+
e = "" + e;
|
|
2641
|
+
var a = new t(e, n);
|
|
2642
|
+
if (!a.valid()) throw new l.InvalidInputException(a.constructor.name, e);
|
|
2643
|
+
var o = a.encode();
|
|
2644
|
+
o = (0, i.default)(o);
|
|
2645
|
+
for (var s = 0; s < o.length; s++) o[s].options = (0, r.default)(n, o[s].options);
|
|
2646
|
+
return o;
|
|
2647
|
+
}
|
|
2648
|
+
function _() {
|
|
2649
|
+
return n.default.CODE128 ? "CODE128" : Object.keys(n.default)[0];
|
|
2650
|
+
}
|
|
2651
|
+
f.prototype.options = function(e) {
|
|
2652
|
+
return this._options = (0, r.default)(this._options, e), this;
|
|
2653
|
+
}, f.prototype.blank = function(e) {
|
|
2654
|
+
var t = Array(e + 1).join("0");
|
|
2655
|
+
return this._encodings.push({ data: t }), this;
|
|
2656
|
+
}, f.prototype.init = function() {
|
|
2657
|
+
if (this._renderProperties) {
|
|
2658
|
+
Array.isArray(this._renderProperties) || (this._renderProperties = [this._renderProperties]);
|
|
2659
|
+
var e;
|
|
2660
|
+
for (var t in this._renderProperties) {
|
|
2661
|
+
e = this._renderProperties[t];
|
|
2662
|
+
var i = (0, r.default)(this._options, e.options);
|
|
2663
|
+
i.format == "auto" && (i.format = _()), this._errorHandler.wrapBarcodeCall(function() {
|
|
2664
|
+
var t = i.value, r = n.default[i.format.toUpperCase()], a = g(t, r, i);
|
|
2665
|
+
v(e, a, i);
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
}, f.prototype.render = function() {
|
|
2670
|
+
if (!this._renderProperties) throw new l.NoElementException();
|
|
2671
|
+
if (Array.isArray(this._renderProperties)) for (var e = 0; e < this._renderProperties.length; e++) v(this._renderProperties[e], this._encodings, this._options);
|
|
2672
|
+
else v(this._renderProperties, this._encodings, this._options);
|
|
2673
|
+
return this;
|
|
2674
|
+
}, f.prototype._defaults = u.default;
|
|
2675
|
+
function v(e, t, n) {
|
|
2676
|
+
t = (0, i.default)(t);
|
|
2677
|
+
for (var o = 0; o < t.length; o++) t[o].options = (0, r.default)(n, t[o].options), (0, a.default)(t[o].options);
|
|
2678
|
+
(0, a.default)(n);
|
|
2679
|
+
var s = e.renderer;
|
|
2680
|
+
new s(e.element, t, n).render(), e.afterRender && e.afterRender();
|
|
2681
|
+
}
|
|
2682
|
+
typeof window < "u" && (window.JsBarcode = p), typeof jQuery < "u" && (jQuery.fn.JsBarcode = function(e, t) {
|
|
2683
|
+
var n = [];
|
|
2684
|
+
return jQuery(this).each(function() {
|
|
2685
|
+
n.push(this);
|
|
2686
|
+
}), p(n, e, t);
|
|
2687
|
+
}), t.exports = p;
|
|
2688
|
+
}));
|
|
2689
|
+
//#endregion
|
|
2690
|
+
export default ee();
|
|
2691
|
+
|
|
2692
|
+
//# sourceMappingURL=file-manager-JsBarcode-Cji_rnaG.js.map
|