@incodetech/core 2.1.0-rc.2 → 2.1.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/3dAvatarProvider-9zb-7MLE.esm.js +28214 -0
- package/dist/{BrowserStorageProvider-D5xc7Lqo.esm.js → BrowserStorageProvider-CBXGCHnK.esm.js} +1 -25
- package/dist/BrowserVisibilityObserverProvider-B04zvOXW.esm.js +25 -0
- package/dist/Face2DProvider-DqFSo9Ls.esm.js +824 -0
- package/dist/FaceDetectionProvider-BcPv1ruX.d.ts +119 -0
- package/dist/IVisibilityObserverCapability-BxPj7hsu.d.ts +12 -0
- package/dist/IWasmUtilCapability-Bf91iomn.d.ts +145 -0
- package/dist/{Manager-B2OEDYqf.d.ts → Manager-BfBOhrjh.d.ts} +1 -4
- package/dist/{OpenViduRecordingProvider-DF7A4ZNJ.esm.js → OpenViduRecordingProvider-DmA__QfK.esm.js} +1 -1
- package/dist/PrivacyLensProvider-CfmaSQy3.esm.js +339 -0
- package/dist/StateMachine-20ahmASR.d.ts +2 -0
- package/dist/{StreamCanvasCapture-Dr5n_iK1.esm.js → StreamCanvasCapture-CRk7c7u7.esm.js} +1 -1
- package/dist/StreamCanvasCapture-DHDxv6hH.d.ts +42 -0
- package/dist/{WasmUtilProvider-CIu373BZ.esm.js → WasmUtilProvider-ADG54T6M.esm.js} +16 -1
- package/dist/{addressSearch-BH96a3fq.esm.js → addressSearch-B9iJdbn8.esm.js} +4 -4
- package/dist/{ae-signature-CDEN8y-w.esm.js → ae-signature-Pp4oCAHD.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -3
- package/dist/ae-signature.esm.js +9 -9
- package/dist/antifraud.d.ts +4 -3
- package/dist/antifraud.esm.js +6 -6
- package/dist/{antifraudManager-DZifA5zX.esm.js → antifraudManager-5KA84wtF.esm.js} +3 -3
- package/dist/{antifraudManager-B7WQTIdu.d.ts → antifraudManager-D-nGY1T9.d.ts} +2 -2
- package/dist/{antifraudStateMachine-DlKrK2hL.esm.js → antifraudStateMachine-BQVw46N5.esm.js} +3 -3
- package/dist/{api-DUZwyz0o.esm.js → api-DsbUi7TO.esm.js} +21 -2
- package/dist/authentication.d.ts +19 -12
- package/dist/authentication.esm.js +32 -27
- package/dist/{authenticationManager-Dve7mGLe.d.ts → authenticationManager-BnAY9lOO.d.ts} +3 -3
- package/dist/{authenticationManager-BM4LzyV7.esm.js → authenticationManager-BnPgoiL_.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Chx3ySdT.esm.js → authenticationStateMachine-D50Q6Nvp.esm.js} +8 -8
- package/dist/avatar.d.ts +3 -0
- package/dist/avatar.esm.js +3 -0
- package/dist/{backCameraStream-iftkf3rd.esm.js → backCameraStream-POavVKz4.esm.js} +3 -3
- package/dist/{browser-DlFgHpoC-7tbRR1aR.esm.js → browser-DlFgHpoC-CR6x7ypG.esm.js} +1 -1
- package/dist/{browserSimulation-CGjpdNA1.esm.js → browserSimulation-DFpmweuc.esm.js} +153 -1216
- package/dist/camera-B0yWS33x.esm.js +79 -0
- package/dist/camera.d.ts +7 -1
- package/dist/camera.esm.js +4 -4
- package/dist/{StreamCanvasCapture-Ctgyx-oD.d.ts → canvas-pLrXU1id.d.ts} +1 -41
- package/dist/certificate-issuance.d.ts +31 -30
- package/dist/certificate-issuance.esm.js +7 -7
- package/dist/{certificateIssuanceStateMachine-CLNXtXaC.esm.js → certificateIssuanceStateMachine-CpewPqas.esm.js} +4 -4
- package/dist/clientLifecycle-Ct7h9uxx.esm.js +534 -0
- package/dist/consent.d.ts +4 -3
- package/dist/consent.esm.js +6 -6
- package/dist/{consentManager-BqUGU_YD.d.ts → consentManager-BuiDVAGn.d.ts} +52 -52
- package/dist/{consentManager-psDCeJ0E.esm.js → consentManager-DL93cPSU.esm.js} +3 -3
- package/dist/{consentStateMachine-DRsFFSHE.esm.js → consentStateMachine-DnqwsZ7o.esm.js} +3 -3
- package/dist/cpf-ocr.d.ts +4 -3
- package/dist/cpf-ocr.esm.js +6 -6
- package/dist/{cpfOcrManager-BxcgxvgO.esm.js → cpfOcrManager-BW8wlEU_.esm.js} +5 -5
- package/dist/{cpfOcrManager-B2u9hMzd.d.ts → cpfOcrManager-D_cnGuB7.d.ts} +19 -19
- package/dist/createFaceAvatar-CpmQJA8E.esm.js +46 -0
- package/dist/createFaceAvatar-DNMSIcRb.d.ts +401 -0
- package/dist/cross-document-data-match.d.ts +2 -1
- package/dist/cross-document-data-match.esm.js +5 -5
- package/dist/curp-validation.d.ts +10 -7
- package/dist/curp-validation.esm.js +6 -6
- package/dist/{curpValidationManager-Bt6CVD8b.d.ts → curpValidationManager-CJdVrCex.d.ts} +3 -3
- package/dist/{curpValidationManager-BgLDw0Ub.esm.js → curpValidationManager-u2FkvveY.esm.js} +3 -3
- package/dist/{curpValidationStateMachine-BK_wJ48C.esm.js → curpValidationStateMachine-CeqDh2V5.esm.js} +3 -3
- package/dist/custom-fields.d.ts +3 -2
- package/dist/custom-fields.esm.js +5 -5
- package/dist/custom-watchlist.d.ts +2 -1
- package/dist/custom-watchlist.esm.js +5 -5
- package/dist/{customWatchlistStateMachine-Bi4P59HM.esm.js → customWatchlistStateMachine-dovMwTLv.esm.js} +3 -3
- package/dist/{deepsightLoader-BMmvk0X6.esm.js → deepsightLoader-CgK9h2KF.esm.js} +20 -14
- package/dist/{deepsightService-CEZrdiW0.esm.js → deepsightService-BsLpJT8o.esm.js} +13 -42
- package/dist/deepsightService-CbaqT7bP.d.ts +69 -0
- package/dist/device.d.ts +9 -1
- package/dist/device.esm.js +5 -5
- package/dist/document-capture.d.ts +179 -178
- package/dist/document-capture.esm.js +13 -13
- package/dist/document-upload.d.ts +48 -47
- package/dist/document-upload.esm.js +8 -8
- package/dist/{documentCaptureStateMachine-MpwpJO7t.esm.js → documentCaptureStateMachine-DK3nD2UZ.esm.js} +7 -7
- package/dist/dynamic-forms.d.ts +4 -192
- package/dist/dynamic-forms.esm.js +7 -160
- package/dist/dynamicFormsManager-B_4qA_CB.d.ts +239 -0
- package/dist/dynamicFormsManager-CNg60mlv.esm.js +167 -0
- package/dist/{dynamicFormsStateMachine-Do84A4uU.esm.js → dynamicFormsStateMachine-BfLLcxua.esm.js} +4 -4
- package/dist/ekyb.d.ts +9 -6
- package/dist/ekyb.esm.js +17 -17
- package/dist/{ekybStateMachine-nsuPOw3f.esm.js → ekybStateMachine-DJ9lWfdc.esm.js} +5 -5
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +8 -8
- package/dist/{ekycStateMachine-DcynX0rj.esm.js → ekycStateMachine-BcPEEqMA.esm.js} +5 -5
- package/dist/electronic-signature.d.ts +4 -3
- package/dist/electronic-signature.esm.js +8 -8
- package/dist/{electronicSignatureManager-B63aAuI5.esm.js → electronicSignatureManager-DESRgObX.esm.js} +49 -87
- package/dist/email.d.ts +5 -4
- package/dist/email.esm.js +8 -8
- package/dist/{emailManager-DxHjAe5u.esm.js → emailManager-C9O7k0-m.esm.js} +4 -4
- package/dist/{emailManager-C6D2u4mQ.d.ts → emailManager-CTOXMlVd.d.ts} +3 -3
- package/dist/{emailStateMachine-758f34gg.esm.js → emailStateMachine-Bk4pkysV.esm.js} +5 -5
- package/dist/{endpoints-BM2_j_IE.esm.js → endpoints-CwrFQfW7.esm.js} +13 -0
- package/dist/{events-DN-u67gb.esm.js → events-1wxZ97yf.esm.js} +3 -1
- package/dist/events.d.ts +2 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +37 -26
- package/dist/extensibility.esm.js +71 -59
- package/dist/{externalFetch-crimxkN9.esm.js → externalFetch-hvmz_npP.esm.js} +1 -1
- package/dist/face-match.d.ts +2 -2
- package/dist/face-match.esm.js +5 -5
- package/dist/faceCaptureManagerFactory-DKBvmRxO.d.ts +400 -0
- package/dist/{faceCaptureManagerFactory-BNXZchWX.esm.js → faceCaptureManagerFactory-bJiqzRoj.esm.js} +24 -16
- package/dist/{faceCaptureSetup-Dqb09D24.esm.js → faceCaptureSetup-jYJNhw2K.esm.js} +97 -13
- package/dist/{faceMatchStateMachine-FikRaUZH.esm.js → faceMatchStateMachine-C6J09ygk.esm.js} +3 -3
- package/dist/field-comparison.d.ts +4 -3
- package/dist/field-comparison.esm.js +5 -5
- package/dist/{fieldComparisonManager-BXc6-DJv.d.ts → fieldComparisonManager-BOEgiOw_.d.ts} +2 -2
- package/dist/{fieldComparisonManager-Dic0DVgl.esm.js → fieldComparisonManager-kk2RkWeb.esm.js} +4 -4
- package/dist/fiscal-qr.d.ts +5 -3
- package/dist/fiscal-qr.esm.js +12 -12
- package/dist/flow-events.d.ts +8 -6
- package/dist/flow.d.ts +21 -13
- package/dist/flow.esm.js +25 -19
- package/dist/{flowCompletionService-D_CsiDZM.esm.js → flowCompletionService-BDcDfyoA.esm.js} +3 -3
- package/dist/{flowCompletionService-CdGDKv0z.d.ts → flowCompletionService-nF7e8At0.d.ts} +2 -1
- package/dist/{flowServices-ar5DXv71.esm.js → flowServices-DTQUals9.esm.js} +24 -9
- package/dist/geolocation.d.ts +4 -127
- package/dist/geolocation.esm.js +7 -115
- package/dist/geolocationManager-B3lahU1a.d.ts +156 -0
- package/dist/geolocationManager-CVKUo6a4.esm.js +122 -0
- package/dist/{geolocationStateMachine-BWjrMGS_.esm.js → geolocationStateMachine-CdYh-pwi.esm.js} +4 -4
- package/dist/{getDeviceClass-rXKlXywy.esm.js → getDeviceClass-QxbJwsOO.esm.js} +1 -1
- package/dist/government-validation.d.ts +4 -3
- package/dist/government-validation.esm.js +7 -7
- package/dist/{governmentValidationStateMachine-BoF7U1of.esm.js → governmentValidationStateMachine-CjCs0_fG.esm.js} +5 -5
- package/dist/home.d.ts +18 -15
- package/dist/home.esm.js +3 -3
- package/dist/http.esm.js +2 -2
- package/dist/id-ocr.d.ts +4 -625
- package/dist/id-ocr.esm.js +7 -84
- package/dist/id-verification.d.ts +28 -27
- package/dist/id-verification.esm.js +5 -5
- package/dist/id.d.ts +16 -11
- package/dist/id.esm.js +36 -32
- package/dist/idCaptureDefaults-DJmo-U3D.esm.js +188 -0
- package/dist/{idCaptureManager-BvGUSN2e.d.ts → idCaptureManager-58R91WU3.d.ts} +40 -10
- package/dist/{idCaptureManager-Bm6Wm6Qv.esm.js → idCaptureManager-Cd7THjha.esm.js} +13 -11
- package/dist/{idCaptureStateMachine-D1YhOj6n.esm.js → idCaptureStateMachine-BFMIWmBu.esm.js} +395 -382
- package/dist/idOcrManager-CDIHkP-v.d.ts +641 -0
- package/dist/idOcrManager-CiEzYor8.esm.js +91 -0
- package/dist/{idOcrStateMachine-YMCDGplq.esm.js → idOcrStateMachine-CGeY01rX.esm.js} +5 -5
- package/dist/{idVerificationStateMachine-Bo1IYuZH.esm.js → idVerificationStateMachine-B6Ccvut4.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +4 -3
- package/dist/identity-reuse.esm.js +6 -6
- package/dist/{identityReuseManager-DcWSvC-A.d.ts → identityReuseManager-BlJpsh9U.d.ts} +33 -33
- package/dist/{identityReuseManager-D0knIrOy.esm.js → identityReuseManager-CrbjKac7.esm.js} +3 -3
- package/dist/{identityReuseStateMachine-CSQfZOqD.esm.js → identityReuseStateMachine-Do_M-z6z.esm.js} +3 -3
- package/dist/{index-DV134v62.d.ts → index-BgJYOyFO.d.ts} +175 -295
- package/dist/{index-BgxYUYuD.d.ts → index-CVgIGwUy.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +13 -13
- package/dist/{invokeOnCaptureCallback-Dzemudhk.esm.js → invokeOnCaptureCallback-gKRaO24Q.esm.js} +1 -1
- package/dist/{lib-7ZQ9BdKH.esm.js → lib-TRTXfron.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +10 -7
- package/dist/mandatory-consent.esm.js +6 -6
- package/dist/{mandatoryConsentManager-Tzl5Qd35.d.ts → mandatoryConsentManager-Da8pFx0L.d.ts} +53 -53
- package/dist/{mandatoryConsentManager-Lon46nPQ.esm.js → mandatoryConsentManager-b1QKgIKi.esm.js} +3 -3
- package/dist/{mandatoryConsentStateMachine-D_dZ7IF6.esm.js → mandatoryConsentStateMachine-VPbrLLfo.esm.js} +3 -3
- package/dist/mediaRecorderOptions-BIn657lu.esm.js +42 -0
- package/dist/mediapipeShared-yKDdOf_V.esm.js +67 -0
- package/dist/{recordingService-CxMJP4tQ.esm.js → onDeviceFaceResults-BdfKrQrf.esm.js} +71 -389
- package/dist/{openviduLazy-oAXXI9w_.esm.js → openviduLazy-BXDnVFe2.esm.js} +2 -2
- package/dist/openviduLazy-lAZzee_g.esm.js +3 -0
- package/dist/{permissionGuards-D-Z-lgNj.esm.js → permissionGuards-CaZl9t7f.esm.js} +1 -1
- package/dist/{permissionServices-CPDboRoE.esm.js → permissionServices-D9lmzFYc.esm.js} +7 -4
- package/dist/personhood.d.ts +534 -0
- package/dist/personhood.esm.js +1500 -0
- package/dist/phone.d.ts +5 -4
- package/dist/phone.esm.js +8 -8
- package/dist/{phoneManager-TSq1Ief6.d.ts → phoneManager-CG1vTJiG.d.ts} +3 -3
- package/dist/{phoneManager-Blt4Oc2P.esm.js → phoneManager-DNTrIq-D.esm.js} +4 -4
- package/dist/{phoneStateMachine-W3c6Z8sj.esm.js → phoneStateMachine-MqNDf1Nh.esm.js} +5 -5
- package/dist/{qe-signature-CQLK6LKE.esm.js → qe-signature-CVnJ4RaW.esm.js} +1 -1
- package/dist/qe-signature.d.ts +4 -3
- package/dist/qe-signature.esm.js +9 -9
- package/dist/recordingService-B5QNBYnv.esm.js +347 -0
- package/dist/redirect-to-mobile.d.ts +4 -3
- package/dist/redirect-to-mobile.esm.js +8 -8
- package/dist/{redirectToMobileManager-yOHAmwg-.d.ts → redirectToMobileManager-D7U9k-Xs.d.ts} +2 -2
- package/dist/{redirectToMobileManager-DCvpKdkD.esm.js → redirectToMobileManager-DuD03ggR.esm.js} +4 -4
- package/dist/{redirectToMobileStateMachine-DC9z4Vfu.esm.js → redirectToMobileStateMachine-WVg-n2is.esm.js} +10 -12
- package/dist/{runChildModule-C9G0wfVC.esm.js → runChildModule-XHWWqs39.esm.js} +3 -3
- package/dist/selfie.d.ts +19 -12
- package/dist/selfie.esm.js +33 -28
- package/dist/{selfieManager-imY2dAcH.d.ts → selfieManager-CXmUuCSV.d.ts} +3 -3
- package/dist/{selfieManager-BRL6c_Oc.esm.js → selfieManager-Cw29cKuL.esm.js} +6 -6
- package/dist/{selfieStateMachine-D2Q0uwDK.esm.js → selfieStateMachine-DUruCKBS.esm.js} +4 -4
- package/dist/{session-Be_IA1e0.esm.js → session-BWCjVIr6.esm.js} +3 -3
- package/dist/session.d.ts +7 -5
- package/dist/session.esm.js +13 -14
- package/dist/{sessionInitializer-CaiGA8GP.esm.js → sessionInitializer-CzPdr0Q1.esm.js} +73 -10
- package/dist/{setup-BJZAkajt.d.ts → setup-BbAMk9Rg.d.ts} +31 -3
- package/dist/setup-hKBHwm6K.esm.js +564 -0
- package/dist/signature.d.ts +3 -2
- package/dist/signature.esm.js +5 -5
- package/dist/{signatureStateMachine-DAxXmMrk.esm.js → signatureStateMachine-iT9BhNUf.esm.js} +3 -3
- package/dist/{stats-DntyIiGr.esm.js → stats-BVy52wLy.esm.js} +2 -2
- package/dist/stats.esm.js +3 -3
- package/dist/thumbmarkAdapter-CVyiGp0-.esm.js +1194 -0
- package/dist/{tri-CtxWthxz.esm.js → tri-CFBjqf5E.esm.js} +12 -2
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-CrWAulDi.esm.js → tri.esm-BzYyqlPa.esm.js} +27 -23
- package/dist/tri.esm.js +2 -2
- package/dist/trust-graph.d.ts +4 -3
- package/dist/trust-graph.esm.js +3 -3
- package/dist/{types-Z9wv19v2.d.ts → types-B_YCuHZx.d.ts} +1 -1
- package/dist/{types-DpTWgfKY.d.ts → types-CRPns2d9.d.ts} +1 -1
- package/dist/{types-Dv-9WPJX.d.ts → types-Cyi3gwPK.d.ts} +39 -3
- package/dist/types-DWmubDie.d.ts +132 -0
- package/dist/video-DXf5H9rY.esm.js +36 -0
- package/dist/video-selfie.d.ts +351 -0
- package/dist/video-selfie.esm.js +1506 -0
- package/dist/videoSelfieSteps-C6E7mKFt.esm.js +58 -0
- package/dist/{warmup--6HA3yUR.d.ts → warmup-DzJ0I4Kv.d.ts} +5 -1
- package/dist/wasm.d.ts +4 -4
- package/dist/wasm.esm.js +14 -14
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +5 -5
- package/dist/watchlist.d.ts +2 -1
- package/dist/watchlist.esm.js +5 -5
- package/dist/{watchlistForBusinessStateMachine-DtefJb-D.esm.js → watchlistForBusinessStateMachine-CyhTEi3N.esm.js} +3 -3
- package/dist/{watchlistStateMachine-B0aIS2_n.esm.js → watchlistStateMachine-CgKG-KSf.esm.js} +3 -3
- package/dist/workflow.d.ts +232 -100
- package/dist/workflow.esm.js +120 -79
- package/dist/{xstate.esm-Dkm1jy5u.esm.js → xstate.esm-nY3M5UYm.esm.js} +41 -1
- package/package.json +18 -3
- package/dist/IpifyProvider-oZf7Ke1O.esm.js +0 -167
- package/dist/camera-x4LjGTjZ.esm.js +0 -22
- package/dist/deepsightService-ByNKY5Jv.d.ts +0 -276
- package/dist/faceCaptureManagerFactory-CL-7T_vH.d.ts +0 -731
- package/dist/getBrowser-Dv8LZyHE.esm.js +0 -8
- package/dist/openviduLazy-B_s6jnEk.esm.js +0 -3
- package/dist/setup-C7tintPc.esm.js +0 -1064
- /package/dist/{Actor-fIPLXfoi.d.ts → Actor-DYjXVMQm.d.ts} +0 -0
- /package/dist/{BrowserTimerProvider-BVgutW_b.esm.js → BrowserTimerProvider-CHloo0eQ.esm.js} +0 -0
- /package/dist/{ITimerCapability-BvH0pDwp.esm.js → ITimerCapability-G7lQg-be.esm.js} +0 -0
- /package/dist/{MotionSensorProvider-C9fPAJdS.esm.js → MotionSensorProvider-BkHKMCPE.esm.js} +0 -0
- /package/dist/{apiError-D-GTvFrH.esm.js → apiError-DkOXfFBu.esm.js} +0 -0
- /package/dist/{camera-biGPWlmx.d.ts → camera-CWO06Lu5.d.ts} +0 -0
- /package/dist/{canvas-7uX2izHb.esm.js → canvas-DsJa51yU.esm.js} +0 -0
- /package/dist/{chunk-BK1xu56N.esm.js → chunk-CIKcdghV.esm.js} +0 -0
- /package/dist/{cpf-xBg-DFNn.esm.js → cpf-B9htWzDt.esm.js} +0 -0
- /package/dist/{dateUtils-8dCcuArE.esm.js → dateUtils-PXB_WRYL.esm.js} +0 -0
- /package/dist/{getDeviceClass-C0zrM97a.esm.js → getDeviceClass-BdgmyOOu.esm.js} +0 -0
- /package/dist/{http-CfVTgMfU.esm.js → http-CBbBcnBa.esm.js} +0 -0
- /package/dist/{index-52_qi4bd.d.ts → index-CCG6MnCO.d.ts} +0 -0
- /package/dist/{otp-BHJnjEEc.d.ts → otp-CETbFjXH.d.ts} +0 -0
- /package/dist/{otp-D87RTwrx.esm.js → otp-DepQPUIA.esm.js} +0 -0
- /package/dist/{platform-BfoqeM61.esm.js → platform-BoeUeUrV.esm.js} +0 -0
- /package/dist/{types-F0IXbaCB.d.ts → types-BOiKESZY.d.ts} +0 -0
- /package/dist/{types-DYZja-k9.d.ts → types-CTnn7kUK.d.ts} +0 -0
- /package/dist/{types-BdVOWGGW.esm.js → types-Db2ooXIu.esm.js} +0 -0
- /package/dist/{urlUtils-8RNHyW3x.esm.js → urlUtils-CpiYwn7w.esm.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Flow } from "./types-
|
|
2
|
-
import { n as FinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { n as Flow } from "./types-Cyi3gwPK.js";
|
|
2
|
+
import { n as FinishStatus } from "./flowCompletionService-nF7e8At0.js";
|
|
3
3
|
|
|
4
4
|
//#region src/internal/flow-events/flowEvents.d.ts
|
|
5
5
|
type FlowStartedEvent = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./warmup
|
|
2
|
-
import "./index-
|
|
3
|
-
import { a as
|
|
1
|
+
import "./warmup-DzJ0I4Kv.js";
|
|
2
|
+
import "./index-CCG6MnCO.js";
|
|
3
|
+
import { a as isConfigured, c as setup, o as reset, t as SetupOptions } from "./setup-BbAMk9Rg.js";
|
|
4
4
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./WasmUtilProvider-
|
|
2
|
-
import {
|
|
3
|
-
import "./BrowserTimerProvider-
|
|
4
|
-
import "./api-
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./browserSimulation-
|
|
10
|
-
import "./sessionInitializer-
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./tri-
|
|
1
|
+
import "./WasmUtilProvider-ADG54T6M.esm.js";
|
|
2
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-hKBHwm6K.esm.js";
|
|
3
|
+
import "./BrowserTimerProvider-CHloo0eQ.esm.js";
|
|
4
|
+
import "./api-DsbUi7TO.esm.js";
|
|
5
|
+
import "./clientLifecycle-Ct7h9uxx.esm.js";
|
|
6
|
+
import "./events-1wxZ97yf.esm.js";
|
|
7
|
+
import "./endpoints-CwrFQfW7.esm.js";
|
|
8
|
+
import "./stats-BVy52wLy.esm.js";
|
|
9
|
+
import "./browserSimulation-DFpmweuc.esm.js";
|
|
10
|
+
import "./sessionInitializer-CzPdr0Q1.esm.js";
|
|
11
|
+
import "./thumbmarkAdapter-CVyiGp0-.esm.js";
|
|
12
|
+
import "./platform-BoeUeUrV.esm.js";
|
|
13
|
+
import "./tri-CFBjqf5E.esm.js";
|
|
14
14
|
|
|
15
15
|
export { isConfigured, reset, setup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-
|
|
1
|
+
import { i as __toCommonJS, n as __esm, r as __export, t as __commonJS } from "./chunk-CIKcdghV.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js
|
|
4
4
|
var require_jsnlog = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/jsnlog@2.30.0/node_modules/jsnlog/jsnlog.js": ((exports) => {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./types-
|
|
7
|
-
import
|
|
1
|
+
import "./StateMachine-20ahmASR.js";
|
|
2
|
+
import "./Manager-BfBOhrjh.js";
|
|
3
|
+
import "./Actor-DYjXVMQm.js";
|
|
4
|
+
import "./camera-CWO06Lu5.js";
|
|
5
|
+
import "./types-B_YCuHZx.js";
|
|
6
|
+
import "./types-CTnn7kUK.js";
|
|
7
|
+
import "./canvas-pLrXU1id.js";
|
|
8
|
+
import "./createFaceAvatar-DNMSIcRb.js";
|
|
9
|
+
import "./types-Cyi3gwPK.js";
|
|
10
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-Da8pFx0L.js";
|
|
8
11
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./endpoints-
|
|
4
|
-
import "./xstate.esm-
|
|
5
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
6
|
-
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import "./events-1wxZ97yf.esm.js";
|
|
3
|
+
import "./endpoints-CwrFQfW7.esm.js";
|
|
4
|
+
import "./xstate.esm-nY3M5UYm.esm.js";
|
|
5
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-VPbrLLfo.esm.js";
|
|
6
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-b1QKgIKi.esm.js";
|
|
7
7
|
|
|
8
8
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-Tzl5Qd35.d.ts → mandatoryConsentManager-Da8pFx0L.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
3
|
-
import { a as RegulationTypes } from "./types-
|
|
4
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BfBOhrjh.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-DYjXVMQm.js";
|
|
3
|
+
import { a as RegulationTypes } from "./types-Cyi3gwPK.js";
|
|
4
|
+
import * as xstate205 from "xstate";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
7
7
|
type RegulatoryConsentType = 'MANDATORY' | 'ML';
|
|
@@ -32,7 +32,7 @@ type MandatoryConsentContext = {
|
|
|
32
32
|
type MandatoryConsentInput = {
|
|
33
33
|
config: MandatoryConsentConfig;
|
|
34
34
|
};
|
|
35
|
-
declare const mandatoryConsentMachine:
|
|
35
|
+
declare const mandatoryConsentMachine: xstate205.StateMachine<MandatoryConsentContext, {
|
|
36
36
|
type: "LOAD";
|
|
37
37
|
} | {
|
|
38
38
|
type: "TOGGLE";
|
|
@@ -45,53 +45,53 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
45
45
|
} | {
|
|
46
46
|
type: "RESET";
|
|
47
47
|
}, {
|
|
48
|
-
[x: string]:
|
|
48
|
+
[x: string]: xstate205.ActorRefFromLogic<xstate205.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
49
49
|
config: MandatoryConsentConfig;
|
|
50
|
-
},
|
|
50
|
+
}, xstate205.EventObject>> | xstate205.ActorRefFromLogic<xstate205.PromiseActorLogic<void, {
|
|
51
51
|
consentId: string;
|
|
52
52
|
isSigned: boolean;
|
|
53
|
-
},
|
|
54
|
-
},
|
|
53
|
+
}, xstate205.EventObject>> | undefined;
|
|
54
|
+
}, xstate205.Values<{
|
|
55
55
|
fetchConsent: {
|
|
56
56
|
src: "fetchConsent";
|
|
57
|
-
logic:
|
|
57
|
+
logic: xstate205.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
58
58
|
config: MandatoryConsentConfig;
|
|
59
|
-
},
|
|
59
|
+
}, xstate205.EventObject>;
|
|
60
60
|
id: string | undefined;
|
|
61
61
|
};
|
|
62
62
|
submitConsent: {
|
|
63
63
|
src: "submitConsent";
|
|
64
|
-
logic:
|
|
64
|
+
logic: xstate205.PromiseActorLogic<void, {
|
|
65
65
|
consentId: string;
|
|
66
66
|
isSigned: boolean;
|
|
67
|
-
},
|
|
67
|
+
}, xstate205.EventObject>;
|
|
68
68
|
id: string | undefined;
|
|
69
69
|
};
|
|
70
|
-
}>,
|
|
70
|
+
}>, xstate205.Values<{
|
|
71
71
|
setConsent: {
|
|
72
72
|
type: "setConsent";
|
|
73
|
-
params:
|
|
73
|
+
params: xstate205.NonReducibleUnknown;
|
|
74
74
|
};
|
|
75
75
|
setError: {
|
|
76
76
|
type: "setError";
|
|
77
|
-
params:
|
|
77
|
+
params: xstate205.NonReducibleUnknown;
|
|
78
|
+
};
|
|
79
|
+
toggleSigned: {
|
|
80
|
+
type: "toggleSigned";
|
|
81
|
+
params: xstate205.NonReducibleUnknown;
|
|
78
82
|
};
|
|
79
83
|
clearError: {
|
|
80
84
|
type: "clearError";
|
|
81
|
-
params:
|
|
85
|
+
params: xstate205.NonReducibleUnknown;
|
|
82
86
|
};
|
|
83
87
|
resetContext: {
|
|
84
88
|
type: "resetContext";
|
|
85
|
-
params:
|
|
86
|
-
};
|
|
87
|
-
toggleSigned: {
|
|
88
|
-
type: "toggleSigned";
|
|
89
|
-
params: xstate1198.NonReducibleUnknown;
|
|
89
|
+
params: xstate205.NonReducibleUnknown;
|
|
90
90
|
};
|
|
91
91
|
}>, {
|
|
92
92
|
type: "canSubmit";
|
|
93
93
|
params: unknown;
|
|
94
|
-
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "
|
|
94
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate205.NonReducibleUnknown, xstate205.EventObject, xstate205.MetaObject, {
|
|
95
95
|
readonly id: "mandatoryConsent";
|
|
96
96
|
readonly initial: "idle";
|
|
97
97
|
readonly context: ({
|
|
@@ -100,70 +100,70 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
100
100
|
spawn: {
|
|
101
101
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
102
102
|
src: "fetchConsent";
|
|
103
|
-
logic:
|
|
103
|
+
logic: xstate205.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
104
104
|
config: MandatoryConsentConfig;
|
|
105
|
-
},
|
|
105
|
+
}, xstate205.EventObject>;
|
|
106
106
|
id: string | undefined;
|
|
107
107
|
} extends infer T ? T extends {
|
|
108
108
|
src: "fetchConsent";
|
|
109
|
-
logic:
|
|
109
|
+
logic: xstate205.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
110
110
|
config: MandatoryConsentConfig;
|
|
111
|
-
},
|
|
111
|
+
}, xstate205.EventObject>;
|
|
112
112
|
id: string | undefined;
|
|
113
113
|
} ? T extends {
|
|
114
114
|
src: TSrc;
|
|
115
|
-
} ?
|
|
115
|
+
} ? xstate205.ConditionalRequired<[options?: ({
|
|
116
116
|
id?: T["id"] | undefined;
|
|
117
117
|
systemId?: string;
|
|
118
|
-
input?:
|
|
118
|
+
input?: xstate205.InputFrom<T["logic"]> | undefined;
|
|
119
119
|
syncSnapshot?: boolean;
|
|
120
|
-
} & { [K in
|
|
120
|
+
} & { [K in xstate205.RequiredActorOptions<T>]: unknown }) | undefined], xstate205.IsNotNever<xstate205.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
121
121
|
src: "submitConsent";
|
|
122
|
-
logic:
|
|
122
|
+
logic: xstate205.PromiseActorLogic<void, {
|
|
123
123
|
consentId: string;
|
|
124
124
|
isSigned: boolean;
|
|
125
|
-
},
|
|
125
|
+
}, xstate205.EventObject>;
|
|
126
126
|
id: string | undefined;
|
|
127
127
|
} extends infer T_1 ? T_1 extends {
|
|
128
128
|
src: "submitConsent";
|
|
129
|
-
logic:
|
|
129
|
+
logic: xstate205.PromiseActorLogic<void, {
|
|
130
130
|
consentId: string;
|
|
131
131
|
isSigned: boolean;
|
|
132
|
-
},
|
|
132
|
+
}, xstate205.EventObject>;
|
|
133
133
|
id: string | undefined;
|
|
134
134
|
} ? T_1 extends {
|
|
135
135
|
src: TSrc;
|
|
136
|
-
} ?
|
|
136
|
+
} ? xstate205.ConditionalRequired<[options?: ({
|
|
137
137
|
id?: T_1["id"] | undefined;
|
|
138
138
|
systemId?: string;
|
|
139
|
-
input?:
|
|
139
|
+
input?: xstate205.InputFrom<T_1["logic"]> | undefined;
|
|
140
140
|
syncSnapshot?: boolean;
|
|
141
|
-
} & { [K_1 in
|
|
141
|
+
} & { [K_1 in xstate205.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate205.IsNotNever<xstate205.RequiredActorOptions<T_1>>> : never : never : never)): xstate205.ActorRefFromLogic<xstate205.GetConcreteByKey<xstate205.Values<{
|
|
142
142
|
fetchConsent: {
|
|
143
143
|
src: "fetchConsent";
|
|
144
|
-
logic:
|
|
144
|
+
logic: xstate205.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
145
145
|
config: MandatoryConsentConfig;
|
|
146
|
-
},
|
|
146
|
+
}, xstate205.EventObject>;
|
|
147
147
|
id: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
submitConsent: {
|
|
150
150
|
src: "submitConsent";
|
|
151
|
-
logic:
|
|
151
|
+
logic: xstate205.PromiseActorLogic<void, {
|
|
152
152
|
consentId: string;
|
|
153
153
|
isSigned: boolean;
|
|
154
|
-
},
|
|
154
|
+
}, xstate205.EventObject>;
|
|
155
155
|
id: string | undefined;
|
|
156
156
|
};
|
|
157
157
|
}>, "src", TSrc>["logic"]>;
|
|
158
|
-
<TLogic extends
|
|
158
|
+
<TLogic extends xstate205.AnyActorLogic>(src: TLogic, ...[options]: xstate205.ConditionalRequired<[options?: ({
|
|
159
159
|
id?: never;
|
|
160
160
|
systemId?: string;
|
|
161
|
-
input?:
|
|
161
|
+
input?: xstate205.InputFrom<TLogic> | undefined;
|
|
162
162
|
syncSnapshot?: boolean;
|
|
163
|
-
} & { [K in
|
|
163
|
+
} & { [K in xstate205.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate205.IsNotNever<xstate205.RequiredLogicInput<TLogic>>>): xstate205.ActorRefFromLogic<TLogic>;
|
|
164
164
|
};
|
|
165
165
|
input: MandatoryConsentInput;
|
|
166
|
-
self:
|
|
166
|
+
self: xstate205.ActorRef<xstate205.MachineSnapshot<MandatoryConsentContext, {
|
|
167
167
|
type: "LOAD";
|
|
168
168
|
} | {
|
|
169
169
|
type: "TOGGLE";
|
|
@@ -175,7 +175,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
175
175
|
type: "RETRY";
|
|
176
176
|
} | {
|
|
177
177
|
type: "RESET";
|
|
178
|
-
}, Record<string,
|
|
178
|
+
}, Record<string, xstate205.AnyActorRef | undefined>, xstate205.StateValue, string, unknown, any, any>, {
|
|
179
179
|
type: "LOAD";
|
|
180
180
|
} | {
|
|
181
181
|
type: "TOGGLE";
|
|
@@ -187,7 +187,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
187
187
|
type: "RETRY";
|
|
188
188
|
} | {
|
|
189
189
|
type: "RESET";
|
|
190
|
-
},
|
|
190
|
+
}, xstate205.AnyEventObject>;
|
|
191
191
|
}) => {
|
|
192
192
|
config: MandatoryConsentConfig;
|
|
193
193
|
consent: undefined;
|
|
@@ -224,7 +224,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
224
224
|
} | {
|
|
225
225
|
type: "RESET";
|
|
226
226
|
};
|
|
227
|
-
self:
|
|
227
|
+
self: xstate205.ActorRef<xstate205.MachineSnapshot<MandatoryConsentContext, {
|
|
228
228
|
type: "LOAD";
|
|
229
229
|
} | {
|
|
230
230
|
type: "TOGGLE";
|
|
@@ -236,7 +236,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
236
236
|
type: "RETRY";
|
|
237
237
|
} | {
|
|
238
238
|
type: "RESET";
|
|
239
|
-
}, Record<string,
|
|
239
|
+
}, Record<string, xstate205.AnyActorRef>, xstate205.StateValue, string, unknown, any, any>, {
|
|
240
240
|
type: "LOAD";
|
|
241
241
|
} | {
|
|
242
242
|
type: "TOGGLE";
|
|
@@ -248,7 +248,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate205.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
config: MandatoryConsentConfig;
|
|
254
254
|
};
|
|
@@ -301,7 +301,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
301
301
|
} | {
|
|
302
302
|
type: "RESET";
|
|
303
303
|
};
|
|
304
|
-
self:
|
|
304
|
+
self: xstate205.ActorRef<xstate205.MachineSnapshot<MandatoryConsentContext, {
|
|
305
305
|
type: "LOAD";
|
|
306
306
|
} | {
|
|
307
307
|
type: "TOGGLE";
|
|
@@ -313,7 +313,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
313
313
|
type: "RETRY";
|
|
314
314
|
} | {
|
|
315
315
|
type: "RESET";
|
|
316
|
-
}, Record<string,
|
|
316
|
+
}, Record<string, xstate205.AnyActorRef>, xstate205.StateValue, string, unknown, any, any>, {
|
|
317
317
|
type: "LOAD";
|
|
318
318
|
} | {
|
|
319
319
|
type: "TOGGLE";
|
|
@@ -325,7 +325,7 @@ declare const mandatoryConsentMachine: xstate1198.StateMachine<MandatoryConsentC
|
|
|
325
325
|
type: "RETRY";
|
|
326
326
|
} | {
|
|
327
327
|
type: "RESET";
|
|
328
|
-
},
|
|
328
|
+
}, xstate205.AnyEventObject>;
|
|
329
329
|
}) => {
|
|
330
330
|
consentId: string;
|
|
331
331
|
isSigned: boolean;
|
package/dist/{mandatoryConsentManager-Lon46nPQ.esm.js → mandatoryConsentManager-b1QKgIKi.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-
|
|
2
|
-
import {
|
|
3
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
1
|
+
import { n as eventModuleNames, s as createManagerInstrumentation } from "./events-1wxZ97yf.esm.js";
|
|
2
|
+
import { l as createManager, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
3
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-VPbrLLfo.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
6
6
|
function createMandatoryConsentActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-DsbUi7TO.esm.js";
|
|
2
|
+
import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
|
|
3
|
+
import { a as fromPromise, r as assign, t as setup } from "./xstate.esm-nY3M5UYm.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
|
6
6
|
async function fetchMandatoryConsent(regulationType, language, type, signal) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as isIOS } from "./platform-BoeUeUrV.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/media/mediaRecorderOptions.ts
|
|
4
|
+
/**
|
|
5
|
+
* Picks a `MediaRecorder` mime type the current browser actually supports,
|
|
6
|
+
* preferring mp4 on iOS and webm elsewhere. Returns '' when none match.
|
|
7
|
+
*/
|
|
8
|
+
function getSupportedMediaRecorderMimeType() {
|
|
9
|
+
const possibleTypes = isIOS() ? [
|
|
10
|
+
"video/mp4",
|
|
11
|
+
"video/webm",
|
|
12
|
+
"video/webm;codecs=vp9",
|
|
13
|
+
"video/webm;codecs=vp8"
|
|
14
|
+
] : [
|
|
15
|
+
"video/webm",
|
|
16
|
+
"video/webm;codecs=vp9",
|
|
17
|
+
"video/webm;codecs=vp8",
|
|
18
|
+
"video/mp4"
|
|
19
|
+
];
|
|
20
|
+
for (const type of possibleTypes) if (MediaRecorder.isTypeSupported(type)) return type;
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* `MediaRecorder` options tuned per platform — a higher bitrate on iOS, lower
|
|
25
|
+
* elsewhere — paired with the supported mime type.
|
|
26
|
+
*/
|
|
27
|
+
function getAdaptiveMediaRecorderOptions() {
|
|
28
|
+
const mimeType = getSupportedMediaRecorderMimeType();
|
|
29
|
+
if (isIOS()) return {
|
|
30
|
+
mimeType,
|
|
31
|
+
videoBitsPerSecond: 1e6,
|
|
32
|
+
bitsPerSecond: 1e6
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
mimeType,
|
|
36
|
+
videoBitsPerSecond: 5e5,
|
|
37
|
+
bitsPerSecond: 5e5
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { getSupportedMediaRecorderMimeType as n, getAdaptiveMediaRecorderOptions as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region ../infra/src/avatar/pose/mediapipeShared.ts
|
|
2
|
+
/**
|
|
3
|
+
* Creates a MediaPipe FaceLandmarker, shielding the global-`Module` collision.
|
|
4
|
+
*
|
|
5
|
+
* Incode's own ml-wasm-kit glue assigns its emscripten *factory function* to
|
|
6
|
+
* `window.Module` (see `wasm/apiUtilities.ts`). MediaPipe's emscripten glue
|
|
7
|
+
* adopts any pre-existing global `Module` and then reads `Module.arguments` —
|
|
8
|
+
* which, on a function, throws "'caller'/'callee'/'arguments' may not be accessed
|
|
9
|
+
* on strict mode functions". Stash and clear the global across MediaPipe init,
|
|
10
|
+
* then restore it for the SDK pipeline. The runtime is loaded from the prebuilt
|
|
11
|
+
* ESM (CDN/self-hosted) via a `@vite-ignore` dynamic import; the npm copy is used
|
|
12
|
+
* for types only.
|
|
13
|
+
*
|
|
14
|
+
* Rejects if init fails (callers handle that defensively — start aborts, or the
|
|
15
|
+
* detect-failure recovery path retries once).
|
|
16
|
+
*
|
|
17
|
+
* Fixed options (cross-device hardening — see FACE_AVATAR.md → Mobile hardening):
|
|
18
|
+
* - `delegate: 'CPU'` — the GPU delegate is numerically unstable on some mobile
|
|
19
|
+
* GPUs (NaN ROIs / procrustes failures that permanently poison the graph); CPU
|
|
20
|
+
* (XNNPACK) is slower but robust and frees a WebGL context for three + the
|
|
21
|
+
* Incode pipeline.
|
|
22
|
+
* - `outputFacialTransformationMatrixes: false` — that matrix's procrustes solver
|
|
23
|
+
* is the same fragile path; pose is derived from raw landmarks instead.
|
|
24
|
+
* - `outputFaceBlendshapes: true` — drives blink / mouth / smile.
|
|
25
|
+
*/
|
|
26
|
+
async function createFaceLandmarker(paths) {
|
|
27
|
+
const globalScope = window;
|
|
28
|
+
const savedModule = globalScope.Module;
|
|
29
|
+
globalScope.Module = void 0;
|
|
30
|
+
try {
|
|
31
|
+
const tasksVision = await import(
|
|
32
|
+
/* @vite-ignore */
|
|
33
|
+
paths.mediapipeModulePath
|
|
34
|
+
);
|
|
35
|
+
const fileset = await tasksVision.FilesetResolver.forVisionTasks(paths.mediapipeWasmPath);
|
|
36
|
+
return await tasksVision.FaceLandmarker.createFromOptions(fileset, {
|
|
37
|
+
baseOptions: {
|
|
38
|
+
modelAssetPath: paths.faceLandmarkerModelPath,
|
|
39
|
+
delegate: "CPU"
|
|
40
|
+
},
|
|
41
|
+
runningMode: "VIDEO",
|
|
42
|
+
numFaces: 1,
|
|
43
|
+
outputFaceBlendshapes: true,
|
|
44
|
+
outputFacialTransformationMatrixes: false
|
|
45
|
+
});
|
|
46
|
+
} finally {
|
|
47
|
+
globalScope.Module = savedModule;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/** Returns the video as `RvfcCapable` if it supports rVFC, else null. */
|
|
51
|
+
function asRvfc(video) {
|
|
52
|
+
const v = video;
|
|
53
|
+
return typeof v.requestVideoFrameCallback === "function" && typeof v.cancelVideoFrameCallback === "function" ? v : null;
|
|
54
|
+
}
|
|
55
|
+
const REF_FRAME_MS = 1e3 / 30;
|
|
56
|
+
/** Clamp on the EMA delta so a frame stall can't over-snap the smoother. */
|
|
57
|
+
const MAX_EMA_DT_MS = 100;
|
|
58
|
+
/** Frame-rate-independent EMA factor for a 30 fps-authored `refAlpha` over `dtMs`. */
|
|
59
|
+
function dtAlpha(refAlpha, dtMs) {
|
|
60
|
+
if (refAlpha <= 0) return 0;
|
|
61
|
+
if (refAlpha >= 1) return 1;
|
|
62
|
+
const tau = -REF_FRAME_MS / Math.log(1 - refAlpha);
|
|
63
|
+
return 1 - Math.exp(-dtMs / tau);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { dtAlpha as i, asRvfc as n, createFaceLandmarker as r, MAX_EMA_DT_MS as t };
|