@idmission/websdk-core 0.1.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.
- package/README.md +66 -0
- package/dist/attestation/attestationState.d.ts +24 -0
- package/dist/attestation/attestationState.d.ts.map +1 -0
- package/dist/attestation/attestationState.js +57 -0
- package/dist/attestation/clientAttestation.d.ts +40 -0
- package/dist/attestation/clientAttestation.d.ts.map +1 -0
- package/dist/attestation/clientAttestation.js +19 -0
- package/dist/attestation/collectClientAttestation.d.ts +10 -0
- package/dist/attestation/collectClientAttestation.d.ts.map +1 -0
- package/dist/attestation/collectClientAttestation.js +18 -0
- package/dist/attestation/index.d.ts +5 -0
- package/dist/attestation/index.d.ts.map +1 -0
- package/dist/attestation/index.js +4 -0
- package/dist/attestation/nativeAttestationBridge.d.ts +3 -0
- package/dist/attestation/nativeAttestationBridge.d.ts.map +1 -0
- package/dist/attestation/nativeAttestationBridge.js +38 -0
- package/dist/barcode/AAMVAParser.d.ts +77 -0
- package/dist/barcode/AAMVAParser.d.ts.map +1 -0
- package/dist/barcode/AAMVAParser.js +422 -0
- package/dist/barcode/NativeBarcodeDecoder.d.ts +157 -0
- package/dist/barcode/NativeBarcodeDecoder.d.ts.map +1 -0
- package/dist/barcode/NativeBarcodeDecoder.js +832 -0
- package/dist/barcode/Parse.d.ts +6 -0
- package/dist/barcode/Parse.d.ts.map +1 -0
- package/dist/barcode/Parse.js +148 -0
- package/dist/barcode/decodeSummary.d.ts +45 -0
- package/dist/barcode/decodeSummary.d.ts.map +1 -0
- package/dist/barcode/decodeSummary.js +23 -0
- package/dist/barcode/index.d.ts +5 -0
- package/dist/barcode/index.d.ts.map +1 -0
- package/dist/barcode/index.js +4 -0
- package/dist/camera/Camera.d.ts +37 -0
- package/dist/camera/Camera.d.ts.map +1 -0
- package/dist/camera/Camera.js +453 -0
- package/dist/camera/acquireCamera.d.ts +29 -0
- package/dist/camera/acquireCamera.d.ts.map +1 -0
- package/dist/camera/acquireCamera.js +224 -0
- package/dist/camera/cameraSignals.d.ts +23 -0
- package/dist/camera/cameraSignals.d.ts.map +1 -0
- package/dist/camera/cameraSignals.js +32 -0
- package/dist/camera/getUserMediaIntegrity.d.ts +72 -0
- package/dist/camera/getUserMediaIntegrity.d.ts.map +1 -0
- package/dist/camera/getUserMediaIntegrity.js +256 -0
- package/dist/camera/index.d.ts +6 -0
- package/dist/camera/index.d.ts.map +1 -0
- package/dist/camera/index.js +5 -0
- package/dist/camera/isVirtualCamera.d.ts +10 -0
- package/dist/camera/isVirtualCamera.d.ts.map +1 -0
- package/dist/camera/isVirtualCamera.js +11 -0
- package/dist/client/IdmissionClient.d.ts +151 -0
- package/dist/client/IdmissionClient.d.ts.map +1 -0
- package/dist/client/IdmissionClient.js +638 -0
- package/dist/client/additionalDocument.d.ts +14 -0
- package/dist/client/additionalDocument.d.ts.map +1 -0
- package/dist/client/additionalDocument.js +24 -0
- package/dist/client/artifacts.d.ts +146 -0
- package/dist/client/artifacts.d.ts.map +1 -0
- package/dist/client/artifacts.js +1 -0
- package/dist/client/blobToB64.d.ts +2 -0
- package/dist/client/blobToB64.d.ts.map +1 -0
- package/dist/client/blobToB64.js +17 -0
- package/dist/client/endpoints.d.ts +7 -0
- package/dist/client/endpoints.d.ts.map +1 -0
- package/dist/client/endpoints.js +59 -0
- package/dist/client/errors.d.ts +20 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/errors.js +45 -0
- package/dist/client/index.d.ts +23 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +38 -0
- package/dist/client/payload.d.ts +36 -0
- package/dist/client/payload.d.ts.map +1 -0
- package/dist/client/payload.js +397 -0
- package/dist/client/sessionMachine.d.ts +26 -0
- package/dist/client/sessionMachine.d.ts.map +1 -0
- package/dist/client/sessionMachine.js +23 -0
- package/dist/client/submissionMetadata.d.ts +31 -0
- package/dist/client/submissionMetadata.d.ts.map +1 -0
- package/dist/client/submissionMetadata.js +90 -0
- package/dist/client/timings.d.ts +49 -0
- package/dist/client/timings.d.ts.map +1 -0
- package/dist/client/timings.js +32 -0
- package/dist/client/types.d.ts +305 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +18 -0
- package/dist/client/upload.d.ts +60 -0
- package/dist/client/upload.d.ts.map +1 -0
- package/dist/client/upload.js +313 -0
- package/dist/client/uploadedDocument.d.ts +7 -0
- package/dist/client/uploadedDocument.d.ts.map +1 -0
- package/dist/client/uploadedDocument.js +4 -0
- package/dist/client/urls.d.ts +30 -0
- package/dist/client/urls.d.ts.map +1 -0
- package/dist/client/urls.js +73 -0
- package/dist/client/validateSession.d.ts +7 -0
- package/dist/client/validateSession.d.ts.map +1 -0
- package/dist/client/validateSession.js +63 -0
- package/dist/config/cdn.d.ts +2 -0
- package/dist/config/cdn.d.ts.map +1 -0
- package/dist/config/cdn.js +1 -0
- package/dist/diagnostics/buffer.d.ts +8 -0
- package/dist/diagnostics/buffer.d.ts.map +1 -0
- package/dist/diagnostics/buffer.js +25 -0
- package/dist/diagnostics/envCapability.d.ts +3 -0
- package/dist/diagnostics/envCapability.d.ts.map +1 -0
- package/dist/diagnostics/envCapability.js +40 -0
- package/dist/diagnostics/floodControl.d.ts +6 -0
- package/dist/diagnostics/floodControl.d.ts.map +1 -0
- package/dist/diagnostics/floodControl.js +29 -0
- package/dist/diagnostics/index.d.ts +8 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/diagnostics/index.js +17 -0
- package/dist/diagnostics/install.d.ts +20 -0
- package/dist/diagnostics/install.d.ts.map +1 -0
- package/dist/diagnostics/install.js +159 -0
- package/dist/diagnostics/redaction.d.ts +7 -0
- package/dist/diagnostics/redaction.d.ts.map +1 -0
- package/dist/diagnostics/redaction.js +73 -0
- package/dist/diagnostics/transport.d.ts +15 -0
- package/dist/diagnostics/transport.d.ts.map +1 -0
- package/dist/diagnostics/transport.js +35 -0
- package/dist/diagnostics/types.d.ts +59 -0
- package/dist/diagnostics/types.d.ts.map +1 -0
- package/dist/diagnostics/types.js +1 -0
- package/dist/documentCapture/controller.d.ts +35 -0
- package/dist/documentCapture/controller.d.ts.map +1 -0
- package/dist/documentCapture/controller.js +254 -0
- package/dist/documentCapture/index.d.ts +4 -0
- package/dist/documentCapture/index.d.ts.map +1 -0
- package/dist/documentCapture/index.js +8 -0
- package/dist/documentCapture/reducer.d.ts +31 -0
- package/dist/documentCapture/reducer.d.ts.map +1 -0
- package/dist/documentCapture/reducer.js +87 -0
- package/dist/documentCapture/state.d.ts +49 -0
- package/dist/documentCapture/state.d.ts.map +1 -0
- package/dist/documentCapture/state.js +36 -0
- package/dist/idCapture/controller.d.ts +228 -0
- package/dist/idCapture/controller.d.ts.map +1 -0
- package/dist/idCapture/controller.js +1453 -0
- package/dist/idCapture/errors.d.ts +36 -0
- package/dist/idCapture/errors.d.ts.map +1 -0
- package/dist/idCapture/errors.js +18 -0
- package/dist/idCapture/guidance.d.ts +80 -0
- package/dist/idCapture/guidance.d.ts.map +1 -0
- package/dist/idCapture/guidance.js +143 -0
- package/dist/idCapture/index.d.ts +22 -0
- package/dist/idCapture/index.d.ts.map +1 -0
- package/dist/idCapture/index.js +46 -0
- package/dist/idCapture/phase.d.ts +10 -0
- package/dist/idCapture/phase.d.ts.map +1 -0
- package/dist/idCapture/phase.js +28 -0
- package/dist/idCapture/pipeline.d.ts +176 -0
- package/dist/idCapture/pipeline.d.ts.map +1 -0
- package/dist/idCapture/pipeline.js +1028 -0
- package/dist/idCapture/reducer.d.ts +3 -0
- package/dist/idCapture/reducer.d.ts.map +1 -0
- package/dist/idCapture/reducer.js +661 -0
- package/dist/idCapture/requirements.d.ts +10 -0
- package/dist/idCapture/requirements.d.ts.map +1 -0
- package/dist/idCapture/requirements.js +43 -0
- package/dist/idCapture/stabilizer.d.ts +2 -0
- package/dist/idCapture/stabilizer.d.ts.map +1 -0
- package/dist/idCapture/stabilizer.js +4 -0
- package/dist/idCapture/state.d.ts +426 -0
- package/dist/idCapture/state.d.ts.map +1 -0
- package/dist/idCapture/state.js +91 -0
- package/dist/idCapture/submit.d.ts +33 -0
- package/dist/idCapture/submit.d.ts.map +1 -0
- package/dist/idCapture/submit.js +105 -0
- package/dist/idCapture/types.d.ts +20 -0
- package/dist/idCapture/types.d.ts.map +1 -0
- package/dist/idCapture/types.js +12 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/liveness/challengeGeometry.d.ts +66 -0
- package/dist/liveness/challengeGeometry.d.ts.map +1 -0
- package/dist/liveness/challengeGeometry.js +226 -0
- package/dist/liveness/challengeSequence.d.ts +49 -0
- package/dist/liveness/challengeSequence.d.ts.map +1 -0
- package/dist/liveness/challengeSequence.js +71 -0
- package/dist/liveness/index.d.ts +4 -0
- package/dist/liveness/index.d.ts.map +1 -0
- package/dist/liveness/index.js +3 -0
- package/dist/liveness/livenessResult.d.ts +11 -0
- package/dist/liveness/livenessResult.d.ts.map +1 -0
- package/dist/liveness/livenessResult.js +16 -0
- package/dist/models/BarcodeReadability.d.ts +36 -0
- package/dist/models/BarcodeReadability.d.ts.map +1 -0
- package/dist/models/BarcodeReadability.js +71 -0
- package/dist/models/CapabilityProbing.d.ts +25 -0
- package/dist/models/CapabilityProbing.d.ts.map +1 -0
- package/dist/models/CapabilityProbing.js +172 -0
- package/dist/models/DocumentDetection.d.ts +96 -0
- package/dist/models/DocumentDetection.d.ts.map +1 -0
- package/dist/models/DocumentDetection.js +257 -0
- package/dist/models/FaceDetection.d.ts +21 -0
- package/dist/models/FaceDetection.d.ts.map +1 -0
- package/dist/models/FaceDetection.js +4 -0
- package/dist/models/Focus.d.ts +36 -0
- package/dist/models/Focus.d.ts.map +1 -0
- package/dist/models/Focus.js +69 -0
- package/dist/models/FrameLoop.d.ts +13 -0
- package/dist/models/FrameLoop.d.ts.map +1 -0
- package/dist/models/FrameLoop.js +56 -0
- package/dist/models/VisionRuntime.d.ts +18 -0
- package/dist/models/VisionRuntime.d.ts.map +1 -0
- package/dist/models/VisionRuntime.js +158 -0
- package/dist/models/defaults/BarcodeReadability.d.ts +3 -0
- package/dist/models/defaults/BarcodeReadability.d.ts.map +1 -0
- package/dist/models/defaults/BarcodeReadability.js +3 -0
- package/dist/models/defaults/BarcodeReadabilityLiteRT.d.ts +3 -0
- package/dist/models/defaults/BarcodeReadabilityLiteRT.d.ts.map +1 -0
- package/dist/models/defaults/BarcodeReadabilityLiteRT.js +3 -0
- package/dist/models/defaults/DocumentDetector.d.ts +3 -0
- package/dist/models/defaults/DocumentDetector.d.ts.map +1 -0
- package/dist/models/defaults/DocumentDetector.js +3 -0
- package/dist/models/defaults/DocumentDetectorLiteRT.d.ts +3 -0
- package/dist/models/defaults/DocumentDetectorLiteRT.d.ts.map +1 -0
- package/dist/models/defaults/DocumentDetectorLiteRT.js +3 -0
- package/dist/models/defaults/FaceDetector.d.ts +3 -0
- package/dist/models/defaults/FaceDetector.d.ts.map +1 -0
- package/dist/models/defaults/FaceDetector.js +3 -0
- package/dist/models/defaults/FaceLandmarker.d.ts +3 -0
- package/dist/models/defaults/FaceLandmarker.d.ts.map +1 -0
- package/dist/models/defaults/FaceLandmarker.js +8 -0
- package/dist/models/defaults/FaceLandmarkerLiteRT.d.ts +3 -0
- package/dist/models/defaults/FaceLandmarkerLiteRT.d.ts.map +1 -0
- package/dist/models/defaults/FaceLandmarkerLiteRT.js +3 -0
- package/dist/models/defaults/Focus.d.ts +3 -0
- package/dist/models/defaults/Focus.d.ts.map +1 -0
- package/dist/models/defaults/Focus.js +3 -0
- package/dist/models/defaults/FocusLiteRT.d.ts +3 -0
- package/dist/models/defaults/FocusLiteRT.d.ts.map +1 -0
- package/dist/models/defaults/FocusLiteRT.js +3 -0
- package/dist/models/defaults/index.d.ts +31 -0
- package/dist/models/defaults/index.d.ts.map +1 -0
- package/dist/models/defaults/index.js +38 -0
- package/dist/models/helpers.d.ts +25 -0
- package/dist/models/helpers.d.ts.map +1 -0
- package/dist/models/helpers.js +98 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +14 -0
- package/dist/models/modelLifecycle.d.ts +26 -0
- package/dist/models/modelLifecycle.d.ts.map +1 -0
- package/dist/models/modelLifecycle.js +137 -0
- package/dist/models/occlusion.d.ts +20 -0
- package/dist/models/occlusion.d.ts.map +1 -0
- package/dist/models/occlusion.js +109 -0
- package/dist/models/passportBooklet.d.ts +34 -0
- package/dist/models/passportBooklet.d.ts.map +1 -0
- package/dist/models/passportBooklet.js +152 -0
- package/dist/models/preloadModels.d.ts +42 -0
- package/dist/models/preloadModels.d.ts.map +1 -0
- package/dist/models/preloadModels.js +204 -0
- package/dist/models/providers/litert/BarcodeReadability.d.ts +11 -0
- package/dist/models/providers/litert/BarcodeReadability.d.ts.map +1 -0
- package/dist/models/providers/litert/BarcodeReadability.js +135 -0
- package/dist/models/providers/litert/CapabilityProbe.d.ts +3 -0
- package/dist/models/providers/litert/CapabilityProbe.d.ts.map +1 -0
- package/dist/models/providers/litert/CapabilityProbe.js +44 -0
- package/dist/models/providers/litert/DocumentDetection.d.ts +18 -0
- package/dist/models/providers/litert/DocumentDetection.d.ts.map +1 -0
- package/dist/models/providers/litert/DocumentDetection.js +194 -0
- package/dist/models/providers/litert/FaceDetection.d.ts +11 -0
- package/dist/models/providers/litert/FaceDetection.d.ts.map +1 -0
- package/dist/models/providers/litert/FaceDetection.js +204 -0
- package/dist/models/providers/litert/FaceLandmarker.d.ts +11 -0
- package/dist/models/providers/litert/FaceLandmarker.d.ts.map +1 -0
- package/dist/models/providers/litert/FaceLandmarker.js +199 -0
- package/dist/models/providers/litert/Focus.d.ts +11 -0
- package/dist/models/providers/litert/Focus.d.ts.map +1 -0
- package/dist/models/providers/litert/Focus.js +141 -0
- package/dist/models/providers/litert/barcodeReadabilityPrePost.d.ts +6 -0
- package/dist/models/providers/litert/barcodeReadabilityPrePost.d.ts.map +1 -0
- package/dist/models/providers/litert/barcodeReadabilityPrePost.js +68 -0
- package/dist/models/providers/litert/blazeFacePrePost.d.ts +30 -0
- package/dist/models/providers/litert/blazeFacePrePost.d.ts.map +1 -0
- package/dist/models/providers/litert/blazeFacePrePost.js +206 -0
- package/dist/models/providers/litert/docDetectPrePost.d.ts +25 -0
- package/dist/models/providers/litert/docDetectPrePost.d.ts.map +1 -0
- package/dist/models/providers/litert/docDetectPrePost.js +197 -0
- package/dist/models/providers/litert/faceMeshPrePost.d.ts +23 -0
- package/dist/models/providers/litert/faceMeshPrePost.d.ts.map +1 -0
- package/dist/models/providers/litert/faceMeshPrePost.js +86 -0
- package/dist/models/providers/litert/focusPrePost.d.ts +6 -0
- package/dist/models/providers/litert/focusPrePost.d.ts.map +1 -0
- package/dist/models/providers/litert/focusPrePost.js +67 -0
- package/dist/models/providers/litert/runtime.d.ts +14 -0
- package/dist/models/providers/litert/runtime.d.ts.map +1 -0
- package/dist/models/providers/litert/runtime.js +83 -0
- package/dist/models/providers/mediapipe/BarcodeReadability.d.ts +11 -0
- package/dist/models/providers/mediapipe/BarcodeReadability.d.ts.map +1 -0
- package/dist/models/providers/mediapipe/BarcodeReadability.js +68 -0
- package/dist/models/providers/mediapipe/CapabilityProbe.d.ts +2 -0
- package/dist/models/providers/mediapipe/CapabilityProbe.d.ts.map +1 -0
- package/dist/models/providers/mediapipe/CapabilityProbe.js +14 -0
- package/dist/models/providers/mediapipe/DocumentDetection.d.ts +12 -0
- package/dist/models/providers/mediapipe/DocumentDetection.d.ts.map +1 -0
- package/dist/models/providers/mediapipe/DocumentDetection.js +90 -0
- package/dist/models/providers/mediapipe/FaceDetection.d.ts +11 -0
- package/dist/models/providers/mediapipe/FaceDetection.d.ts.map +1 -0
- package/dist/models/providers/mediapipe/FaceDetection.js +93 -0
- package/dist/models/providers/mediapipe/FaceLandmarker.d.ts +46 -0
- package/dist/models/providers/mediapipe/FaceLandmarker.d.ts.map +1 -0
- package/dist/models/providers/mediapipe/FaceLandmarker.js +166 -0
- package/dist/models/providers/mediapipe/Focus.d.ts +11 -0
- package/dist/models/providers/mediapipe/Focus.d.ts.map +1 -0
- package/dist/models/providers/mediapipe/Focus.js +51 -0
- package/dist/models/runtimeSelection.d.ts +5 -0
- package/dist/models/runtimeSelection.d.ts.map +1 -0
- package/dist/models/runtimeSelection.js +21 -0
- package/dist/selfieCapture/challengeRunner.d.ts +38 -0
- package/dist/selfieCapture/challengeRunner.d.ts.map +1 -0
- package/dist/selfieCapture/challengeRunner.js +181 -0
- package/dist/selfieCapture/controller.d.ts +166 -0
- package/dist/selfieCapture/controller.d.ts.map +1 -0
- package/dist/selfieCapture/controller.js +1253 -0
- package/dist/selfieCapture/faceTracking.d.ts +67 -0
- package/dist/selfieCapture/faceTracking.d.ts.map +1 -0
- package/dist/selfieCapture/faceTracking.js +158 -0
- package/dist/selfieCapture/guidance.d.ts +24 -0
- package/dist/selfieCapture/guidance.d.ts.map +1 -0
- package/dist/selfieCapture/guidance.js +41 -0
- package/dist/selfieCapture/index.d.ts +18 -0
- package/dist/selfieCapture/index.d.ts.map +1 -0
- package/dist/selfieCapture/index.js +11 -0
- package/dist/selfieCapture/lighting.d.ts +36 -0
- package/dist/selfieCapture/lighting.d.ts.map +1 -0
- package/dist/selfieCapture/lighting.js +95 -0
- package/dist/selfieCapture/livenessMachine.d.ts +66 -0
- package/dist/selfieCapture/livenessMachine.d.ts.map +1 -0
- package/dist/selfieCapture/livenessMachine.js +137 -0
- package/dist/selfieCapture/pipeline.d.ts +42 -0
- package/dist/selfieCapture/pipeline.d.ts.map +1 -0
- package/dist/selfieCapture/pipeline.js +282 -0
- package/dist/selfieCapture/reducer.d.ts +35 -0
- package/dist/selfieCapture/reducer.d.ts.map +1 -0
- package/dist/selfieCapture/reducer.js +143 -0
- package/dist/selfieCapture/state.d.ts +40 -0
- package/dist/selfieCapture/state.d.ts.map +1 -0
- package/dist/selfieCapture/state.js +36 -0
- package/dist/selfieCapture/testing/challengeFixtures.d.ts +43 -0
- package/dist/selfieCapture/testing/challengeFixtures.d.ts.map +1 -0
- package/dist/selfieCapture/testing/challengeFixtures.js +43 -0
- package/dist/signature/frameDecode.d.ts +48 -0
- package/dist/signature/frameDecode.d.ts.map +1 -0
- package/dist/signature/frameDecode.js +491 -0
- package/dist/signature/index.d.ts +5 -0
- package/dist/signature/index.d.ts.map +1 -0
- package/dist/signature/index.js +4 -0
- package/dist/signature/metadata.d.ts +63 -0
- package/dist/signature/metadata.d.ts.map +1 -0
- package/dist/signature/metadata.js +1 -0
- package/dist/signature/quality.d.ts +169 -0
- package/dist/signature/quality.d.ts.map +1 -0
- package/dist/signature/quality.js +186 -0
- package/dist/signature/signatureValidity.d.ts +149 -0
- package/dist/signature/signatureValidity.d.ts.map +1 -0
- package/dist/signature/signatureValidity.js +305 -0
- package/dist/signatureCapture/controller.d.ts +67 -0
- package/dist/signatureCapture/controller.d.ts.map +1 -0
- package/dist/signatureCapture/controller.js +534 -0
- package/dist/signatureCapture/guidance.d.ts +9 -0
- package/dist/signatureCapture/guidance.d.ts.map +1 -0
- package/dist/signatureCapture/guidance.js +7 -0
- package/dist/signatureCapture/index.d.ts +6 -0
- package/dist/signatureCapture/index.d.ts.map +1 -0
- package/dist/signatureCapture/index.js +5 -0
- package/dist/signatureCapture/pipeline.d.ts +111 -0
- package/dist/signatureCapture/pipeline.d.ts.map +1 -0
- package/dist/signatureCapture/pipeline.js +680 -0
- package/dist/signatureCapture/reducer.d.ts +42 -0
- package/dist/signatureCapture/reducer.d.ts.map +1 -0
- package/dist/signatureCapture/reducer.js +159 -0
- package/dist/signatureCapture/state.d.ts +92 -0
- package/dist/signatureCapture/state.d.ts.map +1 -0
- package/dist/signatureCapture/state.js +24 -0
- package/dist/utils/canvas.d.ts +4 -0
- package/dist/utils/canvas.d.ts.map +1 -0
- package/dist/utils/canvas.js +21 -0
- package/dist/utils/cropping.d.ts +8 -0
- package/dist/utils/cropping.d.ts.map +1 -0
- package/dist/utils/cropping.js +85 -0
- package/dist/utils/dataUrlToBase64.d.ts +7 -0
- package/dist/utils/dataUrlToBase64.d.ts.map +1 -0
- package/dist/utils/dataUrlToBase64.js +67 -0
- package/dist/utils/getFrameDimensions.d.ts +3 -0
- package/dist/utils/getFrameDimensions.d.ts.map +1 -0
- package/dist/utils/getFrameDimensions.js +12 -0
- package/dist/utils/isMobile.d.ts +3 -0
- package/dist/utils/isMobile.d.ts.map +1 -0
- package/dist/utils/isMobile.js +36 -0
- package/dist/utils/logger.d.ts +19 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +25 -0
- package/dist/utils/platform.d.ts +4 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +11 -0
- package/dist/utils/stabilizer.d.ts +26 -0
- package/dist/utils/stabilizer.d.ts.map +1 -0
- package/dist/utils/stabilizer.js +65 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +1 -0
- package/dist/videoIdCapture/controller.d.ts +108 -0
- package/dist/videoIdCapture/controller.d.ts.map +1 -0
- package/dist/videoIdCapture/controller.js +833 -0
- package/dist/videoIdCapture/index.d.ts +5 -0
- package/dist/videoIdCapture/index.d.ts.map +1 -0
- package/dist/videoIdCapture/index.js +2 -0
- package/dist/videoIdCapture/state.d.ts +88 -0
- package/dist/videoIdCapture/state.d.ts.map +1 -0
- package/dist/videoIdCapture/state.js +67 -0
- package/package.json +111 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { preloadDocumentDetectorDependencies } from './preloadModels';
|
|
2
|
+
import { average, calculateIoU, convertBoundingBox } from './helpers';
|
|
3
|
+
import { defaultDocumentDetectorModelPath, defaultDocumentDetectorLiteRTModelPath, } from './defaults';
|
|
4
|
+
export * from './defaults/DocumentDetector';
|
|
5
|
+
export const defaultDocumentDetectionScoreThreshold = 0.1;
|
|
6
|
+
export const defaultDocumentDetectionModelLoadTimeoutMs = 45000;
|
|
7
|
+
export const defaultDocumentDetectionThresholds = {
|
|
8
|
+
idCardFront: 0.6,
|
|
9
|
+
idCardBack: 0.6,
|
|
10
|
+
passport: 0.4,
|
|
11
|
+
singlePage: 0.4,
|
|
12
|
+
stability: {
|
|
13
|
+
idCardFront: 0.85,
|
|
14
|
+
idCardBack: 0.85,
|
|
15
|
+
passport: 0.5,
|
|
16
|
+
singlePage: 0.5,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export const documentTypeDisplayNames = {
|
|
20
|
+
idCardFront: 'ID card front',
|
|
21
|
+
idCardBack: 'ID card back',
|
|
22
|
+
passport: 'Passport',
|
|
23
|
+
singlePage: 'Single page',
|
|
24
|
+
none: 'None',
|
|
25
|
+
};
|
|
26
|
+
let provider = null;
|
|
27
|
+
let activeRuntime = null;
|
|
28
|
+
async function ensureProviderLoaded(runtime) {
|
|
29
|
+
if (provider && activeRuntime === runtime)
|
|
30
|
+
return provider;
|
|
31
|
+
if (provider)
|
|
32
|
+
provider.close();
|
|
33
|
+
provider =
|
|
34
|
+
runtime === 'mediapipe'
|
|
35
|
+
? await import('./providers/mediapipe/DocumentDetection')
|
|
36
|
+
: await import('./providers/litert/DocumentDetection');
|
|
37
|
+
activeRuntime = runtime;
|
|
38
|
+
return provider;
|
|
39
|
+
}
|
|
40
|
+
function defaultModelPathForRuntime(runtime) {
|
|
41
|
+
return runtime === 'mediapipe'
|
|
42
|
+
? defaultDocumentDetectorModelPath
|
|
43
|
+
: defaultDocumentDetectorLiteRTModelPath;
|
|
44
|
+
}
|
|
45
|
+
export async function loadDocumentDetector(modelAssetPath, scoreThreshold = defaultDocumentDetectionScoreThreshold, runtime = 'mediapipe', opts = {}) {
|
|
46
|
+
if (opts.enableFingerOcclusionGuidance && runtime !== 'litert') {
|
|
47
|
+
throw new Error('enableFingerOcclusionGuidance requires documentDetectorRuntime="litert". ' +
|
|
48
|
+
'Either switch runtimes or set enableFingerOcclusionGuidance={false}.');
|
|
49
|
+
}
|
|
50
|
+
if (opts.enableGlareOcclusionGuidance && runtime !== 'litert') {
|
|
51
|
+
throw new Error('enableGlareOcclusionGuidance requires documentDetectorRuntime="litert". ' +
|
|
52
|
+
'Either switch runtimes or set enableGlareOcclusionGuidance={false}.');
|
|
53
|
+
}
|
|
54
|
+
if (opts.enableHologramOcclusionGuidance && runtime !== 'litert') {
|
|
55
|
+
throw new Error('enableHologramOcclusionGuidance requires documentDetectorRuntime="litert". ' +
|
|
56
|
+
'Either switch runtimes or set enableHologramOcclusionGuidance={false}.');
|
|
57
|
+
}
|
|
58
|
+
const resolvedPath = modelAssetPath ?? defaultModelPathForRuntime(runtime);
|
|
59
|
+
await preloadDocumentDetectorDependencies(runtime);
|
|
60
|
+
const p = await ensureProviderLoaded(runtime);
|
|
61
|
+
await p.load({ modelAssetPath: resolvedPath, scoreThreshold });
|
|
62
|
+
}
|
|
63
|
+
export function closeDocumentDetector() {
|
|
64
|
+
provider?.close();
|
|
65
|
+
}
|
|
66
|
+
// Known-good-frame validation step of the load sequence. sdk2's
|
|
67
|
+
// useLoadDocumentDetector called `provider!.testAgainstKnownImage()` directly
|
|
68
|
+
// (sdk2/src/lib/models/DocumentDetection.ts:261); the provider handle is
|
|
69
|
+
// module-private here, so the detection pipeline's load lifecycle reaches it
|
|
70
|
+
// through this wrapper. Only meaningful after loadDocumentDetector resolves.
|
|
71
|
+
export async function testDocumentDetectorAgainstKnownImage() {
|
|
72
|
+
await provider?.testAgainstKnownImage();
|
|
73
|
+
}
|
|
74
|
+
export async function makeDocumentDetectorPrediction(frame) {
|
|
75
|
+
if (!provider)
|
|
76
|
+
return null;
|
|
77
|
+
return provider.predict(frame);
|
|
78
|
+
}
|
|
79
|
+
export let lastDetectionAt = 0;
|
|
80
|
+
export let lastDetectionTime = 0;
|
|
81
|
+
export function setLastDetectionAt(time) {
|
|
82
|
+
lastDetectionTime = time - lastDetectionAt;
|
|
83
|
+
lastDetectionAt = time;
|
|
84
|
+
}
|
|
85
|
+
const framesNeededSamples = [];
|
|
86
|
+
function trackFramesNeeded(value, bufferLength = 25) {
|
|
87
|
+
framesNeededSamples.unshift(value);
|
|
88
|
+
if (framesNeededSamples.length > bufferLength)
|
|
89
|
+
framesNeededSamples.length = bufferLength;
|
|
90
|
+
}
|
|
91
|
+
const lastNBoxes = [];
|
|
92
|
+
const lastNPairs = [];
|
|
93
|
+
function trackBox(box, framesNeeded = 12) {
|
|
94
|
+
lastNBoxes.unshift(box);
|
|
95
|
+
if (lastNBoxes.length > framesNeeded)
|
|
96
|
+
lastNBoxes.length = framesNeeded;
|
|
97
|
+
if (lastNBoxes.length > 1) {
|
|
98
|
+
const lastBox = lastNBoxes[1];
|
|
99
|
+
const iou = calculateIoU(box, lastBox);
|
|
100
|
+
lastNPairs.unshift({ a: box, b: lastBox, iou });
|
|
101
|
+
if (lastNPairs.length > framesNeeded - 1)
|
|
102
|
+
lastNPairs.length = framesNeeded - 1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export const defaultDocumentDetectionBoundaries = {
|
|
106
|
+
top: 20,
|
|
107
|
+
bottom: 20,
|
|
108
|
+
left: 20,
|
|
109
|
+
right: 20,
|
|
110
|
+
edgeMarginPct: 0,
|
|
111
|
+
};
|
|
112
|
+
export function processDocumentDetectorPrediction(prediction, thresholds, boundaries = defaultDocumentDetectionBoundaries) {
|
|
113
|
+
const { detections, frameWidth, frameHeight, time } = prediction;
|
|
114
|
+
const boundaryTop = boundaries.top ?? 20;
|
|
115
|
+
const boundaryLeft = boundaries.left ?? 20;
|
|
116
|
+
const boundaryRight = boundaries.right ?? 20;
|
|
117
|
+
const boundaryBottom = boundaries.bottom ?? 20;
|
|
118
|
+
const frameWidth80Pct = frameWidth * 0.8;
|
|
119
|
+
const detectedObjects = applyNonMaxSuppression(detections.flatMap((d) => d.categories.map((category) => {
|
|
120
|
+
return {
|
|
121
|
+
label: category?.categoryName,
|
|
122
|
+
score: category?.score,
|
|
123
|
+
box: convertBoundingBox(d.boundingBox),
|
|
124
|
+
};
|
|
125
|
+
})), (obj) => {
|
|
126
|
+
// Skip boundary filtering for PDF417 - barcodes can be anywhere in frame,
|
|
127
|
+
// especially during recapture when user zooms in on the barcode
|
|
128
|
+
if (obj.label === 'PDF417') {
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
const { xMin, yMin, width, height } = obj.box;
|
|
132
|
+
return (yMin > boundaryTop && // Is it valid top edge of ID detected?
|
|
133
|
+
yMin + height + boundaryBottom < frameHeight && // Is it valid bottom edge less than max video height
|
|
134
|
+
(xMin > boundaryLeft || xMin + width > frameWidth80Pct) && // If either the left side visible or if not, right edge of ID should be more than 80% of width.
|
|
135
|
+
xMin + width + boundaryRight < frameWidth // Valid right edge if it's less than video width.
|
|
136
|
+
);
|
|
137
|
+
});
|
|
138
|
+
const allZero = detections.length > 0 &&
|
|
139
|
+
!detections.some(({ boundingBox }) => Object.values(boundingBox ?? {}).some((n) => n > 0));
|
|
140
|
+
const bestIdCardFront = detectedObjects.find((obj) => obj.label === 'Document');
|
|
141
|
+
const bestIdCardBack = detectedObjects.find((obj) => obj.label === 'Document back');
|
|
142
|
+
const bestPassportPage = detectedObjects.find((obj) => obj.label === 'Passport page');
|
|
143
|
+
const bestSinglePage = detectedObjects.find((obj) => obj.label === 'Single page');
|
|
144
|
+
const idCardFrontDetectionScore = bestIdCardFront?.score ?? 0;
|
|
145
|
+
const idCardBackDetectionScore = bestIdCardBack?.score ?? 0;
|
|
146
|
+
const passportDetectionScore = bestPassportPage?.score ?? 0;
|
|
147
|
+
const singlePageDetectionScore = bestSinglePage?.score ?? 0;
|
|
148
|
+
const idCardFrontDetectionThresholdMet = idCardFrontDetectionScore >= (thresholds.idCardFront ?? 0);
|
|
149
|
+
const idCardBackDetectionThresholdMet = idCardBackDetectionScore >= (thresholds.idCardBack ?? 0);
|
|
150
|
+
const passportDetectionThresholdMet = passportDetectionScore >= (thresholds.passport ?? 0);
|
|
151
|
+
const singlePageDetectionThresholdMet = singlePageDetectionScore >= (thresholds.singlePage ?? 0);
|
|
152
|
+
const bestDocument = singlePageDetectionThresholdMet
|
|
153
|
+
? bestSinglePage
|
|
154
|
+
: passportDetectionThresholdMet
|
|
155
|
+
? bestPassportPage
|
|
156
|
+
: idCardBackDetectionThresholdMet
|
|
157
|
+
? bestIdCardBack
|
|
158
|
+
: bestIdCardFront;
|
|
159
|
+
const detectionThreshold = singlePageDetectionThresholdMet
|
|
160
|
+
? thresholds.singlePage
|
|
161
|
+
: passportDetectionThresholdMet
|
|
162
|
+
? thresholds.passport
|
|
163
|
+
: idCardBackDetectionThresholdMet
|
|
164
|
+
? thresholds.idCardBack
|
|
165
|
+
: thresholds.idCardFront;
|
|
166
|
+
const detectionScore = bestDocument?.score ?? 0;
|
|
167
|
+
const detectionThresholdMet = detectionScore >= (detectionThreshold ?? 0);
|
|
168
|
+
let detectedDocumentType = 'none';
|
|
169
|
+
if (singlePageDetectionThresholdMet) {
|
|
170
|
+
detectedDocumentType = 'singlePage';
|
|
171
|
+
}
|
|
172
|
+
else if (passportDetectionThresholdMet) {
|
|
173
|
+
detectedDocumentType = 'passport';
|
|
174
|
+
}
|
|
175
|
+
else if (idCardBackDetectionThresholdMet) {
|
|
176
|
+
detectedDocumentType = 'idCardBack';
|
|
177
|
+
}
|
|
178
|
+
else if (detectionThresholdMet) {
|
|
179
|
+
detectedDocumentType = 'idCardFront';
|
|
180
|
+
}
|
|
181
|
+
const documentInBounds = !!bestDocument;
|
|
182
|
+
if (lastDetectionTime > 0) {
|
|
183
|
+
trackFramesNeeded(1000 / lastDetectionTime);
|
|
184
|
+
}
|
|
185
|
+
let documentIsStable = false;
|
|
186
|
+
let documentTooClose = false;
|
|
187
|
+
if (bestDocument) {
|
|
188
|
+
const [docWidth, docHeight] = [
|
|
189
|
+
bestDocument.box.width / frameWidth,
|
|
190
|
+
bestDocument.box.height / frameHeight,
|
|
191
|
+
];
|
|
192
|
+
const minimumEdgeMarginRatio = Math.max(0, Math.min(boundaries.edgeMarginPct ?? 0, 50)) / 100;
|
|
193
|
+
const leftMargin = bestDocument.box.xMin / frameWidth;
|
|
194
|
+
const rightMargin = (frameWidth - bestDocument.box.xMax) / frameWidth;
|
|
195
|
+
const topMargin = bestDocument.box.yMin / frameHeight;
|
|
196
|
+
const bottomMargin = (frameHeight - bestDocument.box.yMax) / frameHeight;
|
|
197
|
+
const documentTouchesEdge = minimumEdgeMarginRatio > 0 &&
|
|
198
|
+
(leftMargin < minimumEdgeMarginRatio ||
|
|
199
|
+
rightMargin < minimumEdgeMarginRatio ||
|
|
200
|
+
topMargin < minimumEdgeMarginRatio ||
|
|
201
|
+
bottomMargin < minimumEdgeMarginRatio);
|
|
202
|
+
documentTooClose =
|
|
203
|
+
docWidth > 0.85 || docHeight > 0.85 || documentTouchesEdge;
|
|
204
|
+
if (detectionThresholdMet && documentInBounds && !documentTooClose) {
|
|
205
|
+
const thresholdSet = (thresholds.stability ??
|
|
206
|
+
defaultDocumentDetectionThresholds.stability);
|
|
207
|
+
const threshold = thresholdSet[detectedDocumentType];
|
|
208
|
+
const framesNeeded = Math.ceil(average(framesNeededSamples));
|
|
209
|
+
trackBox(bestDocument.box, framesNeeded);
|
|
210
|
+
documentIsStable =
|
|
211
|
+
lastNBoxes.length >= framesNeeded &&
|
|
212
|
+
!lastNPairs.some((pair) => pair.iou < threshold);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
let bestPDF417;
|
|
216
|
+
if (detectedObjects.length > 0) {
|
|
217
|
+
bestPDF417 = detectedObjects.find((obj) => obj.label === 'PDF417');
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
prediction,
|
|
221
|
+
detectedObjects,
|
|
222
|
+
detectionScore,
|
|
223
|
+
detectionTime: time,
|
|
224
|
+
detectionThresholdMet,
|
|
225
|
+
detectedDocumentType,
|
|
226
|
+
idCardFrontDetectionScore,
|
|
227
|
+
idCardFrontDetectionThresholdMet,
|
|
228
|
+
idCardBackDetectionScore,
|
|
229
|
+
idCardBackDetectionThresholdMet,
|
|
230
|
+
passportDetectionScore,
|
|
231
|
+
passportDetectionThresholdMet,
|
|
232
|
+
singlePageDetectionScore,
|
|
233
|
+
singlePageDetectionThresholdMet,
|
|
234
|
+
bestDocument,
|
|
235
|
+
bestPDF417,
|
|
236
|
+
documentInBounds,
|
|
237
|
+
documentTooClose,
|
|
238
|
+
documentIsStable,
|
|
239
|
+
frameWidth,
|
|
240
|
+
frameHeight,
|
|
241
|
+
allZero,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
function applyNonMaxSuppression(detectedObjects, isGoodBox) {
|
|
245
|
+
const maxes = {};
|
|
246
|
+
detectedObjects.forEach((obj, i) => {
|
|
247
|
+
if (obj) {
|
|
248
|
+
if (!maxes[obj.label])
|
|
249
|
+
maxes[obj.label] = [0, -1];
|
|
250
|
+
if (obj.score > maxes[obj.label][0] && isGoodBox?.(obj))
|
|
251
|
+
maxes[obj.label] = [obj.score, i];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
return Object.keys(maxes)
|
|
255
|
+
.map((label) => detectedObjects[maxes[label][1]])
|
|
256
|
+
.filter((obj) => !!obj);
|
|
257
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type FaceKeypoint = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export type Face = {
|
|
7
|
+
keypoints: (FaceKeypoint | null)[];
|
|
8
|
+
box: {
|
|
9
|
+
xMin: number;
|
|
10
|
+
xMax: number;
|
|
11
|
+
yMin: number;
|
|
12
|
+
yMax: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
meshLandmarks?: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=FaceDetection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FaceDetection.d.ts","sourceRoot":"","sources":["../../src/models/FaceDetection.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AACjE,MAAM,MAAM,IAAI,GAAG;IACjB,SAAS,EAAE,CAAC,YAAY,GAAG,IAAI,CAAC,EAAE,CAAA;IAClC,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IAGD,aAAa,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Frame } from '../utils/getFrameDimensions';
|
|
2
|
+
import type { DetectedObjectBox } from './DocumentDetection';
|
|
3
|
+
export * from './defaults/Focus';
|
|
4
|
+
export declare const defaultFocusModelLoadTimeoutMs = 45000;
|
|
5
|
+
export type FocusPrediction = {
|
|
6
|
+
score: number;
|
|
7
|
+
predictionTime: number;
|
|
8
|
+
};
|
|
9
|
+
export type FocusThresholds = {
|
|
10
|
+
idCardFront?: {
|
|
11
|
+
desktop?: number;
|
|
12
|
+
mobile?: number;
|
|
13
|
+
};
|
|
14
|
+
idCardBack?: {
|
|
15
|
+
desktop?: number;
|
|
16
|
+
mobile?: number;
|
|
17
|
+
};
|
|
18
|
+
passport?: {
|
|
19
|
+
desktop?: number;
|
|
20
|
+
mobile?: number;
|
|
21
|
+
};
|
|
22
|
+
singlePage?: {
|
|
23
|
+
desktop?: number;
|
|
24
|
+
mobile?: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const defaultFocusThresholds: FocusThresholds;
|
|
28
|
+
export type FocusRuntime = 'mediapipe' | 'litert';
|
|
29
|
+
export declare function loadFocusModel(modelAssetPath?: string, runtime?: FocusRuntime): Promise<void>;
|
|
30
|
+
export declare function closeFocusModel(): void;
|
|
31
|
+
export declare function classifyFocusModelForVideo(frame: Frame): void;
|
|
32
|
+
export declare let lastFocusPredictionAt: number;
|
|
33
|
+
export declare let lastFocusPredictionTime: number;
|
|
34
|
+
export declare function setLastFocusPredictionAt(time: number): void;
|
|
35
|
+
export declare function makeFocusModelPrediction(imageData: Frame, cropCanvas: HTMLCanvasElement, rotateCanvas: HTMLCanvasElement, box?: DetectedObjectBox): Promise<FocusPrediction | null>;
|
|
36
|
+
//# sourceMappingURL=Focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Focus.d.ts","sourceRoot":"","sources":["../../src/models/Focus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAM5D,cAAc,kBAAkB,CAAA;AAChC,eAAO,MAAM,8BAA8B,QAAQ,CAAA;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,CAAC,EAAE;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,eAiBpC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAA;AAyCjD,wBAAsB,cAAc,CAClC,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,GAAE,YAA0B,GAClC,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAgB,eAAe,SAE9B;AAOD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAE7D;AAED,eAAO,IAAI,qBAAqB,QAAI,CAAA;AACpC,eAAO,IAAI,uBAAuB,QAAI,CAAA;AAEtC,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,QAGpD;AAED,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,KAAK,EAChB,UAAU,EAAE,iBAAiB,EAC7B,YAAY,EAAE,iBAAiB,EAC/B,GAAG,CAAC,EAAE,iBAAiB,GACtB,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAGjC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { preloadFocusModelDependencies } from './preloadModels';
|
|
2
|
+
import { defaultFocusModelPath, defaultFocusLiteRTModelPath, } from './defaults';
|
|
3
|
+
export * from './defaults/Focus';
|
|
4
|
+
export const defaultFocusModelLoadTimeoutMs = 45000;
|
|
5
|
+
export const defaultFocusThresholds = {
|
|
6
|
+
idCardFront: {
|
|
7
|
+
desktop: 0,
|
|
8
|
+
mobile: 0.3,
|
|
9
|
+
},
|
|
10
|
+
idCardBack: {
|
|
11
|
+
desktop: 0,
|
|
12
|
+
mobile: 0.3,
|
|
13
|
+
},
|
|
14
|
+
passport: {
|
|
15
|
+
desktop: 0,
|
|
16
|
+
mobile: 0.3,
|
|
17
|
+
},
|
|
18
|
+
singlePage: {
|
|
19
|
+
desktop: 0,
|
|
20
|
+
mobile: 0.3,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
let provider = null;
|
|
24
|
+
let activeRuntime = null;
|
|
25
|
+
async function ensureProviderLoaded(runtime) {
|
|
26
|
+
if (provider && activeRuntime === runtime)
|
|
27
|
+
return provider;
|
|
28
|
+
if (provider)
|
|
29
|
+
provider.close();
|
|
30
|
+
provider =
|
|
31
|
+
runtime === 'mediapipe'
|
|
32
|
+
? await import('./providers/mediapipe/Focus')
|
|
33
|
+
: await import('./providers/litert/Focus');
|
|
34
|
+
activeRuntime = runtime;
|
|
35
|
+
return provider;
|
|
36
|
+
}
|
|
37
|
+
function defaultModelPathForRuntime(runtime) {
|
|
38
|
+
return runtime === 'mediapipe'
|
|
39
|
+
? defaultFocusModelPath
|
|
40
|
+
: defaultFocusLiteRTModelPath;
|
|
41
|
+
}
|
|
42
|
+
export async function loadFocusModel(modelAssetPath, runtime = 'mediapipe') {
|
|
43
|
+
await preloadFocusModelDependencies(runtime);
|
|
44
|
+
const p = await ensureProviderLoaded(runtime);
|
|
45
|
+
const resolvedPath = modelAssetPath ?? defaultModelPathForRuntime(runtime);
|
|
46
|
+
await p.load({ modelAssetPath: resolvedPath });
|
|
47
|
+
}
|
|
48
|
+
export function closeFocusModel() {
|
|
49
|
+
provider?.close();
|
|
50
|
+
}
|
|
51
|
+
// Live-frame warm-up call of the load sequence. sdk2's useLoadFocusModel
|
|
52
|
+
// called `provider?.classifyForVideo(videoRef.current!)` directly
|
|
53
|
+
// (sdk2/src/lib/models/Focus.ts:190); the provider handle is module-private
|
|
54
|
+
// here, so the detection pipeline's load lifecycle reaches it through this
|
|
55
|
+
// wrapper.
|
|
56
|
+
export function classifyFocusModelForVideo(frame) {
|
|
57
|
+
provider?.classifyForVideo(frame);
|
|
58
|
+
}
|
|
59
|
+
export let lastFocusPredictionAt = 0;
|
|
60
|
+
export let lastFocusPredictionTime = 0;
|
|
61
|
+
export function setLastFocusPredictionAt(time) {
|
|
62
|
+
lastFocusPredictionTime = time - lastFocusPredictionAt;
|
|
63
|
+
lastFocusPredictionAt = time;
|
|
64
|
+
}
|
|
65
|
+
export async function makeFocusModelPrediction(imageData, cropCanvas, rotateCanvas, box) {
|
|
66
|
+
if (!provider)
|
|
67
|
+
return null;
|
|
68
|
+
return await provider.predict(imageData, cropCanvas, rotateCanvas, box);
|
|
69
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type FrameLoopOptions = {
|
|
2
|
+
throttleMs?: number;
|
|
3
|
+
requestAnimationFrame?: (cb: FrameRequestCallback) => number;
|
|
4
|
+
setTimeout?: typeof setTimeout;
|
|
5
|
+
now?: () => number;
|
|
6
|
+
};
|
|
7
|
+
export type FrameLoop = {
|
|
8
|
+
start(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
readonly running: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function createFrameLoop(fn: (frameId: number, timeRunning: number) => Promise<void>, options?: FrameLoopOptions): FrameLoop;
|
|
13
|
+
//# sourceMappingURL=FrameLoop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameLoop.d.ts","sourceRoot":"","sources":["../../src/models/FrameLoop.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qBAAqB,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,MAAM,CAAA;IAC5D,UAAU,CAAC,EAAE,OAAO,UAAU,CAAA;IAC9B,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,IAAI,IAAI,CAAA;IACb,IAAI,IAAI,IAAI,CAAA;IACZ,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,wBAAgB,eAAe,CAC7B,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,EAC3D,OAAO,GAAE,gBAAqB,GAC7B,SAAS,CAyDX"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export function createFrameLoop(fn, options = {}) {
|
|
2
|
+
const throttleMs = options.throttleMs ?? 0;
|
|
3
|
+
const raf = options.requestAnimationFrame ?? ((cb) => requestAnimationFrame(cb));
|
|
4
|
+
// Bound to globalThis for defensive consistency with the io-seam fix.
|
|
5
|
+
// `schedule` is only ever called bare (`schedule(() => {...},
|
|
6
|
+
// amountToThrottle)` below), and browsers give a bare call's `undefined`
|
|
7
|
+
// receiver the WebIDL global fallback, so an unbound reference works here
|
|
8
|
+
// today. The brand check only fails on method invocation via another
|
|
9
|
+
// object (`io.setTimeout(...)` -> `TypeError: Illegal invocation`); the
|
|
10
|
+
// bind guards against this default ever being threaded into such a seam,
|
|
11
|
+
// and satisfies the receiver-strict test fakes (stricter than browsers).
|
|
12
|
+
const schedule = options.setTimeout ?? setTimeout.bind(globalThis);
|
|
13
|
+
const now = options.now ?? (() => Date.now());
|
|
14
|
+
let running = false;
|
|
15
|
+
let loopId = 0;
|
|
16
|
+
let startedAt = 0;
|
|
17
|
+
let frameId = 0;
|
|
18
|
+
function run(currentLoopId) {
|
|
19
|
+
async function hotLoop() {
|
|
20
|
+
if (currentLoopId !== loopId)
|
|
21
|
+
return;
|
|
22
|
+
const start = now();
|
|
23
|
+
const timeRunning = start - startedAt;
|
|
24
|
+
await fn(frameId, timeRunning);
|
|
25
|
+
const took = now() - start;
|
|
26
|
+
const amountToThrottle = Math.max(throttleMs - took, 0);
|
|
27
|
+
schedule(() => {
|
|
28
|
+
frameId = raf(() => void hotLoop());
|
|
29
|
+
}, amountToThrottle);
|
|
30
|
+
}
|
|
31
|
+
void hotLoop();
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
get running() {
|
|
35
|
+
return running;
|
|
36
|
+
},
|
|
37
|
+
start() {
|
|
38
|
+
// start() while already running does NOT spawn a new loop, matching
|
|
39
|
+
// sdk2 useFrameLoop: its setRunning(true) bails on an already-true
|
|
40
|
+
// state, so the effect (and hotLoop chain) is not recreated. sdk2's
|
|
41
|
+
// start() does still reset startedAtRef unconditionally, so we mirror
|
|
42
|
+
// that: timeRunning re-bases, but the live generation is untouched.
|
|
43
|
+
// A true restart requires stop() first.
|
|
44
|
+
startedAt = now();
|
|
45
|
+
if (running)
|
|
46
|
+
return;
|
|
47
|
+
loopId += 1;
|
|
48
|
+
running = true;
|
|
49
|
+
run(loopId);
|
|
50
|
+
},
|
|
51
|
+
stop() {
|
|
52
|
+
loopId += 1; // force the loop to stop immediately.
|
|
53
|
+
running = false;
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const visionTasksBasePath = "https://websdk-cdn-dev.idmission.com/assets/vision_wasm_internal_0.10.7";
|
|
2
|
+
export declare const visionRuntimeHash = "tdLjRcm8XLETT+lUxF1oNst5jULaTGDUc2YtazwbGnLVGD0D/4A274KuJF+adneW";
|
|
3
|
+
/**
|
|
4
|
+
* Wraps an async WASM operation, suppressing known-benign TFLite/LiteRT
|
|
5
|
+
* stderr lines (matched by `wasmStderrPatterns`) for the duration of the
|
|
6
|
+
* call. Nesting is safe — the ref-count tracks overlapping calls and only
|
|
7
|
+
* resumes normal `console.error` behavior when the outermost call exits.
|
|
8
|
+
*/
|
|
9
|
+
export declare function withQuietWasm<T>(fn: () => Promise<T>): Promise<T>;
|
|
10
|
+
/**
|
|
11
|
+
* Synchronous counterpart to `withQuietWasm` for sync WASM calls (e.g.
|
|
12
|
+
* MediaPipe's `detectForVideo` / `classifyForVideo`). Per-frame inference
|
|
13
|
+
* is sync and runs in a hot loop, so wrapping it in the async variant
|
|
14
|
+
* would add a Promise per frame just to bump the ref-count.
|
|
15
|
+
*/
|
|
16
|
+
export declare function withQuietWasmSync<T>(fn: () => T): T;
|
|
17
|
+
export declare function preloadVisionRuntime(): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=VisionRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisionRuntime.d.ts","sourceRoot":"","sources":["../../src/models/VisionRuntime.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB,4EAA4E,CAAA;AAC5G,eAAO,MAAM,iBAAiB,qEACsC,CAAA;AAsGpE;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAOvE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAOnD;AAID,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAqC1D"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { preloadDependency, progressByUseCase, sumUpProgressForDependencies, } from './preloadModels';
|
|
2
|
+
import { debug } from '../utils/logger';
|
|
3
|
+
export const visionTasksBasePath = `https://websdk-cdn-dev.idmission.com/assets/vision_wasm_internal_0.10.7`;
|
|
4
|
+
export const visionRuntimeHash = 'tdLjRcm8XLETT+lUxF1oNst5jULaTGDUc2YtazwbGnLVGD0D/4A274KuJF+adneW';
|
|
5
|
+
// Loose substrings. Any of these could plausibly appear in a line an
|
|
6
|
+
// integrator's own code prints, so they are only filtered while a
|
|
7
|
+
// `withQuietWasm` scope is open.
|
|
8
|
+
const wasmStderrPatterns = [
|
|
9
|
+
'TensorFlow Lite',
|
|
10
|
+
'static-sized tensors',
|
|
11
|
+
'Attempting to use a delegate',
|
|
12
|
+
];
|
|
13
|
+
// LiteRT's own logger, which stamps every line with a C++ source location.
|
|
14
|
+
// Two formats, both routed through Emscripten's stdout/stderr:
|
|
15
|
+
//
|
|
16
|
+
// INFO: [environment.cc:30] Creating LiteRT environment with options
|
|
17
|
+
// I0811 23:10:12.164000 699888 delegate_webgpu.cc:245] Created a WebGPU ...
|
|
18
|
+
//
|
|
19
|
+
// Nothing an integrator prints looks like this, so these are filtered
|
|
20
|
+
// unconditionally rather than only inside a `withQuietWasm` scope. That is
|
|
21
|
+
// load-bearing: LiteRT logs from places no caller can wrap — accelerator
|
|
22
|
+
// registration inside `loadLiteRt`, and WebGPU device callbacks that fire
|
|
23
|
+
// after the awaited compile has already resolved — and every one of those
|
|
24
|
+
// lines reached customers' consoles as a red `console.error`.
|
|
25
|
+
//
|
|
26
|
+
// Only INFO and WARNING are matched. `ERROR:`/`E0811`/`F0811` lines describe
|
|
27
|
+
// a model that did not load or run, so they stay on the console.
|
|
28
|
+
const litertPrefixedLogLine = /^(?:INFO|WARNING): \[[\w.]+\.(?:cc|h):\d+\]/;
|
|
29
|
+
const litertGlogLogLine = /^[IW]\d{4} [\d:.]+\s+\d+\s+[\w.]+\.(?:cc|h):\d+\]/;
|
|
30
|
+
// The one startup line LiteRT prints without a source location. It fires on
|
|
31
|
+
// every browser, every page: the WASM build has no dynamic linking, so the
|
|
32
|
+
// OpenCL probe cannot succeed and is not meant to.
|
|
33
|
+
const litertOpenClProbe = /^INFO: Failed to load OpenCL library with dlopen/;
|
|
34
|
+
function isLiteRtLog(msg) {
|
|
35
|
+
return (litertPrefixedLogLine.test(msg) ||
|
|
36
|
+
litertGlogLogLine.test(msg) ||
|
|
37
|
+
litertOpenClProbe.test(msg));
|
|
38
|
+
}
|
|
39
|
+
function isWasmStderr(msg) {
|
|
40
|
+
return wasmStderrPatterns.some((p) => msg.includes(p));
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Patches the three console channels the WASM runtimes write to, once at
|
|
44
|
+
* module load. A line is diverted to `debug()` when it is either
|
|
45
|
+
*
|
|
46
|
+
* - one of LiteRT's own log lines (`isLiteRtLog`), always, on any channel;
|
|
47
|
+
* - or a known-benign loose match (`isWasmStderr`) on `console.error`
|
|
48
|
+
* while a `withQuietWasm` scope is open.
|
|
49
|
+
*
|
|
50
|
+
* Anything else passes through to the native function untouched.
|
|
51
|
+
*
|
|
52
|
+
* `console.log` and `console.warn` are patched because Emscripten splits the
|
|
53
|
+
* runtime's output across stdout and stderr: the same burst of LiteRT startup
|
|
54
|
+
* lines arrives partly as `console.error` and partly as `console.log`.
|
|
55
|
+
*
|
|
56
|
+
* The eager install (not lazy / first-call) is load-bearing: LiteRT's WASM
|
|
57
|
+
* shim captures the channels via `var err = console.error.bind(console)` at
|
|
58
|
+
* module-eval time. If the patch isn't already in place by that point, `err`
|
|
59
|
+
* binds to the unpatched function and no later reassignment can intercept
|
|
60
|
+
* WASM output. Importing this module before `loadLiteRt` runs is sufficient
|
|
61
|
+
* (LiteRT's runtime.ts does this via the `withQuietWasm` import).
|
|
62
|
+
*/
|
|
63
|
+
let patchInstalled = false;
|
|
64
|
+
let quietWasmRefCount = 0;
|
|
65
|
+
function installWasmStderrFilter() {
|
|
66
|
+
if (patchInstalled)
|
|
67
|
+
return;
|
|
68
|
+
patchInstalled = true;
|
|
69
|
+
/* eslint-disable no-console */
|
|
70
|
+
const nativeError = console.error;
|
|
71
|
+
const nativeWarn = console.warn;
|
|
72
|
+
const nativeLog = console.log;
|
|
73
|
+
console.error = (...args) => {
|
|
74
|
+
const msg = String(args[0]);
|
|
75
|
+
if (isLiteRtLog(msg) || (quietWasmRefCount > 0 && isWasmStderr(msg))) {
|
|
76
|
+
debug(...args);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
nativeError(...args);
|
|
80
|
+
};
|
|
81
|
+
console.warn = (...args) => {
|
|
82
|
+
if (isLiteRtLog(String(args[0]))) {
|
|
83
|
+
debug(...args);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
nativeWarn(...args);
|
|
87
|
+
};
|
|
88
|
+
console.log = (...args) => {
|
|
89
|
+
if (isLiteRtLog(String(args[0]))) {
|
|
90
|
+
debug(...args);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
nativeLog(...args);
|
|
94
|
+
};
|
|
95
|
+
/* eslint-enable no-console */
|
|
96
|
+
}
|
|
97
|
+
installWasmStderrFilter();
|
|
98
|
+
/**
|
|
99
|
+
* Wraps an async WASM operation, suppressing known-benign TFLite/LiteRT
|
|
100
|
+
* stderr lines (matched by `wasmStderrPatterns`) for the duration of the
|
|
101
|
+
* call. Nesting is safe — the ref-count tracks overlapping calls and only
|
|
102
|
+
* resumes normal `console.error` behavior when the outermost call exits.
|
|
103
|
+
*/
|
|
104
|
+
export async function withQuietWasm(fn) {
|
|
105
|
+
quietWasmRefCount++;
|
|
106
|
+
try {
|
|
107
|
+
return await fn();
|
|
108
|
+
}
|
|
109
|
+
finally {
|
|
110
|
+
quietWasmRefCount--;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Synchronous counterpart to `withQuietWasm` for sync WASM calls (e.g.
|
|
115
|
+
* MediaPipe's `detectForVideo` / `classifyForVideo`). Per-frame inference
|
|
116
|
+
* is sync and runs in a hot loop, so wrapping it in the async variant
|
|
117
|
+
* would add a Promise per frame just to bump the ref-count.
|
|
118
|
+
*/
|
|
119
|
+
export function withQuietWasmSync(fn) {
|
|
120
|
+
quietWasmRefCount++;
|
|
121
|
+
try {
|
|
122
|
+
return fn();
|
|
123
|
+
}
|
|
124
|
+
finally {
|
|
125
|
+
quietWasmRefCount--;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
let visionRuntimePreloading = false;
|
|
129
|
+
export async function preloadVisionRuntime() {
|
|
130
|
+
if (visionRuntimePreloading)
|
|
131
|
+
return new Promise((resolve) => {
|
|
132
|
+
const id = setInterval(() => {
|
|
133
|
+
if (!visionRuntimePreloading) {
|
|
134
|
+
clearInterval(id);
|
|
135
|
+
resolve();
|
|
136
|
+
}
|
|
137
|
+
}, 100);
|
|
138
|
+
});
|
|
139
|
+
visionRuntimePreloading = true;
|
|
140
|
+
const url = `${visionTasksBasePath}/vision_wasm_internal.wasm`;
|
|
141
|
+
function handleDownloadProgress(event) {
|
|
142
|
+
const detail = event.detail;
|
|
143
|
+
if (detail.url !== url)
|
|
144
|
+
return;
|
|
145
|
+
progressByUseCase.visionRuntime = sumUpProgressForDependencies([url]);
|
|
146
|
+
document.dispatchEvent(new CustomEvent('idmission.preloadProgress.visionRuntime', {
|
|
147
|
+
detail: progressByUseCase.visionRuntime,
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
document.addEventListener('idmission.preloadProgress', handleDownloadProgress);
|
|
151
|
+
try {
|
|
152
|
+
await preloadDependency(url, visionRuntimeHash);
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
document.removeEventListener('idmission.preloadProgress', handleDownloadProgress);
|
|
156
|
+
visionRuntimePreloading = false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const defaultBarcodeReadabilityModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/BarcodeReadability/BarcodeReadability-20260127_101918.tflite";
|
|
2
|
+
export declare const defaultBarcodeReadabilityModelHash = "12gn2Ifz1DbVCcSI9bMgnpjXilzHlTZjAu/xogUCcq8ReqPQdmvXGBxfRJAv1cEW";
|
|
3
|
+
//# sourceMappingURL=BarcodeReadability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarcodeReadability.d.ts","sourceRoot":"","sources":["../../../src/models/defaults/BarcodeReadability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kCAAkC,oHAA2F,CAAA;AAC1I,eAAO,MAAM,kCAAkC,qEACqB,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DEFAULT_CDN_URL } from '../../config/cdn';
|
|
2
|
+
export const defaultBarcodeReadabilityModelPath = `${DEFAULT_CDN_URL}/models/BarcodeReadability/BarcodeReadability-20260127_101918.tflite`;
|
|
3
|
+
export const defaultBarcodeReadabilityModelHash = '12gn2Ifz1DbVCcSI9bMgnpjXilzHlTZjAu/xogUCcq8ReqPQdmvXGBxfRJAv1cEW';
|