@incodetech/core 2.4.0-rc.0 → 2.4.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/{BaseWasmProvider-BL9wIRnN.d.ts → BaseWasmProvider-Bq3OHo7P.d.ts} +2 -2
  2. package/dist/BrowserDiagnosticsEnvelopeProvider-BQca6KPG.esm.js +43 -0
  3. package/dist/{FaceDetectionProvider-BjTer9h3.esm.js → FaceDetectionProvider-BIImDZrc.esm.js} +10 -11
  4. package/dist/{IIdCaptureCapability-DBsv9-7M.d.ts → IIdCaptureCapability-CGcEt2Cw.d.ts} +2 -2
  5. package/dist/{IWasmUtilCapability-CPX0RGdQ.d.ts → IWasmUtilCapability-GF2n7sfm.d.ts} +2 -2
  6. package/dist/{StreamCanvasCapture-DVmzJux5.d.ts → StreamCanvasCapture-7JRf-2ck.d.ts} +2 -2
  7. package/dist/{WasmUtilProvider-CIdnE7Fx.esm.js → WasmUtilProvider-DtJuBdt-.esm.js} +18 -5
  8. package/dist/{addressSearch-BiYZjvp3.esm.js → addressSearch-DPjIKJrX.esm.js} +1 -2
  9. package/dist/ae-signature.esm.js +1 -1
  10. package/dist/antifraud.esm.js +2 -2
  11. package/dist/{antifraudManager-HL08jeDX.esm.js → antifraudManager-CaweCYnY.esm.js} +2 -2
  12. package/dist/{antifraudStateMachine-DoJVzblM.esm.js → antifraudStateMachine-DRl0UVyA.esm.js} +1 -2
  13. package/dist/{endpoints-DHzlkQNe.esm.js → api-Cz90EHyu.esm.js} +149 -1
  14. package/dist/{apiError-DcSWedC6.esm.js → apiError-D5u6HIDG.esm.js} +1 -1
  15. package/dist/authentication.d.ts +3 -3
  16. package/dist/authentication.esm.js +2 -2
  17. package/dist/{authenticationManager-CANv5-W5.d.ts → authenticationManager-BIZC55Bi.d.ts} +1 -1
  18. package/dist/{authenticationManager-SaiAxqvS.esm.js → authenticationManager-CB3YW6EK.esm.js} +5 -5
  19. package/dist/{authenticationStateMachine-CHSxmV7z.esm.js → authenticationStateMachine-BJJhLmdH.esm.js} +3 -3
  20. package/dist/avatar.d.ts +1 -1
  21. package/dist/camera.esm.js +1 -1
  22. package/dist/certificate-issuance.esm.js +2 -2
  23. package/dist/{certificateIssuanceManager-CMg4SgL4.esm.js → certificateIssuanceManager-BfeMv2PU.esm.js} +2 -2
  24. package/dist/{certificateIssuanceStateMachine-Cs64QmYH.esm.js → certificateIssuanceStateMachine-Frgjbjw8.esm.js} +1 -2
  25. package/dist/consent.d.ts +1 -1
  26. package/dist/consent.esm.js +2 -2
  27. package/dist/{consentManager-CjrxY737.esm.js → consentManager-CvEu8h_W.esm.js} +2 -2
  28. package/dist/{consentManager-DgzWQpAR.d.ts → consentManager-Cv_0QKLD.d.ts} +9 -9
  29. package/dist/{consentStateMachine-BCj5Jb3g.esm.js → consentStateMachine-DJTgN_-1.esm.js} +1 -2
  30. package/dist/{createCameraCycleOwnership-kdlhkmmY.esm.js → createCameraCycleOwnership-Dj_LHUvN.esm.js} +2 -3
  31. package/dist/{createFaceAvatar-DXgmQmQy.d.ts → createFaceAvatar-lYX0VTYs.d.ts} +1 -1
  32. package/dist/cross-document-data-match.esm.js +1 -1
  33. package/dist/{crossDocumentDataMatchManager-BHnGRsto.esm.js → crossDocumentDataMatchManager-Cu141CE8.esm.js} +2 -3
  34. package/dist/curp-validation.d.ts +1 -1
  35. package/dist/curp-validation.esm.js +2 -2
  36. package/dist/{curpValidationManager-DBNIn8BF.esm.js → curpValidationManager-B-z9q5V3.esm.js} +2 -2
  37. package/dist/{curpValidationManager-B-1EZbP_.d.ts → curpValidationManager-C9sqoh9n.d.ts} +1 -1
  38. package/dist/{curpValidationStateMachine-DAxImy8p.esm.js → curpValidationStateMachine-vDEFLMPw.esm.js} +1 -2
  39. package/dist/custom-fields.esm.js +1 -1
  40. package/dist/custom-watchlist.esm.js +2 -2
  41. package/dist/{customFieldsManager-BV6UyLFV.esm.js → customFieldsManager-D1ex2cFM.esm.js} +2 -3
  42. package/dist/{customWatchlistManager-DML0UPzf.esm.js → customWatchlistManager-CTI-SGk0.esm.js} +2 -2
  43. package/dist/{customWatchlistStateMachine-D9gI5uu7.esm.js → customWatchlistStateMachine-hmRd0f2I.esm.js} +1 -2
  44. package/dist/{deepsightLoader-DvfAYnzg.esm.js → deepsightLoader-DZMdYSl-.esm.js} +6 -6
  45. package/dist/{deepsightService-DLGO9yv1.esm.js → deepsightService-tGP53cSS.esm.js} +3 -3
  46. package/dist/document-capture.esm.js +2 -2
  47. package/dist/{documentCaptureManager-C9XUnYU6.esm.js → documentCaptureManager-DUJwpKC5.esm.js} +2 -2
  48. package/dist/{documentCaptureStateMachine-BHDsCfhL.esm.js → documentCaptureStateMachine-B8i7GnLh.esm.js} +3 -4
  49. package/dist/dynamic-forms.esm.js +2 -2
  50. package/dist/{dynamicFormsManager-5uIXobxi.esm.js → dynamicFormsManager-Bxmv_9PB.esm.js} +2 -2
  51. package/dist/{dynamicFormsStateMachine-DQmok084.esm.js → dynamicFormsStateMachine-CoOWTzyM.esm.js} +2 -3
  52. package/dist/ekyb.d.ts +1 -1
  53. package/dist/ekyb.esm.js +3 -3
  54. package/dist/{ekybManager-CazShiQz.esm.js → ekybManager-BBkdPxUY.esm.js} +2 -2
  55. package/dist/{ekybStateMachine-hstiCNmW.esm.js → ekybStateMachine-n4Iz9iLc.esm.js} +3 -4
  56. package/dist/ekyc.esm.js +2 -2
  57. package/dist/{ekycManager-BdJRUsz0.esm.js → ekycManager-BO-Lui3t.esm.js} +2 -2
  58. package/dist/{ekycStateMachine-x6Klot8g.esm.js → ekycStateMachine-CDnI_NRq.esm.js} +2 -3
  59. package/dist/electronic-signature.esm.js +1 -1
  60. package/dist/{electronicSignatureManager-Bc8spG8p.esm.js → electronicSignatureManager-BtWCrz5_.esm.js} +3 -4
  61. package/dist/email.esm.js +2 -2
  62. package/dist/{emailManager-CtlKRRaR.esm.js → emailManager-ButFktRm.esm.js} +2 -2
  63. package/dist/{emailStateMachine-5Neq3rE5.esm.js → emailStateMachine-BXtlC0NV.esm.js} +1 -2
  64. package/dist/{events-CAgFE-k3.esm.js → events-Du2A4-Qr.esm.js} +184 -1
  65. package/dist/events.esm.js +1 -1
  66. package/dist/extensibility.d.ts +14 -14
  67. package/dist/extensibility.esm.js +34 -34
  68. package/dist/face-match.esm.js +2 -2
  69. package/dist/{faceCaptureManagerFactory-jKQ2QtY-.d.ts → faceCaptureManagerFactory-1hzeS_rB.d.ts} +7 -7
  70. package/dist/{faceCaptureManagerFactory-uFm1AcaY.esm.js → faceCaptureManagerFactory-CwZUeYfq.esm.js} +4 -4
  71. package/dist/{faceCaptureSetup-Cu2wabzo.esm.js → faceCaptureSetup-CYbdKNlI.esm.js} +14 -10
  72. package/dist/{faceMatchManager-9Nj9aPci.esm.js → faceMatchManager-DWFUQjMQ.esm.js} +2 -2
  73. package/dist/{faceMatchStateMachine-B9ZUnlyU.esm.js → faceMatchStateMachine-CUCvlydD.esm.js} +1 -2
  74. package/dist/{feature-management-BTbYruNe.esm.js → feature-management-rTfjzdDa.esm.js} +1 -1
  75. package/dist/feature-management.esm.js +1 -1
  76. package/dist/field-comparison.esm.js +1 -1
  77. package/dist/{fieldComparisonManager-Dk38hXZP.esm.js → fieldComparisonManager-v3knTYV_.esm.js} +2 -3
  78. package/dist/fiscal-qr.esm.js +1 -1
  79. package/dist/{fiscalQrManager-DmBkQfs0.esm.js → fiscalQrManager-Dt9fHG7h.esm.js} +3 -3
  80. package/dist/flow-events.d.ts +1 -1
  81. package/dist/flow.d.ts +6 -6
  82. package/dist/flow.esm.js +4 -4
  83. package/dist/{flowCompletionService-xnn_SlJU.esm.js → flowCompletionService-oiK1PjPr.esm.js} +2 -3
  84. package/dist/{flowServices-DA64AEZC.esm.js → flowServices-CTc-zqfN.esm.js} +6 -7
  85. package/dist/geolocation.esm.js +2 -2
  86. package/dist/{geolocationManager-CqNLY45e.esm.js → geolocationManager-BOdtVuR8.esm.js} +2 -2
  87. package/dist/{geolocationStateMachine-D-cQi7ar.esm.js → geolocationStateMachine-BnGuZ3hn.esm.js} +2 -3
  88. package/dist/government-validation.esm.js +2 -2
  89. package/dist/{governmentValidationManager-CP0SiOOe.esm.js → governmentValidationManager-BtXWHICu.esm.js} +2 -2
  90. package/dist/{governmentValidationStateMachine-C3YQ8yCZ.esm.js → governmentValidationStateMachine-COL-Vs48.esm.js} +1 -2
  91. package/dist/home.d.ts +1 -1
  92. package/dist/home.esm.js +1 -1
  93. package/dist/http.esm.js +1 -1
  94. package/dist/id-ocr.d.ts +1 -1
  95. package/dist/id-ocr.esm.js +2 -2
  96. package/dist/id-selfie-flow.d.ts +3 -3
  97. package/dist/id-selfie-flow.esm.js +9 -9
  98. package/dist/id-verification.esm.js +2 -2
  99. package/dist/id.d.ts +3 -3
  100. package/dist/id.esm.js +3 -3
  101. package/dist/{idCaptureDefaults-CBg73RnV.esm.js → idCaptureDefaults-BGsG2OAs.esm.js} +3 -4
  102. package/dist/{idCaptureManager-BY97SRCV.d.ts → idCaptureManager-0M02hSuC.d.ts} +7 -7
  103. package/dist/{idCaptureManager-D4V8vXtY.esm.js → idCaptureManager-BKedt48Y.esm.js} +7 -7
  104. package/dist/{idCaptureServices-DJ33k3-p.esm.js → idCaptureServices-D0p_RFqk.esm.js} +6 -7
  105. package/dist/{idCaptureStateMachine-PJt0yzom.esm.js → idCaptureStateMachine-CxwoN5ff.esm.js} +22 -19
  106. package/dist/{idOcrManager-DxoCesYP.esm.js → idOcrManager-D3-HNMXP.esm.js} +2 -2
  107. package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
  108. package/dist/{idOcrStateMachine-kPn7DB2I.esm.js → idOcrStateMachine-DyENX6Ki.esm.js} +1 -2
  109. package/dist/{idVerificationManager-CDhRUU5n.esm.js → idVerificationManager-iWz7Avkr.esm.js} +2 -2
  110. package/dist/{idVerificationStateMachine-0HTVVxse.esm.js → idVerificationStateMachine-CL1kUdBe.esm.js} +1 -2
  111. package/dist/identity-reuse.d.ts +1 -1
  112. package/dist/identity-reuse.esm.js +2 -2
  113. package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-B1birg5X.d.ts} +4 -4
  114. package/dist/{identityReuseManager-BleUi6TK.esm.js → identityReuseManager-CD1ucp1d.esm.js} +2 -2
  115. package/dist/{identityReuseStateMachine-BrBUpfn5.esm.js → identityReuseStateMachine-DfV81wQC.esm.js} +1 -2
  116. package/dist/{index-DfEuu-Ew.d.ts → index-CKQ9QBZP.d.ts} +1 -1
  117. package/dist/index.d.ts +1 -1
  118. package/dist/index.esm.js +1 -1
  119. package/dist/{invokeOnCaptureCallback-BW7V3vub.esm.js → invokeOnCaptureCallback-DYrkOXO6.esm.js} +1 -1
  120. package/dist/mandatory-consent.d.ts +2 -2
  121. package/dist/mandatory-consent.esm.js +2 -2
  122. package/dist/{mandatoryConsentManager-CX_Dyht7.esm.js → mandatoryConsentManager-Cwqx1nK7.esm.js} +2 -2
  123. package/dist/{mandatoryConsentManager-TkX57U6f.d.ts → mandatoryConsentManager-okPILEru.d.ts} +6 -6
  124. package/dist/{mandatoryConsentStateMachine-CoaSB7P7.esm.js → mandatoryConsentStateMachine-pXWqAHo_.esm.js} +1 -2
  125. package/dist/{multipartRecordingService-DbeQpXdU.esm.js → multipartRecordingService-CLwrF5wD.esm.js} +1 -2
  126. package/dist/{permissionGuards-Bf4LbHjC.esm.js → permissionGuards-gcy3U0SL.esm.js} +1 -1
  127. package/dist/{permissionServices-d2UW0r_L.esm.js → permissionServices-Ca-tSNhT.esm.js} +1 -1
  128. package/dist/phone.esm.js +2 -2
  129. package/dist/{phoneManager-BGBcpqsk.esm.js → phoneManager-KKUq-Vgo.esm.js} +2 -2
  130. package/dist/{phoneStateMachine-CEm2y7yG.esm.js → phoneStateMachine-D2QWS2cu.esm.js} +1 -2
  131. package/dist/qe-signature.esm.js +1 -1
  132. package/dist/redirect-to-mobile.esm.js +2 -2
  133. package/dist/{redirectToMobileManager-B1yQHFLu.esm.js → redirectToMobileManager-uHW3dyuQ.esm.js} +2 -2
  134. package/dist/{redirectToMobileStateMachine--Sr9NEVT.esm.js → redirectToMobileStateMachine-b-H-ipGM.esm.js} +1 -2
  135. package/dist/{runChildModule-vdxQMCmO.esm.js → runChildModule-CPa0i2_C.esm.js} +2 -2
  136. package/dist/{sdkVersion-F5YZbjip.esm.js → sdkVersion-BtROs6OA.esm.js} +1 -1
  137. package/dist/selfie.d.ts +4 -4
  138. package/dist/selfie.esm.js +10 -10
  139. package/dist/{selfieErrorUtils-D-tsgEuX.esm.js → selfieErrorUtils-sMc0MaNh.esm.js} +1 -1
  140. package/dist/{selfieManager-1J0IEyFq.d.ts → selfieManager-BJdNu_nd.d.ts} +1 -1
  141. package/dist/{selfieManager-26pENXxw.esm.js → selfieManager-Ch9xJbWJ.esm.js} +5 -5
  142. package/dist/{selfieStateMachine-BhfKsl3I.esm.js → selfieStateMachine-DT8QCfKR.esm.js} +3 -3
  143. package/dist/{session-Bu7djCsj.esm.js → session-CNNTckUS.esm.js} +4 -5
  144. package/dist/session.d.ts +1 -1
  145. package/dist/session.esm.js +5 -5
  146. package/dist/{sessionInitializer-jxbfCnE-.esm.js → sessionInitializer-DVWMJh25.esm.js} +7 -8
  147. package/dist/{setup-C38QkrSP.esm.js → setup-B7ehQ-lf.esm.js} +93 -198
  148. package/dist/{setup-lgkQ8dJW.d.ts → setup-YPKTUCY5.d.ts} +23 -5
  149. package/dist/signature.esm.js +2 -2
  150. package/dist/{signatureManager-qqXyH93e.esm.js → signatureManager-f_dPAGXn.esm.js} +2 -2
  151. package/dist/{signatureStateMachine-BkRSrkKp.esm.js → signatureStateMachine-C-nUq_oq.esm.js} +1 -2
  152. package/dist/{stats-DmG_tkGk.esm.js → stats-BEvexnKC.esm.js} +1 -2
  153. package/dist/stats.esm.js +1 -1
  154. package/dist/{trueSightService-BWgRVGIT.esm.js → trueSightService-BzLdXpmJ.esm.js} +914 -225
  155. package/dist/trust-graph.esm.js +1 -1
  156. package/dist/{types-BGXxRwQM.d.ts → types-B6HsSzpk.d.ts} +1 -1
  157. package/dist/{types-CyPUIpzf.d.ts → types-BAxn7MpY.d.ts} +5 -5
  158. package/dist/{types-DTYr9pCB.d.ts → types-CK8Jbjkp.d.ts} +1 -1
  159. package/dist/{types-BvFmYX5c.d.ts → types-Ckir_BEs.d.ts} +1 -1
  160. package/dist/{types-zpO4fU6a.d.ts → types-yPH8lAH-.d.ts} +3 -3
  161. package/dist/types-zOgZqMni.d.ts +6 -0
  162. package/dist/video-selfie.d.ts +3 -3
  163. package/dist/video-selfie.esm.js +6 -7
  164. package/dist/{videoSelfieCameraWarmer-C366RKqu.esm.js → videoSelfieCameraWarmer-DWoFBJAn.esm.js} +7 -8
  165. package/dist/{videoSelfieStepDetector-C5QHOvWb.d.ts → videoSelfieStepDetector-CGsTltqB.d.ts} +4 -4
  166. package/dist/{warmup-DMtbyb2l.esm.js → warmup-BElYWRh7.esm.js} +322 -3
  167. package/dist/{warmup-BUPPRAA1.d.ts → warmup-BO57syF6.d.ts} +1 -0
  168. package/dist/wasm.d.ts +2 -2
  169. package/dist/wasm.esm.js +3 -4
  170. package/dist/{wasmDsFlagSync-BXCGqP48.esm.js → wasmDsFlagSync-CYj5LL9z.esm.js} +1 -1
  171. package/dist/{wasmWebClient-kbYZ2sxw.esm.js → wasmWebClient-BjZw_7OB.esm.js} +315 -17
  172. package/dist/watchlist-for-business.esm.js +2 -2
  173. package/dist/watchlist.esm.js +2 -2
  174. package/dist/{watchlistForBusinessManager-BvF4jK3S.esm.js → watchlistForBusinessManager-CZZOFkGl.esm.js} +2 -2
  175. package/dist/{watchlistForBusinessStateMachine-121XK-Et.esm.js → watchlistForBusinessStateMachine-B66E7jud.esm.js} +1 -2
  176. package/dist/{watchlistManager-CNWEOYSq.esm.js → watchlistManager-DXtX94SN.esm.js} +2 -2
  177. package/dist/{watchlistStateMachine-Dgfm42w2.esm.js → watchlistStateMachine-McALifag.esm.js} +1 -2
  178. package/dist/workflow.d.ts +1 -1
  179. package/dist/workflow.esm.js +35 -36
  180. package/package.json +2 -2
  181. package/dist/BrowserDiagnosticsCryptoProvider-BuzqvbhN.esm.js +0 -77
  182. package/dist/api-Bx3gKW_y.esm.js +0 -129
  183. package/dist/types-C71Zo6vl.d.ts +0 -6
@@ -1,4 +1,4 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
2
2
  import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  //#region src/modules/trust-graph/trustGraphStateMachine.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { s as RiskAddon } from "./types-BvLo3U4u.js";
2
- import "./createFaceAvatar-DXgmQmQy.js";
2
+ import "./createFaceAvatar-lYX0VTYs.js";
3
3
  //#region src/internal/avatar/concealment.d.ts
4
4
  /**
5
5
  * Backend-aligned selfie/auth face-concealment options. The backend returns a
@@ -1,10 +1,10 @@
1
- import { y as IncodeCanvas } from "./createFaceAvatar-DXgmQmQy.js";
2
- import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BGXxRwQM.js";
3
- import { a as IStorageCapability } from "./IWasmUtilCapability-CPX0RGdQ.js";
1
+ import { y as IncodeCanvas } from "./createFaceAvatar-lYX0VTYs.js";
2
+ import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-B6HsSzpk.js";
3
+ import { a as IStorageCapability } from "./IWasmUtilCapability-GF2n7sfm.js";
4
4
  import { t as PermissionResult } from "./types-BEwVKkLJ.js";
5
- import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-DVmzJux5.js";
5
+ import { n as DeepsightService, t as StreamCanvasCapture } from "./StreamCanvasCapture-7JRf-2ck.js";
6
6
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
7
- import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
7
+ import { i as Pdf417DecodeResult, n as IIdCaptureCapability, r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
8
8
  //#region ../infra/src/capabilities/IDigitalCredentialsCapability.d.ts
9
9
  /**
10
10
  * Digital Credentials capability — wraps the W3C Digital Credentials API
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-BGXxRwQM.js";
1
+ import { a as RegulationTypes } from "./types-B6HsSzpk.js";
2
2
  //#region src/internal/fingerprint/types.d.ts
3
3
  type DeviceFingerprintResult = {
4
4
  success: boolean;
@@ -1,4 +1,4 @@
1
- import { a as RegulationTypes } from "./types-BGXxRwQM.js";
1
+ import { a as RegulationTypes } from "./types-B6HsSzpk.js";
2
2
  //#region src/modules/mandatory-consent/types.d.ts
3
3
  type RegulatoryConsentType = 'MANDATORY' | 'ML';
4
4
  type MandatoryConsentConfig = {
@@ -1,6 +1,6 @@
1
- import { a as AvatarAssetsOverrides } from "./createFaceAvatar-DXgmQmQy.js";
2
- import { n as Flow, s as SelfieConcealmentOption } from "./types-BGXxRwQM.js";
3
- import { a as IStorageCapability, n as IWasmUtilCapability } from "./IWasmUtilCapability-CPX0RGdQ.js";
1
+ import { a as AvatarAssetsOverrides } from "./createFaceAvatar-lYX0VTYs.js";
2
+ import { n as Flow, s as SelfieConcealmentOption } from "./types-B6HsSzpk.js";
3
+ import { a as IStorageCapability, n as IWasmUtilCapability } from "./IWasmUtilCapability-GF2n7sfm.js";
4
4
  //#region src/internal/faceCapture/types.d.ts
5
5
  type CameraResolution = {
6
6
  width?: number;
@@ -0,0 +1,6 @@
1
+ import { i as FlowModuleConfig } from "./types-B6HsSzpk.js";
2
+ import { t as BaseFaceCaptureConfig } from "./types-yPH8lAH-.js";
3
+ //#region src/modules/authentication/types.d.ts
4
+ type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
5
+ //#endregion
6
+ export { AuthenticationConfig as t };
@@ -1,11 +1,11 @@
1
- import { c as WasmPipeline } from "./warmup-BUPPRAA1.js";
1
+ import { c as WasmPipeline } from "./warmup-BO57syF6.js";
2
2
  import { A as StateMachine, _ as MachineContext, c as AnyEventObject, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
3
3
  import { t as Manager } from "./Manager-C9T5amUN.js";
4
4
  import "./Actor-DpTj5PFb.js";
5
5
  import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
6
6
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
7
- import { t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
8
- import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-C5QHOvWb.js";
7
+ import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
8
+ import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-CGsTltqB.js";
9
9
  //#region ../infra/src/capabilities/ITimerCapability.d.ts
10
10
  type TimerHandle = ReturnType<typeof setTimeout>;
11
11
  type ITimerCapability = {
@@ -1,16 +1,15 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
2
- import { t as api } from "./api-Bx3gKW_y.esm.js";
3
- import { t as ensureWasmPipelines } from "./setup-C38QkrSP.esm.js";
4
- import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
1
+ import { t as ensureWasmPipelines } from "./setup-B7ehQ-lf.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
3
+ import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
5
4
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
6
5
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
7
- import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-DA64AEZC.esm.js";
6
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps, p as videoSelfieWasmPipelines } from "./flowServices-CTc-zqfN.esm.js";
8
7
  import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
9
8
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
10
9
  import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
11
- import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-DbeQpXdU.esm.js";
10
+ import { i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-CLwrF5wD.esm.js";
12
11
  import { t as VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE } from "./advanceableErrors-q_pfU3Cn.esm.js";
13
- import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-C366RKqu.esm.js";
12
+ import { a as isConnectionError, n as defaultAcquireCamera, r as createDefaultStepDetector, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-DWoFBJAn.esm.js";
14
13
  import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
15
14
  //#region ../../node_modules/.pnpm/audio-recorder-polyfill@0.4.1/node_modules/audio-recorder-polyfill/wave-encoder/index.js
16
15
  var wave_encoder_default = () => {
@@ -1,15 +1,14 @@
1
- import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
1
+ import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
3
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
- import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-DA64AEZC.esm.js";
3
+ import { d as facingModeForStep, f as resolveVideoSelfieSteps } from "./flowServices-CTc-zqfN.esm.js";
5
4
  import { a as requestCameraWithFallback, i as requestCameraAccess } from "./camera-sIa9ceW2.esm.js";
6
- import { t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
7
- import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-BjTer9h3.esm.js";
8
- import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-DbeQpXdU.esm.js";
5
+ import { t as checkPermission } from "./permissionServices-Ca-tSNhT.esm.js";
6
+ import { c as processFace, d as FACE_ERROR_CODES, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-BIImDZrc.esm.js";
7
+ import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CLwrF5wD.esm.js";
9
8
  import { n as getBackCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
10
9
  import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
11
- import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-D-tsgEuX.esm.js";
12
- import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CBg73RnV.esm.js";
10
+ import { t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-sMc0MaNh.esm.js";
11
+ import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-BGsG2OAs.esm.js";
13
12
  import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
14
13
  //#region src/modules/video-selfie/videoSelfieCompareService.ts
15
14
  async function postVideoSelfieCompare(endpoint, base64Image) {
@@ -1,8 +1,8 @@
1
- import { i as FlowModuleConfig } from "./types-BGXxRwQM.js";
2
- import "./IWasmUtilCapability-CPX0RGdQ.js";
3
- import { n as DetectionStatus } from "./types-zpO4fU6a.js";
1
+ import { i as FlowModuleConfig } from "./types-B6HsSzpk.js";
2
+ import "./IWasmUtilCapability-GF2n7sfm.js";
3
+ import { n as DetectionStatus } from "./types-yPH8lAH-.js";
4
4
  import { t as CameraStream } from "./camera-9wWD-pwg.js";
5
- import { t as DetectionOrientation } from "./IIdCaptureCapability-DBsv9-7M.js";
5
+ import { t as DetectionOrientation } from "./IIdCaptureCapability-CGcEt2Cw.js";
6
6
  //#region src/modules/video-selfie/types.d.ts
7
7
  /**
8
8
  * The capture steps a Video Selfie session can run, in flow order. Which steps
@@ -1,4 +1,5 @@
1
- import { _ as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, b as resolveWasmSource, d as SemaphoreProvider, h as WASM_PIPELINE_MODELS, l as loadWasmModule, n as createWebApiHostAdapter, p as WASM_MODEL_FILES, u as acquireWasmStorageFallback, v as buildModelVariantSources, x as reportWasmIntegritySummary, y as missingWasmModelError } from "./wasmWebClient-kbYZ2sxw.esm.js";
1
+ import { A as buildModelVariantSources, C as isDefaultCdnWasmConfig, D as WASM_PIPELINE_MODELS, M as resolveWasmSource, N as reportWasmIntegritySummary, T as WASM_MODEL_FILES, f as rearmWasmCallDiagnostics, g as emitWasmDiagnostic, h as acquireWasmStorageFallback, j as missingWasmModelError, k as WASM_PIPELINE_OPTIONAL_MODEL_NAMES, l as notePipelineStatePulled, m as loadWasmModule, n as createWebApiHostAdapter, p as resetWasmCallDiagnostics, v as SemaphoreProvider, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-BjZw_7OB.esm.js";
2
+ import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
3
  //#region ../infra/src/wasm/wasmEnumMaps.ts
3
4
  function pipelineTypeToWasmEnum(wasmModule, type) {
4
5
  switch (type) {
@@ -45,6 +46,280 @@ function idCaptureModelTypeFromWasmEnum(wasmModule, type) {
45
46
  }
46
47
  }
47
48
  //#endregion
49
+ //#region ../infra/src/wasm/diagnosticsSink.ts
50
+ /**
51
+ * Receiver for the in-binary TrueSight diagnostics sensor (ENG-48677 WS2,
52
+ * ml-wasm-kit #569, shipped in v2.14.52).
53
+ *
54
+ * Seam contract v1: the kit calls the sink SYNCHRONOUSLY from C++ call sites
55
+ * with a JSON string
56
+ * `{"v":1,"tLast":<elapsedMs>,"entries":[{t,l,c,sub,msg,n}]}`
57
+ * where `t`/`tLast` share the kit logger's start-time anchor, `l` is
58
+ * `"E"|"W"|"I"`, and the tag is split into `c`/`sub` on its first dot. The
59
+ * handler is enqueue-only: it never calls back into WASM and never throws
60
+ * into the kit (the SDK registers on the raw embind handle, so the kit's own
61
+ * JS wrapper guard does not apply).
62
+ *
63
+ * The mode is a property of the binary, detected at install:
64
+ * - `sink` — `setDiagnosticsSink` exists (v2.14.52+): batches are pushed,
65
+ * and finalize drains the unsent tail via `drainDiagnostics`.
66
+ * - `fallback` — only `getAppLogs` exists (the pinned v2.14.50-post1): the
67
+ * plain-text `ClientLogger::render()` grammar (optional leading
68
+ * `... <k> dropped`, then `+<elapsedMs> <E|W|I> <tag>: <msg>[ (xN)]`) is
69
+ * parsed at finalize. Nothing in v2.14.50-post1 writes that logger, so in
70
+ * practice it is empty until the bump.
71
+ * - `none` — neither binding.
72
+ * No TrueSight change is needed when `DEFAULT_WASM_VERSION` moves past the
73
+ * sensor release: the next install simply detects `sink`.
74
+ */
75
+ const SUBSYSTEM_MAX_CHARS = 40;
76
+ const LAST_ERROR_CLAMP_CHARS = 300;
77
+ /** Below this parsed/candidate ratio the fallback degrades to count + last error. */
78
+ const FALLBACK_MIN_PARSE_RATIO = .7;
79
+ /** Anchor sanity bound: computed times further out than this use receipt time. */
80
+ const MAX_CLOCK_SKEW_MS = 1440 * 60 * 1e3;
81
+ const APP_LOGS_DROPPED_RE = /^\.\.\. (\d+) dropped$/;
82
+ const APP_LOGS_LINE_RE = /^\+(\d+) ([EWI]) (.+?): (.*)$/;
83
+ const DEDUP_SUFFIX_RE = / \(x(\d+)\)$/;
84
+ /**
85
+ * Kit tag (`c.sub`) → TrueSight category. The kit's tag vocabulary is its
86
+ * own (`camera.cycle`, `pipeline.core`, `bridge`, …), so only the
87
+ * capture-pipeline tags map to a scan category; everything else is `other`.
88
+ */
89
+ const KIT_TAG_CATEGORIES = {
90
+ "pipeline.id": "idScan",
91
+ "pipeline.barcode": "idScan",
92
+ "pipeline.face": "faceScan",
93
+ "pipeline.selfie": "faceScan",
94
+ "pipeline.liveness": "faceScan"
95
+ };
96
+ /** The kit's eviction marker: `{c:"diag",sub:"logger",msg:"dropped",n:k}`. */
97
+ const DROPPED_SUBSYSTEM = "diag.logger";
98
+ let mode = null;
99
+ let boundApi = null;
100
+ let sessionEpochMs = null;
101
+ let lastSeenRelativeMs = 0;
102
+ /** Fallback: `getAppLogs` re-renders the whole ring, so emit only newer lines. */
103
+ let fallbackWatermarkMs = -1;
104
+ let unsupportedVersionNoted = false;
105
+ let batchParseFailureNoted = false;
106
+ /** Drains run at every snapshot rebuild, so the degraded note is per session. */
107
+ let fallbackDegradedNoted = false;
108
+ function toCategory(category, sub) {
109
+ return KIT_TAG_CATEGORIES[`${category}.${sub}`] ?? "other";
110
+ }
111
+ function toLevel(value) {
112
+ switch (value) {
113
+ case "E": return "error";
114
+ case "W": return "warning";
115
+ case "I": return "info";
116
+ default: return "debug";
117
+ }
118
+ }
119
+ /** The `wasm.` prefix comes from the core handler; this builds the dotted tail. */
120
+ function toSubsystem(category, sub) {
121
+ const cleaned = `${category}${sub !== "" ? `.${sub}` : ""}`.replace(/[^\w.-]/g, "").slice(0, SUBSYSTEM_MAX_CHARS);
122
+ return cleaned === "" ? "kit" : cleaned;
123
+ }
124
+ function absoluteTimestampMs(relativeMs, receivedAtMs) {
125
+ if (sessionEpochMs === null || !Number.isFinite(relativeMs)) return receivedAtMs;
126
+ const computed = sessionEpochMs + relativeMs;
127
+ if (computed > receivedAtMs || receivedAtMs - computed > MAX_CLOCK_SKEW_MS) return receivedAtMs;
128
+ return computed;
129
+ }
130
+ function emitKitEntry(level, category, sub, message, count, timestampMs) {
131
+ const subsystem = toSubsystem(category, sub);
132
+ const dropped = subsystem === DROPPED_SUBSYSTEM && message === "dropped";
133
+ emitWasmDiagnostic({
134
+ level,
135
+ subsystem,
136
+ category: toCategory(category, sub),
137
+ message: dropped ? `dropped entries=${count}` : count > 1 ? `${message} (x${count})` : message,
138
+ timestampMs
139
+ });
140
+ }
141
+ function processBatch(batch, receivedAtMs) {
142
+ if (typeof batch !== "string" || batch === "") return;
143
+ let decoded;
144
+ try {
145
+ decoded = JSON.parse(batch);
146
+ } catch {
147
+ if (!batchParseFailureNoted) {
148
+ batchParseFailureNoted = true;
149
+ emitWasmDiagnostic({
150
+ level: "warning",
151
+ subsystem: "sink",
152
+ category: "other",
153
+ message: `batch parse failed len=${batch.length}`
154
+ });
155
+ }
156
+ return;
157
+ }
158
+ if (decoded === null || typeof decoded !== "object") return;
159
+ const record = decoded;
160
+ if (record.v !== 1) {
161
+ if (!unsupportedVersionNoted) {
162
+ unsupportedVersionNoted = true;
163
+ emitWasmDiagnostic({
164
+ level: "warning",
165
+ subsystem: "sink",
166
+ category: "other",
167
+ message: `unsupported batch v=${String(record.v)}`
168
+ });
169
+ }
170
+ return;
171
+ }
172
+ const tLast = typeof record.tLast === "number" ? record.tLast : 0;
173
+ if (sessionEpochMs === null) sessionEpochMs = receivedAtMs - tLast;
174
+ else if (tLast < lastSeenRelativeMs) {
175
+ sessionEpochMs = receivedAtMs - tLast;
176
+ emitWasmDiagnostic({
177
+ level: "info",
178
+ subsystem: "sink",
179
+ category: "other",
180
+ message: "re-anchored"
181
+ });
182
+ }
183
+ lastSeenRelativeMs = tLast;
184
+ if (!Array.isArray(record.entries)) return;
185
+ for (const raw of record.entries) {
186
+ if (raw === null || typeof raw !== "object") continue;
187
+ const entry = raw;
188
+ const message = typeof entry.msg === "string" ? entry.msg : "";
189
+ if (message === "") continue;
190
+ emitKitEntry(toLevel(entry.l), typeof entry.c === "string" ? entry.c : "", typeof entry.sub === "string" ? entry.sub : "", message, typeof entry.n === "number" && entry.n > 1 ? entry.n : 1, absoluteTimestampMs(typeof entry.t === "number" ? entry.t : NaN, receivedAtMs));
191
+ }
192
+ }
193
+ /** The value handed to the kit's `setDiagnosticsSink` — never throws. */
194
+ function receiveBatch(batch) {
195
+ try {
196
+ processBatch(batch, getTimestamp());
197
+ } catch {}
198
+ }
199
+ function parseAppLogsText(text, receivedAtMs) {
200
+ if (text === "") return;
201
+ const lines = text.split("\n");
202
+ const dropped = lines[0]?.match(APP_LOGS_DROPPED_RE);
203
+ if (dropped) lines.shift();
204
+ const candidates = lines.filter((line) => line !== "");
205
+ const parsed = [];
206
+ for (const line of candidates) {
207
+ const match = line.match(APP_LOGS_LINE_RE);
208
+ if (!match) continue;
209
+ const dedup = match[4].match(DEDUP_SUFFIX_RE);
210
+ parsed.push({
211
+ elapsedMs: Number(match[1]),
212
+ level: toLevel(match[2]),
213
+ tag: match[3],
214
+ message: dedup ? match[4].slice(0, -dedup[0].length) : match[4],
215
+ count: dedup ? Number(dedup[1]) : 1
216
+ });
217
+ }
218
+ const maxElapsedMs = parsed.reduce((max, line) => Math.max(max, line.elapsedMs), 0);
219
+ if (maxElapsedMs < fallbackWatermarkMs) fallbackWatermarkMs = -1;
220
+ const fresh = parsed.filter((line) => line.elapsedMs > fallbackWatermarkMs);
221
+ if (dropped && fresh.length > 0) emitKitEntry("warning", "diag", "logger", "dropped", Number(dropped[1]), receivedAtMs);
222
+ if (candidates.length > 0 && parsed.length / candidates.length < FALLBACK_MIN_PARSE_RATIO) {
223
+ if (fallbackDegradedNoted) return;
224
+ fallbackDegradedNoted = true;
225
+ emitWasmDiagnostic({
226
+ level: "warning",
227
+ subsystem: "sink",
228
+ category: "other",
229
+ message: `fallback drain unparsed lines=${candidates.length} parsed=${parsed.length}`
230
+ });
231
+ const lastError = candidates.filter((line) => /^\+\d+ E /.test(line)).pop();
232
+ if (lastError !== void 0) emitWasmDiagnostic({
233
+ level: "error",
234
+ subsystem: "sink",
235
+ category: "other",
236
+ message: `last error: ${lastError.slice(0, LAST_ERROR_CLAMP_CHARS)}`
237
+ });
238
+ return;
239
+ }
240
+ const drainT0 = receivedAtMs - maxElapsedMs;
241
+ for (const line of fresh) {
242
+ const dotIndex = line.tag.indexOf(".");
243
+ emitKitEntry(line.level, dotIndex === -1 ? line.tag : line.tag.slice(0, dotIndex), dotIndex === -1 ? "" : line.tag.slice(dotIndex + 1), line.message, line.count, drainT0 + line.elapsedMs);
244
+ }
245
+ fallbackWatermarkMs = Math.max(fallbackWatermarkMs, maxElapsedMs);
246
+ }
247
+ function emitModeLine() {
248
+ emitWasmDiagnostic({
249
+ level: "info",
250
+ subsystem: "sink",
251
+ category: "other",
252
+ message: `diagnostics mode=${mode ?? "none"} pinnedVersion=${DEFAULT_WASM_VERSION}`
253
+ });
254
+ }
255
+ /**
256
+ * Feature-detects the binary's diagnostics surface and, in sink mode,
257
+ * registers the push callback. Called from `WasmRuntime.initialize()` right
258
+ * after the UtilityApi exists, so even startup errors are pushed.
259
+ * Re-registering is idempotent on the kit side (a process-wide bridge).
260
+ */
261
+ function installWasmDiagnosticsSink(utilityApi) {
262
+ boundApi = utilityApi;
263
+ if (typeof utilityApi.setDiagnosticsSink === "function") {
264
+ mode = "sink";
265
+ try {
266
+ utilityApi.setDiagnosticsSink(receiveBatch);
267
+ } catch {}
268
+ } else if (typeof utilityApi.getAppLogs === "function") mode = "fallback";
269
+ else mode = "none";
270
+ emitModeLine();
271
+ return mode;
272
+ }
273
+ /**
274
+ * Pulls whatever the kit has not delivered yet into the record. Invoked
275
+ * synchronously by TrueSight before it builds any record — the terminal and
276
+ * every interrupted snapshot — so it runs many times per session and stays
277
+ * idempotent: a drain with nothing new emits nothing. The runtime outlives
278
+ * `reset()`, so it keeps running for every later session on the page.
279
+ *
280
+ * Delivery is at most once. The kit marks entries sent as it hands them
281
+ * over, so nothing is ever duplicated, but a batch the kit pushes while no
282
+ * session collects (between `reset()` and the next `setup()`) is lost, and
283
+ * kit lines logged after a session finalized ride the next session's record.
284
+ */
285
+ function drainWasmDiagnostics() {
286
+ if (boundApi === null) return;
287
+ try {
288
+ if (mode === "sink" && typeof boundApi.drainDiagnostics === "function") processBatch(boundApi.drainDiagnostics(), getTimestamp());
289
+ else if (mode === "fallback" && typeof boundApi.getAppLogs === "function") parseAppLogsText(boundApi.getAppLogs(), getTimestamp());
290
+ } catch {}
291
+ }
292
+ /**
293
+ * Starts a new SDK session's view of an already-running runtime: per-session
294
+ * budgets re-arm, and the mode line is repeated so each record states it.
295
+ * Called from `setup()`; a no-op for the mode line before the first install.
296
+ */
297
+ function rearmWasmDiagnostics() {
298
+ rearmWasmCallDiagnostics();
299
+ unsupportedVersionNoted = false;
300
+ batchParseFailureNoted = false;
301
+ fallbackDegradedNoted = false;
302
+ if (mode !== null) emitModeLine();
303
+ }
304
+ /**
305
+ * Runtime teardown (`WasmRuntime.freeResources()`). The kit's sink stays
306
+ * registered in its process-wide bridge; the next install re-registers it.
307
+ */
308
+ function resetWasmDiagnosticsSink() {
309
+ mode = null;
310
+ boundApi = null;
311
+ sessionEpochMs = null;
312
+ lastSeenRelativeMs = 0;
313
+ fallbackWatermarkMs = -1;
314
+ unsupportedVersionNoted = false;
315
+ batchParseFailureNoted = false;
316
+ fallbackDegradedNoted = false;
317
+ }
318
+ /** The detected mode, or `null` before the runtime installed the receiver. */
319
+ function getWasmDiagnosticsMode() {
320
+ return mode;
321
+ }
322
+ //#endregion
48
323
  //#region ../infra/src/wasm/CameraCycleOwnershipDomain.ts
49
324
  const CAMERA_CYCLE_OWNERSHIP_DOMAIN = Symbol("cameraCycleOwnershipDomain");
50
325
  var CameraCycleOwnershipDomain = class {
@@ -157,6 +432,7 @@ var WasmRuntime = class WasmRuntime {
157
432
  this.workflowApiUtilities = new this.wasmModule.WorkflowApiUtilities();
158
433
  this.utilityApi = new this.wasmModule.UtilityApi();
159
434
  this.utilityApi.setProductionMode(module.showLogs !== true);
435
+ installWasmDiagnosticsSink(this.utilityApi);
160
436
  this.idCaptureWasmApi = new this.wasmModule.IdCaptureApi();
161
437
  this.faceProcessingWasmApi = new this.wasmModule.FaceProcessingApi();
162
438
  this.cameraCycleApi = new this.wasmModule.CameraCycleApi();
@@ -241,6 +517,8 @@ var WasmRuntime = class WasmRuntime {
241
517
  this.pipelines_ = null;
242
518
  this.isInitialized_ = false;
243
519
  if (typeof window !== "undefined") window.wasmArrayBuffer = null;
520
+ resetWasmCallDiagnostics();
521
+ resetWasmDiagnosticsSink();
244
522
  let firstFailure = releaseCameraCycleResources(stream, cameraCycleApi);
245
523
  firstFailure = deleteWasmHandle(firstFailure, modelsBuffers);
246
524
  firstFailure = deleteWasmHandle(firstFailure, workflowApiUtilities);
@@ -354,7 +632,9 @@ var WasmRuntime = class WasmRuntime {
354
632
  this.requireWorkflowApiUtilities(message).initializeWorkflows();
355
633
  }
356
634
  getPipelineState() {
357
- return this.requireWorkflowApiUtilities("Unable to get pipeline state, cpp API hasn't been initialized").getWorkflowState();
635
+ const state = this.requireWorkflowApiUtilities("Unable to get pipeline state, cpp API hasn't been initialized").getWorkflowState();
636
+ notePipelineStatePulled();
637
+ return state;
358
638
  }
359
639
  getCurrentPipeline() {
360
640
  const workflowApiUtilities = this.requireWorkflowApiUtilities("Unable to get current pipeline, cpp API hasn't been initialized");
@@ -485,6 +765,7 @@ let wasmError = null;
485
765
  let loadedPipelines = [];
486
766
  let lastConfig = null;
487
767
  let lastModelVariant = null;
768
+ let warmupFacts = null;
488
769
  let pipelinesInFlight = [];
489
770
  function mapPipelineToWasmType(pipeline) {
490
771
  switch (pipeline) {
@@ -586,6 +867,24 @@ function buildPipelinesMap(pipelines, config) {
586
867
  return pipelinesMap;
587
868
  }
588
869
  /**
870
+ * Row 31 taps (ENG-48677 WS2): every warmup origin — `setup()` pre-warm and
871
+ * the lazy UI init paths — funnels through `warmupWasm`, so start / complete /
872
+ * fail lines here also surface the UI-side `.catch(console.error)` swallows.
873
+ * The pinned version rides in the message: the record has no wire field for
874
+ * it outside `webProfile.wasm`.
875
+ */
876
+ function describeWarmupTarget(pipelines, config) {
877
+ return `pipelines=[${pipelines.join(",")}] basePathPinned=${!isDefaultCdnWasmConfig(config)} pinnedVersion=${DEFAULT_WASM_VERSION}`;
878
+ }
879
+ function emitWarmupLine(level, message) {
880
+ emitWasmDiagnostic({
881
+ level,
882
+ subsystem: "warmup",
883
+ category: "other",
884
+ message
885
+ });
886
+ }
887
+ /**
589
888
  * Preloads WASM binary and ML models at app startup.
590
889
  * Runs asynchronously - app can continue while WASM loads in background.
591
890
  *
@@ -630,6 +929,9 @@ async function warmupWasm(config) {
630
929
  state = "loading";
631
930
  pipelinesInFlight = combinedPipelines;
632
931
  wasmError = null;
932
+ const addTarget = describeWarmupTarget(missingPipelines, lastConfig);
933
+ const addStartedAtMs = getTimestamp();
934
+ emitWarmupLine("debug", `warmup started ${addTarget} mode=add`);
633
935
  loadingPromise = (async () => {
634
936
  try {
635
937
  const pipelinesMap = buildPipelinesMap(missingPipelines, lastConfig);
@@ -642,11 +944,13 @@ async function warmupWasm(config) {
642
944
  pipelines: combinedPipelines
643
945
  };
644
946
  loadingPromise = null;
947
+ emitWarmupLine("debug", `warmup completed ${addTarget} mode=add durationMs=${getTimestamp() - addStartedAtMs}`);
645
948
  } catch (error) {
646
949
  state = "ready";
647
950
  wasmError = error instanceof Error ? error : new Error(String(error));
648
951
  loadingPromise = null;
649
952
  pipelinesInFlight = [];
953
+ emitWarmupLine("error", `warmup failed ${addTarget} mode=add durationMs=${getTimestamp() - addStartedAtMs} error=${String(error)}`);
650
954
  throw wasmError;
651
955
  } finally {
652
956
  reportWasmIntegritySummary();
@@ -657,6 +961,9 @@ async function warmupWasm(config) {
657
961
  state = "loading";
658
962
  pipelinesInFlight = [...pipelines];
659
963
  wasmError = null;
964
+ const target = describeWarmupTarget(pipelines, config);
965
+ const startedAtMs = getTimestamp();
966
+ emitWarmupLine("debug", `warmup started ${target}`);
660
967
  loadingPromise = (async () => {
661
968
  try {
662
969
  const pipelinesMap = buildPipelinesMap(pipelines, config);
@@ -675,12 +982,20 @@ async function warmupWasm(config) {
675
982
  pipelines
676
983
  };
677
984
  loadingPromise = null;
985
+ const durationMs = getTimestamp() - startedAtMs;
986
+ warmupFacts = {
987
+ basePathPinned: !isDefaultCdnWasmConfig(config),
988
+ simd: simdUsed,
989
+ durationMs
990
+ };
991
+ emitWarmupLine("debug", `warmup completed ${target} simd=${simdUsed} durationMs=${durationMs}`);
678
992
  } catch (error) {
679
993
  state = "error";
680
994
  lastModelVariant = null;
681
995
  wasmError = error instanceof Error ? error : new Error(String(error));
682
996
  loadingPromise = null;
683
997
  pipelinesInFlight = [];
998
+ emitWarmupLine("severe", `warmup failed ${target} durationMs=${getTimestamp() - startedAtMs} error=${String(error)}`);
684
999
  throw wasmError;
685
1000
  } finally {
686
1001
  reportWasmIntegritySummary();
@@ -688,6 +1003,10 @@ async function warmupWasm(config) {
688
1003
  })();
689
1004
  return loadingPromise;
690
1005
  }
1006
+ /** The last successful fresh warmup, or `null` before one completed. */
1007
+ function getWarmupFacts() {
1008
+ return warmupFacts;
1009
+ }
691
1010
  /**
692
1011
  * Returns the current warmup status.
693
1012
  * Useful for showing loading indicators.
@@ -734,4 +1053,4 @@ function setWasmOnDeviceMode(enabled) {
734
1053
  wasmRuntime.setOnDeviceMode(enabled);
735
1054
  }
736
1055
  //#endregion
737
- export { waitForWasm as a, CAMERA_CYCLE_OWNERSHIP_DOMAIN as c, setWasmOnDeviceMode as i, getCameraCycleOwnershipDomain as l, getWasmStatus as n, warmupWasm as o, isWasmReady as r, wasmRuntime as s, getResolvedModelSource as t };
1056
+ export { setWasmOnDeviceMode as a, wasmRuntime as c, drainWasmDiagnostics as d, getWasmDiagnosticsMode as f, isWasmReady as i, CAMERA_CYCLE_OWNERSHIP_DOMAIN as l, getWarmupFacts as n, waitForWasm as o, rearmWasmDiagnostics as p, getWasmStatus as r, warmupWasm as s, getResolvedModelSource as t, getCameraCycleOwnershipDomain as u };
@@ -32,6 +32,7 @@ type WasmGlueFactory = (options?: Readonly<{
32
32
  wasmBinary?: Uint8Array;
33
33
  print?: (text: string) => void;
34
34
  printErr?: (text: string) => void;
35
+ onAbort?: (what: unknown) => void;
35
36
  }>) => Promise<WasmModule>;
36
37
  /**
37
38
  * Binary and glue configuration for one WASM module instance.
package/dist/wasm.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BUPPRAA1.js";
2
- import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-lgkQ8dJW.js";
1
+ import { a as WASM_MODEL_FILES, c as WasmPipeline, l as WasmSource, o as WasmGlueLoader, r as warmupWasm, s as WasmModelName, t as WarmupConfig } from "./warmup-BO57syF6.js";
2
+ import { c as setWasmConfig, i as initializeWasmUtil, n as WasmConfig, r as ensureWasmPipelines, s as resolveWasmConfigForPipelines, u as upgradeToWasmHttpClient } from "./setup-YPKTUCY5.js";
3
3
  //#region ../infra/src/wasm/wasmDefaults.d.ts
4
4
  /** The WASM version bundled and tested with this SDK release. */
5
5
  declare const DEFAULT_WASM_VERSION = "v2.14.50-post1";
package/dist/wasm.esm.js CHANGED
@@ -1,7 +1,6 @@
1
- import { g as WASM_PIPELINE_MODEL_NAMES, m as WASM_PIPELINE_LAZY_MODEL_NAMES, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
2
- import { C as DEFAULT_WASM_VERSION, D as resolveWasmConfig, T as buildWasmConfigFromBasePath, w as buildDefaultWasmConfig } from "./trueSightService-BWgRVGIT.esm.js";
3
- import { o as warmupWasm } from "./warmup-DMtbyb2l.esm.js";
4
- import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-C38QkrSP.esm.js";
1
+ import { E as WASM_PIPELINE_LAZY_MODEL_NAMES, O as WASM_PIPELINE_MODEL_NAMES, T as WASM_MODEL_FILES, b as buildDefaultWasmConfig, w as resolveWasmConfig, x as buildWasmConfigFromBasePath, y as DEFAULT_WASM_VERSION } from "./wasmWebClient-BjZw_7OB.esm.js";
2
+ import { s as warmupWasm } from "./warmup-BElYWRh7.esm.js";
3
+ import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-B7ehQ-lf.esm.js";
5
4
  //#region src/defineWasm.ts
6
5
  function requiredModels(pipelines) {
7
6
  const models = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import { i as utilityWasmApi } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
1
+ import { i as utilityWasmApi } from "./WasmUtilProvider-DtJuBdt-.esm.js";
2
2
  //#region ../infra/src/wasm/wasmDsFlagSync.ts
3
3
  /**
4
4
  * Sets the Deepsight (ds) flag that the WASM utility API receives on every