@scandit/web-datacapture-core 8.4.1 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (782) hide show
  1. package/THIRD_PARTY.txt +43 -24
  2. package/build/electron/constants-D5Av3xIA.js +1 -0
  3. package/build/electron/constants-Tq_qHFkh.cjs +1 -0
  4. package/build/electron/main.cjs +1 -1
  5. package/build/electron/main.d.cts +12 -21
  6. package/build/electron/main.d.ts +12 -21
  7. package/build/electron/main.js +1 -1
  8. package/build/electron/preload.cjs +1 -1
  9. package/build/electron/preload.d.cts +4 -4
  10. package/build/electron/preload.d.ts +4 -4
  11. package/build/electron/preload.js +1 -1
  12. package/build/js/AdditionalLayerPosition-D_ouQ8wn.d.ts +7 -0
  13. package/build/js/AimerViewfinder-bCf_UrQu.d.ts +15 -0
  14. package/build/js/AimerViewfinder.d.ts +2 -22
  15. package/build/js/AimerViewfinder.js +1 -1
  16. package/build/js/Anchor-DxO9CbHk.d.ts +14 -0
  17. package/build/js/AnchorPositions-4M8lB28_.d.ts +42 -0
  18. package/build/js/AsyncStateMachine-gK_htWdT.d.ts +49 -0
  19. package/build/js/AudioCache-D893YEVZ.d.ts +37 -0
  20. package/build/js/BatteryInterface-BYl36ktu.d.ts +81 -0
  21. package/build/js/Brush-D6WUoW36.d.ts +32 -0
  22. package/build/js/Brush.d.ts +2 -32
  23. package/build/js/Brush.js +1 -1
  24. package/build/js/Camera-C7TNwqRo.d.ts +413 -0
  25. package/build/js/Camera.d.ts +2 -7
  26. package/build/js/Camera.js +1 -1
  27. package/build/js/CameraManager-BTGb7HgX.js +35 -0
  28. package/build/js/CameraRelated.d.ts +2 -7
  29. package/build/js/CameraRelated.js +1 -1
  30. package/build/js/CavansDrawerAbstract-E_URl3X1.d.ts +37 -0
  31. package/build/js/Color-qNIvVO9c.d.ts +28 -0
  32. package/build/js/ColorType-Dj3_-sLJ.d.ts +7 -0
  33. package/build/js/CustomLocationsView-BmILmaYk.d.ts +59 -0
  34. package/build/js/DataCaptureContext-CVc_U_GE.js +6 -0
  35. package/build/js/DataCaptureContext-CYDrBO6_.d.ts +2017 -0
  36. package/build/js/DataCaptureContext.d.ts +2 -39
  37. package/build/js/DataCaptureContext.js +1 -1
  38. package/build/js/DataCaptureContextRelated.d.ts +2 -39
  39. package/build/js/DataCaptureContextRelated.js +1 -1
  40. package/build/js/DataCaptureContextSettings-jR9ArFal.d.ts +13 -0
  41. package/build/js/DataCaptureContextSettings.d.ts +2 -13
  42. package/build/js/DataCaptureContextSettings.js +1 -1
  43. package/build/js/DataCaptureError-fm19xgXy.d.ts +13 -0
  44. package/build/js/DataCaptureError.d.ts +2 -13
  45. package/build/js/DataCaptureError.js +1 -1
  46. package/build/js/DataCaptureVersion-CoBugUHX.d.ts +6 -0
  47. package/build/js/DataCaptureVersion.d.ts +2 -6
  48. package/build/js/DataCaptureVersion.js +1 -1
  49. package/build/js/DataCaptureView.d.ts +2 -39
  50. package/build/js/DataCaptureView.js +1 -1
  51. package/build/js/DataCaptureViewPlusRelated-DcAi6mWY.d.ts +50 -0
  52. package/build/js/DataCaptureViewPlusRelated.d.ts +2 -3
  53. package/build/js/DataCaptureViewPlusRelated.js +1 -1
  54. package/build/js/DefaultViewClassnames.d.ts +13 -13
  55. package/build/js/DefaultViewClassnames.js +1 -1
  56. package/build/js/Direction-Cii3d0QY.d.ts +12 -0
  57. package/build/js/DrawCommandBuffer-TbNqWVhj.d.ts +44 -0
  58. package/build/js/EventManager-Cr57hTzG.d.ts +9 -0
  59. package/build/js/Feedback-D4kA2xWA.d.ts +21 -0
  60. package/build/js/Feedback.d.ts +2 -21
  61. package/build/js/Feedback.js +1 -1
  62. package/build/js/FrameData.d.ts +2 -39
  63. package/build/js/FrameData.js +1 -1
  64. package/build/js/HtmlElementState-BeRz5m6o.d.ts +35 -0
  65. package/build/js/ImageFrameSource-YH6FmhqZ.d.ts +43 -0
  66. package/build/js/ImageFrameSource.d.ts +2 -47
  67. package/build/js/ImageFrameSource.js +1 -1
  68. package/build/js/JSONType-BJv7BUtr.d.ts +6 -0
  69. package/build/js/LaserlineViewfinder-Dkc264QQ.d.ts +17 -0
  70. package/build/js/LaserlineViewfinder.d.ts +2 -23
  71. package/build/js/LaserlineViewfinder.js +1 -1
  72. package/build/js/LoadingStatus-0KzcUFiY.d.ts +23 -0
  73. package/build/js/LoadingStatus.d.ts +2 -23
  74. package/build/js/LoadingStatus.js +1 -1
  75. package/build/js/Localization-LoX2FWJO.d.ts +44 -0
  76. package/build/js/Localization.d.ts +2 -44
  77. package/build/js/Localization.js +1 -1
  78. package/build/js/LocationSelection-BXqyUc16.d.ts +41 -0
  79. package/build/js/LocationSelection.d.ts +2 -44
  80. package/build/js/LocationSelection.js +1 -1
  81. package/build/js/MarginsWithUnit-BHhnV4t0.d.ts +38 -0
  82. package/build/js/MeasureUnit-D14sZoRp.d.ts +7 -0
  83. package/build/js/NotificationBuilder-B3uY_ZbG.d.ts +23 -0
  84. package/build/js/NotificationConfiguration-C-1Vhrpo.d.ts +22 -0
  85. package/build/js/NotificationPresenter/NotificationBuilder.d.ts +2 -25
  86. package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
  87. package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +2 -24
  88. package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -1
  89. package/build/js/NotificationPresenter/NotificationPresenter.d.ts +2 -14
  90. package/build/js/NotificationPresenter/NotificationStyle.d.ts +2 -9
  91. package/build/js/NotificationPresenter/NotificationStyle.js +1 -1
  92. package/build/js/NotificationPresenter/index.d.ts +6 -41
  93. package/build/js/NotificationPresenter/index.js +1 -1
  94. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -48
  95. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -1
  96. package/build/js/NotificationPresenter/private/presets.d.ts +5 -41
  97. package/build/js/NotificationPresenter/private/presets.js +1 -1
  98. package/build/js/NotificationPresenter-D0g_arAJ.d.ts +9 -0
  99. package/build/js/NotificationStyle-COZXqLGO.d.ts +9 -0
  100. package/build/js/NumberWithUnit-UGwoucuQ.d.ts +19 -0
  101. package/build/js/OpenSourceSoftwareLicenseInfo-CpjUKTrl.d.ts +8 -0
  102. package/build/js/Orientation-BNtNH3yS.d.ts +10 -0
  103. package/build/js/OverrideState-CGTOUAyb.d.ts +8 -0
  104. package/build/js/Point-CD9Qi9ID.d.ts +20 -0
  105. package/build/js/PointWithUnit-C_e8HUvk.d.ts +26 -0
  106. package/build/js/Quadrilateral-DbJ7LU2U.d.ts +25 -0
  107. package/build/js/Rect-BVo37EKG.d.ts +19 -0
  108. package/build/js/RectWithUnit-OJ1xPlBN.d.ts +19 -0
  109. package/build/js/RectangularViewfinder-j93qfYTd.d.ts +36 -0
  110. package/build/js/RectangularViewfinder.d.ts +2 -40
  111. package/build/js/RectangularViewfinder.js +1 -1
  112. package/build/js/ScanditHTMLElement-CrbGsFpn.d.ts +5 -0
  113. package/build/js/ScanditIcon-FRMSos7x.d.ts +49 -0
  114. package/build/js/ScanditIcon.d.ts +2 -50
  115. package/build/js/ScanditIcon.js +1 -1
  116. package/build/js/ScanditIconBuilder-BtnTaVeJ.d.ts +66 -0
  117. package/build/js/ScanditIconBuilder.d.ts +3 -68
  118. package/build/js/ScanditIconBuilder.js +1 -1
  119. package/build/js/Serializable-Dbturs7d.d.ts +9 -0
  120. package/build/js/SingleImageUploader-CRDpQ9PA.d.ts +43 -0
  121. package/build/js/SingleImageUploader.d.ts +2 -48
  122. package/build/js/SingleImageUploader.js +1 -1
  123. package/build/js/SingleImageUploaderSettings-Y-cG1lpl.d.ts +33 -0
  124. package/build/js/SingleImageUploaderSettings.d.ts +2 -33
  125. package/build/js/SingleImageUploaderSettings.js +1 -1
  126. package/build/js/Size-i8Zhfc5b.d.ts +18 -0
  127. package/build/js/SizeMode-CkAAaxIg.d.ts +9 -0
  128. package/build/js/SizeWithAspect-Dg-YCV1Q.d.ts +12 -0
  129. package/build/js/SizeWithUnit-CNgvxsVj.d.ts +26 -0
  130. package/build/js/SizeWithUnitAndAspect-BrtiXpsG.d.ts +40 -0
  131. package/build/js/Sound-ByTzZ3ia.d.ts +21 -0
  132. package/build/js/Sound.d.ts +2 -21
  133. package/build/js/Sound.js +1 -1
  134. package/build/js/SvgIcon-CAR8Tf7x.d.ts +23 -0
  135. package/build/js/Vibration-B1J9JMda.d.ts +21 -0
  136. package/build/js/Vibration.d.ts +2 -21
  137. package/build/js/Vibration.js +1 -1
  138. package/build/js/View-BvEw8Q1D.d.ts +7 -0
  139. package/build/js/Viewfinder-DTjfkI0v.d.ts +19 -0
  140. package/build/js/Viewfinder.d.ts +2 -26
  141. package/build/js/Viewfinder.js +1 -1
  142. package/build/js/ViewfinderPlusRelated-CuUarlQb.d.ts +72 -0
  143. package/build/js/ViewfinderPlusRelated.d.ts +2 -76
  144. package/build/js/ViewfinderPlusRelated.js +1 -1
  145. package/build/js/WatermarkStack-CDKo8wBr.d.ts +41 -0
  146. package/build/js/ZoomGestureListener.d.ts +2 -3
  147. package/build/js/ZoomListener.d.ts +2 -7
  148. package/build/js/ZoomSwitchOrientation-Deylpp5l.d.ts +8 -0
  149. package/build/js/ZoomSwitchOrientation.d.ts +2 -8
  150. package/build/js/ZoomSwitchOrientation.js +1 -1
  151. package/build/js/areEqualArrays-BpuDaVrU.d.ts +4 -0
  152. package/build/js/assets/beepSound.d.ts +3 -3
  153. package/build/js/assets/beepSound.js +1 -1
  154. package/build/js/assets/folderImage.d.ts +3 -3
  155. package/build/js/assets/folderImage.js +1 -1
  156. package/build/js/assets/scanningByScandit.d.ts +3 -3
  157. package/build/js/assets/scanningByScandit.js +1 -1
  158. package/build/js/assets/transparentPixelImage.d.ts +3 -3
  159. package/build/js/assets/transparentPixelImage.js +1 -1
  160. package/build/js/browserCompatibility-DD4Tvtlv.d.ts +88 -0
  161. package/build/js/browserCompatibility.d.ts +2 -88
  162. package/build/js/browserCompatibility.js +1 -1
  163. package/build/js/browserHelper-ChSOtve7.d.ts +225 -0
  164. package/build/js/browserHelper-DuxFlAfF.js +1 -0
  165. package/build/js/browserHelper.d.ts +2 -225
  166. package/build/js/browserHelper.js +1 -1
  167. package/build/js/clamp-B71RA4rG.d.ts +4 -0
  168. package/build/js/common-BisNSU4o.d.ts +25 -0
  169. package/build/js/commons/Anchor.d.ts +2 -14
  170. package/build/js/commons/Anchor.js +1 -1
  171. package/build/js/commons/Color.d.ts +2 -28
  172. package/build/js/commons/Color.js +1 -1
  173. package/build/js/commons/Direction.d.ts +2 -12
  174. package/build/js/commons/Direction.js +1 -1
  175. package/build/js/commons/JSONType.d.ts +2 -6
  176. package/build/js/commons/MarginsWithUnit.d.ts +2 -39
  177. package/build/js/commons/MarginsWithUnit.js +1 -1
  178. package/build/js/commons/MeasureUnit.d.ts +2 -7
  179. package/build/js/commons/MeasureUnit.js +1 -1
  180. package/build/js/commons/NumberWithUnit.d.ts +2 -19
  181. package/build/js/commons/NumberWithUnit.js +1 -1
  182. package/build/js/commons/Orientation.d.ts +2 -10
  183. package/build/js/commons/Orientation.js +1 -1
  184. package/build/js/commons/Point.d.ts +2 -20
  185. package/build/js/commons/Point.js +1 -1
  186. package/build/js/commons/PointWithUnit.d.ts +2 -27
  187. package/build/js/commons/PointWithUnit.js +1 -1
  188. package/build/js/commons/Quadrilateral.d.ts +2 -25
  189. package/build/js/commons/Quadrilateral.js +1 -1
  190. package/build/js/commons/Rect.d.ts +2 -19
  191. package/build/js/commons/Rect.js +1 -1
  192. package/build/js/commons/RectWithUnit.d.ts +2 -21
  193. package/build/js/commons/RectWithUnit.js +1 -1
  194. package/build/js/commons/Size.d.ts +2 -18
  195. package/build/js/commons/Size.js +1 -1
  196. package/build/js/commons/SizeMode.d.ts +2 -9
  197. package/build/js/commons/SizeMode.js +1 -1
  198. package/build/js/commons/SizeWithAspect.d.ts +2 -14
  199. package/build/js/commons/SizeWithAspect.js +1 -1
  200. package/build/js/commons/SizeWithUnit.d.ts +2 -27
  201. package/build/js/commons/SizeWithUnit.js +1 -1
  202. package/build/js/commons/SizeWithUnitAndAspect.d.ts +2 -42
  203. package/build/js/commons/SizeWithUnitAndAspect.js +1 -1
  204. package/build/js/controls/CameraFOVSwitchControl.d.ts +2 -76
  205. package/build/js/controls/CameraFOVSwitchControl.js +1 -1
  206. package/build/js/controls/CameraSwitchControl.d.ts +2 -66
  207. package/build/js/controls/CameraSwitchControl.js +1 -1
  208. package/build/js/controls/TorchSwitchControl.d.ts +2 -67
  209. package/build/js/controls/TorchSwitchControl.js +1 -1
  210. package/build/js/controls/ZoomSwitchControl.d.ts +2 -97
  211. package/build/js/controls/ZoomSwitchControl.js +1 -1
  212. package/build/js/controls/common.d.ts +2 -39
  213. package/build/js/controls/index.d.ts +2 -44
  214. package/build/js/controls/index.js +1 -1
  215. package/build/js/css-DUhStyMA.d.ts +4 -0
  216. package/build/js/debounce-B1bV6NXR.d.ts +4 -0
  217. package/build/js/defaults/DefaultsBrush.d.ts +4 -6
  218. package/build/js/defaults/DefaultsBrush.js +1 -1
  219. package/build/js/defaults/DefaultsCamera.d.ts +13 -51
  220. package/build/js/defaults/DefaultsCamera.js +1 -1
  221. package/build/js/defaults/DefaultsCameraSettings.d.ts +9 -14
  222. package/build/js/defaults/DefaultsCameraSettings.js +1 -1
  223. package/build/js/defaults/DefaultsDataCaptureView.d.ts +15 -18
  224. package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
  225. package/build/js/defaults/DefaultsDeserializers.d.ts +6 -7
  226. package/build/js/defaults/DefaultsDeserializers.js +1 -1
  227. package/build/js/defaults/DefaultsFeedback.d.ts +4 -4
  228. package/build/js/defaults/DefaultsFeedback.js +1 -1
  229. package/build/js/defaults/DefaultsSingleImageUploader.d.ts +13 -13
  230. package/build/js/defaults/DefaultsSingleImageUploader.js +1 -1
  231. package/build/js/defaults/DefaultsViewfinders.d.ts +36 -41
  232. package/build/js/defaults/DefaultsViewfinders.js +1 -1
  233. package/build/js/deferred-BAgaHYOv.d.ts +9 -0
  234. package/build/js/defineCustomElements-D-wGrRhB.d.ts +4 -0
  235. package/build/js/domIdFromValues-i9GfVUED.d.ts +18 -0
  236. package/build/js/fromEntries-ByUS4mw-.d.ts +14 -0
  237. package/build/js/{global.d.d.ts → global.d.ts} +8 -11
  238. package/build/js/html-D92h5xTe.d.ts +60 -0
  239. package/build/js/hybridDesktopPlatformHelpers-OpmECgIg.js +1 -0
  240. package/build/js/index-CBqIEC2q.d.ts +1 -0
  241. package/build/js/index-Cpl5B5iN.d.ts +58 -0
  242. package/build/js/index-PiddVj70.d.ts +9769 -0
  243. package/build/js/index.d.ts +57 -78
  244. package/build/js/index.js +1 -1
  245. package/build/js/isObject-DqOU8mxL.d.ts +4 -0
  246. package/build/js/isWorkerScope-CBqhEpK_.d.ts +4 -0
  247. package/build/js/license/OpenSourceSoftwareLicenseInfo.d.ts +2 -8
  248. package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -1
  249. package/build/js/logger-D9wplwND.d.ts +30 -0
  250. package/build/js/logger.d.ts +2 -30
  251. package/build/js/logger.js +1 -1
  252. package/build/js/moduleLoader.d.ts +2 -39
  253. package/build/js/multithreadSimdHelper-BrYdWJgw.js +1 -0
  254. package/build/js/nativeHandle-DlljYL22.d.ts +4 -0
  255. package/build/js/private/AdditionalLayerPosition.d.ts +2 -6
  256. package/build/js/private/AdditionalLayerPosition.js +1 -1
  257. package/build/js/private/AnchorPositions.d.ts +2 -42
  258. package/build/js/private/AnchorPositions.js +1 -1
  259. package/build/js/private/BatteryInterface.d.ts +2 -81
  260. package/build/js/private/BatteryInterface.js +1 -1
  261. package/build/js/private/CameraAccess.d.ts +2 -7
  262. package/build/js/private/CameraAccess.js +1 -1
  263. package/build/js/private/CameraManager.d.ts +2 -39
  264. package/build/js/private/CameraManager.js +1 -1
  265. package/build/js/private/CameraPool.d.ts +76 -114
  266. package/build/js/private/CameraPool.js +1 -1
  267. package/build/js/private/CanvasDrawer.d.ts +30 -31
  268. package/build/js/private/CanvasDrawer.js +1 -1
  269. package/build/js/private/CanvasDrawerWithMetrics.d.ts +27 -66
  270. package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
  271. package/build/js/private/CavansDrawerAbstract.d.ts +2 -37
  272. package/build/js/private/CavansDrawerAbstract.js +1 -1
  273. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +13 -49
  274. package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
  275. package/build/js/private/CustomLocationsView.d.ts +2 -64
  276. package/build/js/private/CustomLocationsView.js +1 -1
  277. package/build/js/private/CustomLocationsViewStyles.d.ts +4 -4
  278. package/build/js/private/CustomLocationsViewStyles.js +17 -1
  279. package/build/js/private/DataCaptureContextRelated.d.ts +7 -44
  280. package/build/js/private/DrawCommandBuffer.d.ts +2 -44
  281. package/build/js/private/DrawCommandBuffer.js +1 -1
  282. package/build/js/private/EventManager.d.ts +2 -9
  283. package/build/js/private/EventManager.js +1 -1
  284. package/build/js/private/FrameReaders/ColorType.d.ts +2 -7
  285. package/build/js/private/FrameReaders/ColorType.js +1 -1
  286. package/build/js/private/FrameReaders/FrameReader.d.ts +2 -54
  287. package/build/js/private/FrameReaders/FrameReader.js +1 -1
  288. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -69
  289. package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
  290. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +2 -74
  291. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  292. package/build/js/private/FrameReaders/WatermarkStack.d.ts +2 -41
  293. package/build/js/private/FrameReaders/WatermarkStack.js +1 -1
  294. package/build/js/private/FrameReaders/index.d.ts +3 -43
  295. package/build/js/private/FrameReaders/index.js +1 -1
  296. package/build/js/private/FrameReaders/webglUtilities.d.ts +3 -3
  297. package/build/js/private/FrameReaders/webglUtilities.js +1 -1
  298. package/build/js/private/GestureRecognizer/GestureRecognizer.d.ts +65 -66
  299. package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
  300. package/build/js/private/GestureRecognizer/PointerEventsDetector.d.ts +11 -15
  301. package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
  302. package/build/js/private/GestureRecognizer/index.d.ts +2 -5
  303. package/build/js/private/GestureRecognizer/index.js +1 -1
  304. package/build/js/private/Helper.d.ts +7 -7
  305. package/build/js/private/Helper.js +1 -1
  306. package/build/js/private/HtmlElementState.d.ts +2 -37
  307. package/build/js/private/HtmlElementState.js +1 -1
  308. package/build/js/private/ImageConverterBase.d.ts +40 -40
  309. package/build/js/private/ImageConverterBase.js +1 -1
  310. package/build/js/private/ImageConverterMainThread.d.ts +6 -7
  311. package/build/js/private/ImageConverterMainThread.js +1 -1
  312. package/build/js/private/ModuleLicenseTextProvider.d.ts +4 -4
  313. package/build/js/private/NormalizedModuleLoaderOptions.d.ts +10 -46
  314. package/build/js/private/OrientationObserver.d.ts +26 -26
  315. package/build/js/private/OrientationObserver.js +1 -1
  316. package/build/js/private/Serializable.d.ts +2 -9
  317. package/build/js/private/SingleImageUploaderView.d.ts +52 -89
  318. package/build/js/private/SingleImageUploaderView.js +1 -1
  319. package/build/js/private/SingleImageUploaderViewStyles.d.ts +23 -23
  320. package/build/js/private/SingleImageUploaderViewStyles.js +31 -1
  321. package/build/js/private/View.d.ts +2 -7
  322. package/build/js/private/ViewClassNames.d.ts +13 -13
  323. package/build/js/private/ViewClassNames.js +1 -1
  324. package/build/js/private/ViewControls_related.d.ts +82 -121
  325. package/build/js/private/ViewControls_related.js +1 -0
  326. package/build/js/private/ViewStyles.d.ts +3 -3
  327. package/build/js/private/ViewStyles.js +1 -1
  328. package/build/js/private/ViewsRegistry.d.ts +4 -41
  329. package/build/js/private/ViewsRegistry.js +1 -1
  330. package/build/js/private/customHowler/AudioCache.d.ts +2 -37
  331. package/build/js/private/customHowler/AudioCache.js +1 -1
  332. package/build/js/private/customHowler/Howl.d.ts +141 -141
  333. package/build/js/private/customHowler/Howl.js +1 -1
  334. package/build/js/private/customHowler/HowlRegistry.d.ts +3 -3
  335. package/build/js/private/customHowler/HowlRegistry.js +1 -1
  336. package/build/js/private/customHowler/Html5Sound.d.ts +45 -45
  337. package/build/js/private/customHowler/Html5Sound.js +1 -1
  338. package/build/js/private/customHowler/UnlockManager.d.ts +32 -32
  339. package/build/js/private/customHowler/UnlockManager.js +1 -1
  340. package/build/js/private/customHowler/WebAudioContextManager.d.ts +128 -127
  341. package/build/js/private/customHowler/WebAudioContextManager.js +1 -1
  342. package/build/js/private/customHowler/debug.d.ts +3 -3
  343. package/build/js/private/customHowler/debug.js +1 -1
  344. package/build/js/private/customHowler/index.d.ts +2 -2
  345. package/build/js/private/customHowler/index.js +1 -1
  346. package/build/js/private/customHowler/setup.d.ts +4 -5
  347. package/build/js/private/customHowler/setup.js +1 -1
  348. package/build/js/private/djinni-types/index.d.ts +2 -57
  349. package/build/js/private/djinni-types/index.js +1 -1
  350. package/build/js/private/hybridDesktopPlatformHelpers.d.ts +5 -5
  351. package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
  352. package/build/js/private/multithreadSimdHelper.d.ts +3 -3
  353. package/build/js/private/multithreadSimdHelper.js +1 -1
  354. package/build/js/private/nativeHandle.d.ts +2 -4
  355. package/build/js/private/nativeHandle.js +1 -1
  356. package/build/js/private/privateAccess.d.ts +2 -8
  357. package/build/js/private/privateAccess.js +1 -1
  358. package/build/js/private/ui/atoms/AimerSvgIcon.d.ts +11 -12
  359. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
  360. package/build/js/private/ui/atoms/ArrowDownSvgIcon.d.ts +11 -12
  361. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -2
  362. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.d.ts +11 -12
  363. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -2
  364. package/build/js/private/ui/atoms/ArrowRightSvgIcon.d.ts +11 -12
  365. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -2
  366. package/build/js/private/ui/atoms/ArrowUpSvgIcon.d.ts +11 -12
  367. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -2
  368. package/build/js/private/ui/atoms/ArrowsUp.d.ts +13 -13
  369. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  370. package/build/js/private/ui/atoms/Backdrop.d.ts +29 -23
  371. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  372. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.d.ts +11 -12
  373. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
  374. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.d.ts +11 -12
  375. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
  376. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.d.ts +11 -12
  377. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
  378. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.d.ts +11 -12
  379. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
  380. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.d.ts +11 -12
  381. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
  382. package/build/js/private/ui/atoms/Card.d.ts +21 -22
  383. package/build/js/private/ui/atoms/Card.js +1 -1
  384. package/build/js/private/ui/atoms/CardList.d.ts +49 -51
  385. package/build/js/private/ui/atoms/CardList.js +1 -1
  386. package/build/js/private/ui/atoms/CheckSvgIcon.d.ts +11 -12
  387. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
  388. package/build/js/private/ui/atoms/ChevronDownSvgIcon.d.ts +11 -12
  389. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -2
  390. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.d.ts +11 -12
  391. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -2
  392. package/build/js/private/ui/atoms/ChevronRightSvgIcon.d.ts +11 -12
  393. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -2
  394. package/build/js/private/ui/atoms/ChevronUpSvgIcon.d.ts +11 -12
  395. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -2
  396. package/build/js/private/ui/atoms/CrossSvgIcon.d.ts +11 -12
  397. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
  398. package/build/js/private/ui/atoms/DeleteSvgIcon.d.ts +11 -12
  399. package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
  400. package/build/js/private/ui/atoms/Dot5xSvgIcon.d.ts +11 -12
  401. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
  402. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.d.ts +11 -12
  403. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
  404. package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +11 -12
  405. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
  406. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.d.ts +11 -12
  407. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
  408. package/build/js/private/ui/atoms/KeyboardSvgIcon.d.ts +11 -12
  409. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
  410. package/build/js/private/ui/atoms/LowStockSvgIcon.d.ts +11 -12
  411. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
  412. package/build/js/private/ui/atoms/OnexSvgIcon.d.ts +11 -12
  413. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
  414. package/build/js/private/ui/atoms/PauseSvgIcon.d.ts +11 -12
  415. package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
  416. package/build/js/private/ui/atoms/PrinterSvgIcon.d.ts +11 -12
  417. package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -2
  418. package/build/js/private/ui/atoms/ProgressBar.d.ts +22 -22
  419. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  420. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +11 -12
  421. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
  422. package/build/js/private/ui/atoms/RestartSvgIcon.d.ts +11 -12
  423. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
  424. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.d.ts +11 -12
  425. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  426. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.d.ts +11 -12
  427. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
  428. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.d.ts +11 -12
  429. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  430. package/build/js/private/ui/atoms/ScanSvgIcon.d.ts +11 -12
  431. package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
  432. package/build/js/private/ui/atoms/ShutterButton.d.ts +34 -34
  433. package/build/js/private/ui/atoms/ShutterButton.js +1 -1
  434. package/build/js/private/ui/atoms/SlashSvgIcon.d.ts +11 -12
  435. package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
  436. package/build/js/private/ui/atoms/StarFilledSvgIcon.d.ts +11 -12
  437. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
  438. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.d.ts +11 -12
  439. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -2
  440. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.d.ts +11 -12
  441. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
  442. package/build/js/private/ui/atoms/SvgIcon.d.ts +2 -23
  443. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  444. package/build/js/private/ui/atoms/ToPickSvgIcon.d.ts +11 -12
  445. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
  446. package/build/js/private/ui/atoms/Toast.d.ts +41 -76
  447. package/build/js/private/ui/atoms/Toast.js +1 -1
  448. package/build/js/private/ui/atoms/TorchOffSvgIcon.d.ts +11 -12
  449. package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
  450. package/build/js/private/ui/atoms/TorchOnSvgIcon.d.ts +11 -12
  451. package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
  452. package/build/js/private/ui/atoms/TwoxSvgIcon.d.ts +11 -12
  453. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
  454. package/build/js/private/ui/atoms/WrongItemSvgIcon.d.ts +11 -12
  455. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
  456. package/build/js/private/ui/colors.d.ts +4 -5
  457. package/build/js/private/ui/colors.js +1 -1
  458. package/build/js/private/ui/molecules/ButtonEvents.d.ts +18 -18
  459. package/build/js/private/ui/molecules/ButtonEvents.js +1 -1
  460. package/build/js/private/ui/molecules/CameraFOVSwitchButton.d.ts +54 -57
  461. package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
  462. package/build/js/private/ui/molecules/CameraSwitchButton.d.ts +47 -50
  463. package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
  464. package/build/js/private/ui/molecules/ControlsLayout.d.ts +12 -12
  465. package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
  466. package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -39
  467. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  468. package/build/js/private/ui/molecules/LoadingOverlay.d.ts +20 -20
  469. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  470. package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +54 -60
  471. package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
  472. package/build/js/private/ui/molecules/ZoomSwitchPill.d.ts +62 -65
  473. package/build/js/private/ui/molecules/ZoomSwitchPill.js +1 -1
  474. package/build/js/private/unsupportedBrowserError.d.ts +7 -7
  475. package/build/js/private/unsupportedBrowserError.js +1 -1
  476. package/build/js/private/utils/AnimationSimplePolyfill.d.ts +54 -54
  477. package/build/js/private/utils/AnimationSimplePolyfill.js +1 -1
  478. package/build/js/private/utils/AsyncStateMachine.d.ts +2 -49
  479. package/build/js/private/utils/AsyncStateMachine.js +1 -1
  480. package/build/js/private/utils/ScanditHTMLElement.d.ts +2 -6
  481. package/build/js/private/utils/ScanditHTMLElement.js +1 -1
  482. package/build/js/private/utils/areEqualArrays.d.ts +2 -4
  483. package/build/js/private/utils/areEqualArrays.js +1 -1
  484. package/build/js/private/utils/clamp.d.ts +2 -4
  485. package/build/js/private/utils/clamp.js +1 -1
  486. package/build/js/private/utils/cookieStore.d.ts +3 -3
  487. package/build/js/private/utils/cookieStore.js +1 -1
  488. package/build/js/private/utils/cookieStorePolyfill.d.ts +16 -16
  489. package/build/js/private/utils/cookieStorePolyfill.js +1 -1
  490. package/build/js/private/utils/css.d.ts +2 -4
  491. package/build/js/private/utils/css.js +1 -1
  492. package/build/js/private/utils/debounce.d.ts +2 -4
  493. package/build/js/private/utils/debounce.js +1 -1
  494. package/build/js/private/utils/deferred.d.ts +2 -9
  495. package/build/js/private/utils/deferred.js +1 -1
  496. package/build/js/private/utils/defineCustomElements.d.ts +2 -4
  497. package/build/js/private/utils/defineCustomElements.js +1 -1
  498. package/build/js/private/utils/domIdFromValues.d.ts +2 -18
  499. package/build/js/private/utils/domIdFromValues.js +1 -1
  500. package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +3 -3
  501. package/build/js/private/utils/finalizationRegistryPolyfill.js +1 -1
  502. package/build/js/private/utils/fromEntries.d.ts +2 -14
  503. package/build/js/private/utils/fromEntries.js +1 -1
  504. package/build/js/private/utils/fromGrayScaleToRgba.d.ts +3 -3
  505. package/build/js/private/utils/fromGrayScaleToRgba.js +1 -1
  506. package/build/js/private/utils/getTimestamp.d.ts +3 -3
  507. package/build/js/private/utils/getTimestamp.js +1 -1
  508. package/build/js/private/utils/globalThisPolyfill.d.ts +3 -3
  509. package/build/js/private/utils/globalThisPolyfill.js +1 -1
  510. package/build/js/private/utils/html.d.ts +2 -60
  511. package/build/js/private/utils/html.js +1 -1
  512. package/build/js/private/utils/index.d.ts +21 -21
  513. package/build/js/private/utils/index.js +1 -1
  514. package/build/js/private/utils/isObject.d.ts +2 -4
  515. package/build/js/private/utils/isObject.js +1 -1
  516. package/build/js/private/utils/isPointerTouchEvent.d.ts +3 -3
  517. package/build/js/private/utils/isPointerTouchEvent.js +1 -1
  518. package/build/js/private/utils/isWorkerScope.d.ts +2 -4
  519. package/build/js/private/utils/isWorkerScope.js +1 -1
  520. package/build/js/private/utils/polyfillLoader.d.ts +11 -11
  521. package/build/js/private/utils/polyfillLoader.js +1 -1
  522. package/build/js/private/utils/quadrilateralUtils.d.ts +4 -6
  523. package/build/js/private/utils/quadrilateralUtils.js +1 -1
  524. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +7 -43
  525. package/build/js/private/utils/replaceImagesInViewUtils.js +1 -1
  526. package/build/js/private/utils/safeCancelAnimation.d.ts +2 -53
  527. package/build/js/private/utils/safeCancelAnimation.js +1 -1
  528. package/build/js/private/utils/safeRequestAnimationFrame.d.ts +2 -23
  529. package/build/js/private/utils/safeRequestAnimationFrame.js +1 -1
  530. package/build/js/private/utils/safeStorage.d.ts +17 -17
  531. package/build/js/private/utils/safeStorage.js +1 -1
  532. package/build/js/private/utils/structuredClonePolyfill.d.ts +3 -3
  533. package/build/js/private/utils/structuredClonePolyfill.js +1 -1
  534. package/build/js/private/utils/throttle.d.ts +2 -4
  535. package/build/js/private/utils/throttle.js +1 -1
  536. package/build/js/private/utils/timeout.d.ts +2 -14
  537. package/build/js/private/utils/timeout.js +1 -1
  538. package/build/js/private/utils/unknownErrorToString.d.ts +2 -4
  539. package/build/js/private/utils/unknownErrorToString.js +1 -1
  540. package/build/js/private/utils/wait.d.ts +2 -4
  541. package/build/js/private/utils/wait.js +1 -1
  542. package/build/js/private/utils/waitTransitionEndForElement.d.ts +2 -4
  543. package/build/js/private/utils/waitTransitionEndForElement.js +1 -1
  544. package/build/js/private/utils/warnMultithreadingUnavailable.d.ts +3 -3
  545. package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -2
  546. package/build/js/privateAccess-Cy_yPta4.d.ts +8 -0
  547. package/build/js/safeCancelAnimation-C9SG0625.d.ts +53 -0
  548. package/build/js/safeRequestAnimationFrame-CrVl8FPa.d.ts +23 -0
  549. package/build/js/throttle-ICpoGeaZ.d.ts +4 -0
  550. package/build/js/timeout-CHMzurwd.d.ts +14 -0
  551. package/build/js/translations-Bqx7KLdt.d.ts +12 -0
  552. package/build/js/translations.d.ts +2 -12
  553. package/build/js/translations.js +1 -1
  554. package/build/js/tsHelper-N1CSjsuN.d.ts +18 -0
  555. package/build/js/tsHelper.d.ts +2 -26
  556. package/build/js/tsHelper.js +1 -1
  557. package/build/js/unknownErrorToString-BGDQCTvQ.d.ts +4 -0
  558. package/build/js/wait-CRu1G76q.d.ts +4 -0
  559. package/build/js/waitTransitionEndForElement-BrVosj17.d.ts +4 -0
  560. package/build/js/worker/ImageConverterForwarder.d.ts +21 -57
  561. package/build/js/worker/ImageConverterForwarder.js +1 -1
  562. package/build/js/worker/ImageConverterWorker.d.ts +6 -7
  563. package/build/js/worker/ImageConverterWorker.js +1 -1
  564. package/build/js/worker/OverrideState.d.ts +2 -8
  565. package/build/js/worker/OverrideState.js +1 -1
  566. package/build/js/worker/ViewInfoHelper.d.ts +9 -46
  567. package/build/js/worker/ViewInfoHelper.js +1 -1
  568. package/build/js/worker/WorkerMain.d.ts +2 -63
  569. package/build/js/worker/WorkerMain.js +1 -1
  570. package/build/js/worker/dataCaptureEngine.d.ts +2 -39
  571. package/build/js/worker/dataCaptureEngine.js +1 -1
  572. package/build/js/worker/dataCaptureLoader.d.ts +2 -39
  573. package/build/js/worker/dataCaptureLoader.js +1 -1
  574. package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -39
  575. package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
  576. package/build/js/worker/helper.d.ts +22 -13
  577. package/build/js/worker/helper.js +1 -1
  578. package/build/js/worker/helperFetch.d.ts +36 -22
  579. package/build/js/worker/helperFetch.js +1 -1
  580. package/build/js/worker/helperFs.d.ts +5 -5
  581. package/build/js/worker/helperFs.js +1 -1
  582. package/build/js/worker/importWasmScript.d.ts +3 -3
  583. package/build/js/worker/importWasmScript.js +1 -1
  584. package/build/js/worker/index.d.ts +2 -40
  585. package/build/js/worker/index.js +1 -1
  586. package/package.json +21 -11
  587. package/sdc-lib/license/AUTHORS +606 -0
  588. package/sdc-lib/license/web-core-license.txt +14 -1
  589. package/build/electron/chunk-6RVAZ75N.js +0 -1
  590. package/build/electron/common.cjs +0 -1
  591. package/build/electron/common.js +0 -0
  592. package/build/electron/constants.cjs +0 -1
  593. package/build/electron/constants.js +0 -1
  594. package/build/js/Camera-HgH6fwnW.d.ts +0 -410
  595. package/build/js/DataCaptureContext-qacCkSOl.d.ts +0 -1740
  596. package/build/js/DataCaptureViewPlusRelated-BOrDBPHq.d.ts +0 -49
  597. package/build/js/chunks/chunk-24MGHMOY.js +0 -1
  598. package/build/js/chunks/chunk-2HTI5D6Y.js +0 -1
  599. package/build/js/chunks/chunk-2JIATMSD.js +0 -1
  600. package/build/js/chunks/chunk-2LSO6JEZ.js +0 -1
  601. package/build/js/chunks/chunk-3A4KLILV.js +0 -1
  602. package/build/js/chunks/chunk-3A7LM5JG.js +0 -1
  603. package/build/js/chunks/chunk-3KKUZY2T.js +0 -1
  604. package/build/js/chunks/chunk-3MKSI2DV.js +0 -1
  605. package/build/js/chunks/chunk-3WNU5X5L.js +0 -1
  606. package/build/js/chunks/chunk-4BP7D26M.js +0 -1
  607. package/build/js/chunks/chunk-4KLHTKGW.js +0 -1
  608. package/build/js/chunks/chunk-4QJAB4PO.js +0 -1
  609. package/build/js/chunks/chunk-4W2T3TLN.js +0 -1
  610. package/build/js/chunks/chunk-4WA2PCJE.js +0 -1
  611. package/build/js/chunks/chunk-4ZMCJXZS.js +0 -1
  612. package/build/js/chunks/chunk-56OQ5EHO.js +0 -1
  613. package/build/js/chunks/chunk-56S3BFJ6.js +0 -1
  614. package/build/js/chunks/chunk-5GUWY76Q.js +0 -1
  615. package/build/js/chunks/chunk-5LXHD7FZ.js +0 -1
  616. package/build/js/chunks/chunk-5RCWM6NI.js +0 -1
  617. package/build/js/chunks/chunk-6AZW5IIG.js +0 -1
  618. package/build/js/chunks/chunk-6EEMWSEO.js +0 -1
  619. package/build/js/chunks/chunk-6H6FKGVE.js +0 -1
  620. package/build/js/chunks/chunk-6W7FX6LD.js +0 -1
  621. package/build/js/chunks/chunk-7GQFJDH6.js +0 -1
  622. package/build/js/chunks/chunk-7HYFN4JO.js +0 -1
  623. package/build/js/chunks/chunk-7LTHFX4E.js +0 -1
  624. package/build/js/chunks/chunk-7OFC24NE.js +0 -1
  625. package/build/js/chunks/chunk-7SA74NKD.js +0 -0
  626. package/build/js/chunks/chunk-7SW2PEHB.js +0 -1
  627. package/build/js/chunks/chunk-AAEQZ45T.js +0 -1
  628. package/build/js/chunks/chunk-AAPD5YU3.js +0 -1
  629. package/build/js/chunks/chunk-AC4QOIY7.js +0 -1
  630. package/build/js/chunks/chunk-ACFJP5SR.js +0 -1
  631. package/build/js/chunks/chunk-AE2LWVIB.js +0 -1
  632. package/build/js/chunks/chunk-AIC4H5KG.js +0 -2
  633. package/build/js/chunks/chunk-AIRWHLJH.js +0 -1
  634. package/build/js/chunks/chunk-ASAV77S2.js +0 -1
  635. package/build/js/chunks/chunk-ASJCS2FB.js +0 -1
  636. package/build/js/chunks/chunk-AYQTB54E.js +0 -2
  637. package/build/js/chunks/chunk-AYYKQ7YB.js +0 -2
  638. package/build/js/chunks/chunk-AZWFNBVA.js +0 -1
  639. package/build/js/chunks/chunk-BA3RP6L2.js +0 -1
  640. package/build/js/chunks/chunk-BDGRWHLY.js +0 -1
  641. package/build/js/chunks/chunk-BDLLVGRH.js +0 -1
  642. package/build/js/chunks/chunk-BZAQMYII.js +0 -1
  643. package/build/js/chunks/chunk-CAHJ3YOV.js +0 -1
  644. package/build/js/chunks/chunk-CAUB35PV.js +0 -1
  645. package/build/js/chunks/chunk-CD2BU66N.js +0 -1
  646. package/build/js/chunks/chunk-CRUOVJHW.js +0 -1
  647. package/build/js/chunks/chunk-CX2R2XQK.js +0 -1
  648. package/build/js/chunks/chunk-D222MT4V.js +0 -1
  649. package/build/js/chunks/chunk-DGIQ3GF7.js +0 -1
  650. package/build/js/chunks/chunk-DN32UPQC.js +0 -1
  651. package/build/js/chunks/chunk-DZE2EYSZ.js +0 -1
  652. package/build/js/chunks/chunk-E4XJ4GKD.js +0 -1
  653. package/build/js/chunks/chunk-EMLXDXWN.js +0 -1
  654. package/build/js/chunks/chunk-ENYHCJGH.js +0 -1
  655. package/build/js/chunks/chunk-EP3GI7KA.js +0 -1
  656. package/build/js/chunks/chunk-EPIUNYWM.js +0 -1
  657. package/build/js/chunks/chunk-EQ6V4W5K.js +0 -1
  658. package/build/js/chunks/chunk-EQRBQJYM.js +0 -1
  659. package/build/js/chunks/chunk-EV4OEANA.js +0 -1
  660. package/build/js/chunks/chunk-F2GMW4LP.js +0 -1
  661. package/build/js/chunks/chunk-FGO2SSRS.js +0 -1
  662. package/build/js/chunks/chunk-FHUC75ND.js +0 -1
  663. package/build/js/chunks/chunk-FR24G4R7.js +0 -1
  664. package/build/js/chunks/chunk-FTD535WI.js +0 -1
  665. package/build/js/chunks/chunk-G2BRTVN7.js +0 -1
  666. package/build/js/chunks/chunk-GHTCNOQN.js +0 -1
  667. package/build/js/chunks/chunk-GPJEB376.js +0 -1
  668. package/build/js/chunks/chunk-GPPCTFZF.js +0 -1
  669. package/build/js/chunks/chunk-GPUTPXQM.js +0 -1
  670. package/build/js/chunks/chunk-GQ7A6533.js +0 -1
  671. package/build/js/chunks/chunk-GVHXM75D.js +0 -1
  672. package/build/js/chunks/chunk-HLVYMWIK.js +0 -1
  673. package/build/js/chunks/chunk-I52JX2MQ.js +0 -1
  674. package/build/js/chunks/chunk-I6SWF3FQ.js +0 -1
  675. package/build/js/chunks/chunk-IGTW3KDT.js +0 -1
  676. package/build/js/chunks/chunk-IJQG3OU6.js +0 -1
  677. package/build/js/chunks/chunk-IMXMNDKM.js +0 -1
  678. package/build/js/chunks/chunk-JAY44NXK.js +0 -1
  679. package/build/js/chunks/chunk-JCKM5IJO.js +0 -0
  680. package/build/js/chunks/chunk-JFRSUCMO.js +0 -31
  681. package/build/js/chunks/chunk-JIGCOX5J.js +0 -1
  682. package/build/js/chunks/chunk-JS3T7K2Z.js +0 -1
  683. package/build/js/chunks/chunk-KAFNKP6O.js +0 -1
  684. package/build/js/chunks/chunk-KJXBZMMB.js +0 -1
  685. package/build/js/chunks/chunk-KSCFPJAW.js +0 -1
  686. package/build/js/chunks/chunk-KW2WZUE3.js +0 -1
  687. package/build/js/chunks/chunk-KXAJHLEO.js +0 -1
  688. package/build/js/chunks/chunk-KYNYQBNF.js +0 -17
  689. package/build/js/chunks/chunk-L2STPTEN.js +0 -1
  690. package/build/js/chunks/chunk-LA6TM76R.js +0 -1
  691. package/build/js/chunks/chunk-LFJUGRQV.js +0 -1
  692. package/build/js/chunks/chunk-LSZZVJ6B.js +0 -1
  693. package/build/js/chunks/chunk-LV6LGCDC.js +0 -1
  694. package/build/js/chunks/chunk-LXOZUOZU.js +0 -1
  695. package/build/js/chunks/chunk-MA3GV76P.js +0 -1
  696. package/build/js/chunks/chunk-MA6UDVDJ.js +0 -1
  697. package/build/js/chunks/chunk-N5YZEC56.js +0 -1
  698. package/build/js/chunks/chunk-NIKRAADM.js +0 -1
  699. package/build/js/chunks/chunk-NOEX6HP5.js +0 -1
  700. package/build/js/chunks/chunk-NQF3GUK2.js +0 -1
  701. package/build/js/chunks/chunk-NVK73TNL.js +0 -1
  702. package/build/js/chunks/chunk-NYYGU4ZV.js +0 -1
  703. package/build/js/chunks/chunk-O4HDBWKK.js +0 -1
  704. package/build/js/chunks/chunk-O7EM4VIM.js +0 -1
  705. package/build/js/chunks/chunk-O7TZTIHO.js +0 -1
  706. package/build/js/chunks/chunk-OLUNDJBC.js +0 -1
  707. package/build/js/chunks/chunk-ORP45GHJ.js +0 -1
  708. package/build/js/chunks/chunk-OX64CCOP.js +0 -1
  709. package/build/js/chunks/chunk-Q7JWDX4U.js +0 -1
  710. package/build/js/chunks/chunk-QBDQQMQ5.js +0 -1
  711. package/build/js/chunks/chunk-QCRFVRSS.js +0 -1
  712. package/build/js/chunks/chunk-QCZSSQAQ.js +0 -1
  713. package/build/js/chunks/chunk-QFSNPY5Y.js +0 -1
  714. package/build/js/chunks/chunk-QG3MRQMP.js +0 -1
  715. package/build/js/chunks/chunk-QHBIT2WY.js +0 -1
  716. package/build/js/chunks/chunk-QIWPWOQG.js +0 -1
  717. package/build/js/chunks/chunk-QJZW4BFG.js +0 -1
  718. package/build/js/chunks/chunk-QOCHMKNY.js +0 -1
  719. package/build/js/chunks/chunk-QQEY536Q.js +0 -1
  720. package/build/js/chunks/chunk-QRMHTQBG.js +0 -1
  721. package/build/js/chunks/chunk-QUWP3ILW.js +0 -1
  722. package/build/js/chunks/chunk-R6E4CT22.js +0 -1
  723. package/build/js/chunks/chunk-R6SUMD5F.js +0 -1
  724. package/build/js/chunks/chunk-RG272MAJ.js +0 -1
  725. package/build/js/chunks/chunk-RSQRPDVQ.js +0 -1
  726. package/build/js/chunks/chunk-RVJQOD3H.js +0 -1
  727. package/build/js/chunks/chunk-RXFEUGTT.js +0 -1
  728. package/build/js/chunks/chunk-RXPPTQAB.js +0 -1
  729. package/build/js/chunks/chunk-RXT3JWWR.js +0 -1
  730. package/build/js/chunks/chunk-RZTXUIJ5.js +0 -0
  731. package/build/js/chunks/chunk-SBC5K7IT.js +0 -1
  732. package/build/js/chunks/chunk-SEAVQZN6.js +0 -1
  733. package/build/js/chunks/chunk-SGL5J2CI.js +0 -1
  734. package/build/js/chunks/chunk-SHM7SU3B.js +0 -1
  735. package/build/js/chunks/chunk-SIMTA4TK.js +0 -1
  736. package/build/js/chunks/chunk-SJIN27Q5.js +0 -1
  737. package/build/js/chunks/chunk-SK6L34IF.js +0 -1
  738. package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
  739. package/build/js/chunks/chunk-T2JW7GJH.js +0 -1
  740. package/build/js/chunks/chunk-T3AOBMAS.js +0 -1
  741. package/build/js/chunks/chunk-T6EVGEHJ.js +0 -35
  742. package/build/js/chunks/chunk-TDNR2OSD.js +0 -1
  743. package/build/js/chunks/chunk-TKO5JMMS.js +0 -1
  744. package/build/js/chunks/chunk-TPHGDMKG.js +0 -1
  745. package/build/js/chunks/chunk-TR3NGINC.js +0 -1
  746. package/build/js/chunks/chunk-TTGJAMI2.js +0 -1
  747. package/build/js/chunks/chunk-U2WQ3WDE.js +0 -1
  748. package/build/js/chunks/chunk-U4IMOTYL.js +0 -1
  749. package/build/js/chunks/chunk-U6MFAGMG.js +0 -1
  750. package/build/js/chunks/chunk-U7ETOWGJ.js +0 -1
  751. package/build/js/chunks/chunk-UNO6YIIA.js +0 -1
  752. package/build/js/chunks/chunk-UWBNF47P.js +0 -1
  753. package/build/js/chunks/chunk-UWLAKRB2.js +0 -2
  754. package/build/js/chunks/chunk-UZWBB65W.js +0 -1
  755. package/build/js/chunks/chunk-V2OKMBZD.js +0 -1
  756. package/build/js/chunks/chunk-VJB527QZ.js +0 -1
  757. package/build/js/chunks/chunk-VSROWPI6.js +0 -1
  758. package/build/js/chunks/chunk-VUPEBHJF.js +0 -6
  759. package/build/js/chunks/chunk-W33RVR5M.js +0 -1
  760. package/build/js/chunks/chunk-W3X3ZRQZ.js +0 -1
  761. package/build/js/chunks/chunk-WARGMW7Z.js +0 -1
  762. package/build/js/chunks/chunk-WFKB322J.js +0 -1
  763. package/build/js/chunks/chunk-WGLHZXRT.js +0 -1
  764. package/build/js/chunks/chunk-WHRRC6V6.js +0 -1
  765. package/build/js/chunks/chunk-WMI56GO3.js +0 -1
  766. package/build/js/chunks/chunk-WOOPJWJS.js +0 -1
  767. package/build/js/chunks/chunk-WUHKODFA.js +0 -1
  768. package/build/js/chunks/chunk-XR65N6EG.js +0 -1
  769. package/build/js/chunks/chunk-Y7V35LNT.js +0 -1
  770. package/build/js/chunks/chunk-Y7ZNLVR2.js +0 -1
  771. package/build/js/chunks/chunk-YE2GYNRP.js +0 -1
  772. package/build/js/chunks/chunk-YOTQPBO6.js +0 -1
  773. package/build/js/chunks/chunk-YRNH7TIR.js +0 -0
  774. package/build/js/chunks/chunk-ZAXZRQYF.js +0 -1
  775. package/build/js/chunks/chunk-ZKROZLQ4.js +0 -2
  776. package/build/js/common-4FJYEFaM.d.ts +0 -25
  777. package/build/js/global.d.js +0 -0
  778. package/build/js/private/ViewControls+related.js +0 -1
  779. package/build/js/worker/coreCapture.inlineWorker.d.ts +0 -46
  780. package/build/js/worker/coreCapture.inlineWorker.js +0 -1
  781. package/build/js/worker/inlineWorker.d.d.ts +0 -5
  782. package/build/js/worker/inlineWorker.d.js +0 -0
@@ -1,49 +0,0 @@
1
- /// <reference types="emscripten" />
2
- import { Serializable } from './private/Serializable.js';
3
-
4
- interface ZoomGestureListener {
5
- didZoomInGesture?(zoomGesture: ZoomGesture): void;
6
- didZoomOutGesture?(zoomGesture: ZoomGesture): void;
7
- }
8
-
9
- declare enum LogoStyle {
10
- Minimal = "minimal",
11
- Extended = "extended"
12
- }
13
- interface FocusGestureJSON {
14
- type: string;
15
- }
16
- type FocusGesture = Serializable<FocusGestureJSON>;
17
- declare class TapToFocus implements FocusGesture, Serializable<FocusGestureJSON> {
18
- private type;
19
- toJSONObject(): FocusGestureJSON;
20
- }
21
- interface ZoomGestureJSON {
22
- type: string;
23
- }
24
- interface ZoomGesture extends Serializable<ZoomGestureJSON> {
25
- addListener(listener: ZoomGestureListener): void;
26
- removeListener(listener: ZoomGestureListener): void;
27
- triggerZoomIn(): void;
28
- triggerZoomOut(): void;
29
- }
30
- declare class SwipeToZoom implements ZoomGesture {
31
- private readonly type;
32
- private readonly listeners;
33
- addListener(listener: ZoomGestureListener): void;
34
- removeListener(listener: ZoomGestureListener): void;
35
- triggerZoomIn(): void;
36
- triggerZoomOut(): void;
37
- toJSONObject(): ZoomGestureJSON;
38
- }
39
- declare class PinchToZoom implements ZoomGesture {
40
- private readonly type;
41
- private readonly listeners;
42
- addListener(listener: ZoomGestureListener): void;
43
- removeListener(listener: ZoomGestureListener): void;
44
- triggerZoomIn(): void;
45
- triggerZoomOut(): void;
46
- toJSONObject(): ZoomGestureJSON;
47
- }
48
-
49
- export { type FocusGesture as F, LogoStyle as L, PinchToZoom as P, SwipeToZoom as S, TapToFocus as T, type ZoomGesture as Z, type FocusGestureJSON as a, type ZoomGestureJSON as b, type ZoomGestureListener as c };
@@ -1 +0,0 @@
1
- import {b}from'./chunk-QBDQQMQ5.js';import {b as b$1}from'./chunk-LA6TM76R.js';import {a}from'./chunk-CX2R2XQK.js';var v=(e=>(e.Nonzero="nonzero",e.Evenodd="evenodd",e))(v||{}),n=class n extends b{constructor(e){super();this._context=null;this.isNextDrawPending=false;this.latestCommands=new Uint8Array([]);this.canvas=e,this.doDrawLoop=this.doDraw.bind(this);}get context(){if(!this._context&&(this._context=this.canvas.getContext("2d"),!this._context))throw new TypeError("CanvasRenderingContext cannot be retrieved.");return this._context}draw(e){if(this.latestCommands=e,!this.isCanvasReady()){this.postponeDraw();return}this.isNextDrawPending||(this.isNextDrawPending=true,a(this.doDrawLoop));}updateCanvasSizeAttributes(e,s,t=window.devicePixelRatio){let i=Math.round(e*t),r=Math.round(s*t);(i!==this.canvas.width||r!==this.canvas.height)&&(this.canvas.width=i,this.canvas.height=r,this.context.scale(t,t));}startObservingCanvasResize(){if(!this.resizeObserver){if(!n.ResizeObserver)throw new Error("PrivateCanvasDrawer.ResizeObserver is not set");this.resizeObserver=new n.ResizeObserver(e=>{var r;let[s]=e,{width:t,height:i}=(r=s.contentRect)!=null?r:this.canvas;t===0||i===0||(this.updateCanvasSizeAttributes(t,i),this.latestCommands.length!==0&&(this.draw(this.latestCommands),this.latestCommands=new Uint8Array([])));}),this.resizeObserver.observe(this.canvas);}}endObservingCanvasResize(){this.resizeObserver&&this.resizeObserver.unobserve(this.canvas);}doDraw(e){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let s=new b$1(this.latestCommands);for(;!s.isConsumed();){let t=s.extractCommandType();this.drawSingleCommand(t,s);}this.isNextDrawPending=false;}postponeDraw(){this.startObservingCanvasResize();}isCanvasReady(){return this.canvas.width>0&&this.canvas.height>0}};n.ResizeObserver="ResizeObserver"in globalThis?globalThis.ResizeObserver:void 0;var d=n;export{v as a,d as b};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-O7TZTIHO.js';function c(t){return t.endsWith("ms")?Number.parseFloat(t):t.endsWith("s")?Number.parseFloat(t)*1e3:0}function p(t,r){let o=getComputedStyle(t),s=o.transitionProperty.split(",").map(n=>n.trim()),a=o.transitionDuration.split(",").map(n=>c(n)),u=o.transitionDelay.split(",").map(n=>c(n)),e=s.findIndex(n=>n===r);if(e===-1)return 0;let i=a[e],m=u[e];return m!==null&&!Number.isNaN(m)?i+m:i}async function T(t,r){let{promise:o,resolve:s}=new a,a$1=p(t,r),u=setTimeout(()=>{s({type:"timeout",propertyName:r,elapsedTime:a$1+50});},a$1+50),e=i=>{i.propertyName===r&&i.type==="transitionend"&&(clearTimeout(u),s(i));};return t.addEventListener("transitionend",e,{once:true}),t.addEventListener("transitioncancel",e,{once:true}),o}export{T as a};
@@ -1 +0,0 @@
1
- var A=(t=>(t.WidthAndHeight="widthAndHeight",t.WidthAndAspectRatio="widthAndAspectRatio",t.HeightAndAspectRatio="heightAndAspectRatio",t.ShorterDimensionAndAspectRatio="shorterDimensionAndAspectRatio",t))(A||{});export{A as a};
@@ -1 +0,0 @@
1
- function t(r,e=100){return r?o(r,e).toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""):""}function o(r,e=100){return typeof r=="string"?r.slice(0,e):""}function s(r,e="id"){let i=r.map(n=>t(n)).filter(n=>!!n);return [t(e),...i].join("-")}export{s as a};
@@ -1 +0,0 @@
1
- function n(t){if("customElements"in globalThis)for(let[e,o]of Object.entries(t))customElements.get(e)||customElements.define(e,o);}export{n as a};
@@ -1 +0,0 @@
1
- function e(){return performance.now()}export{e as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-QG3MRQMP.js';var r=class{constructor(){this.frameColor=a.AimerViewfinder.frameColor;this.dotColor=a.AimerViewfinder.dotColor;this.type="aimer";}toJSONObject(){return {type:this.type,frameColor:this.frameColor.toJSON(),dotColor:this.dotColor.toJSON()}}};export{r as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return e.register(),document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7C11.4477 7 11 7.44772 11 8V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V8C13 7.44772 12.5523 7 12 7ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-exclamation-mark-icon";var r=e;export{r as a};
@@ -1 +0,0 @@
1
- import {a as a$3}from'./chunk-AAPD5YU3.js';import {d,a as a$2}from'./chunk-TDNR2OSD.js';import {a as a$1,b as b$2}from'./chunk-ZAXZRQYF.js';import {b as b$1}from'./chunk-EPIUNYWM.js';import {a}from'./chunk-SJIN27Q5.js';import {b}from'./chunk-AYYKQ7YB.js';var A=class{constructor(t){this.audioBuffer=null;this.loadPromise=null;this.soundPool=[];this.soundPoolSize=25;this.inactiveSounds=new Set;var e;this.src=Array.isArray(t.src)?t.src[0]:t.src,t.html5!==void 0?this.html5=t.html5:this.html5=b.isIOS(),(e=a)==null||e(`\u{1F3B5} Howl created: using ${this.html5?"HTML5 <audio> (BLOCKING)":"Web Audio API (non-blocking)"}`),a$1(this),d();}async load(){if(this.loadPromise)return this.loadPromise;if(this.audioBuffer)return this.audioBuffer;let t=b$1().get(this.src);return t?(this.loadPromise=t,this.audioBuffer=await t,this.audioBuffer):(this.loadPromise=(async()=>{var e,i,s;try{let n=a$2().getContext(),a$1;if(this.src.startsWith("data:")){(e=a)==null||e("\u{1F50A} Decoding data URI directly (bypassing fetch)");let c=this.src.split(",")[1],r=atob(c),d=new Uint8Array(r.length);for(let l=0;l<r.length;l++)d[l]=r.charCodeAt(l);a$1=d.buffer;}else (i=a)==null||i(`\u{1F50A} Fetching audio from URL: ${this.src}`),a$1=await(await fetch(this.src)).arrayBuffer();let u=await n.decodeAudioData(a$1);return this.audioBuffer=u,u}catch(n){throw (s=a)==null||s(`Failed to load audio: ${n instanceof Error?n.message:String(n)}`),n}})(),b$1().set(this.src,this.loadPromise),this.loadPromise)}getSoundFromPool(){var e,i,s;if(this.inactiveSounds.size>0){let n=[...this.inactiveSounds][0];return this.inactiveSounds.delete(n),(e=a)==null||e(`\u{1F3B5} HTML5: Reusing sound from pool [${this.inactiveSounds.size} inactive, ${this.soundPool.length} total]`),n}if(this.soundPool.length<this.soundPoolSize){let n=new a$3(this.src,a=>{this.inactiveSounds.add(a);});return this.soundPool.push(n),(i=a)==null||i(`\u{1F3B5} HTML5: Created new sound, pool size: ${this.soundPool.length}/${this.soundPoolSize}`),n}(s=a)==null||s(`\u26A0\uFE0F HTML5: Sound pool exhausted (${this.soundPool.length}/${this.soundPoolSize}), force reusing first sound`);let t=this.soundPool[0];return this.inactiveSounds.delete(t),t}verifyAudioBuffer(t){if(!a)return;let e=t.getChannelData(0),i=0;for(let s=0;s<Math.min(1e3,e.length);s++)i=Math.max(i,Math.abs(e[s]));a(`\u{1F50A} Audio data check: max sample value = ${i.toFixed(4)} (first 1000 samples)`),i<.001&&a("\u274C WARNING: Audio appears to be SILENT - all samples near zero!");}handlePlaybackError(t){var e,i,s;t instanceof DOMException?t.name==="NotAllowedError"?(e=a)==null||e("\u274C Sound playback blocked by autoplay policy."):t.name!=="AbortError"&&((i=a)==null||i(`\u274C Sound playback failed: ${t.name} - ${t.message}`)):(s=a)==null||s(`\u274C Sound playback failed: ${t instanceof Error?t.message:String(t)}`);}async prepareAudioContext(t){var i,s,n,a$1;t.unlocked||((i=a)==null||i("\u26A0\uFE0F AudioContext not unlocked, attempting unlock..."),await t.unlock()),t.checkAndRecreateContextIfSampleRateChanged();let e=t.getContext();return (s=a)==null||s(`\u{1F50A} AudioContext state before play: ${e.state}`),e.state==="suspended"&&((n=a)==null||n("\u26A0\uFE0F AudioContext is suspended, resuming..."),await e.resume(),(a$1=a)==null||a$1(`\u{1F50A} AudioContext state after resume: ${e.state}`)),e}playHTML5(){var t,e;try{let i=this.getSoundFromPool();(t=a)==null||t(`\u{1F50A} HTML5: Playing [pool: ${this.soundPool.length}]`),i.play();}catch(i){(e=a)==null||e(`\u274C HTML5: Failed to setup playback: ${i instanceof Error?i.message:String(i)}`);}}play(){this.playAsync();}async playAsync(){var t,e,i,s,n,a$1;try{if(this.html5)return this.playHTML5();let u=a$2(),c=await this.prepareAudioContext(u),r=await this.load();this.verifyAudioBuffer(r);let d=c.createBufferSource();d.buffer=r,d.loop=false;let l=c.createGain();l.gain.value=1,(t=a)==null||t(`\u{1F50A} Setting gain to ${l.gain.value}`),d.connect(l);let b$1=u.getDestination();l.connect(b$1),(e=a)==null||e(`\u{1F50A} Connected to ${b.isIOS()?"MediaStreamDestination (iOS workaround)":"standard destination"}`),(i=a)==null||i(`\u{1F50A} Starting playback: ${r.duration}s, ${r.numberOfChannels}ch, ${r.sampleRate}Hz`),(s=a)==null||s(`\u{1F50A} Destination: ${c.destination.maxChannelCount}ch max, context SR: ${c.sampleRate}Hz`),(n=a)==null||n(`\u{1F50A} Gain value: ${l.gain.value}, Buffer length: ${r.length} samples`),d.onended=()=>{var m;d.disconnect(),(m=a)==null||m("\u{1F50A} Audio playback ended - source node disconnected");},d.start(0),(a$1=a)==null||a$1("\u2705 source.start(0) called successfully");}catch(u){this.handlePlaybackError(u);}}dispose(){var t;for(let e of this.soundPool)e.stop(),e.dispose();this.soundPool=[],this.inactiveSounds.clear(),(t=a)==null||t("\u{1F3B5} HTML5 sound pool cleared during Howl disposal"),b$2(this);}};export{A as a};
@@ -1 +0,0 @@
1
- var A={CONTAINER_CLASS_NAME:"scandit-container",PAINTBOARDS_CONTAINER_CLASS_NAME:"scandit-paintboards",PAINTBOARD_CLASS_NAME:"scandit-paintboard",PAINTBOARD_CLASS_NAME_STATE_ON:"scandit-paintboard--camera-on",MIRRORED_CLASS_NAME:"scandit-mirrored",CAMERA_RECOVERY_CLASS_NAME:"scandit-camera-recovery",ERROR_CLASS_NAME:"scandit-error",SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME:"scandit-single-image-uploader-container",CANVAS_VIDEO_PREVIEW_CLASS_NAME:"scandit-canvas-video-preview",FROZEN_FRAME:"frozen-frame"};export{A as a};
@@ -1 +0,0 @@
1
- function a(e,r){if(e.length!==r.length)return false;let n=new Set(e);return r.every(t=>n.has(t))}export{a};
@@ -1 +0,0 @@
1
- var n=(t=>(t.Minimal="minimal",t.Extended="extended",t))(n||{}),r=class{constructor(){this.type="tapToFocus";}toJSONObject(){return {type:this.type}}},i=class{constructor(){this.type="swipeToZoom";this.listeners=new Set;}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}triggerZoomIn(){var e;for(let t of this.listeners)(e=t.didZoomInGesture)==null||e.call(t,this);}triggerZoomOut(){var e;for(let t of this.listeners)(e=t.didZoomOutGesture)==null||e.call(t,this);}toJSONObject(){return {type:this.type}}},s=class{constructor(){this.type="pinchToZoom";this.listeners=new Set;}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}triggerZoomIn(){var e;for(let t of this.listeners)(e=t.didZoomInGesture)==null||e.call(t,this);}triggerZoomOut(){var e;for(let t of this.listeners)(e=t.didZoomOutGesture)==null||e.call(t,this);}toJSONObject(){return {type:this.type}}};export{n as a,r as b,i as c,s as d};
@@ -1 +0,0 @@
1
- import {f}from'./chunk-UWLAKRB2.js';import {a}from'./chunk-XR65N6EG.js';function v({wasmURI:e,expectedHash:t,verifyResponseHash:l,progressCallback:o,successCallback:a$1,errorCallback:n,importObject:m,referredOrigin:u}){async function b(r){try{let i=await f({wasmURI:e,expectedHash:t,verifyResponseHash:l,onProgress:o,referredOrigin:u}),y=await(r!=null?r:i).arrayBuffer(),c=await globalThis.WebAssembly.instantiate(y,m);a$1(c.instance,c.module);}catch(i){a.log(a.Level.Error,i),a.log(a.Level.Error,`Couldn't instantiate Scandit SDK DataCapture library at ${e}, did you configure the path for it correctly?`),n==null||n(i);}}async function f$1(){let r;try{r=await f({wasmURI:e,expectedHash:t,verifyResponseHash:l,onProgress:o,referredOrigin:u});let i=await globalThis.WebAssembly.instantiateStreaming(r,m);a$1(i.instance,i.module);}catch(i){a.log(a.Level.Warn,i),a.log(a.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),b((r==null?void 0:r.bodyUsed)===true?void 0:r);}}typeof globalThis.WebAssembly.instantiateStreaming=="function"?f$1():b();}async function d(e,t,l,o){return new Promise((a,n)=>{e().then(a).catch(m=>{let u=t*2;if(u>l){n(m);return}o(m),globalThis.setTimeout(()=>{d(e,u,l,o).then(a).catch(n);},t);});})}function w(e){var o,a;let t="unknown";if((o=e.href)!=null&&o.startsWith("blob:null/"))t="localhost";else {let n=((a=e.pathname)==null?void 0:a.length)>1&&!e.pathname.startsWith("/");t=new URL(n?e.pathname:e.origin).hostname;}return t.startsWith("[")&&t.endsWith("]")?(t=t.slice(1,-1),t):(/^(\d{1,3}\.){3}\d{1,3}$/.test(t)&&(t=t.split(".").map(n=>Number.parseInt(n,10).toString()).join(".")),t)}export{v as a,d as b,w as c};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-IMXMNDKM.js';import {a as a$1}from'./chunk-XR65N6EG.js';var n=class s{constructor(){this.type="singleImageUploader";this._settings=new a(null);this._desiredState="off";this.listeners=[];this._context=null;this._view=void 0;}static get default(){return new s}get desiredState(){return this._desiredState}get settings(){return this._settings}get context(){return this._context}set context(e){this._context=e;}set currentState(e){e!==this._currentState&&(this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e}));}get currentState(){return this._currentState}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on"||this.currentState==="starting")return}else if(this.currentState==="off"||this.currentState==="stopping")return;return this._desiredState=e,this.setCurrentState(e==="on"?"starting":"off")}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){return this._settings=e,this.notifyContext({type:"singleImageModeUploaderSettings",newValue:this._settings})}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject(),desiredState:this.desiredState}}getCurrentState(){return this._currentState}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processUploadedFileCapture(e){var t,r;try{await((t=this._context)==null?void 0:t.sendFrameToProcessor(e));}catch(o){a$1.warn(`Error while processing uploaded image: ${o}`);}finally{this.currentState="starting",(r=this._view)==null||r.onAfterImageProcessed();}}addView(e){this._view=e;}};export{n as a};
@@ -1 +0,0 @@
1
- var e=class{constructor(){this.type="none";}toJSONObject(){return {type:this.type}}},r=new e;export{r as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-BDGRWHLY.js';import {a}from'./chunk-MA6UDVDJ.js';import {c}from'./chunk-4QJAB4PO.js';var r={focusGesture:null,zoomGestures:[new c],logoAnchor:"bottomRight",logoStyle:"extended",logoOffset:a$1.fromJSON({x:{value:0,unit:"fraction"},y:{value:0,unit:"fraction"}}),pointOfInterest:a$1.fromJSON({x:{value:.5,unit:"fraction"},y:{value:.5,unit:"fraction"}}),scanAreaMargins:a.fromJSON({left:{value:0,unit:"fraction"},right:{value:0,unit:"fraction"},top:{value:0,unit:"fraction"},bottom:{value:0,unit:"fraction"}}),cameraRecoveryText:"(This text is updated from translations)"};export{r as a};
@@ -1 +0,0 @@
1
- import {a as a$2}from'./chunk-3WNU5X5L.js';import {a as a$1}from'./chunk-XR65N6EG.js';var a=new Map;a.set("default",()=>import('../assets/beepSound.js'));var e=class e{constructor(r){this.resource=null;this.resource=r;}static get defaultSound(){return e._defaultSound instanceof e||(e._defaultSound=new e("default")),e._defaultSound}toJSONObject(){return this.resource!==null?{resource:this.resource}:{}}async play(){var r,t,i;if(this.resource==null||this.resource===""){a$1.warn("Sound resource is null or empty string. Cannot be played.");return}if(!this.audio){let l=await((i=(t=(r=a.get(this.resource))==null?void 0:r())==null?void 0:t.then(o=>(o==null?void 0:o.beepSound)||this.resource))!=null?i:Promise.resolve(this.resource));this.audio=new a$2({src:l});}this.audio.play();}};e._defaultSound=null;var s=e;export{s as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-GPJEB376.js';import {b}from'./chunk-AYYKQ7YB.js';import {a as a$1}from'./chunk-XR65N6EG.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';var ee=(C=>(C.WorldFacing="worldFacing",C.UserFacing="userFacing",C))(ee||{}),ae=(c=>(c[c.ULTRA_HD=0]="ULTRA_HD",c[c.FULL_HD=1]="FULL_HD",c[c.HD=2]="HD",c[c.SD=3]="SD",c[c.NONE=4]="NONE",c))(ae||{}),re=(v=>(v.AUTO="auto",v.FOUR_TO_THREE="fourToThree",v.SIXTEEN_TO_NINE="sixteenToNine",v))(re||{}),U;(l=>{let T=new Map([["DeviceCaptureError","AbortError"],["NotSupportedError","AbortError"],["ScreenCaptureError","AbortError"],["TabCaptureError","AbortError"],["TypeError","AbortError"],["InvalidStateError","NotAllowedError"],["MediaDeviceFailedDueToShutdown","NotAllowedError"],["MediaDeviceKillSwitchOn","NotAllowedError"],["PermissionDeniedError","NotAllowedError"],["PermissionDismissedError","NotAllowedError"],["DevicesNotFoundError","NotFoundError"],["SourceUnavailableError","NotReadableError"],["TrackStartError","NotReadableError"],["ConstraintNotSatisfiedError","OverconstrainedError"]]),O=["rear","back","r\xFCck","arri\xE8re","trasera","tr\xE1s","traseira","posteriore","\u540E\u9762","\u5F8C\u9762","\u80CC\u9762","\u540E\u7F6E","\u5F8C\u7F6E","\u80CC\u7F6E","\u0437\u0430\u0434\u043D\u0435\u0439","\u0627\u0644\u062E\u0644\u0641\u064A\u0629","\uD6C4","arka","achterzijde","\u0E2B\u0E25\u0E31\u0E07","baksidan","bagside","sau","bak","tylny","takakamera","belakang","\u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03C0\u03AF\u03C3\u03C9","spate","h\xE1ts\xF3","zadn\xED","darrere","posterior","zadn\xE1","\u0437\u0430\u0434\u043D\u044F","stra\u017Enja","belakang","\u092C\u0948\u0915"],C=new Set(["Desk View Camera","Schreibtischansicht-Kamera","Cam\xE9ra Desk\xA0View","C\xE1mara de Vista Cenital","C\xE2mara da Vista de Secret\xE1ria","Fotocamera di Panoramica Scrivania","\u684C\u4E0A\u89C6\u89D2\u76F8\u673A","\u30C7\u30B9\u30AF\u30D3\u30E5\u30FC\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u041E\u0431\u0437\u043E\u0440\u0430 \u0441\u0442\u043E\u043B\u0430","Masa G\xF6r\xFCnt\xFCs\xFC Kameras\u0131","Bureauweergave-camera","\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0631\u0623\u0633\u064A","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E39\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E42\u0E15\u0E4A\u0E30","Bordsvisningskamera","Kamera til Visning af skrivebord","Camera Desk View","Bordvisning-kamera","Kamera w\xA0aplikacji Widok blatu","Ty\xF6p\xF6yt\xE4n\xE4kym\xE4n kamera","Kamera Tampilan Meja","\u05DE\u05E6\u05DC\u05DE\u05EA \u05F4\u05EA\u05E6\u05D5\u05D2\u05EA \u05E9\u05D5\u05DC\u05D7\u05DF\u05F4","\u039A\u03AC\u03BC\u03B5\u03C1\u03B1 \u03C4\u03B7\u03C2 \u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE\u03C2 \u03B3\u03C1\u03B1\u03C6\u03B5\u03AF\u03BF\u03C5","Camer\u0103 Vizualizare birou","\xCDr\xF3asztal n\xE9zet kamer\xE1ja","Stoln\xED kamera","C\xE0mera de l\u2019app Vista de l\u2019Escriptori"]),v=new Set(["MacBook Pro Desk View Camera"]),x=new Set(["Front Camera","Frontkamera","Appareil photo avant","C\xE1mara frontal","C\xE2mera Frontal","C\xE2mara frontal","Fotocamera (anteriore)","\u524D\u7F6E\u76F8\u673A","\u524D\u7F6E\u76F8\u6A5F","\u524D\u9762\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0430 \u043F\u0435\u0440\u0435\u0434\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438","\xD6n Kamera","Camera aan voorzijde","\u0627\u0644\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u0623\u0645\u0627\u0645\u064A\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E19\u0E49\u0E32","Kamera p\xE5 framsidan","Forsidekamera","Camera m\u1EB7t tr\u01B0\u1EDBc","Kamera foran","Przedni aparat","Etukamera","Kamera Depan","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05E7\u05D3\u05DE\u05D9\u05EA","\u039C\u03C0\u03C1\u03BF\u03C3\u03C4\u03B9\u03BD\u03AE \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 fa\u021B\u0103","El\xFCls\u0151 kamera","P\u0159edn\xED fotoapar\xE1t","C\xE0mera frontal","Predn\xE1 kamera","\u041F\u0435\u0440\u0435\u0434\u043D\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Prednja kamera","Kamera Depan","\u092B\u093C\u094D\u0930\u0902\u091F \u0915\u0948\u092E\u0930\u093E"]),c=new Set(["Back Camera","R\xFCckkamera","Cam\xE9ra arri\xE8re","C\xE1mara trasera","C\xE2mera Traseira","C\xE2mara traseira","Fotocamera (posteriore)","\u540E\u7F6E\u76F8\u673A","\u5F8C\u7F6E\u76F8\u6A5F","\u80CC\u9762\u30AB\u30E1\u30E9","\u041A\u0430\u043C\u0435\u0440\u0430 \u043D\u0430 \u0437\u0430\u0434\u043D\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438","Arka Kamera","Camera aan achterzijde","\u0627\u0644\u0643\u0627\u0645\u064A\u0631\u0627 \u0627\u0644\u062E\u0644\u0641\u064A\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07","Kamera p\xE5 baksidan","Bagsidekamera","Camera m\u1EB7t sau","Kamera bak","Tylny aparat","Takakamera","Kamera Belakang","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 spate","H\xE1ts\xF3 kamera","Zadn\xED fotoapar\xE1t","C\xE0mera posterior","Zadn\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja kamera","Kamera Belakang","\u092C\u0948\u0915 \u0915\u0948\u092E\u0930\u093E"]),N=new Set(["Back Dual Wide Camera","R\xFCckseitige Dual-Weitwinkelkamera","Double appareil photo grand angle arri\xE8re","C\xE1mara trasera dual con gran angular","C\xE2mera Dupla Grande-Angular Traseira","C\xE2mara grande angular dupla traseira","Fotocamera doppia con grandangolo (posteriore)","\u540E\u7F6E\u53CC\u5E7F\u89D2\u955C\u5934","\u5F8C\u7F6E\u96D9\u5EE3\u89D2\u76F8\u6A5F","\u80CC\u9762\u30C7\u30E5\u30A2\u30EB\u5E83\u89D2\u30AB\u30E1\u30E9","\u0417\u0430\u0434\u043D\u044F\u044F \u0434\u0432\u043E\u0439\u043D\u0430\u044F \u0448\u0438\u0440\u043E\u043A\u043E\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u043C\u0435\u0440\u0430","\xC7ift Geni\u015F Kamera Arka Y\xFCz\xFC","\u0643\u0627\u0645\u064A\u0631\u0627 \u062E\u0644\u0641\u064A\u0629 \u0645\u0632\u062F\u0648\u062C\u0629 \u0639\u0631\u064A\u0636\u0629","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E04\u0E39\u0E48\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E21\u0E38\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07","Dubbel vidvinkelkamera p\xE5 baksidan","Camera k\xE9p r\u1ED9ng m\u1EB7t sau","Dobbelt vidvinkelkamera bak","Tylny dwuobiektywowy aparat szerokok\u0105tny","Laajakulmainen kaksoistakakamera","Kamera Lebar Belakang Ganda","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05DB\u05E4\u05D5\u05DC\u05D4 \u05E8\u05D7\u05D1\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03B4\u03B9\u03C0\u03BB\u03AE \u03B5\u03C5\u03C1\u03B5\u03AF\u03B1 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 dubl\u0103 cu obiectiv superangular spate","H\xE1ts\xF3, kett\u0151s, sz\xE9les l\xE1t\xF3sz\xF6g\u0171 kamera","Zadn\xED du\xE1ln\xED \u0161iroko\xFAhl\xFD fotoapar\xE1t","C\xE0mera dual posterior amb gran angular","Zadn\xE1 du\xE1lna \u0161irokouhl\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u0437\u0434\u0432\u043E\u0454\u043D\u0430 \u0448\u0438\u0440\u043E\u043A\u043E\u043A\u0443\u0442\u043D\u0430 \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja dvostruka \u0161iroka kamera","Dwikamera Lebar Belakang","\u092C\u0948\u0915 \u0921\u094D\u092F\u0941\u0905\u0932 \u0935\u093E\u0907\u0921 \u0915\u0948\u092E\u0930\u093E"]),B=new Set(["Back Ultra Wide Camera","R\xFCckseitige Ultra-Weitwinkelkamera","Appareil photo ultra grand angle arri\xE8re","C\xE1mara trasera con ultra gran angular","C\xE2mera Ultra-Angular Traseira","C\xE2mara ultra grande angular traseira","Fotocamera con ultra-grandangolo (posteriore)","\u540E\u7F6E\u8D85\u5E7F\u89D2\u76F8\u673A","\u5F8C\u7F6E\u8D85\u5EE3\u89D2\u76F8\u6A5F","\u80CC\u9762\u8D85\u5E83\u89D2\u30AB\u30E1\u30E9","\u0417\u0430\u0434\u043D\u044F\u044F \u0441\u0432\u0435\u0440\u0445\u0448\u0438\u0440\u043E\u043A\u043E\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u043C\u0435\u0440\u0430","Ultra Geni\u015F Kamera Arka Y\xFCz\xFC","Ultrabrede camera aan achterzijde","\u0643\u0627\u0645\u064A\u0631\u0627 \u062E\u0644\u0641\u064A\u0629 \u0639\u0631\u064A\u0636\u0629 \u062C\u062F\u064B\u0627","\u0E01\u0E25\u0E49\u0E2D\u0E07\u0E14\u0E49\u0E32\u0E19\u0E2B\u0E25\u0E31\u0E07\u0E21\u0E38\u0E21\u0E01\u0E27\u0E49\u0E32\u0E07\u0E2D\u0E31\u0E25\u0E15\u0E23\u0E49\u0E32","Ultravidvinkelkamera p\xE5 baksidan","Ultravidvinkelkameraet p\xE5 bagsiden","Camera c\u1EF1c r\u1ED9ng m\u1EB7t sau","Ultravidvinkelkamera bak","Tylny aparat ultraszerokok\u0105tny","Ultralaajakulmainen takakamera","Kamera Ultra Lebar Belakang","\u05DE\u05E6\u05DC\u05DE\u05D4 \u05D0\u05D5\u05DC\u05D8\u05E8\u05D4 \u05E8\u05D7\u05D1\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D9\u05EA","\u03A0\u03AF\u03C3\u03C9 \u03C5\u03C0\u03B5\u03C1\u03B5\u03C5\u03C1\u03B5\u03AF\u03B1 \u03BA\u03AC\u03BC\u03B5\u03C1\u03B1","Camer\u0103 cu obiectiv ultra\u2011superangular spate","H\xE1ts\xF3, ultrasz\xE9les l\xE1t\xF3sz\xF6g\u0171 kamera","Zadn\xED ultra \u0161iroko\xFAhl\xFD fotoapar\xE1t","C\xE0mera posterior amb ultra gran angular","Zadn\xE1 ultra\u0161irokouhl\xE1 kamera","\u0417\u0430\u0434\u043D\u044F \u043D\u0430\u0434\u0448\u0438\u0440\u043E\u043A\u043E\u043A\u0443\u0442\u043D\u0430 \u043A\u0430\u043C\u0435\u0440\u0430","Stra\u017Enja ultra \u0161iroka kamera","Kamera Ultralebar Belakang","\u092C\u0948\u0915 \u0905\u0932\u094D\u091F\u094D\u0930\u093E \u0935\u093E\u0907\u0921 \u0915\u0948\u092E\u0930\u093E"]),m,D=false;l.mainCameraForPositionOverridesOnDesktop=new Map,l.deviceIdToCameraObjects=new Map,l.inaccessibleDeviceIds=new Set;let w=new Set;function ie(e){w.add(e);}l.addVideoDevicesListener=ie;function te(e,r){l.mainCameraForPositionOverridesOnDesktop.set(e,r);}l.setMainCameraForPositionOverridesOnDesktop=te;function ne(){l.mainCameraForPositionOverridesOnDesktop.clear();}l.clearMainCameraForPositionOverridesOnDesktop=ne;function M(){return navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices)}function W(){if(typeof navigator.enumerateDevices=="function")return navigator.enumerateDevices.bind(navigator);if(typeof navigator.mediaDevices=="object"&&typeof navigator.mediaDevices.enumerateDevices=="function")return navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices)}function E(){D=true;}function K(e){let r=e.toLowerCase();return O.some(a=>r.includes(a))}function h(e){return x.has(e)}l.isIOSFrontCameraLabel=h;function F(e){return c.has(e)}l.isIOSBackCameraLabel=F;function I(e){return N.has(e)}l.isIOSBackDualWideCameraLabel=I;function R(e){return B.has(e)}l.isIOSUltraWideBackCameraLabel=R;function L(e){var a;let r=e.message==="Invalid constraint"?"OverconstrainedError":(a=T.get(e.name))!=null?a:e.name;Object.defineProperty(e,"name",{value:r});}function V(e){if(e.length===0)return {areSomeCameraLabelsFilled:false,areAllCameraLabelsFilled:false,areAllCameraLabelsUnfilled:false};let r=0;for(let i of e)i.label!==""&&r++;let a=r===e.length,t=r===0;return {areSomeCameraLabelsFilled:r>0&&r<e.length,areAllCameraLabelsFilled:a,areAllCameraLabelsUnfilled:t}}function j(e,r){var a;return (a=l.mainCameraForPositionOverridesOnDesktop.get(r))!=null?a:e.find(t=>t.position===r)}function z(e,r){let a=r==="worldFacing"?F:h;for(let t of e)if(a(t.label))return t}function _(e,r){if(r==="worldFacing"){let a;for(let t of e){if(I(t.label))return t;!a&&F(t.label)&&(a=t);}return a}else for(let a of e)if(h(a.label))return a}function H(e,r){let{areSomeCameraLabelsFilled:a,areAllCameraLabelsUnfilled:t}=V(e),n=b.getUserAgentInfo().getOS().name==="iOS";if(t)return e[r==="userFacing"?0:e.length-1];let i=e.filter(o=>o.position===r);if(i.length===1)return i[0];if(a){if(n){let o=z(i,r);if(o!=null)return o}return i[r==="userFacing"?0:i.length-1]}if(n){let o=_(e,r);if(o)return o}return i.sort((o,s)=>o.label.localeCompare(s.label))[0]}function oe(e,r){return b.isDesktopDevice()?j(e,r):H(e,r)}l.getMainCameraForPosition=oe;function k(e,r){return e.unshift(e.splice(r,1)[0])}function se(e,r){function a(i,o){let s=l.mainCameraForPositionOverridesOnDesktop.get(o);return s!=null&&i.includes(s)&&(i=i.filter(g=>g!==s),i.unshift(s)),i}let t=e.filter(i=>i.position==="userFacing"),n=e.filter(i=>i.position==="worldFacing");return b.isDesktopDevice()?(t=a(t,"userFacing"),n=a(n,"worldFacing")):e.every(i=>i.label==="")?n.reverse():(t.sort((i,o)=>i.label.localeCompare(o.label)),n.sort((i,o)=>i.label.localeCompare(o.label)),b.getUserAgentInfo().getOS().name==="iOS"&&(t.some((i,o)=>h(i.label)&&k(t,o)>=0),n.some((i,o)=>R(i.label)&&k(n,o)>=0),n.some((i,o)=>I(i.label)&&k(n,o)>=0)||n.some((i,o)=>F(i.label)&&k(n,o)>=0))),r==="userFacing"?[...t,...n]:[...n,...t]}l.sortCamerasForCameraPosition=se;function A(e,r){let a=e.getVideoTracks();if(a.length>0){let t=a[0],n;typeof t.getSettings=="function"&&(n=t.getSettings(),n.facingMode!=null&&n.facingMode.length>0&&(r.position=n.facingMode==="environment"?"worldFacing":"userFacing"));let{label:i=""}=t;i.length>0&&(r.label=i);}}l.adjustCameraFromMediaStream=A;function G(e,r,a){if(l.deviceIdToCameraObjects.has(e.deviceId))return l.deviceIdToCameraObjects.get(e.deviceId);let{label:t="",deviceId:n}=e,i;return !b.isDesktopDevice()&&a.every(o=>o.label===""&&!l.deviceIdToCameraObjects.has(o.deviceId))?i=a.length===1||r+1<=Math.floor(a.length/2)?"userFacing":"worldFacing":i=K(t)?"worldFacing":"userFacing",{position:i,label:t,deviceId:n}}function Z(e){let r=e.map((a,t,n)=>G(a,t,n)).map(a=>(a.deviceId!==""&&l.deviceIdToCameraObjects.set(a.deviceId,a),a)).filter(a=>!/\b(?:ir|infrared)\b/i.test(a.label)||/^IR UVC WebCam$/i.test(a.label.toUpperCase())).filter(a=>!C.has(a.label)).filter(a=>!v.has(a.label)).filter(a=>!l.inaccessibleDeviceIds.has(a.deviceId));if(!b.isDesktopDevice()&&r.length>1&&!r.some(a=>a.position==="worldFacing")){let a=r.length-1,t=r.map(n=>{let i=/\b(\d+)mp?\b/i.exec(n.label);return i!=null?Number.parseInt(i[1],10):Number.NaN});t.some(n=>Number.isNaN(n))||(a=t.lastIndexOf(Math.max(...t))),r[a].position="worldFacing";}return r}async function Y(){if(m!=null&&m.length>0&&m.every(e=>e.label===""&&!l.deviceIdToCameraObjects.has(e.deviceId)))try{return await M()({video:true,audio:false})}catch{}}function X(e,r){var a,t;if(r.length>0&&e.length===r.length&&!r.every((n,i)=>e[i].deviceId===n.deviceId)){let n={};for(let[i,o]of e.entries()){let s=l.deviceIdToCameraObjects.get(o.deviceId);if(s==null||s.label!==((t=(a=r[i])==null?void 0:a.label)!=null?t:""))continue;let g=r[i].deviceId;n[s.deviceId]=g,l.inaccessibleDeviceIds.has(s.deviceId)&&l.inaccessibleDeviceIds.add(g),s.deviceId=g,l.deviceIdToCameraObjects.set(g,s);}a$1.log(a$1.Level.Debug,"Detected updated camera deviceId information and updated it accordingly",n);}}function $(){typeof navigator.mediaDevices.addEventListener=="function"?navigator.mediaDevices.addEventListener("devicechange",E):navigator.mediaDevices.ondevicechange=E;}async function y(){let e,r=W();if(r)e=await r();else throw new a({fullSupport:false,scannerSupport:true,missingFeatures:["mediaDevices"]});return e.filter(a=>a.kind==="videoinput")}async function le(e=false,r=false){var n;let a$2=b.checkBrowserCompatibility();if(!a$2.fullSupport)throw new a(a$2);if($(),m==null||e||D){D=false;let i,o=m!=null?m:[];m=[];try{m=await y(),r||(i=await Y(),i!=null&&(m=await y())),a$1.debug("Camera list (devices):",...m),m.length>0&&m.every(s=>s.deviceId==="")&&a$1.log(a$1.Level.Debug,"Incomplete camera information listed due to user permission denial, cameras will not be accessible"),X(o,m);}catch(s){throw L(s),s}finally{for(let s of (n=i==null?void 0:i.getVideoTracks())!=null?n:[])s.stop();}}let t=Z(m);a$1.log(a$1.Level.Debug,"Camera list (cameras): ",...t);for(let i of w)i([...t]);return [...t]}l.getCameras=le;async function q(e){return a$1.debug("Attempt to access camera (parameters):",e.video),new Promise((r,a)=>{setTimeout(async()=>{try{let t=await M()(e);if(t==null){a(new a$2({name:"AbortError",message:"Cannot get stream from getUserMedia function."}));return}r(t);}catch(t){a(t);}},0);})}function J(e,r){let a={resizeMode:"none"};switch(e){case 0:return {...a,width:{min:2880,ideal:r==="fourToThree"?2880:3840,max:4096},height:{min:1800,ideal:2160,max:2400}};case 1:return {...a,width:{min:1440,ideal:r==="fourToThree"?1440:1920,max:2160},height:{min:900,ideal:1080,max:1440}};case 2:return {...a,width:{min:960,ideal:r==="fourToThree"?960:1280,max:1440},height:{min:480,ideal:720,max:960}};case 3:return {...a,width:{min:640,ideal:640,max:800},height:{min:360,ideal:r==="fourToThree"?480:360,max:640}};default:return {}}}l.getUserMediaVideoParameters=J;function Q(e){e.deviceId!==""&&(a$1.log(a$1.Level.Debug,"Camera marked to be inaccessible:",e),l.inaccessibleDeviceIds.add(e.deviceId));}l.markCameraAsInaccessible=Q;async function me(e,r,a){a$1.log(a$1.Level.Debug,"Attempt to access camera (camera):",e);let t={audio:false,video:J(r,a)};e.deviceId===""?t.video.facingMode={ideal:e.position==="worldFacing"?"environment":"user"}:t.video.deviceId={exact:e.deviceId};try{let n=await q(t);return A(n,e),n}catch(n){throw L(n),["OverconstrainedError","NotReadableError","NotAllowedError"].includes(n.name)||Q(e),n}}l.accessCameraStream=me;})(U||(U={}));export{ee as a,ae as b,re as c,U as d};
@@ -1 +0,0 @@
1
- import {e,c,d,b}from'./chunk-CD2BU66N.js';import {a as a$1}from'./chunk-CRUOVJHW.js';import {a}from'./chunk-SGL5J2CI.js';var s=class u{constructor(){this._text="";this._tag="";this._textColor=a.fromHex(e.hintStyle.textColor);this._backgroundColor=a.fromHex(e.hintStyle.backgroundColor);}static init(t,o){let n=new u;return n._text=t,n._tag=o,n}withIcon(t){return this._icon=t,this}withTextColor(t){return this._textColor=t,this}withBackgroundColor(t){return this._backgroundColor=t,this}withNotificationStyle(t){this._style=t;let o={info:e,error:b,warning:d,success:c}[t];return this._textColor=a.fromHex(o.hintStyle.textColor),this._backgroundColor=a.fromHex(o.hintStyle.backgroundColor),this}build(){return new a$1(this._text,this._tag,this._style,this._icon,this._textColor,this._backgroundColor)}};export{s as a};
@@ -1 +0,0 @@
1
- var a=(p=>(p.Unknown="unknown",p.Portrait="portrait",p.PortraitUpsideDown="portraitUpsideDown",p.LandscapeRight="landscapeRight",p.LandscapeLeft="landscapeLeft",p))(a||{});export{a};
@@ -1 +0,0 @@
1
- import {b as b$1}from'./chunk-U6MFAGMG.js';import {a as a$5}from'./chunk-QFSNPY5Y.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$4}from'./chunk-3A4KLILV.js';import {a as a$6}from'./chunk-2LSO6JEZ.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';var s="--view-finder-top",d="--view-finder-bottom",c="--hint-anchor-offset",T="--max-width-fraction",w="--horizontal-margin",f="--max-width-ratio-adjust",b=(t=>(t.Update="hintpresenterupdate",t.ViewFinderUpdateRequested="hintpresenterviewfinderupdaterequested",t))(b||{});function S(l,h=100){return typeof l=="string"?l.slice(0,h):""}var a=class a extends a$1{constructor(){super();this.onDidToastHideHandler=this.onDidToastHide.bind(this);let t=this.attachShadow({mode:"open"});t.innerHTML=a$2`<div id="root"><slot></slot></div>`,t.append(a.createStyleElement().cloneNode(true)),this.root=t.querySelector("#root");}static createStyleElement(){return a$3`:host{pointer-events:none}:host #root{inset:0;position:absolute;width:100%;${s}:0;${d}:0;${f}:1;z-index:1}::slotted(${b$1.tag}){left:50%;max-width:calc(var(${T})*var(${f})*100% - var(${w}));position:absolute;transform:translate(-50%);width:100%}::slotted(${b$1.tag}.${"aboveViewFinder"}){transform:translate(-50%,calc(-100% + var(${s}) - var(${c})))}::slotted(${b$1.tag}.${"belowViewFinder"}){transform:translate(-50%,calc(var(${d}) + var(${c})))}::slotted(${b$1.tag}.${"top"}){top:calc(var(${c}))}::slotted(${b$1.tag}.${"center"}){top:50%;transform:translate(-50%,-50%)}::slotted(${b$1.tag}.fitToText){width:fit-content}`}static register(){a$4({[a.tag]:a});}static create(){return a.register(),document.createElement(a.tag)}connectedCallback(){this.addEventListener("didhide",this.onDidToastHideHandler),this._viewFinderRect==null&&(this.root.style.setProperty(s,`${this.root.clientHeight/2}px`),this.root.style.setProperty(d,`${this.root.clientHeight/2+1}px`));}disconnectedCallback(){this.removeEventListener("didhide",this.onDidToastHideHandler);}setViewFinderRect(t){if(t===null){this.root.style.removeProperty(s),this.root.style.removeProperty(d);return}this._viewFinderRect=t;let{origin:{y:e},size:{height:i}}=this._viewFinderRect;this.root.style.setProperty(s,`${e}px`),this.root.style.setProperty(d,`${e+i}px`);}async handleMessage(t){let{type:e}=t;switch(e){case "showToast":{await this.showToast(t.payload);break}case "hideToast":{await this.hideToast(t.payload);break}case "showGuidance":{await this.showGuidance(t.payload);break}case "hideGuidance":{await this.hideGuidance(t.payload);break}case "startUpdateTimer":{this.startUpdateTimer(t.payload.duration.value);break}case "stopUpdateTimer":{this.stopUpdateTimer();break}}}setHintStyleToToast(t,e){t.textContent=e.text,t.hintStyle=e.hintStyle,t.className="",t.style.setProperty(c,`${t.hintStyle.hintAnchorOffset/16}rem`),t.style.setProperty(T,e.hintStyle.maxWidthFraction.toString()),t.style.setProperty(w,`${e.hintStyle.horizontalMargin/16}rem`),t.classList.add(e.hintStyle.hintAnchor),t.classList.toggle("fitToText",e.hintStyle.fitToText);}onDidToastHide(t){t.stopPropagation(),t.detail.target.remove();}getToastElementFromIdOrTag({id:t,tag:e}){var i;return (i=this.querySelector(`[data-id="${t}"]`))!=null?i:this.querySelector(`[data-tag="${e}"]`)}async showToast(t){var r;this.ensureViewFinderRectIsSet();let e=this.idFromHint(t),i=this.getToastElementFromIdOrTag({id:e,tag:(r=t.tag)!=null?r:""});if(i||(i=b$1.create(),i.dataset.id=e,t.tag!==""&&(i.dataset.tag=t.tag),this.append(i)),this.setHintStyleToToast(i,t),t.tag==="MoveCloserGuidance"){let n=a$5.create();n.setAttribute("slot","first-child"),i.append(n),i.setAttribute("direction","column");}return i.show()}showToastWithCustomIcon(t,e){var n;let i=this.idFromHint(t),r=this.getToastElementFromIdOrTag({id:i,tag:(n=t.tag)!=null?n:""});return r||(r=b$1.create(),r.dataset.id=i,t.tag!==""&&(r.dataset.tag=t.tag),this.append(r)),r.customIcon=e,this.setHintStyleToToast(r,t),r.show()}async hideToast(t){var i;let e=this.getToastElementFromIdOrTag({id:this.idFromHint(t),tag:(i=t.tag)!=null?i:""});return e==null?void 0:e.hide()}async showGuidance(t){return this.showToast(t)}async hideGuidance(t){return this.hideToast(t)}startUpdateTimer(t){this.intervalId=setInterval(()=>{this.dispatchEvent(new CustomEvent("hintpresenterupdate"));},t);}stopUpdateTimer(){clearInterval(this.intervalId);}ensureViewFinderRectIsSet(){(this._viewFinderRect==null||this._viewFinderRect.origin.x===0&&this._viewFinderRect.origin.y===0)&&this.dispatchEvent(new CustomEvent("hintpresenterviewfinderupdaterequested"));}idFromHint(t){var e;return a$6([t.hintStyle.textColor,t.hintStyle.backgroundColor,t.hintStyle.hintAnchor,(e=t.tag)!=null?e:"",S(t.text,30),t.hintStyle.textAlignment],"hint")}};a.tag="scandit-hints";var H=a;export{b as a,H as b};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return e.register(),document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.7337 10.4937C17.0888 10.152 17.0888 9.59799 16.7337 9.25628C16.3787 8.91457 15.8031 8.91457 15.4481 9.25628L10.6364 13.8876L8.55192 11.8813C8.19689 11.5396 7.62129 11.5396 7.26627 11.8813C6.91124 12.223 6.91124 12.777 7.26627 13.1187L9.99354 15.7437C10.3486 16.0854 10.9242 16.0854 11.2792 15.7437L16.7337 10.4937Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-check-icon";var c=e;export{c as a};
@@ -1 +0,0 @@
1
- var r=class{constructor(){this.subscribers=new Set;}subscribe(s){this.subscribers.add(s);}unsubscribe(s){this.subscribers.has(s)&&this.subscribers.delete(s);}notify(s){for(let e of this.subscribers)e(s);}},i=new r,b=i;export{r as a,b};
@@ -1 +0,0 @@
1
- var f=(o=>(o.Auto="auto",o.Off="off",o.On="on",o))(f||{});export{f as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-R6E4CT22.js';import {b}from'./chunk-AYYKQ7YB.js';import {a as a$1}from'./chunk-XR65N6EG.js';var d="orientationchange",n={"portrait-primary":{type:"portrait-primary",angle:0,value:"portrait"},"portrait-secondary":{type:"portrait-secondary",angle:180,value:"portraitUpsideDown"},"landscape-primary":{type:"landscape-primary",angle:90,value:"landscapeLeft"},"landscape-secondary":{type:"landscape-secondary",angle:270,value:"landscapeRight"}},l=class extends EventTarget{constructor(){super(...arguments);this.orientation={value:"portrait",type:"portrait-primary",angle:0};this._landscapeOrientationMediaQuery=null;this.screenOrientationChangeListener=this.onScreenOrientationChange.bind(this);this.landscapeOrientationMediaQueryChangeListener=this.onLandscapeOrientationMediaQueryChange.bind(this);this.windowResizeListener=a(this.handleWindowResize.bind(this),700);this.lastWidth=null;this.lastHeight=null;}get landscapeOrientationMediaQuery(){return this._landscapeOrientationMediaQuery===null&&(this._landscapeOrientationMediaQuery=globalThis.matchMedia("(orientation: landscape)")),this._landscapeOrientationMediaQuery}get isIosPwaMode(){return b.isIOS()&&(b.isPwaDisplayMode("standalone")||b.isPwaDisplayMode("fullscreen")||b.isPwaDisplayMode("minimal-ui"))}register(){var e,i;this.isScreenOrientationApiSupported()&&!this.isIosPwaMode?(screen.orientation.addEventListener("change",this.screenOrientationChangeListener),this.onScreenOrientationChange()):this.isIosPwaMode?((e=globalThis.addEventListener)==null||e.call(globalThis,"resize",this.windowResizeListener),this.handleWindowResize()):((i=this.landscapeOrientationMediaQuery)==null||i.addEventListener("change",this.landscapeOrientationMediaQueryChangeListener),this.onLandscapeOrientationMediaQueryChange(new MediaQueryListEvent("change",{matches:this.landscapeOrientationMediaQuery.matches})));}unregister(){globalThis.removeEventListener("resize",this.windowResizeListener),this.isScreenOrientationApiSupported()&&screen.orientation.removeEventListener("change",this.screenOrientationChangeListener),this.landscapeOrientationMediaQuery.removeEventListener("change",this.landscapeOrientationMediaQueryChangeListener);}isScreenOrientationApiSupported(){return "screen"in globalThis&&"orientation"in screen&&typeof screen.orientation.addEventListener=="function"}dispatchOrientationChangeEvent(e){this.dispatchEvent(new CustomEvent(d,{detail:e}));}onScreenOrientationChange(){this.orientation=n[screen.orientation.type],this.dispatchOrientationChangeEvent(this.orientation);}onLandscapeOrientationMediaQueryChange(e){let i=e;this.orientation=i.matches?n["landscape-primary"]:n["portrait-primary"],this.dispatchOrientationChangeEvent(this.orientation);}handleWindowResize(){let e=globalThis.innerWidth,i=globalThis.innerHeight,r=this.lastWidth===null||this.lastHeight===null;if(!r&&e===this.lastWidth&&i===this.lastHeight)return;let a=e>i?n["landscape-primary"]:n["portrait-primary"];(r||this.orientation.value!==a.value)&&(a$1.debug("OrientationObserver: dispatching orientation change event",{newOrientation:a,currentOrientation:this.orientation}),this.orientation=a,this.dispatchOrientationChangeEvent(this.orientation)),this.lastWidth=e,this.lastHeight=i;}};export{d as a,l as b};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.625 15C17.3844 15 18 15.6156 18 16.375C18 17.1344 17.3844 17.75 16.625 17.75C15.8656 17.75 15.25 17.1344 15.25 16.375C15.25 15.6156 15.8656 15 16.625 15ZM20.75 16.375C20.75 14.0968 18.9032 12.25 16.625 12.25C14.3468 12.25 12.5 14.0968 12.5 16.375C12.5 18.6532 14.3468 20.5 16.625 20.5C18.9032 20.5 20.75 18.6532 20.75 16.375Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7223 13.2223C10.1853 13.7592 9.3147 13.7592 8.77773 13.2223C8.24076 12.6853 8.24076 11.8147 8.77773 11.2777L9.18046 10.875H8.375C7.61561 10.875 7 11.4906 7 12.25V21.875C7 22.6344 7.61561 23.25 8.375 23.25H16.625C17.3844 23.25 18 23.8656 18 24.625C18 25.3844 17.3844 26 16.625 26H8.375C6.09683 26 4.25 24.1532 4.25 21.875V12.25C4.25 9.97183 6.09683 8.125 8.375 8.125H9.18046L8.77773 7.72227C8.24076 7.1853 8.24076 6.3147 8.77773 5.77773C9.3147 5.24076 10.1853 5.24076 10.7223 5.77773L13.4723 8.52773C13.7301 8.78559 13.875 9.13533 13.875 9.5C13.875 9.86467 13.7301 10.2144 13.4723 10.4723L10.7223 13.2223Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 7.4375C20.75 7.0578 20.4422 6.75 20.0625 6.75H13.875C13.1156 6.75 12.5 6.13439 12.5 5.375C12.5 4.61561 13.1156 4 13.875 4H20.0625C21.961 4 23.5 5.53902 23.5 7.4375C23.5 7.8172 23.8078 8.125 24.1875 8.125H24.875C27.1532 8.125 29 9.97183 29 12.25V21.875C29 24.1532 27.1532 26 24.875 26H24.0695L24.4723 26.4027C25.0092 26.9397 25.0092 27.8103 24.4723 28.3473C23.9353 28.8842 23.0647 28.8842 22.5277 28.3473L19.7777 25.5973C19.2408 25.0603 19.2408 24.1897 19.7777 23.6527L22.5277 20.9027C23.0647 20.3658 23.9353 20.3658 24.4723 20.9027C25.0092 21.4397 25.0092 22.3103 24.4723 22.8473L24.0695 23.25H24.875C25.6344 23.25 26.25 22.6344 26.25 21.875V12.25C26.25 11.4906 25.6344 10.875 24.875 10.875H24.1875C22.289 10.875 20.75 9.33598 20.75 7.4375Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-camera-switch-icon";var C=e;export{C as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-LFJUGRQV.js';import {a}from'./chunk-XR65N6EG.js';var l=class{constructor(){this.cameraPool=new Set;this.deviceCamerasDiscovered=false;}getOrCreate(e){var s;let{position:i,deviceId:a$1}=e,o=(s=e._isBestGuess)!=null?s:false;if(this.cameraPool.size===0)return this.push(e,"no camera in pool");let t=Array.from(this.cameraPool);if(a$1){let r=t.find(n=>n.deviceId===a$1);if(r)return r}if(o){let r=t.find(n=>n._isBestGuess);if(r)return r}if(!a$1){let r=t.find(n=>n.position===i);if(r)return r}return this.deviceCamerasDiscovered?(a.warn([`The camera you requested (id="${a$1}", position="${i}") could not be mapped to one of the camera`,"available on this device. Make sure to use Camera.getAll() to select one of the available cameras.","Returning the first available camera of the device",`(id="${t[0].deviceId}", label="${t[0].label}", position="${t[0].position}").`].join(" ")),t[0]):this.push(e,"getOrCreate() did not match with a camera from the pool")}integrateIncomingVideoDevices(e){this.debugLog(`Integrating ${e.length} cameras found on the device`,e);let i=Array.from(this.cameraPool),a=new Set,o=this.matchByDeviceId(e,i,a),t=this.mergeBestGuesses(o,i,a),s=this.forceMergeBestGuesses(t,i,a);this.pushOrDropLeftovers(s),this.removeOrphans(i,a),this.deviceCamerasDiscovered=true,this.debugLog("Camera pool state after integration of device cameras:"),this.logPool();}matchByDeviceId(e,i,a){let o=[];for(let t of e){if(!t.deviceId){o.push(t);continue}let s=i.find(r=>r.deviceId===t.deviceId&&!a.has(r));if(!s){o.push(t);continue}s[a$1].setLabel(t.label),s.position=t.position,s[a$1].resetUnmappedState(),a.add(s),this.debugLog("Updated pool camera by deviceId",{deviceId:s.deviceId,label:s.label,position:s.position});}return o}mergeBestGuesses(e,i,a){let o=[];for(let t of e){if(!t.deviceId){o.push(t);continue}let s=i.find(r=>!r.deviceId&&r.position===t.position&&!a.has(r));if(!s){o.push(t);continue}s[a$1].setDeviceId(t.deviceId),s[a$1].setLabel(t.label),s[a$1].resetUnmappedState(),a.add(s),this.debugLog("Merged best-guess pool camera with incoming device camera",{deviceId:s.deviceId,label:s.label,position:s.position});}return o}forceMergeBestGuesses(e,i,a){let o=i.filter(r=>!r.deviceId&&!a.has(r));if(o.length===0)return e;let t=[],s=0;for(let r of e){if(!r.deviceId||s>=o.length){t.push(r);continue}let n=o[s++];n[a$1].setDeviceId(r.deviceId),n[a$1].setLabel(r.label),n.position=r.position,n[a$1].resetUnmappedState(),a.add(n),this.debugLog("Force-merged best-guess pool camera with incoming device camera",{deviceId:n.deviceId,label:n.label,position:n.position});}return t}pushOrDropLeftovers(e){for(let i of e)i.deviceId?(this.push(i,"Device camera could not be matched by id or position"),this.debugLog("Added new camera to pool",{deviceId:i.deviceId,label:i.label,position:i.position})):this.debugLog("Dropping incoming camera without deviceId",{label:i.label,position:i.position});}removeOrphans(e,i){let a$2=e.filter(o=>!i.has(o));if(a$2.length!==0){a.warn(["Some cameras were created but could not be mapped to cameras found on the device.","This happens when you create more cameras than were discovered on the device.","These cameras will not be accessible."].join(" "));for(let o of a$2)a.warn("Removing non-updated camera:",{deviceId:o.deviceId,label:o.label,position:o.position}),o[a$1].markAsUnmappedToDeviceCameras(),this.cameraPool.delete(o);}}rebindToDeviceId(e,i){if(e.deviceId===i.deviceId){e[a$1].setLabel(i.label),e.position=i.position;return}let a=Array.from(this.cameraPool).find(o=>o.deviceId===i.deviceId&&o!==e);if(a){let o=e.deviceId,t=e.label,s=e.position;a[a$1].setDeviceId(o),a[a$1].setLabel(t),a.position=s,this.debugLog("Swapped identities during rebindToDeviceId",{rebound:{...i},demoted:{deviceId:o,label:t,position:s}});}e[a$1].setDeviceId(i.deviceId),e[a$1].setLabel(i.label),e.position=i.position;}get(){return Array.from(this.cameraPool)}clear(){this.cameraPool.clear(),this.deviceCamerasDiscovered=false;}push(e,i){return this.cameraPool.add(e),this.debugLog(`added camera to pool, reason: ${i}.`,`New pool size: ${this.cameraPool.size}`,JSON.stringify({deviceId:e.deviceId,position:e.position,label:e.label})),e}debugLog(...e){}logPool(){}dumpAsSimpleObjects(){return [...this.cameraPool].map(e=>({deviceId:e.deviceId,label:e.label,position:e.position}))}},h={[a$1]:{CameraPool:l}};var u=new l;export{h as a,u as b};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`<style>${t.tag}{display:flex}${t.tag}[shadow] svg{filter:drop-shadow(0px 1px 2px rgba(18, 22, 25, .3))}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path d="M23.0072 11.0026H18.3321L19.9687 5.27515C20.0113 5.12618 20.0187 4.96936 19.9903 4.81705C19.9619 4.66475 19.8985 4.52112 19.8051 4.39748C19.7118 4.27385 19.5909 4.17359 19.4522 4.10462C19.3135 4.03564 19.1606 3.99983 19.0057 4H12.0031C11.7834 3.9999 11.5699 4.07207 11.3954 4.20538C11.2209 4.33868 11.095 4.52571 11.0374 4.73761L8.03623 15.7378C7.99509 15.8864 7.98889 16.0426 8.01812 16.1941C8.04735 16.3456 8.11122 16.4882 8.20472 16.6109C8.29823 16.7336 8.41884 16.833 8.55714 16.9014C8.69543 16.9697 8.84766 17.0052 9.00192 17.0049H13.8037L12.0191 26.83C11.9767 27.0569 12.0142 27.2915 12.1251 27.494C12.236 27.6964 12.4135 27.8543 12.6276 27.9408C12.8416 28.0273 13.0789 28.0372 13.2994 27.9687C13.5198 27.9002 13.7098 27.7575 13.8371 27.5649L23.8409 12.5592C23.9417 12.4085 23.9997 12.2331 24.0085 12.052C24.0174 11.8708 23.9769 11.6906 23.8912 11.5307C23.8056 11.3708 23.6781 11.2372 23.5224 11.1442C23.3667 11.0512 23.1886 11.0023 23.0072 11.0026Z" fill="${this.fill}"/></svg>`}};t.tag="scandit-torch-on-icon";var r=t;export{r as a};
File without changes
@@ -1 +0,0 @@
1
- var r=class{constructor(){}setProperty(t,e){this[t]=e;}getProperty(t){return this[t]}toJSONObject(){return Object.keys(this).reduce((t,e)=>(t[e]=this.getProperty(e),t),{})}};export{r as a};
@@ -1 +0,0 @@
1
- function o(){if(typeof globalThis<"u"&&"cookieStore"in globalThis&&globalThis.cookieStore!=null)return globalThis.cookieStore;throw new Error("CookieStore API is not available. loadPolyfills() call failed?")}export{o as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-SJIN27Q5.js';import {a as a$1}from'./chunk-CX2R2XQK.js';var d=class{constructor(e,n){this._paused=true;this._ended=false;this._seek=0;this.onEndedHandler=this.onEnded.bind(this);this.onPauseHandler=this.onPause.bind(this);this.onPlayHandler=this.onPlay.bind(this);this.node=new Audio,this.node.src=e,this.onInactive=n,this.node.addEventListener("ended",this.onEndedHandler),this.node.addEventListener("pause",this.onPauseHandler),this.node.addEventListener("play",this.onPlayHandler);}onEnded(){var e,n;this._paused=true,this._ended=true,(e=a)==null||e("\u{1F3B5} HTML5Sound: Playback ended"),(n=this.onInactive)==null||n.call(this,this);}onPause(){var e,n;this._paused=true,(e=a)==null||e("\u{1F3B5} HTML5Sound: Paused"),(n=this.onInactive)==null||n.call(this,this);}onPlay(){var e;this._paused=false,this._ended=false,(e=a)==null||e("\u{1F3B5} HTML5Sound: Playing");}play(){this._seek=0,this._paused=false,this._ended=false,this.node.currentTime=0,this.node.volume=1,a$1(()=>{let e=this.node.play();e&&e.catch(n=>{var s;n instanceof DOMException&&n.name==="AbortError"||(s=a)==null||s(`\u274C HTML5Sound.play() failed: ${n instanceof Error?n.message:String(n)}`);});});}pause(){this._paused||(this._paused=true,this._seek=this.node.currentTime,this.node.pause());}stop(){this._paused=true,this._ended=true,this._seek=0,this.node.currentTime=0,this.node.pause();}dispose(){var e;this.node.removeEventListener("ended",this.onEndedHandler),this.node.removeEventListener("pause",this.onPauseHandler),this.node.removeEventListener("play",this.onPlayHandler),(e=a)==null||e("\u{1F3B5} HTML5Sound: Disposed");}};export{d as a};
@@ -1 +0,0 @@
1
- import {f}from'./chunk-D222MT4V.js';var n=class{constructor(){this.type="torch";this.customImage={on:{idle:"",pressed:""},off:{idle:"",pressed:""}};this.torchSwitchIconButton=void 0;this.TorchSwitchIconButtonClass=void 0;this.view=void 0;this.onTorchToggled=this.handleTorchToggled.bind(this);}get currentCamera(){var e,o;let t=(o=(e=this.view)==null?void 0:e.getContext())==null?void 0:o.frameSource;return f(t)?t:null}get torchOffImage(){return this.customImage.off.idle}set torchOffImage(t){this.customImage.off.idle=t,this.applyCustomImagesToButton();}get torchOffPressedImage(){return this.customImage.off.pressed}set torchOffPressedImage(t){this.customImage.off.pressed=t,this.applyCustomImagesToButton();}get torchOnImage(){return this.customImage.on.idle}set torchOnImage(t){this.customImage.on.idle=t,this.applyCustomImagesToButton();}get torchOnPressedImage(){return this.customImage.on.pressed}set torchOnPressedImage(t){this.customImage.on.pressed=t,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(t){var i;this.TorchSwitchIconButtonClass||(this.TorchSwitchIconButtonClass=await import('../private/ui/molecules/TorchSwitchIconButton.js').then(r=>r.TorchSwitchIconButton),(i=this.TorchSwitchIconButtonClass)==null||i.register()),this.view=t,this.torchSwitchIconButton=this.TorchSwitchIconButtonClass.create(),this.torchSwitchIconButton.slot="topLeft",this.torchSwitchIconButton.state="off",this.torchSwitchIconButton.hidden=true,this.torchSwitchIconButton.addEventListener("torch-toggled",this.onTorchToggled);let e=t.controlsElement;e&&e.append(this.torchSwitchIconButton),this.applyCustomImagesToButton();let o=await this.canShow();return this.updateButtonState(o),true}remove(t){t&&this.torchSwitchIconButton&&(this.torchSwitchIconButton.removeEventListener("torch-toggled",this.onTorchToggled),this.torchSwitchIconButton.remove(),this.torchSwitchIconButton=null,this.view=void 0);}async update(t){this.view=t;let e=await this.canShow();this.updateButtonState(e);}applyCustomImagesToButton(){if(!this.torchSwitchIconButton)return;this.customImage.on.idle||this.customImage.on.pressed||this.customImage.off.idle||this.customImage.off.pressed?this.torchSwitchIconButton.setCustomImages(this.customImage):this.torchSwitchIconButton.useCustomImages=false;}updateButtonState(t){var e,o;this.torchSwitchIconButton&&(this.torchSwitchIconButton.state=(o=(e=this.currentCamera)==null?void 0:e.getDesiredTorchState())!=null?o:"off",this.torchSwitchIconButton.hidden=!t);}async handleTorchToggled(t){var i,r;let e=(r=(i=this.view)==null?void 0:i.getContext())==null?void 0:r.frameSource,o=e?e.getDesiredTorchState()==="on"?"off":"on":"off";await this.setTorchState(o),this.torchSwitchIconButton.state=o;}async canShow(){var t,e;return (e=(t=this.currentCamera)==null?void 0:t.isTorchAvailable())!=null?e:false}async setTorchState(t){var e;await((e=this.currentCamera)==null?void 0:e.setDesiredTorchState(t));}};export{n as a};
@@ -1 +0,0 @@
1
- function l(){if(typeof globalThis=="object")return false;let e=(()=>{if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;throw new Error("No global object found")})();return Object.defineProperty(e,"globalThis",{value:e,writable:true,configurable:true}),true}export{l as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-TPHGDMKG.js';import {a as a$2}from'./chunk-LSZZVJ6B.js';function a(){let i=a$2`@keyframes scandit-rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.${a$1.CONTAINER_CLASS_NAME}{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;position:relative;touch-action:none;width:100%}.${a$1.CONTAINER_CLASS_NAME}:before{animation:scandit-rotation 1s linear infinite;background-color:#fff;content:" ";height:1px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;width:1px}`,o=a$2`.${a$1.PAINTBOARDS_CONTAINER_CLASS_NAME}{height:inherit;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}{aspect-ratio:16/9;background-color:#000;height:100%;min-height:1px;min-width:1px;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.PAINTBOARD_CLASS_NAME_STATE_ON}{aspect-ratio:auto}.${a$1.PAINTBOARD_CLASS_NAME} video{display:block;height:100%;object-fit:cover;transition:opacity .3s;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.MIRRORED_CLASS_NAME}{transform:scaleX(-1)}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}{align-items:center;background-color:#000;color:#fff;cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;transition:background-color .2s;width:100%;z-index:5}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}:focus-visible{outline:2px solid #06c;outline-offset:-4px}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}:hover:not([hidden]){background-color:#000c}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{align-items:center;background-color:#00000080;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:6}.${a$1.CAMERA_RECOVERY_CLASS_NAME}[hidden],.${a$1.ERROR_CLASS_NAME}[hidden]{display:none}.${a$1.PAINTBOARD_CLASS_NAME} canvas{height:100%;left:0;object-fit:cover;pointer-events:none;position:absolute;top:0;transition:opacity .3s;width:100%}`,n=a$2`.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME}{-webkit-tap-highlight-color:rgba(255,255,255,0);align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label input[type=file]{position:absolute;top:-9999px}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label button{pointer-events:none}`,A=a$2`.${a$1.FROZEN_FRAME}{height:100%;left:0;object-fit:cover;opacity:1;position:absolute;top:0;width:100%}.${a$1.FROZEN_FRAME}[hidden]{opacity:0;pointer-events:none;visibility:hidden}`;return [i,o,n,A]}export{a};
@@ -1,2 +0,0 @@
1
- function l(t,s=location){let n=t.endsWith("/")?t:`${t}/`;if(/^https?:\/\//.test(n))return n;let r=n.split("/").filter(a=>a.length>0).join("/"),e=r===""?"/":`/${r}/`;return s.protocol==="file:"||s.origin==="null"?`${s.href.split("/").slice(0,-1).join("/")}${e}`:`${s.origin}${e}`}function c(t){return /^https?:\/\/(?:[^./]*\.)*cdn.jsdelivr.net\//.test(t)?{result:true,cdnBaseURL:"https://cdn.jsdelivr.net/npm/"}:/^https?:\/\/(?:[^./]*\.)*unpkg.com\//.test(t)?{result:true,cdnBaseURL:"https://unpkg.com/"}:{result:false,cdnBaseURL:""}}function o(t){let i=/@scandit\/web-datacapture-[a-z]+/i.exec(t);return i?i[0]:null}function u(t,s,i){let n=s,r=c(n);if(r.result){let a=o(n);a!=null&&(n=`${r.cdnBaseURL}${a}@${t}/sdc-lib/`);}let e=i.replace(".wasm","");return r.result?{jsURI:`${n}${e}.js`,wasmURI:`${n}${e}.wasm`}:{jsURI:`${n}${e}.js?v=${t}`,wasmURI:`${n}${e}.wasm?v=${t}`}}
2
- export{l as a,c as b,o as c,u as d};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-FGO2SSRS.js';function f(n){if(typeof n=="string")return n;if(a(n)){if(typeof n.message=="string")return n.message}else if(typeof(n==null?void 0:n.toString)=="function")return n.toString();return "unknown error"}export{f as a};
@@ -1 +0,0 @@
1
- import {b}from'./chunk-AYYKQ7YB.js';var p=[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108],s=[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57],c=[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94],t=String.fromCodePoint,n=t.apply(String,p);t.apply(String,s);t.apply(String,c);function l(){return globalThis.location.hostname==="localhost"||globalThis.location.hostname==="127.0.0.1"||globalThis.location.hostname===""}function r(o){let e=o;if(e!=null&&typeof e.getAppInfo=="function"&&typeof e.getKey=="function")return e}function m(){let{name:o=""}=b.getUserAgentInfo().getBrowser();return o==="Electron"&&typeof r(window[n])=="object"&&l()}async function y(){var o;return (o=r(window[n]))==null?void 0:o.getAppInfo()}async function A(o){var e;return (e=r(window[n]))==null?void 0:e.getKey(o)}export{m as a,y as b,A as c};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-QRMHTQBG.js';import {a}from'./chunk-L2STPTEN.js';import {d}from'./chunk-5GUWY76Q.js';import {b}from'./chunk-AYYKQ7YB.js';import {f,g}from'./chunk-D222MT4V.js';var u=.5;function m(c){return Math.round(c*10)/10}var C=class{constructor(){this.type="zoom";this._zoomLevels=new Set;this._orientation="default";this._isAlwaysExpanded=false;this._selectedZoomLevel=1;this._accessibilityLabel="Zoom";this.isApplyingZoomLevel=false;this.handlerForZoomStrategy={setZoomForCurrentCamera:async e=>{await this.currentCamera.setZoomFactor(e);},switchToUltrawideCameraAndSetZoom:async e=>{await this.switchToUltraWideCamera(),await this.currentCamera.setZoomFactor(e/u);},setZoomForUltrawideCamera:async e=>{await this.currentCamera.setZoomFactor(e/u);},switchToWideCameraAndSetZoom:async e=>{await this.switchToWideCamera(),await this.currentCamera.setZoomFactor(e);},setZoomForWideCamera:async e=>{await this.currentCamera.setZoomFactor(e);}};this.onZoomLevelSelected=this.handleZoomLevelSelected.bind(this);}get currentCamera(){var i;let e=(i=this.view)==null?void 0:i.getContext(),t=e==null?void 0:e.frameSource;return f(t)?t:null}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this.zoomSwitchPill&&(this.zoomSwitchPill.orientation=this.resolveOrientation());}get isAlwaysExpanded(){return this._isAlwaysExpanded}set isAlwaysExpanded(e){this._isAlwaysExpanded=e,this.zoomSwitchPill&&(this.zoomSwitchPill.isAlwaysExpanded=e);}get isExpanded(){var e,t;return (t=(e=this.zoomSwitchPill)==null?void 0:e.expanded)!=null?t:false}set isExpanded(e){!this._isAlwaysExpanded&&this.zoomSwitchPill&&(this.zoomSwitchPill.expanded=e);}get selectedZoomLevel(){return this._selectedZoomLevel}get accessibilityLabel(){return this._accessibilityLabel}set accessibilityLabel(e){var t;this._accessibilityLabel=e,(t=this.zoomSwitchPill)==null||t.setAttribute("aria-label",e);}async selectZoomLevel(e){var s,h,d;let t=await((s=this.currentCamera)==null?void 0:s.getZoomRange()),i=[...this._zoomLevels],o=(h=t==null?void 0:t.min)!=null?h:Math.min(...i),r=(d=t==null?void 0:t.max)!=null?d:Math.max(...i),a$1=m(t==null?e:a(e,o,r));return await this.applyZoomLevelToCamera(a$1),this.updateSelectedLevelInUI(a$1),a$1}toJSONObject(){return {type:this.type}}onZoomLevelChanged(e,t,i){this.zoomSwitchPill&&(this.zoomSwitchPill.expanded=false),this.updateSelectedLevelInUI(m(i));}onZoomLevelsChanged(e,t){this._zoomLevels=new Set(t),this.zoomSwitchPill&&(this.zoomSwitchPill.zoomLevels=[...this._zoomLevels]);}async install(e){var o,r;if(!this.ZoomSwitchPill){let{ZoomSwitchPill:a}=await import('../private/ui/molecules/ZoomSwitchPill.js');this.ZoomSwitchPill=a,(o=this.ZoomSwitchPill)==null||o.register();}this.view=e,this.zoomSwitchPill=this.ZoomSwitchPill.create(),this.zoomSwitchPill.slot="bottomRight",this.zoomSwitchPill.hidden=true,this.zoomSwitchPill.zoomLevels=[...this._zoomLevels],this.zoomSwitchPill.selectedLevel=this._selectedZoomLevel,this.zoomSwitchPill.orientation=this.resolveOrientation(),this.zoomSwitchPill.isAlwaysExpanded=this._isAlwaysExpanded,this.zoomSwitchPill.setAttribute("aria-label",this._accessibilityLabel),this.zoomSwitchPill.addEventListener("zoom-level-selected",this.onZoomLevelSelected);let t=await this.canShow();this.zoomSwitchPill.hidden=!t;let i=e.controlsElement;return i==null||i.append(this.zoomSwitchPill),(r=this.currentCamera)==null||r.addZoomListener(this),this.syncZoomLevelsFromCamera(),true}remove(){var e,t,i;(e=this.zoomSwitchPill)==null||e.removeEventListener("zoom-level-selected",this.onZoomLevelSelected),(t=this.currentCamera)==null||t.removeZoomListener(this),(i=this.zoomSwitchPill)==null||i.remove(),this.zoomSwitchPill=void 0,this.view=void 0;}async update(e){let t=this.currentCamera;this.view=e;let i=this.currentCamera;if(t!==i&&(t==null||t.removeZoomListener(this),i==null||i.addZoomListener(this),i!=null&&(this.syncZoomLevelsFromCamera(),this.updateSelectedLevelInUI(m(i.settings.zoomFactor)))),this.zoomSwitchPill&&(this.zoomSwitchPill.zoomLevels=[...this._zoomLevels],this.zoomSwitchPill.selectedLevel=this._selectedZoomLevel,!this.isApplyingZoomLevel)){let o=await this.canShow();this.zoomSwitchPill.hidden=!o;}}async canShow(){let e=this.currentCamera;return await(e==null?void 0:e.getZoomRange())!==null}async handleZoomLevelSelected({detail:{selectedLevel:e}}){this.zoomSwitchPill&&(this._selectedZoomLevel=e,this.zoomSwitchPill.temporaryLevel=null,this.zoomSwitchPill.selectedLevel=e,await this.applyZoomLevelToCamera(e));}updateSelectedLevelInUI(e){if(this.zoomSwitchPill){let t=m(e);this._selectedZoomLevel=t;let i=this._zoomLevels.has(t)?null:t;this.zoomSwitchPill.temporaryLevel=i,this.zoomSwitchPill.selectedLevel=t;}}zoomStrategyForLevel(e){if(!b.isIOSDeviceWithExtendedCameraAccess())return "setZoomForCurrentCamera";let t=d.isIOSUltraWideBackCameraLabel(this.currentCamera.label);return e<1?t?"setZoomForUltrawideCamera":"switchToUltrawideCameraAndSetZoom":t?"switchToWideCameraAndSetZoom":"setZoomForWideCamera"}isCameraSwitchingStrategy(e){return e==="switchToUltrawideCameraAndSetZoom"||e==="switchToWideCameraAndSetZoom"}async applyZoomLevelToCamera(e){if(!this.currentCamera||this.isApplyingZoomLevel)return;this.isApplyingZoomLevel=true;let t=this.zoomStrategyForLevel(e);this.isCameraSwitchingStrategy(t)&&this.zoomSwitchPill&&(this.zoomSwitchPill.loading=true);try{let i=this.handlerForZoomStrategy[t];await i(e);}finally{this.isApplyingZoomLevel=false,this.zoomSwitchPill&&(this.zoomSwitchPill.loading=false);}}async switchToUltraWideCamera(){let t=(await a$1.getAll()).find(i=>d.isIOSUltraWideBackCameraLabel(i.label));t&&await this.switchCameras(t);}async switchToWideCamera(){let t=(await a$1.getAll()).find(i=>d.isIOSBackCameraLabel(i.label));t&&await this.switchCameras(t);}async switchCameras(e){var a,s;let t,i;this.currentCamera!=null&&(t=new g(this.currentCamera.settings),i=this.currentCamera.desiredState),await((a=this.currentCamera)==null?void 0:a.switchToDesiredState("off")),t!=null&&await e.applySettings(t);let o=(s=this.view)==null?void 0:s.getContext();await(o==null?void 0:o.setFrameSource(e));let r=i!=null?i:"on";await e.switchToDesiredState(r);}resolveOrientation(){var t;if(this._orientation!=="default")return this._orientation;let e=(t=this.zoomSwitchPill)==null?void 0:t.slot;return e==="topCenter"||e==="bottomCenter"?"horizontal":"vertical"}syncZoomLevelsFromCamera(){var t,i;let e=(i=(t=this.currentCamera)==null?void 0:t.settings)==null?void 0:i.zoomLevels;e!=null&&e.length>0&&(this._zoomLevels=new Set(e),this.zoomSwitchPill&&(this.zoomSwitchPill.zoomLevels=[...this._zoomLevels]));}};export{C as a};
@@ -1,2 +0,0 @@
1
- import {b}from'./chunk-AYYKQ7YB.js';import {a}from'./chunk-XR65N6EG.js';async function c(l){if(!b.isAnimationApiSupported()||l)try{l?a.debug("Force loading animation polyfill as requested."):a.debug("Web Animation API not fully supported, you might need to add https://www.npmjs.com/package/web-animations-js polyfill to see some animations.");let{polyfill:o}=await import('../private/utils/AnimationSimplePolyfill.js');o();}catch(o){a.warn("Error importing AnimationSimplePolyfill.js, the Animation API will not be polyfilled. This is not a problem for most browsers, but it might be a problem for older browsers like Chrome 75<",o);}}async function d(l){if(typeof globalThis.structuredClone!="function"||l)try{l?a.debug("Force loading structuredClone polyfill as requested."):a.debug("structuredClone API not supported, loading polyfill for older browsers.");let{structuredClonePolyfill:o}=await import('../private/utils/structuredClonePolyfill.js');o();}catch(o){a.warn("Error importing structuredClonePolyfill.js, the structuredClone API will not be polyfilled. This might cause issues in older browsers.",o);}}async function u(l){if(!(typeof globalThis<"u"&&"cookieStore"in globalThis&&globalThis.cookieStore!=null&&!l))try{l?a.debug("Force loading CookieStore polyfill as requested."):a.debug("CookieStore API not supported, loading polyfill for older browsers.");let{installCookieStorePolyfill:o}=await import('../private/utils/cookieStorePolyfill.js');o();}catch(o){a.warn("Error importing cookieStorePolyfill.js, the CookieStore API will not be polyfilled. This might cause issues with cookie management in older browsers.",o);}}async function y(l={}){let{forceAnimationPolyfill:o=false,forceStructuredClonePolyfill:t=false,forceCookieStorePolyfill:n=false,forceAllPolyfills:i=false}=l,s=i||o,a=i||t,f=i||n;await Promise.all([c(s),d(a),u(f)]);}
2
- export{y as a};
@@ -1,2 +0,0 @@
1
- import {a as a$2}from'./chunk-KXAJHLEO.js';import {a as a$3}from'./chunk-AAEQZ45T.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-SBC5K7IT.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((J,we)=>{(function(O,u){var Q="1.0.40",P="",M="?",q="function",E="undefined",ee="object",j="string",ie="major",i="model",t="name",e="type",o="vendor",n="version",A="architecture",W="console",b="mobile",w="tablet",x="smarttv",C="wearable",oe="embedded",te=500,H="Amazon",N="Apple",ne="ASUS",re="BlackBerry",K="Browser",Y="Chrome",de="Edge",X="Firefox",z="Google",$="Huawei",ae="LG",se="Microsoft",Z="Motorola",r="Opera",s="Samsung",a="Sharp",d="Sony",g="Xiaomi",h="Zebra",k="Facebook",y="Chromium OS",V="Mac OS",le=" Browser",F=function(p,f){var c={};for(var v in p)f[v]&&f[v].length%2===0?c[v]=f[v].concat(p[v]):c[v]=p[v];return c},R=function(p){for(var f={},c=0;c<p.length;c++)f[p[c].toUpperCase()]=p[c];return f},be=function(p,f){return typeof p===j?B(f).indexOf(B(p))!==-1:false},B=function(p){return p.toLowerCase()},ce=function(p){return typeof p===j?p.replace(/[^\d\.]/g,P).split(".")[0]:u},I=function(p,f){if(typeof p===j)return p=p.replace(/^\s\s*/,P),typeof f===E?p:p.substring(0,te)},L=function(p,f){for(var c=0,v,U,T,m,l,_;c<f.length&&!l;){var pe=f[c],ge=f[c+1];for(v=U=0;v<pe.length&&!l&&pe[v];)if(l=pe[v++].exec(p),l)for(T=0;T<ge.length;T++)_=l[++U],m=ge[T],typeof m===ee&&m.length>0?m.length===2?typeof m[1]==q?this[m[0]]=m[1].call(this,_):this[m[0]]=m[1]:m.length===3?typeof m[1]===q&&!(m[1].exec&&m[1].test)?this[m[0]]=_?m[1].call(this,_,m[2]):u:this[m[0]]=_?_.replace(m[1],m[2]):u:m.length===4&&(this[m[0]]=_?m[3].call(this,_.replace(m[1],m[2])):u):this[m]=_||u;c+=2;}},D=function(p,f){for(var c in f)if(typeof f[c]===ee&&f[c].length>0){for(var v=0;v<f[c].length;v++)if(be(f[c][v],p))return c===M?u:c}else if(be(f[c],p))return c===M?u:c;return f.hasOwnProperty("*")?f["*"]:p},Te={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},fe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},me={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[t,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[t,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[t,n],[/opios[\/ ]+([\w\.]+)/i],[n,[t,r+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[t,r+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[t,r]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[t,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[t,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[t,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[t,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[t,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[t,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[t,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[t,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[t,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[t,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[t,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[t,/(.+)/,"$1 Secure "+K],n],[/\bfocus\/([\w\.]+)/i],[n,[t,X+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[t,r+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[t,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[t,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[t,r+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[t,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[n,[t,X]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[t,"360"]],[/\b(qq)\/([\w\.]+)/i],[[t,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[t,/(.+)/,"$1"+le],n],[/samsungbrowser\/([\w\.]+)/i],[n,[t,s+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[t,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[t,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[t,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[t],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,t],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[t,k],n],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[t,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[t,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[t,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[t,Y+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[t,Y+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[t,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[t,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[t,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,t],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[t,[n,D,Te]],[/(webkit|khtml)\/([\w\.]+)/i],[t,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[t,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[t,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[t,X+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[t,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[t,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,B]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,P,B]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,B]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[i,[o,s],[e,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[i,[o,s],[e,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[o,N],[e,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[o,N],[e,w]],[/(macintosh);/i],[i,[o,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[o,a],[e,b]],[/(?:honor)([-\w ]+)[;\)]/i],[i,[o,"Honor"],[e,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[o,$],[e,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[i,[o,$],[e,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[i,/_/g," "],[o,g],[e,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[i,/_/g," "],[o,g],[e,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[o,"OPPO"],[e,b]],[/\b(opd2\d{3}a?) bui/i],[i,[o,"OPPO"],[e,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[o,"Vivo"],[e,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[i,[o,"Realme"],[e,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[i,[o,Z],[e,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[o,Z],[e,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[o,ae],[e,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[i,[o,ae],[e,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[i,[o,"Lenovo"],[e,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[i,/_/g," "],[o,"Nokia"],[e,b]],[/(pixel c)\b/i],[i,[o,z],[e,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[o,z],[e,b]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[i,[o,d],[e,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,"Xperia Tablet"],[o,d],[e,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[o,"OnePlus"],[e,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[o,H],[e,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,"Fire Phone $1"],[o,H],[e,b]],[/(playbook);[-\w\),; ]+(rim)/i],[i,o,[e,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[o,re],[e,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[o,ne],[e,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[o,ne],[e,b]],[/(nexus 9)/i],[i,[o,"HTC"],[e,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[i,/_/g," "],[e,b]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[i,[o,"TCL"],[e,w]],[/(itel) ((\w+))/i],[[o,B],i,[e,D,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[o,"Acer"],[e,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[o,"Meizu"],[e,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[i,[o,"Ulefone"],[e,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[i,[o,"Energizer"],[e,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[i,[o,"Cat"],[e,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[i,[o,"Smartfren"],[e,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[i,[o,"Nothing"],[e,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[o,i,[e,b]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,i,[e,w]],[/(surface duo)/i],[i,[o,se],[e,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[i,[o,"Fairphone"],[e,b]],[/(u304aa)/i],[i,[o,"AT&T"],[e,b]],[/\bsie-(\w*)/i],[i,[o,"Siemens"],[e,b]],[/\b(rct\w+) b/i],[i,[o,"RCA"],[e,w]],[/\b(venue[\d ]{2,7}) b/i],[i,[o,"Dell"],[e,w]],[/\b(q(?:mv|ta)\w+) b/i],[i,[o,"Verizon"],[e,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[i,[o,"Barnes & Noble"],[e,w]],[/\b(tm\d{3}\w+) b/i],[i,[o,"NuVision"],[e,w]],[/\b(k88) b/i],[i,[o,"ZTE"],[e,w]],[/\b(nx\d{3}j) b/i],[i,[o,"ZTE"],[e,b]],[/\b(gen\d{3}) b.+49h/i],[i,[o,"Swiss"],[e,b]],[/\b(zur\d{3}) b/i],[i,[o,"Swiss"],[e,w]],[/\b((zeki)?tb.*\b) b/i],[i,[o,"Zeki"],[e,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],i,[e,w]],[/\b(ns-?\w{0,9}) b/i],[i,[o,"Insignia"],[e,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[o,"NextBook"],[e,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],i,[e,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],i,[e,b]],[/\b(ph-1) /i],[i,[o,"Essential"],[e,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[o,"Envizen"],[e,w]],[/\b(trio[-\w\. ]+) b/i],[i,[o,"MachSpeed"],[e,w]],[/\btu_(1491) b/i],[i,[o,"Rotor"],[e,w]],[/(shield[\w ]+) b/i],[i,[o,"Nvidia"],[e,w]],[/(sprint) (\w+)/i],[o,i,[e,b]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[o,se],[e,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[o,h],[e,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[o,h],[e,b]],[/smart-tv.+(samsung)/i],[o,[e,x]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[o,s],[e,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,ae],[e,x]],[/(apple) ?tv/i],[o,[i,N+" TV"],[e,x]],[/crkey/i],[[i,Y+"cast"],[o,z],[e,x]],[/droid.+aft(\w+)( bui|\))/i],[i,[o,H],[e,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[o,a],[e,x]],[/(bravia[\w ]+)( bui|\))/i],[i,[o,d],[e,x]],[/(mitv-\w{5}) bui/i],[i,[o,g],[e,x]],[/Hbbtv.*(technisat) (.*);/i],[o,i,[e,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,I],[i,I],[e,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[e,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,i,[e,W]],[/droid.+; (shield) bui/i],[i,[o,"Nvidia"],[e,W]],[/(playstation [345portablevi]+)/i],[i,[o,d],[e,W]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[i,[o,se],[e,W]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[i,[o,s],[e,C]],[/((pebble))app/i],[o,i,[e,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[i,[o,N],[e,C]],[/droid.+; (glass) \d/i],[i,[o,z],[e,C]],[/droid.+; (wt63?0{2,3})\)/i],[i,[o,h],[e,C]],[/droid.+; (glass) \d/i],[i,[o,z],[e,C]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,i,[e,C]],[/; (quest( \d| pro)?)/i],[i,[o,k],[e,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[e,oe]],[/(aeobc)\b/i],[i,[o,H],[e,oe]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[i,[e,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[e,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[e,b]],[/(android[-\w\. ]{0,9});.+buil/i],[i,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[t,de+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[t,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[t,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,t]],os:[[/microsoft (windows) (vista|xp)/i],[t,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[t,[n,D,fe]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,D,fe],[t,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[t,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[t,V],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,t],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[t,n],[/\(bb(10);/i],[n,[t,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[t,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[t,X+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[t,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[t,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[t,Y+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[t,y],n],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[t,n],[/(sunos) ?([\w\.\d]*)/i],[[t,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[t,n]]},S=function(p,f){if(typeof p===ee&&(f=p,p=u),!(this instanceof S))return new S(p,f).getResult();var c=typeof O!==E&&O.navigator?O.navigator:u,v=p||(c&&c.userAgent?c.userAgent:P),U=c&&c.userAgentData?c.userAgentData:u,T=f?F(me,f):me,m=c&&c.userAgent==v;return this.getBrowser=function(){var l={};return l[t]=u,l[n]=u,L.call(l,v,T.browser),l[ie]=ce(l[n]),m&&c&&c.brave&&typeof c.brave.isBrave==q&&(l[t]="Brave"),l},this.getCPU=function(){var l={};return l[A]=u,L.call(l,v,T.cpu),l},this.getDevice=function(){var l={};return l[o]=u,l[i]=u,l[e]=u,L.call(l,v,T.device),m&&!l[e]&&U&&U.mobile&&(l[e]=b),m&&l[i]=="Macintosh"&&c&&typeof c.standalone!==E&&c.maxTouchPoints&&c.maxTouchPoints>2&&(l[i]="iPad",l[e]=w),l},this.getEngine=function(){var l={};return l[t]=u,l[n]=u,L.call(l,v,T.engine),l},this.getOS=function(){var l={};return l[t]=u,l[n]=u,L.call(l,v,T.os),m&&!l[t]&&U&&U.platform&&U.platform!="Unknown"&&(l[t]=U.platform.replace(/chrome os/i,y).replace(/macos/i,V)),l},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(l){return v=typeof l===j&&l.length>te?I(l,te):l,this},this.setUA(v),this};S.VERSION=Q,S.BROWSER=R([t,n,ie]),S.CPU=R([A]),S.DEVICE=R([i,o,e,W,b,x,w,C,oe]),S.ENGINE=S.OS=R([t,n]),typeof J!==E?(typeof we!==E&&we.exports&&(J=we.exports=S),J.UAParser=S):typeof define===q&&define.amd?define(function(){return S}):typeof O!==E&&(O.UAParser=S);var G=typeof O!==E&&(O.jQuery||O.Zepto);if(G&&!G.ua){var ue=new S;G.ua=ue.getResult(),G.ua.get=function(){return ue.getUA()},G.ua.set=function(p){ue.setUA(p);var f=ue.getResult();for(var c in f)G.ua[c]=f[c];};}})(typeof window=="object"?window:J);});var Ce=b(Ae(),1);var Re=(M=>(M.Standalone="standalone",M.Fullscreen="fullscreen",M.MinimalUI="minimal-ui",M.Browser="browser",M))(Re||{}),Ee;(Z=>{let O;function u(){return O==null&&(O=new Ce.default(navigator.userAgent)),O}Z.getUserAgentInfo=u;function Q(){var a;if("orientation"in window)return false;let r="(any-pointer: coarse)",s=(a=window.matchMedia)==null?void 0:a.call(window,r);return navigator.maxTouchPoints===0||(s==null?void 0:s.media)===r&&!(s!=null&&s.matches)}Z.isDesktopDevice=Q;function P(){return u().getDevice().model==="iPhone"}Z.isIPhone=P;function M(){var h,k,y,V;let r=u(),s=(k=(h=r.getOS().name)==null?void 0:h.toLowerCase())!=null?k:"",a=r.getDevice(),d=(V=(y=a.model)==null?void 0:y.toLowerCase())!=null?V:"",g=a.type;return s.includes("ios")&&(g==="tablet"||d.includes("ipad"))}Z.isIPad=M;function q(){var g,h,k,y;let r=(h=(g=u().getOS().name)==null?void 0:g.toLowerCase())!=null?h:"",s=u().getDevice(),a=s.type,d=(y=(k=s.model)==null?void 0:k.toLowerCase())!=null?y:"";return r.includes("mac")&&(a==="laptop"||d.includes("macintosh"))}Z.isMacBook=q;function E(){return P()||M()||q()}Z.isAppleDevice=E;function ee(){let r=u().getOS();return r.name==="iOS"&&r.version!=null&&r.version.localeCompare("16.3",void 0,{numeric:true})>=0}Z.isIOSDeviceWithExtendedCameraAccess=ee;function j(){return "document"in window?window.document.createElement("canvas"):null}Z.getCanvas=j;function ie(r){return r.name==="iOS"&&r.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(r.version)}async function i(){return c()}Z.hasSIMDSupport=i;async function t(){return d()}Z.hasThreadsSupport=t;function e$1(r,s,a){let d=r[s[0]];return d==null?false:s.length===1?typeof d===a:(typeof d=="function"||typeof d=="object")&&e$1(d,s.slice(1),a)}function o(){var h;let r=true,s=null,a=null,d=null,g=null;try{if(s=Z.getCanvas(),a=Z.getCanvas(),d=s==null?void 0:s.getContext("webgl"),g=a==null?void 0:a.getContext("experimental-webgl"),!e$1(window,["WebGLRenderingContext"],"function")||d==null&&g==null)throw new Error("WebGLRenderingContext is not supported")}catch{r=false;}finally{for(let k of [d,g])typeof(k==null?void 0:k.getExtension)=="function"&&((h=k.getExtension("WEBGL_lose_context"))==null||h.loseContext());d=null,g=null,s=null,a=null;}return r}function n(){let r=true,s=true,a=new Set;location.protocol.startsWith("http")||a.add("httpProtocol"),e$1(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&a.add("secureContext"),!e$1(navigator,["mediaDevices","getUserMedia"],"function")&&!e$1(navigator,["enumerateDevices"],"function")&&!e$1(window,["MediaStreamTrack","getSources"],"function")&&(a.add("mediaDevices"),r=false),e$1(window,["Worker"],"function")||(a.add("webWorkers"),r=false,s=false),e$1(window,["WebAssembly"],"object")||(a.add("webAssembly"),r=false,s=false),e$1(window,["Blob"],"function")||(a.add("blob"),r=false,s=false),e$1(window,["URL","createObjectURL"],"function")||(a.add("urlObject"),r=false,s=false),e$1(window,["OffscreenCanvas"],"function")||a.add("offscreenCanvas"),o()||a.add("webGL");let d=u().getOS();return ie(d)&&(a.add("webAssemblyErrorFree"),r=false,s=false),b$1()||a.add("sharedArrayBuffer"),a$1()||a.add("crossOriginIsolated"),de()||a.add("animationApi"),{fullSupport:r,scannerSupport:s,missingFeatures:[...a]}}Z.checkBrowserCompatibility=n;async function A(){return e()}Z.checkMultithreadingSupport=A;async function W(){let r="scandit-device-id",s=a$2.getInstanceFor("localStorage"),a=s.getItem(r);if(a!=null&&a!=="")return a;let g=await a$3().get(r);if(a=g==null?void 0:g.value,a!=null&&a!=="")return s.setItem(r,a),a;let h=new Uint8Array(20);return crypto.getRandomValues(h),a=[...h].map(k=>{let y=k.toString(16);return y.length===1?`0${y}`:y}).join(""),s.setItem(r,a),a}Z.getDeviceId=W;function b(r){return r instanceof HTMLElement||r!=null&&typeof r=="object"&&typeof r.tagName=="string"}Z.isValidHTMLElement=b;function w(){var d,g;let r=u().getOS();if(r.name!=="iOS")return true;let[s,a]=(g=(d=r.version)==null?void 0:d.split(".").map(Number))!=null?g:[];return s>14||s===14&&a>=6}Z.isSupportedIOSVersion=w;function x(){var r,s;return (s=(r=u().getBrowser().name)==null?void 0:r.toLowerCase().includes("safari"))!=null?s:false}Z.isSafari=x;function C(){var s,a;return /iphone|ipod|ipad/.test((a=(s=u().getDevice().model)==null?void 0:s.toLowerCase())!=null?a:"")&&!x()}Z.isIosWebView=C;function oe(){var r;return ((r=u().getOS().name)==null?void 0:r.toLowerCase())==="android"}Z.isAndroid=oe;function te(){return Q()||P()?false:u().getDevice().type==="tablet"}Z.isTablet=te;async function H(){var s;return ((s=u().getOS().name)==null?void 0:s.toLowerCase())!=="android"?false:u().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([a])=>a.toLowerCase()==="x-requested-with")}Z.isAndroidWebView=H;function N(){return u().getOS().name==="Windows"}Z.isWindows=N;function ne(){return u().getBrowser().name==="Firefox"}Z.isFirefox=ne;function re(){if("navigator"in globalThis){for(let r of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[r]=="function")return navigator[r]}}Z.getSupportedVibrationMethod=re;function K(){return re()!=null&&!Q()&&!N()&&!ne()}Z.isVibrationAvailable=K;function Y(){return u().getOS().name==="iOS"}Z.isIOS=Y;function de(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}Z.isAnimationApiSupported=de;function X(){return "virtualKeyboard"in navigator}Z.hasVirtualKeyboardSupport=X;function z(r){var d;let s=`(display-mode: ${r})`,a=(d=globalThis.matchMedia)==null?void 0:d.call(globalThis,s);return (a==null?void 0:a.matches)===true?true:r==="standalone"&&typeof navigator=="object"&&"standalone"in navigator&&typeof navigator.standalone=="boolean"?navigator.standalone===true:false}Z.isPwaDisplayMode=z;function $(r,s,a){let d=F=>F.split(".").map(R=>Number.parseInt(R,10)||0),g=d(r),h=d(s),k=d(a),y=(F,R)=>{var B,ce;let be=Math.max(F.length,R.length);for(let I=0;I<be;I++){let L=(B=F[I])!=null?B:0,D=(ce=R[I])!=null?ce:0;if(L>D)return 1;if(L<D)return -1}return 0},V=y(g,h)>=0,le=y(g,k)<0;return V&&le}function ae(){if(E()){let a=u(),d=a.getOS(),g=a.getBrowser(),h=x()?g.version:d.version;return h?$(h,"26","27"):false}return false}Z.isFixedMemoryRequired=ae;function se(){if(E()){let a=u(),d=a.getOS(),g=a.getBrowser(),h=x()?g.version:d.version;return h?$(h,"26","27"):false}return false}Z.isSIMDBroken=se;})(Ee||(Ee={}));
2
- export{Re as a,Ee as b};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-FR24G4R7.js';import {a as a$2}from'./chunk-F2GMW4LP.js';import {a as a$3}from'./chunk-ENYHCJGH.js';var a=class n{constructor(){this._shorterDimensionAndAspectRatio=null;}get widthAndHeight(){return this._widthAndHeight}get widthAndAspectRatio(){return this._widthAndAspectRatio}get heightAndAspectRatio(){return this._heightAndAspectRatio}get shorterDimensionAndAspectRatio(){return this._shorterDimensionAndAspectRatio}get sizingMode(){return this.widthAndAspectRatio?"widthAndAspectRatio":this.heightAndAspectRatio?"heightAndAspectRatio":this.shorterDimensionAndAspectRatio?"shorterDimensionAndAspectRatio":"widthAndHeight"}static sizeWithWidthAndHeight(t){let i=new n;return i._widthAndHeight=t,i}static sizeWithWidthAndAspectRatio(t,i){let e=new n;return e._widthAndAspectRatio=new a$1(t,i),e}static sizeWithHeightAndAspectRatio(t,i){let e=new n;return e._heightAndAspectRatio=new a$1(t,i),e}static sizeWithShorterDimensionAndAspectRatio(t,i){let e=new n;return e._shorterDimensionAndAspectRatio=new a$1(t,i),e}static fromJSON(t){if(t.width&&t.height)return n.sizeWithWidthAndHeight(new a$2(a$3.fromJSON(t.width),a$3.fromJSON(t.height)));if(t.width&&typeof t.aspect=="number")return n.sizeWithWidthAndAspectRatio(a$3.fromJSON(t.width),t.aspect);if(t.height&&typeof t.aspect=="number")return n.sizeWithHeightAndAspectRatio(a$3.fromJSON(t.height),t.aspect);if(t.shorterDimension&&typeof t.aspect=="number")return n.sizeWithShorterDimensionAndAspectRatio(a$3.fromJSON(t.shorterDimension),t.aspect);throw new Error(`SizeWithUnitAndAspectJSON is malformed: ${JSON.stringify(t)}`)}toJSONObject(){var t,i,e,r,A,p,c,d;switch(this.sizingMode){case "widthAndAspectRatio":return {width:(t=this.widthAndAspectRatio)==null?void 0:t.size.toJSONObject(),aspect:(i=this.widthAndAspectRatio)==null?void 0:i.aspect};case "heightAndAspectRatio":return {height:(e=this.heightAndAspectRatio)==null?void 0:e.size.toJSONObject(),aspect:(r=this.heightAndAspectRatio)==null?void 0:r.aspect};case "shorterDimensionAndAspectRatio":return {shorterDimension:(A=this.shorterDimensionAndAspectRatio)==null?void 0:A.size.toJSONObject(),aspect:(p=this.shorterDimensionAndAspectRatio)==null?void 0:p.aspect};default:return {width:(c=this.widthAndHeight)==null?void 0:c.width.toJSONObject(),height:(d=this.widthAndHeight)==null?void 0:d.height.toJSONObject()}}}};export{a};
@@ -1 +0,0 @@
1
- var e=Symbol("SDC.NativeHandle");export{e as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-ENYHCJGH.js';var r=class e{constructor(i,n){this._x=i,this._y=n;}static get zero(){return new e(new a(0,"pixel"),new a(0,"pixel"))}get x(){return this._x}get y(){return this._y}static fromJSON(i){return new e(a.fromJSON(i.x),a.fromJSON(i.y))}toJSONObject(){return {x:this.x.toJSONObject(),y:this.y.toJSONObject()}}};export{r as a};
@@ -1 +0,0 @@
1
- var A="PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTU4IDEwSDI4LjZMMjIuOS41QTEgMSAwIDAgMCAyMiAwSDJhMiAyIDAgMCAwLTIgMnY0NmE2IDYgMCAwIDAgNiA2aDQ4YTYgNiAwIDAgMCA2LTZWMTJhMiAyIDAgMCAwLTItMlptLTM3LjUgOGE0LjUgNC41IDAgMSAxIDAgOSA0LjUgNC41IDAgMCAxIDAtOVptMjcuNCAyNy41YTEgMSAwIDAgMS0uOS41SDEzYTEgMSAwIDAgMS0uOC0xLjVsNy0xMWExIDEgMCAwIDEgMS42LS4xbDUgNiA5LjQtMTVhMSAxIDAgMCAxIDEuMy0uM2wuNC40IDExIDIwYTEgMSAwIDAgMSAwIDFaIi8+PC9zdmc+";export{A as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-BDLLVGRH.js';function t(a){let e="document"in globalThis?globalThis.document:void 0,n=e==null?void 0:e.createRange().createContextualFragment(a);if(n)return n.firstElementChild}var r={Settings:{iconElement:t(atob(a)),informationElement:t("<p data-scandit-default>(This text is updated from translations)</p>"),buttonElement:t("<div data-scandit-default>(This text is updated from translations)</div>"),containerStyle:{backgroundColor:"#FFFFFF"},iconStyle:{fill:"#121619"},informationStyle:{color:"#121619",marginBottom:"2em"},buttonStyle:{color:"#FFFFFF",backgroundColor:"#121619",fontWeight:"bold",padding:"1.25em",width:"12em",textAlign:"center",textTransform:"uppercase"},onlyCameraCapture:false}};export{r as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-AZWFNBVA.js';var s={type:"none"},c=class{constructor(t){this.type="radius";this._radius=t;}get radius(){return this._radius}toJSONObject(){return {type:this.type,radius:this.radius.toJSONObject()}}},a=class n{constructor(){this.type="rectangular";}get sizeWithUnitAndAspect(){return this._sizeWithUnitAndAspect}static withSize(t){let i=new n;return i._sizeWithUnitAndAspect=a$1.sizeWithWidthAndHeight(t),i}static withWidthAndAspectRatio(t,i){let e=new n;return e._sizeWithUnitAndAspect=a$1.sizeWithWidthAndAspectRatio(t,i),e}static withHeightAndAspectRatio(t,i){let e=new n;return e._sizeWithUnitAndAspect=a$1.sizeWithHeightAndAspectRatio(t,i),e}toJSONObject(){return {type:this.type,size:this.sizeWithUnitAndAspect.toJSONObject()}}};export{s as a,c as b,a as c};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-O7TZTIHO.js';import {a as a$1}from'./chunk-XR65N6EG.js';var s=class{constructor(e,r){this.workerFunctions=e;this.options=r;this.imageIdCounter=0;this.conversions=new Map;}convertToJpeg(e,r){let t=this.imageIdCounter++,o=new a;this.conversions.set(t,o);let n=e.toBitmap();return this.workerFunctions.postMessage({type:"convertToJPEG",imageId:t,width:e.getWidth(),height:e.getHeight(),data:n,planes:e.getPlanes(),orientation:r,quality:this.options.quality},Array.from(new Set([n.buffer]))),o.promise}convertToBitmap(e){return {data:e.toBitmap(),byteOrder:1}}onConvertToJPEGResult(e,r){let t=this.conversions.get(e);t?(t.resolve(r),this.conversions.delete(e)):a$1.warn(`ImageConverterForwarder: Conversion for imageId ${e} not found in Map`);}};export{s as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-CRUOVJHW.js';function i(t){var f,c,a,s,l,x;let u=t.style,m={cornerRadius:4,fitToText:false,hintAnchor:"top",hintAnchorOffset:16,horizontalMargin:16,isAnimatedToView:true,lineHeight:24,maxLines:2,maxWidthFraction:1,textAlignment:"start",textSize:14,textWeight:700},n,o,e;switch(u){case "success":n="check",o="28d37fcc",e="ffffffff";break;case "error":n="exclamationMark",o="f94444cc",e="ffffffff";break;case "warning":n="exclamationMark",o="f9bf2bcc",e="111619ff";break;case "info":n="exclamationMark",o="111619cc",e="ffffffff";break;default:n="none",o="111619cc",e="ffffffff";break}return t.icon&&(n="none"),{hintStyle:{...m,hintIcon:n,backgroundColor:(c=(f=t.backgroundColor)==null?void 0:f.toJSON())!=null?c:o,textColor:(s=(a=t.textColor)==null?void 0:a.toJSON())!=null?s:e,iconColor:(x=(l=t.textColor)==null?void 0:l.toJSON())!=null?x:e},tag:t.tag,text:t.message}}var h=i(new a("Error","an-error","error")),k=i(new a("Success","a-success","success")),C=i(new a("Warning","a-warning","warning")),H=i(new a("Info","an-info","info"));export{i as a,h as b,k as c,C as d,H as e};
@@ -1 +0,0 @@
1
- var t=class{constructor(o,r,i,e,l,s){this._message=o,this._tag=r,this._style=i,this._icon=e,this._textColor=l,this._backgroundColor=s;}get tag(){return this._tag}get message(){return this._message}get style(){return this._style||null}get icon(){return this._icon||null}get textColor(){return this._textColor}get backgroundColor(){return this._backgroundColor}};export{t as a};
@@ -1 +0,0 @@
1
- function n(e){return typeof globalThis<"u"&&globalThis.requestAnimationFrame?globalThis.requestAnimationFrame(e):setTimeout(()=>{e(performance.now());},0)}function a(e){typeof globalThis<"u"&&globalThis.cancelAnimationFrame?globalThis.cancelAnimationFrame(e):clearTimeout(e);}export{n as a,a as b};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-U2WQ3WDE.js';var u=(o=>(o.On="on",o.Off="off",o.Standby="standby",o.Starting="starting",o.Stopping="stopping",o.BootingUp="bootingUp",o.WakingUp="wakingUp",o.GoingToSleep="goingToSleep",o.ShuttingDown="shuttingDown",o))(u||{}),m=(t=>(t.On="on",t.Off="off",t))(m||{}),c=(t=>(t.WorldFacing="worldFacing",t.UserFacing="userFacing",t))(c||{}),p=(r=>(r.Auto="auto",r.HD="hd",r.FullHD="fullHd",r.UHD4K="uhd4k",r))(p||{}),l=(r=>(r.None="none",r.Manual="manual",r.ManualUntilCapture="manualUntilCapture",r.AutoOnLocation="autoOnLocation",r))(l||{});function f(i){var e;return ((e=i==null?void 0:i.toJSONObject())==null?void 0:e.type)==="camera"}var n=class i{constructor(e){this.preferredResolution=a.settings.preferredResolution;this.zoomFactor=a.settings.zoomFactor;this.zoomGestureZoomFactor=a.settings.zoomGestureZoomFactor;this.zoomLevels=a.settings.zoomLevels;this.focus={focusGestureStrategy:a.settings.focusGestureStrategy};e!=null&&(this.preferredResolution=e.preferredResolution,this.zoomFactor=e.zoomFactor,this.zoomGestureZoomFactor=e.zoomGestureZoomFactor,this.zoomLevels=e.zoomLevels?[...e.zoomLevels]:[1,2],this.focusGestureStrategy=e.focusGestureStrategy,this.copyPrivatePropertiesFrom(e));}get focusGestureStrategy(){return this.focus.focusGestureStrategy}set focusGestureStrategy(e){this.focus.focusGestureStrategy=e;}copyPrivatePropertiesFrom(e){for(let[t,a]of Object.entries(e))Object.getOwnPropertyNames(this).includes(t)||this.setProperty(t,a);}static fromJSON(e){var a;let t=new i;return t.preferredResolution=e.preferredResolution,t.zoomFactor=e.zoomFactor,t.zoomGestureZoomFactor=e.zoomGestureZoomFactor,t.zoomLevels=(a=e.zoomLevels)!=null?a:[1,2],t.focusGestureStrategy=e.focusGestureStrategy,t.copyPrivatePropertiesFrom(e),t}setProperty(e,t){this[e]=t;}getProperty(e){return this[e]}toJSONObject(){let e={preferredResolution:this.preferredResolution,zoomFactor:this.zoomFactor,zoomGestureZoomFactor:this.zoomGestureZoomFactor,zoomLevels:this.zoomLevels,focus:{focusGestureStrategy:this.focus.focusGestureStrategy}},t={};for(let a of Object.keys(this))[...Object.keys(e),"focusGestureStrategy"].includes(a)||(t[a]=this[a]);return {...e,...t}}};export{u as a,m as b,c,p as d,l as e,f,n as g};
@@ -1 +0,0 @@
1
- import {a as a$3}from'./chunk-V2OKMBZD.js';import {a as a$5}from'./chunk-GHTCNOQN.js';import {a as a$1}from'./chunk-UWBNF47P.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$4}from'./chunk-LSZZVJ6B.js';var c="scandit-loading-overlay",t=class t extends a{constructor(){super();this._progressBar=null;this._label=null;let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="loading-overlay"><label for="scandit-progress" class="message">Loading...</label><scandit-progress-bar id="scandit-progress" min="0" max="100"></scandit-progress-bar></div>`,e.append(t.createStyleElement().cloneNode(true));}set progress(e){this._progressBar&&(this._progressBar.value=e);}set message(e){this._label&&(this._label.textContent=e);}get message(){var e,r;return (r=(e=this._label)==null?void 0:e.textContent)!=null?r:""}static create(){return t.register(),document.createElement(t.tag)}static register(){a$2({[c]:t,[a$3.tag]:a$3});}static createStyleElement(){return a$4`@media (prefers-color-scheme:dark){.loading-overlay{--foreground-color:#fff;--background-color:#000000e6}}@media (prefers-color-scheme:light){.loading-overlay{--foreground-color:#000;--background-color:#ffffffe6}}${a$3.tag}{max-width:15rem}.loading-overlay{align-items:center;background-color:var(--background-color);display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;width:100%;z-index:1}:host([hidden]){display:none}.loading-overlay .message{color:var(--foreground-color);font-family:Open Sans,sans-serif;margin-bottom:1rem;text-align:center}`}connectedCallback(){var e,r;this._progressBar=(e=this.shadowRoot)==null?void 0:e.querySelector(a$3.tag),this._label=(r=this.shadowRoot)==null?void 0:r.querySelector("label"),this.message=a$5.getInstance().get("core.view.loading");}show(){this.removeAttribute("hidden");}hide(){this.setAttribute("hidden","");}};t.tag=c;var d=t;export{d as a};
@@ -1 +0,0 @@
1
- function u(t,f,o){let a=f*o,n=new Uint8ClampedArray(a*4),i=new Uint32Array(n.buffer);for(let r=0;r<a;r++){let e=t[r];i[r]=4278190080|e<<16|e<<8|e;}return n}export{u as a};
@@ -1 +0,0 @@
1
- var e=(o=>(o.AboveControls="above-controls",o))(e||{});export{e as a};
@@ -1 +0,0 @@
1
- var i=class{constructor(e,t){this._origin=e,this._size=t;}get origin(){return this._origin}get size(){return this._size}toJSONObject(){return {origin:this.origin.toJSONObject(),size:this.size.toJSONObject()}}};export{i as a};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-XR65N6EG.js';var g=class{constructor(a){this.options=a;}get quality(){return this.options.quality}async convertToJpeg(a$1,e){try{let{width:t,height:r,planes:s}=this.validateAndExtractImageData(a$1);this.prepareCanvas(t,r);let o=this.processImageData(a$1,s,t,r);return await this.convertToJpegBytes(o,e)}catch(t){throw a.warn(`Failed to convert image to JPEG: ${t}`),t instanceof Error?t:new Error("Failed to convert image to JPEG")}}convertToBitmap(a){return {data:a.toBitmap(),byteOrder:1}}validateAndExtractImageData(a$1){let e=a$1.getWidth(),t=a$1.getHeight(),r=a$1.getPlanes();if(e<=0||t<=0)throw a.warn(`Invalid image dimensions: ${e}x${t}`),new Error(`Invalid image dimensions: ${e}x${t}`);if(!r||r.length===0)throw a.warn("ImageBuffer has no planes"),new Error("ImageBuffer has no planes");return {width:e,height:t,planes:r}}prepareCanvas(a,e){if(!this.ensureCanvas(a,e))throw new Error("Failed to create OffscreenCanvas");if(!this.canvas||!this.context)throw new Error("Canvas or context not properly initialized")}processImageData(a,e,t,r){let s=this.createImageDataFromBuffer(a,e,t,r);if(s===null)throw new Error("Failed to create ImageData");return this.validateImageData(s,t,r),s}validateImageData(a$1,e,t){var r;if(a$1.width!==e||a$1.height!==t)throw a.warn(`ImageData dimensions mismatch: expected ${e}x${t}, got ${a$1.width}x${a$1.height}`),new Error("ImageData dimensions mismatch");if(!a$1.data||a$1.data.length!==e*t*4)throw a.warn(`ImageData has invalid data length: expected ${e*t*4}, got ${((r=a$1.data)==null?void 0:r.length)||0}`),new Error("ImageData has invalid data length")}async convertToJpegBytes(a$1,e){if(!this.context||!this.canvas)throw new Error("Canvas or context not available");try{this.context.putImageData(a$1,0,0);}catch(o){throw a.warn(`Failed to put image data on canvas: ${o}`),new Error(`Failed to put image data on canvas: ${o}`)}let t=e!==0?this.applyRotation(this.canvas,e):this.canvas,r;try{r=await this.canvasToBlob(t);}catch(o){throw a.warn(`Failed to convert canvas to blob: ${o}`),new Error(`Failed to convert canvas to blob: ${o}`)}if(!r||r.size===0)throw a.warn("Canvas convertToBlob returned empty or null blob"),new Error("Failed to create JPEG blob");let s;try{s=await r.arrayBuffer();}catch(o){throw a.warn(`Failed to get array buffer from blob: ${o}`),new Error(`Failed to get array buffer from blob: ${o}`)}if(!s||s.byteLength===0)throw a.warn("Blob arrayBuffer returned empty or null buffer"),new Error("Failed to get array buffer from blob");return new Uint8Array(s)}ensureCanvas(a$1,e){try{return (!this.canvas||this.canvas.width!==a$1||this.canvas.height!==e)&&(this.canvas=this.getNewCanvas(a$1,e),this.context=this.canvas.getContext("2d")),this.context!==null}catch(t){return a.warn("Failed to create HTMLCanvasElement",t),false}}createImageDataFromBuffer(a$1,e,t,r){let s=new Set(e.map(o=>o.channel));try{if(this.isYUVFormat(s)){let n=a$1.toBitmap();return !n||n.length!==t*r*4?(a.warn(`Invalid bitmap data from toBitmap(): expected ${t*r*4} bytes, got ${(n==null?void 0:n.length)||0}`),null):new ImageData(new Uint8ClampedArray(n),t,r)}if(this.isRGBAFormat(s))return this.createImageDataFromRGBAPlanes(e,t,r);if(this.isRGBFormat(s))return this.createImageDataFromRGBPlanes(e,t,r);if(this.isGrayscaleFormat(s))return this.createImageDataFromGrayscalePlanes(e,t,r);a.warn(`Unknown image format with channels: ${Array.from(s).join(", ")}, falling back to toBitmap()`);let o=a$1.toBitmap();if(!o||o.length===0)return a.warn("toBitmap() returned empty or null data"),null;let l=o.length/(t*r);return l===4?new ImageData(new Uint8ClampedArray(o),t,r):(a.warn(`Unsupported format: ${l} bytes per pixel`),null)}catch(o){return a.warn(`Failed to create ImageData: ${o}`),null}}isYUVFormat(a){return a.has(0)&&a.has(1)&&a.has(2)}isRGBAFormat(a){return a.has(3)&&a.has(4)&&a.has(5)&&a.has(6)}isRGBFormat(a){return a.has(3)&&a.has(4)&&a.has(5)&&!a.has(6)}isGrayscaleFormat(a){return a.has(0)&&!a.has(1)&&!a.has(2)}createImageDataFromRGBAPlanes(a$1,e,t){let r=a$1.find(i=>i.channel===3),s=a$1.find(i=>i.channel===4),o=a$1.find(i=>i.channel===5),l=a$1.find(i=>i.channel===6);if(!r||!s||!o||!l)return a.warn("Missing RGBA planes"),null;let n=new Uint8ClampedArray(e*t*4);for(let i=0;i<t;i++)for(let c=0;c<e;c++){let u=(i*e+c)*4;n[u]=this.getPixelFromPlane(r,c,i),n[u+1]=this.getPixelFromPlane(s,c,i),n[u+2]=this.getPixelFromPlane(o,c,i),n[u+3]=this.getPixelFromPlane(l,c,i);}return new ImageData(n,e,t)}createImageDataFromRGBPlanes(a$1,e,t){let r=a$1.find(n=>n.channel===3),s=a$1.find(n=>n.channel===4),o=a$1.find(n=>n.channel===5);if(!r||!s||!o)return a.warn("Missing RGB planes"),null;let l=new Uint8ClampedArray(e*t*4);for(let n=0;n<t;n++)for(let i=0;i<e;i++){let c=(n*e+i)*4;l[c]=this.getPixelFromPlane(r,i,n),l[c+1]=this.getPixelFromPlane(s,i,n),l[c+2]=this.getPixelFromPlane(o,i,n),l[c+3]=255;}return new ImageData(l,e,t)}createImageDataFromGrayscalePlanes(a$1,e,t){let r=a$1.find(o=>o.channel===0);if(!r)return a.warn("Missing Y plane for grayscale"),null;let s=new Uint8ClampedArray(e*t*4);for(let o=0;o<t;o++)for(let l=0;l<e;l++){let n=(o*e+l)*4,i=this.getPixelFromPlane(r,l,o);s[n]=i,s[n+1]=i,s[n+2]=i,s[n+3]=255;}return new ImageData(s,e,t)}getPixelFromPlane(a,e,t){let r=Math.floor(e/(a.subsamplingX||1)),s=Math.floor(t/(a.subsamplingY||1)),o=a.rowStride,l=a.pixelStride,n=s*o+r*l,i=a.data;return n<i.length?i[n]:0}applyRotation(a,e){let t=e*Math.PI/180,r=e===90||e===270||e===-90||e===-270,s=r?a.height:a.width,o=r?a.width:a.height,l=this.getNewCanvas(s,o),n=l.getContext("2d");if(!n)throw new Error("Failed to get 2D context for rotated canvas");return n.translate(s/2,o/2),n.rotate(t),n.translate(-a.width/2,-a.height/2),n.drawImage(a,0,0),l}};g.JPEG_IMAGE_MIME_TYPE="image/jpeg";export{g as a};
@@ -1 +0,0 @@
1
- var t=class i{constructor(e,r){this._value=e,this._unit=r;}get value(){return this._value}get unit(){return this._unit}static fromJSON(e){return new i(e.value,e.unit)}toJSONObject(){return {unit:this.unit,value:this.value}}};export{t as a};
@@ -1 +0,0 @@
1
- var t=class{constructor(){this._listeners=new Set;}get listeners(){return [...this._listeners]}addListener(e){this._listeners.add(e);}removeListener(e){this._listeners.delete(e);}};export{t as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-NYYGU4ZV.js';import {a}from'./chunk-SJIN27Q5.js';import {b}from'./chunk-AYYKQ7YB.js';function R(){return document.visibilityState==="visible"}function p(l=44100){var i,a$1;let e=new AudioContext;if(b.isIOS()&&e.sampleRate!==l){(i=a)==null||i(`\u26A0\uFE0F iOS sample rate mismatch: got ${e.sampleRate}Hz, expected ${l}Hz \u2014 applying fix`);let n=e.createBuffer(1,1,l),o=e.createBufferSource();o.buffer=n,o.connect(e.destination),o.start(0),o.disconnect(),e.close();let s=new AudioContext;return (a$1=a)==null||a$1(`\u2705 iOS sample rate corrected: ${s.sampleRate}Hz`),s}return e}var f=null;function M(){return f||(f=new a$1),f}var P=class{constructor(){this.audioContext=null;this.isUnlocked=false;this.unlockPromise=null;this.unlockAttempts=0;this.MAX_UNLOCK_ATTEMPTS=3;this.lastKnownSampleRate=-1;this.mediaStreamDestination=null;this.streamAudioElement=null;this.handlerStreamAudioElementError=this.onStreamAudioElementError.bind(this);this.handlerStreamAudioElementPause=this.onStreamAudioElementPause.bind(this);}getContext(){var e,i;return this.audioContext||((e=a)==null||e("\u{1F3B5} Creating new AudioContext (outside unlock - may not work on iOS)..."),this.audioContext=p(),this.lastKnownSampleRate=this.audioContext.sampleRate,(i=a)==null||i(`\u{1F3B5} AudioContext created. Initial state: ${this.audioContext.state}, sampleRate: ${this.audioContext.sampleRate}Hz (native hardware rate)`)),this.audioContext}getDestination(){var i,a$1,n;let e=this.getContext();return b.isIOS()?((i=a)==null||i("\u{1F3B5} iOS detected - using MediaStreamDestination workaround"),this.mediaStreamDestination||((a$1=a)==null||a$1("\u{1F3B5} Creating MediaStreamDestination for iOS workaround..."),this.mediaStreamDestination=e.createMediaStreamDestination(),this.streamAudioElement=new Audio,this.streamAudioElement.srcObject=this.mediaStreamDestination.stream,this.streamAudioElement.addEventListener("error",this.handlerStreamAudioElementError),this.streamAudioElement.addEventListener("pause",this.handlerStreamAudioElementPause),this.streamAudioElement.play().catch(o=>{var s;(s=a)==null||s(`Failed to start stream audio element: ${o}`);}),(n=a)==null||n("\u{1F3B5} MediaStreamDestination connected to HTML5 Audio element (stream playing continuously)")),this.mediaStreamDestination):e.destination}onStreamAudioElementError(){var e,i,a$1;if(!R()){(e=a)==null||e("\u26A0\uFE0F Document is not visible - skipping attempt to restart stream audio element");return}(i=a)==null||i("\u26A0\uFE0F Stream audio element error - attempting to restart..."),(a$1=this.streamAudioElement)==null||a$1.play().catch(n=>{var o;(o=a)==null||o(`Failed to restart stream audio element: ${n}`);});}onStreamAudioElementPause(){var e,i,a$1;if(!R()){(e=a)==null||e("\u26A0\uFE0F Document is not visible - skipping attempt to restart stream audio element");return}(i=a)==null||i("\u26A0\uFE0F Stream audio element paused unexpectedly - restarting..."),(a$1=this.streamAudioElement)==null||a$1.play().catch(n=>{var o;(o=a)==null||o(`Failed to restart stream audio element after pause: ${n}`);});}checkAndRecreateContextIfSampleRateChanged(){var i,a$1;if(!this.audioContext)return;let e=this.audioContext.sampleRate;this.lastKnownSampleRate!==-1&&e!==this.lastKnownSampleRate&&((i=a)==null||i(`\u26A0\uFE0F Hardware sample rate changed: was ${this.lastKnownSampleRate}Hz, now ${e}Hz`),(a$1=a)==null||a$1("\u{1F504} Sample rate change detected. Recreating AudioContext to match new hardware rate..."),this.recreateContext());}recreateContext(){var e,i,a$1;try{this.audioContext&&this.audioContext.state!=="closed"&&typeof this.audioContext.close=="function"&&this.audioContext.close(),this.audioContext=null,this.mediaStreamDestination=null,this.streamAudioElement&&(this.streamAudioElement.pause(),this.streamAudioElement.srcObject=null),M().clear(),(e=a)==null||e("\u{1F3A7} Audio buffer cache cleared after context recreation"),this.audioContext=p(),this.lastKnownSampleRate=this.audioContext.sampleRate,this.isUnlocked=false,(i=a)==null||i(`\u2705 AudioContext recreated: using native hardware rate of ${this.audioContext.sampleRate}Hz (state: ${this.audioContext.state})`);}catch(n){(a$1=a)==null||a$1(`\u274C Failed to recreate AudioContext: ${n instanceof Error?n.message:String(n)}`);}}createContext(){var e,i;this.audioContext||((e=a)==null||e("\u{1F3B5} Creating AudioContext during user gesture..."),this.audioContext=p(),this.lastKnownSampleRate=this.audioContext.sampleRate,(i=a)==null||i(`\u{1F3B5} AudioContext created with state: ${this.audioContext.state}, sampleRate: ${this.audioContext.sampleRate}Hz`));}async unlock(){var e,i,a$1,n;if(this.isUnlocked){(e=a)==null||e("\u{1F513} Audio already unlocked");return}if(this.unlockPromise){(i=a)==null||i("\u23F3 Unlock already in progress, waiting..."),await this.unlockPromise;return}if(this.unlockAttempts>=this.MAX_UNLOCK_ATTEMPTS){(a$1=a)==null||a$1(`\u274C Max unlock attempts (${this.MAX_UNLOCK_ATTEMPTS}) exceeded. Audio will not work this session.`);return}this.unlockAttempts++,(n=a)==null||n(`\u{1F513} Unlock attempt ${this.unlockAttempts}/${this.MAX_UNLOCK_ATTEMPTS}`),this.unlockPromise=(async()=>{var s,A,C,x,S,g,k,E,v,w,b$1;(s=a)==null||s("\u{1F513} Unlocking audio context during user gesture..."),this.createContext();let o=this.audioContext;(A=a)==null||A(`\u{1F513} AudioContext state during unlock: ${o.state}`),o.state==="suspended"&&((C=a)==null||C("\u{1F513} Calling context.resume() synchronously during user gesture..."),o.resume());try{if(o.state==="suspended"){(x=a)==null||x("\u{1F513} Waiting for context.resume() to complete...");for(let u=0;u<10;u++)if(await new Promise(d=>setTimeout(d,10)),o.state==="running"){(S=a)==null||S(`\u{1F513} AudioContext resumed successfully after ${(u+1)*10}ms`);break}}(g=a)==null||g(`\u{1F513} AudioContext state before test tone: ${o.state}`),(k=a)==null||k("\u{1F513} Creating and playing silent scratch buffer for unlock...");let m=o.createBuffer(2,1,o.sampleRate);(E=a)==null||E("\u{1F513} Created silent scratch buffer to unlock iOS");let r=o.createBufferSource();r.buffer=m,r.loop=false;let h=o.createGain();h.gain.value=1,r.connect(h);let D=this.getDestination();h.connect(D),(v=a)==null||v(`\u{1F513} Audio graph connected to ${b.isIOS()?"MediaStreamDestination":"standard destination"} during user gesture`),await new Promise(u=>{var d;r.onended=()=>{var y;(y=a)==null||y("\u{1F513} Silent scratch buffer playback completed"),u();},(d=a)==null||d("\u{1F513} Starting silent scratch buffer playback..."),r.start(0);}),this.isUnlocked=true,(w=a)==null||w("\u2705 Audio successfully unlocked");}catch(m){(b$1=a)==null||b$1(`\u274C Failed to unlock audio (attempt ${this.unlockAttempts}/${this.MAX_UNLOCK_ATTEMPTS}): ${m}`);}finally{this.unlockPromise=null;}})(),await this.unlockPromise;}get unlocked(){return this.isUnlocked}dispose(){this.streamAudioElement&&(this.streamAudioElement.removeEventListener("error",this.handlerStreamAudioElementError),this.streamAudioElement.removeEventListener("pause",this.handlerStreamAudioElementPause),this.streamAudioElement.pause(),this.streamAudioElement.srcObject=null,this.streamAudioElement=null),this.audioContext&&this.audioContext.state!=="closed"&&typeof this.audioContext.close=="function"&&this.audioContext.close(),this.audioContext=null,this.isUnlocked=false,this.unlockPromise=null,this.unlockAttempts=0,this.mediaStreamDestination=null;}};export{p as a,M as b,P as c};
@@ -1 +0,0 @@
1
- function e(n){if(!n)return false;try{return n.cancel(),true}catch{return false}}async function t(n){if(n)try{await n.finished;}catch{}}export{e as a,t as b};