@sekyro/react 0.1.0-rc.12 → 0.1.0-rc.14
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/CHANGELOG.md +19 -0
- package/README.md +9 -0
- package/dist/{chunk-PTPTDOWD.js → chunk-6EP4O2CE.js} +1 -1
- package/dist/{chunk-K7YYCJUR.js → chunk-AIBCIUYT.js} +1 -1
- package/dist/{chunk-34326C2I.js → chunk-IJE64ZEN.js} +1 -1
- package/dist/{chunk-LNZR3RXG.js → chunk-JCCXPYU4.js} +1 -1
- package/dist/chunk-TLHEN5T3.js +2 -0
- package/dist/{chunk-IDZNOWTO.js → chunk-TS3UFW5B.js} +1 -1
- package/dist/{chunk-ALUF2O22.js → chunk-UFAOAYQY.js} +1 -1
- package/dist/chunk-VKSX4KC3.js +2 -0
- package/dist/{chunk-4ZN7GIYK.js → chunk-Z43XZ75N.js} +1 -1
- package/dist/{document-capture-view-LR4OLZPG.js → document-capture-view-6NADWNPQ.js} +1 -1
- package/dist/{eid-view-OZETO2IS.js → eid-view-BKKVB5QT.js} +1 -1
- package/dist/{email-otp-view-2I346KUZ.js → email-otp-view-56JMHX3M.js} +1 -1
- package/dist/{flow-views-TEE63CMW.js → flow-views-7FMODRP7.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{overlay-de-UTUY4YEE.js → overlay-de-PSIG4NLI.js} +1 -1
- package/dist/{overlay-es-XQFAQT24.js → overlay-es-36OOIBXG.js} +1 -1
- package/dist/{overlay-pt-2YEUC3J2.js → overlay-pt-NWIPFF4D.js} +1 -1
- package/dist/{portrait-capture-view-TNKPPDYM.js → portrait-capture-view-JYTBBXFU.js} +1 -1
- package/dist/{theme-DqD8Nyoq.d.ts → theme-qTwMxyZM.d.cts} +23 -4
- package/dist/{theme-DqD8Nyoq.d.cts → theme-qTwMxyZM.d.ts} +23 -4
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +9 -4
- package/dist/verification/index.d.ts +9 -4
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +20 -7
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-WAVBS3GL.js +0 -2
- package/dist/chunk-ZCAZDOMD.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var Yn=Object.defineProperty;var vc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var bc=Object.prototype.hasOwnProperty;var i=(e,t)=>Yn(e,"name",{value:t,configurable:!0});var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var vt=(e,t)=>{for(var n in t)Yn(e,n,{get:t[n],enumerable:!0})},Sc=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of kc(t))!bc.call(e,r)&&r!==n&&Yn(e,r,{get:()=>t[r],enumerable:!(o=vc(t,r))||o.enumerable});return e};var _c=e=>Sc(Yn({},"__esModule",{value:!0}),e);var si={};vt(si,{overlay:()=>Cc});var Cc,ci=C(()=>{"use strict";Cc={"capture.attemptsRemaining.one":"Queda {count} intento","capture.attemptsRemaining.other":"Quedan {count} intentos","capture.cameraOff":"Cámara apagada","capture.checking":"Estamos verificando su identidad…","capture.checkingHint":"Suele tardar unos segundos. Mantenga esta página abierta","capture.noCamera.body":"Permita el acceso a la cámara e inténtelo de nuevo, o continúe en un teléfono con cámara.","capture.noCamera.continue":"Continuar sin cámara","capture.noCamera.deniedBody":"Su navegador bloqueó la cámara para esta página. Permítala en la configuración del sitio y vuelva a intentarlo.","capture.noCamera.deniedTitle":"Permita el acceso a la cámara para continuar","capture.noCamera.title":"Este paso necesita una cámara","capture.permission.denied":"El acceso a la cámara está bloqueado. Permítalo en la configuración del navegador (el icono de la cámara en la barra de direcciones) y vuelva a cargar esta página","capture.permission.granted":"Acceso a la cámara permitido","capture.permission.prompt":"Su navegador le pedirá usar la cámara. Elija Permitir","capture.permission.unknown":"Le pediremos usar la cámara cuando empiece","capture.preparing.hint":"Configurando la detección facial en el dispositivo. Puede tardar un poco con una conexión lenta","capture.preparing.title":"Preparando la captura segura…","capture.retryCoaching.eyeLevel":"Sostenga el teléfono a la altura de los ojos","capture.retryCoaching.head":"Mire directamente a la cámara y mantenga la cabeza recta","capture.retryCoaching.light":"Busque buena luz. Luz sobre su rostro, no detrás de usted","capture.retryCoaching.title":"Ese intento no funcionó. Estos ajustes le ayudarán:","capture.securityNote":"Sus imágenes se cifran y se usan solo para esta verificación","capture.start":"Activar la cámara","capture.tips.eyeLevel":"Sostenga el teléfono a la altura de los ojos","capture.tips.light":"Colóquese frente a una fuente de luz. Evite una luz fuerte detrás de usted","capture.tips.listen":"Escuchar las instrucciones","capture.tips.stop":"Detener","capture.tips.straight":"Mire directamente a la cámara y no se mueva","capture.tips.summary":"Colóquese en un lugar bien iluminado. Descubra su rostro: sin gafas ni mascarilla. Cuando se active la cámara, sostenga el teléfono a la altura de los ojos, mire directamente a la cámara y no se mueva.","capture.tips.title":"Para que la verificación salga bien:","capture.tips.uncover":"Descubra su rostro: sin gafas, mascarilla ni manos delante","common.loading":"Cargando su sesión de verificación","common.noAttemptsLeft":"No quedan intentos","common.refresh":"Actualizar estado","common.retry":"Intentar de nuevo","consent.human.terms.data":"Sekyro AI recoge una breve captura de su rostro.","consent.human.terms.intro":"Sekyro AI confirma que una persona real está completando este paso, en nombre de la organización que lo solicitó.","consent.human.terms.processing":"La captura se analiza para confirmar que usted es una persona real y presente. Puede compararse con rostros ya verificados para esta organización.","consent.human.terms.retention":"Sus datos se almacenan cifrados y se conservan solo el tiempo que exigen la ley y la configuración de la organización. Para ejercer sus derechos de protección de datos, contacte con la organización que solicitó esta verificación.","consent.human.terms.sharing":"La organización que solicitó esta verificación conoce su resultado.","consent.short":"Al continuar, acepta las {terms}.","consent.termsLink":"condiciones","contact.description":"Elija una opción.","contact.email":"Por correo electrónico","contact.phone":"Por teléfono (WhatsApp o SMS)","contact.switch":"Usar otra opción","contact.title":"¿Cómo quiere recibir su código?","cooldown.retryAt":"Demasiados intentos. Inténtelo de nuevo a partir de {time}.","cooldown.retryIn":"Demasiados intentos. Inténtelo de nuevo {time}.","emailOtp.codeHelper":"Introduzca el código de 6 dígitos del correo","emailOtp.codeLabel":"Código de verificación","emailOtp.emailHelper":"Enviaremos un código de un solo uso a esta dirección","emailOtp.emailInvalid":"Introduzca un correo electrónico válido","emailOtp.emailLabel":"Correo electrónico","emailOtp.emailPlaceholder":"Su correo electrónico","emailOtp.expired":"Ese código ha caducado. Solicite uno nuevo","emailOtp.expiresIn":"El código caduca en {time}","emailOtp.prefilledNotice":"Enviaremos un código de verificación a su dirección de correo registrada.","emailOtp.reason_email_disposable":"Use una dirección de correo permanente, no una temporal","emailOtp.reason_email_invalid":"No podemos enviar a esta dirección. Revísela o introduzca otra","emailOtp.reason_otp_daily_cap_reached":"No podemos enviarle un código por correo hoy. Elija otra forma de verificación si está disponible, o inténtelo de nuevo más tarde.","emailOtp.reason_otp_expired":"Ese código ha caducado. Solicite uno nuevo para continuar","emailOtp.reason_otp_mismatch":"El código no es correcto. Revíselo e introdúzcalo de nuevo","emailOtp.reason_otp_rate_limited":"Se han pedido demasiados códigos. Espere un momento e inténtelo de nuevo","emailOtp.reason_otp_send_failed":"No pudimos enviar el correo. Inténtelo de nuevo en un momento","emailOtp.resend":"Reenviar código","emailOtp.resendIn":"Reenviar código en {seconds} s","emailOtp.send":"Enviarme un código","emailOtp.sendDescription":"Le enviaremos un código de un solo uso para confirmar que esta dirección es suya","emailOtp.sendTitle":"Verifique su correo electrónico","emailOtp.sentTo":"Enviamos un código de 6 dígitos a {email}","emailOtp.verify":"Verificar código","emailOtp.verifyDescription":"Escriba el código de 6 dígitos que le enviamos por correo para terminar de verificar su dirección","emailOtp.verifyTitle":"Introduzca el código de verificación","errors.network_error":"No pudimos conectar con el servicio de verificación. Revise su conexión a internet e inténtelo de nuevo","errors.session_expired":"Esta sesión de verificación ha caducado. Pida un nuevo enlace a la organización que le trajo hasta aquí","fcv2.err.generic":"La cámara no está disponible. Inténtelo de nuevo o contacte con el soporte si sigue fallando","fcv2.err.insecure":"La cámara necesita una conexión segura (HTTPS). Vuelva a abrir esta página con HTTPS","fcv2.err.inuse":"Otra aplicación está usando la cámara. Ciérrela e inténtelo de nuevo","fcv2.err.models":"No se pudieron cargar los modelos de detección facial. Revise su conexión e inténtelo de nuevo","fcv2.err.notfound":"No se detecta ninguna cámara. Conecte o active una cámara e inténtelo de nuevo","fcv2.err.permission":"Permita el acceso a la cámara en la configuración del navegador (el icono de la cámara en la barra de direcciones) e inténtelo de nuevo","fcv2.err.unsupported":"Su navegador no puede grabar en un formato compatible. Abra esta página en un navegador reciente como Chrome o Safari","fcv3.center_face":"Centre su rostro en el círculo","fcv3.come_closer":"Acerque un poco el teléfono","fcv3.hold_still":"Perfecto. No se mueva","fcv3.hold_upright":"Sostenga el teléfono en vertical","fcv3.more_light":"Busque un lugar con más luz. Ilumine su rostro","fcv3.move_back":"Aleje un poco el teléfono","fcv3.no_face":"No vemos su rostro. Sostenga el teléfono delante de usted","fcv3.steady_camera":"Mantenga el teléfono estable","fcv3.straighten":"Mantenga la cabeza recta","fcv3.too_bright":"Demasiada luz. Apártese de la luz directa","handoff.copied":"Enlace copiado. Ábralo en su teléfono","handoff.copyFailed":"No pudimos copiar el enlace. Copie la dirección de esta página desde su navegador","handoff.copyLink":"Copiar enlace","handoff.description":"Escanee con su teléfono para continuar","handoff.qrAlt":"Código QR que abre esta verificación en su teléfono","handoff.title":"Continúe en su teléfono","handoff.waiting":"Esta página avanzará sola cuando termine en su teléfono","inApp.continueAnyway":"Continuar aquí de todos modos","inApp.copied":"Enlace copiado. Péguelo en su navegador","inApp.copyFailed":"No pudimos copiar el enlace. Copie la dirección de esta página","inApp.copyLink":"Copiar enlace","inApp.description":"La cámara no funciona bien dentro de esta aplicación. Abra el enlace en Chrome o Safari para continuar.","inApp.title":"Abra esta página en su navegador","native.close":"Cerrar","native.face.humanIntroLead":"Una captura breve: solo mire la pantalla.","native.face.humanIntroTitle":"Confirme que es una persona real","native.face.introLead":"Una sola captura, sin movimientos especiales: solo mire la pantalla.","native.face.introTitle":"Ahora verifiquemos su rostro","native.result.approved":"Su verificación ha terminado. Puede volver a {org}.","native.result.back":"Volver a {org}","native.result.copied":"Copiado","native.result.expired":"Vuelva a empezar desde {org} para obtener una nueva sesión.","native.result.rejected":"Contacte con {org} si cree que se trata de un error.","native.result.review":"El resultado se enviará a {org}. No necesita hacer nada más.","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.chooseChannel":"¿Cómo quiere recibir su código?","otp.codeHelper":"Introduzca el código de 6 dígitos que le enviamos","otp.codeInvalid":"Introduzca el código de 6 dígitos","otp.codeLabel":"Código de verificación","otp.expired":"Ese código ha caducado. Solicite uno nuevo","otp.expiresIn":"El código caduca en {time}","otp.phoneHelper":"Enviaremos un código de un solo uso a este número","otp.phoneInvalid":"Introduzca su número de teléfono con el prefijo del país","otp.phoneLabel":"Número de teléfono","otp.phonePlaceholder":"8 dígitos","otp.phonePlaceholderGeneric":"Número sin el prefijo del país","otp.prefilledNotice":"Enviaremos un código de verificación a su número de teléfono registrado.","otp.reason_insufficient_balance":"Este método de verificación no está disponible por ahora. Elija otra forma de verificación si está disponible.","otp.reason_otp_channel_unavailable":"Ese canal no está disponible. Elija otra forma de recibir su código","otp.reason_otp_daily_cap_reached":"No podemos enviarle un código hoy. Elija otra forma de verificación si está disponible, o inténtelo de nuevo más tarde.","otp.reason_otp_destination_not_allowed":"No podemos enviar códigos a números de este país. Introduzca otro número","otp.reason_otp_destination_unknown":"No reconocemos este número. Revíselo e introdúzcalo de nuevo con el prefijo del país","otp.reason_otp_expired":"Ese código ha caducado. Solicite uno nuevo para continuar","otp.reason_otp_mismatch":"El código no es correcto. Revíselo e introdúzcalo de nuevo","otp.reason_otp_rate_limited":"Se han pedido demasiados códigos. Espere un momento e inténtelo de nuevo","otp.reason_otp_send_failed":"No pudimos enviar el código. Inténtelo de nuevo en un momento","otp.reason_payment_method_required":"Este método de verificación no está disponible por ahora. Elija otra forma de verificación si está disponible.","otp.reason_spend_cap_reached":"Este método de verificación no está disponible por ahora. Elija otra forma de verificación si está disponible.","otp.resend":"Reenviar código","otp.resendBy":"Reenviar por {channel}","otp.resendIn":"Reenviar código en {seconds} s","otp.send":"Enviar código","otp.sendBy":"Enviar código por {channel}","otp.sendDescription":"Le enviaremos un código de un solo uso para confirmar que este número es suyo","otp.sendTitle":"Verifique su número de teléfono","otp.sentTo":"Enviamos un código de 6 dígitos a {number} por {channel}","otp.verify":"Verificar código","otp.verifyDescription":"Escriba el código de 6 dígitos que le enviamos para terminar de verificar su número","otp.verifyTitle":"Introduzca el código de verificación","reasons.camera_unavailable":"Esta verificación necesita una cámara. Vuelva a {org} para continuar de otra forma.","reasons.capture_tampered":"No pudimos continuar en este dispositivo. Inténtelo de nuevo en otro dispositivo o navegador.","reasons.clip_too_short":"La captura fue demasiado corta","reasons.device_cooldown":"Demasiados intentos. Inténtelo de nuevo más tarde.","reasons.device_velocity_exceeded":"Este dispositivo no se puede usar para otra verificación por ahora. Contacte con la organización.","reasons.media_unreadable":"No se pudo leer la captura enviada","reasons.mobile_required":"Continúe en su teléfono para tomar el selfie.","reasons.no_face":"No se detectó ningún rostro durante la verificación","reasons.review_band":"La verificación automática no fue concluyente, así que se envió a revisión manual","reasons.spoof_detected":"La prueba de vida no pudo confirmar que haya una persona real frente a la cámara","reasons.tester_phone_mismatch":"Use el número de teléfono con el que se registró la persona de prueba","result.platform_unsupported":"Esta verificación necesita una aplicación para teléfono.","result.referenceLabel":"Código de referencia","section.contact":"Verifique su contacto","section.live_photo":"Tome una foto en directo","section.screening":"Comprobaciones adicionales","session.processing.age_estimation.description":"Esto tarda unos segundos","session.processing.age_estimation.title":"Comprobando su edad","session.processing.description":"Suele tardar unos segundos. El resultado aparecerá aquí","session.processing.title":"Estamos procesando su verificación","session.progressLabel":"Progreso de la verificación","session.requestedBy":"{orgName} le pide que verifique su identidad","session.result.approved.description":"Ha terminado. Puede cerrar esta página","session.result.approved.title":"Su identidad está verificada","session.result.detailsMismatch":"Los datos no coinciden con la información que tiene {org}. Contacte con {org}.","session.result.deviceStop":"No pudimos continuar en este dispositivo. Inténtelo de nuevo en otro dispositivo o navegador.","session.result.deviceVelocity":"Este dispositivo no se puede usar para otra verificación por ahora. Contacte con {org}.","session.result.expired.description":"Pida un nuevo enlace a la organización que se lo envió y vuelva a empezar","session.result.expired.title":"Esta sesión de verificación ha caducado","session.result.rejected.description":"Si cree que se trata de un error, contacte con la organización que le envió este enlace","session.result.rejected.title":"No pudimos verificar su identidad","session.result.review.description":"El resultado se enviará a la organización que le dio este enlace. No necesita hacer nada más.","session.result.review.title":"Su verificación está en revisión","session.title":"Verifique su identidad","shell.subtitle":"Verificación de identidad","shell.subtitleHuman":"Verificación humana","shell.verifiedBy":"Verificado por Sekyro AI","unsupported.description":"Este paso necesita una versión más reciente de esta página. Contacte con {org}.","unsupported.title":"Actualización necesaria"}});var li={};vt(li,{overlay:()=>wc});var wc,di=C(()=>{"use strict";wc={"capture.attemptsRemaining.one":"{count} tentativa restante","capture.attemptsRemaining.other":"{count} tentativas restantes","capture.cameraOff":"Câmera desligada","capture.checking":"Estamos verificando sua identidade…","capture.checkingHint":"Isso costuma levar alguns segundos. Mantenha esta página aberta","capture.noCamera.body":"Permita o acesso à câmera e tente novamente, ou continue em um telefone com câmera.","capture.noCamera.continue":"Continuar sem câmera","capture.noCamera.deniedBody":"O seu navegador bloqueou a câmera para esta página. Permita-a nas configurações do site e tente novamente.","capture.noCamera.deniedTitle":"Permita o acesso à câmera para continuar","capture.noCamera.title":"Esta etapa precisa de uma câmera","capture.permission.denied":"O acesso à câmera está bloqueado. Permita nas configurações do navegador (o ícone da câmera na barra de endereço) e recarregue esta página","capture.permission.granted":"Acesso à câmera permitido","capture.permission.prompt":"Seu navegador vai pedir para usar a câmera. Escolha Permitir","capture.permission.unknown":"Vamos pedir para usar sua câmera quando você começar","capture.preparing.hint":"Configurando a detecção de rosto no dispositivo. Pode levar um momento em uma conexão lenta","capture.preparing.title":"Preparando a captura segura…","capture.retryCoaching.eyeLevel":"Segure o telefone na altura dos olhos","capture.retryCoaching.head":"Olhe diretamente para a câmera e mantenha a cabeça reta","capture.retryCoaching.light":"Procure uma boa iluminação. Luz no seu rosto, não atrás de você","capture.retryCoaching.title":"Essa tentativa não deu certo. Alguns ajustes vão ajudar:","capture.securityNote":"Suas imagens são criptografadas e usadas apenas para esta verificação","capture.start":"Ligar a câmera","capture.tips.eyeLevel":"Segure o telefone na altura dos olhos","capture.tips.light":"Fique de frente para uma fonte de luz. Evite luz forte atrás de você","capture.tips.listen":"Ouvir as instruções","capture.tips.stop":"Parar","capture.tips.straight":"Olhe diretamente para a câmera e fique parado","capture.tips.summary":"Fique em um lugar bem iluminado. Deixe o rosto descoberto: sem óculos e sem máscara. Quando a câmera ligar, segure o telefone na altura dos olhos, olhe diretamente para a câmera e fique parado.","capture.tips.title":"Para uma verificação bem-sucedida:","capture.tips.uncover":"Deixe o rosto descoberto: sem óculos, máscara ou mão na frente","common.loading":"Carregando sua sessão de verificação","common.noAttemptsLeft":"Não há mais tentativas","common.refresh":"Atualizar status","common.retry":"Tentar novamente","consent.human.terms.data":"A Sekyro AI coleta uma breve captura do seu rosto.","consent.human.terms.intro":"A Sekyro AI confirma que uma pessoa real está concluindo esta etapa, em nome da organização que a solicitou.","consent.human.terms.processing":"A captura é analisada para confirmar que você é uma pessoa real e presente. Ela pode ser comparada com rostos já verificados para esta organização.","consent.human.terms.retention":"Seus dados são armazenados com criptografia e mantidos apenas pelo tempo exigido pela lei e pelas configurações da organização. Para exercer seus direitos de proteção de dados, entre em contato com a organização que solicitou esta verificação.","consent.human.terms.sharing":"A organização que solicitou esta verificação fica sabendo do resultado.","consent.short":"Ao continuar, você aceita os {terms}.","consent.termsLink":"termos","contact.description":"Escolha uma opção.","contact.email":"Por e-mail","contact.phone":"Por telefone (WhatsApp ou SMS)","contact.switch":"Usar outra opção","contact.title":"Como você quer receber seu código?","cooldown.retryAt":"Muitas tentativas. Tente novamente a partir de {time}.","cooldown.retryIn":"Muitas tentativas. Tente novamente {time}.","emailOtp.codeHelper":"Digite o código de 6 dígitos do e-mail","emailOtp.codeLabel":"Código de verificação","emailOtp.emailHelper":"Vamos enviar um código de uso único para este endereço","emailOtp.emailInvalid":"Digite um endereço de e-mail válido","emailOtp.emailLabel":"Endereço de e-mail","emailOtp.emailPlaceholder":"Seu endereço de e-mail","emailOtp.expired":"Esse código expirou. Peça um novo","emailOtp.expiresIn":"O código expira em {time}","emailOtp.prefilledNotice":"Vamos enviar um código de verificação para o seu e-mail cadastrado.","emailOtp.reason_email_disposable":"Use um endereço de e-mail permanente, não um temporário","emailOtp.reason_email_invalid":"Não podemos enviar para este endereço. Confira ou digite outro","emailOtp.reason_otp_daily_cap_reached":"Não podemos enviar um código por e-mail hoje. Escolha outra forma de verificação, se houver, ou tente novamente mais tarde.","emailOtp.reason_otp_expired":"Esse código expirou. Peça um novo código para continuar","emailOtp.reason_otp_mismatch":"O código está incorreto. Confira e digite novamente","emailOtp.reason_otp_rate_limited":"Muitos códigos solicitados. Aguarde um momento e tente novamente","emailOtp.reason_otp_send_failed":"Não foi possível enviar o e-mail. Tente novamente em instantes","emailOtp.resend":"Reenviar código","emailOtp.resendIn":"Reenviar código em {seconds} s","emailOtp.send":"Enviar código por e-mail","emailOtp.sendDescription":"Vamos enviar um código de uso único por e-mail para confirmar que este endereço é seu","emailOtp.sendTitle":"Verifique seu endereço de e-mail","emailOtp.sentTo":"Enviamos um código de 6 dígitos para {email}","emailOtp.verify":"Verificar código","emailOtp.verifyDescription":"Digite o código de 6 dígitos que enviamos por e-mail para concluir a verificação do seu endereço","emailOtp.verifyTitle":"Digite o código de verificação","errors.network_error":"Não conseguimos acessar o serviço de verificação. Verifique sua conexão com a internet e tente novamente","errors.session_expired":"Esta sessão de verificação expirou. Peça um novo link à organização que trouxe você até aqui","fcv2.err.generic":"A câmera não está disponível. Tente novamente ou entre em contato com o suporte se o problema continuar","fcv2.err.insecure":"A câmera precisa de uma conexão segura (HTTPS). Abra esta página novamente por HTTPS","fcv2.err.inuse":"Outro aplicativo está usando a câmera. Feche-o e tente novamente","fcv2.err.models":"Não foi possível carregar os modelos de detecção de rosto. Verifique sua conexão e tente novamente","fcv2.err.notfound":"Nenhuma câmera detectada. Conecte ou ative uma câmera e tente novamente","fcv2.err.permission":"Permita o acesso à câmera nas configurações do navegador (o ícone da câmera na barra de endereço) e tente novamente","fcv2.err.unsupported":"Seu navegador não consegue gravar em um formato compatível. Abra esta página em um navegador recente, como Chrome ou Safari","fcv3.center_face":"Centralize o rosto no círculo","fcv3.come_closer":"Aproxime um pouco o telefone","fcv3.hold_still":"Perfeito. Fique parado","fcv3.hold_upright":"Segure o telefone na vertical","fcv3.more_light":"Procure um lugar mais claro. Ilumine seu rosto","fcv3.move_back":"Afaste um pouco o telefone","fcv3.no_face":"Não conseguimos ver seu rosto. Segure o telefone à sua frente","fcv3.steady_camera":"Mantenha o telefone firme","fcv3.straighten":"Mantenha a cabeça reta","fcv3.too_bright":"Luz demais. Saia da luz direta","handoff.copied":"Link copiado. Abra-o no seu telefone","handoff.copyFailed":"Não foi possível copiar o link. Copie o endereço desta página no navegador","handoff.copyLink":"Copiar link","handoff.description":"Escaneie com o telefone para continuar","handoff.qrAlt":"Código QR que abre esta verificação no seu telefone","handoff.title":"Continue no seu telefone","handoff.waiting":"Esta página avança sozinha quando você terminar no telefone","inApp.continueAnyway":"Continuar aqui mesmo assim","inApp.copied":"Link copiado. Cole-o no navegador","inApp.copyFailed":"Não foi possível copiar o link. Copie o endereço desta página","inApp.copyLink":"Copiar link","inApp.description":"A câmera não funciona bem dentro deste aplicativo. Abra o link no Chrome ou no Safari para continuar.","inApp.title":"Abra esta página no navegador","native.close":"Fechar","native.face.humanIntroLead":"Uma captura rápida: basta olhar para a tela.","native.face.humanIntroTitle":"Confirme que você é uma pessoa real","native.face.introLead":"Uma única captura, sem nenhum movimento especial: basta olhar para a tela.","native.face.introTitle":"Agora vamos verificar seu rosto","native.result.approved":"Sua verificação foi concluída. Você pode voltar para {org}.","native.result.back":"Voltar para {org}","native.result.copied":"Copiado","native.result.expired":"Comece de novo a partir de {org} para obter uma nova sessão.","native.result.rejected":"Entre em contato com {org} se você acha que isso é um erro.","native.result.review":"O resultado será enviado para {org}. Você não precisa fazer mais nada.","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.chooseChannel":"Como você quer receber seu código?","otp.codeHelper":"Digite o código de 6 dígitos que enviamos","otp.codeInvalid":"Digite o código de 6 dígitos","otp.codeLabel":"Código de verificação","otp.expired":"Esse código expirou. Peça um novo","otp.expiresIn":"O código expira em {time}","otp.phoneHelper":"Vamos enviar um código de uso único para este número","otp.phoneInvalid":"Digite seu número de telefone com o código do país","otp.phoneLabel":"Número de telefone","otp.phonePlaceholder":"8 dígitos","otp.phonePlaceholderGeneric":"Número sem o código do país","otp.prefilledNotice":"Vamos enviar um código de verificação para o seu número de telefone cadastrado.","otp.reason_insufficient_balance":"Este método de verificação não está disponível no momento. Escolha outra forma de verificação, se houver.","otp.reason_otp_channel_unavailable":"Esse canal não está disponível. Escolha outra forma de receber seu código","otp.reason_otp_daily_cap_reached":"Não podemos enviar um código para você hoje. Escolha outra forma de verificação, se houver, ou tente novamente mais tarde.","otp.reason_otp_destination_not_allowed":"Não podemos enviar códigos para números deste país. Digite outro número","otp.reason_otp_destination_unknown":"Não reconhecemos este número. Confira e digite novamente com o código do país","otp.reason_otp_expired":"Esse código expirou. Peça um novo código para continuar","otp.reason_otp_mismatch":"O código está incorreto. Confira e digite novamente","otp.reason_otp_rate_limited":"Muitos códigos solicitados. Aguarde um momento e tente novamente","otp.reason_otp_send_failed":"Não foi possível enviar o código. Tente novamente em instantes","otp.reason_payment_method_required":"Este método de verificação não está disponível no momento. Escolha outra forma de verificação, se houver.","otp.reason_spend_cap_reached":"Este método de verificação não está disponível no momento. Escolha outra forma de verificação, se houver.","otp.resend":"Reenviar código","otp.resendBy":"Reenviar por {channel}","otp.resendIn":"Reenviar código em {seconds} s","otp.send":"Enviar código","otp.sendBy":"Enviar código por {channel}","otp.sendDescription":"Vamos enviar um código de uso único para confirmar que este número é seu","otp.sendTitle":"Verifique seu número de telefone","otp.sentTo":"Enviamos um código de 6 dígitos para {number} por {channel}","otp.verify":"Verificar código","otp.verifyDescription":"Digite o código de 6 dígitos que enviamos para concluir a verificação do seu número","otp.verifyTitle":"Digite o código de verificação","reasons.camera_unavailable":"Esta verificação precisa de uma câmera. Volte para {org} para continuar de outra forma.","reasons.capture_tampered":"Não foi possível continuar neste dispositivo. Tente novamente em outro dispositivo ou navegador.","reasons.clip_too_short":"A captura foi curta demais","reasons.device_cooldown":"Muitas tentativas. Tente novamente mais tarde.","reasons.device_velocity_exceeded":"Este dispositivo não pode ser usado para outra verificação no momento. Entre em contato com a organização.","reasons.media_unreadable":"Não foi possível ler a captura enviada","reasons.mobile_required":"Continue no seu telefone para tirar a selfie.","reasons.no_face":"Nenhum rosto foi detectado durante a verificação","reasons.review_band":"A verificação automática não foi conclusiva e foi enviada para análise humana","reasons.spoof_detected":"A prova de vida não confirmou uma pessoa real diante da câmera","reasons.tester_phone_mismatch":"Use o número de telefone com que o testador se cadastrou","result.platform_unsupported":"Esta verificação precisa de um aplicativo de celular.","result.referenceLabel":"Código de referência","section.contact":"Verifique seu contato","section.live_photo":"Tire uma foto ao vivo","section.screening":"Verificações adicionais","session.processing.age_estimation.description":"Isso leva alguns segundos","session.processing.age_estimation.title":"Verificando sua idade","session.processing.description":"Isso costuma levar alguns segundos. O resultado aparecerá aqui","session.processing.title":"Estamos processando sua verificação","session.progressLabel":"Progresso da verificação","session.requestedBy":"{orgName} pede que você verifique sua identidade","session.result.approved.description":"Pronto. Você já pode fechar esta página","session.result.approved.title":"Sua identidade foi verificada","session.result.detailsMismatch":"Os dados não correspondem às informações que {org} tem. Entre em contato com {org}.","session.result.deviceStop":"Não foi possível continuar neste dispositivo. Tente novamente em outro dispositivo ou navegador.","session.result.deviceVelocity":"Este dispositivo não pode ser usado para outra verificação no momento. Entre em contato com {org}.","session.result.expired.description":"Peça um novo link à organização que o enviou e comece de novo","session.result.expired.title":"Esta sessão de verificação expirou","session.result.rejected.description":"Se você acha que isso é um erro, entre em contato com a organização que enviou este link","session.result.rejected.title":"Não foi possível verificar sua identidade","session.result.review.description":"O resultado será enviado à organização que passou este link para você. Você não precisa fazer mais nada.","session.result.review.title":"Sua verificação está em análise","session.title":"Verifique sua identidade","shell.subtitle":"Verificação de identidade","shell.subtitleHuman":"Verificação humana","shell.verifiedBy":"Verificado por Sekyro AI","unsupported.description":"Esta etapa precisa de uma versão mais recente desta página. Entre em contato com {org}.","unsupported.title":"Atualização necessária"}});var ui={};vt(ui,{overlay:()=>Nc});var Nc,pi=C(()=>{"use strict";Nc={"capture.attemptsRemaining.one":"Noch {count} Versuch","capture.attemptsRemaining.other":"Noch {count} Versuche","capture.cameraOff":"Kamera aus","capture.checking":"Wir prüfen Ihre Identität…","capture.checkingHint":"Das dauert meist nur ein paar Sekunden. Lassen Sie diese Seite geöffnet","capture.noCamera.body":"Erlauben Sie den Kamerazugriff und versuchen Sie es erneut, oder fahren Sie auf einem Smartphone mit Kamera fort.","capture.noCamera.continue":"Ohne Kamera fortfahren","capture.noCamera.deniedBody":"Ihr Browser hat die Kamera für diese Seite blockiert. Erlauben Sie sie in den Website-Einstellungen und versuchen Sie es erneut.","capture.noCamera.deniedTitle":"Erlauben Sie den Kamerazugriff, um fortzufahren","capture.noCamera.title":"Für diesen Schritt wird eine Kamera benötigt","capture.permission.denied":"Der Kamerazugriff ist blockiert. Erlauben Sie ihn in den Browsereinstellungen (das Kamerasymbol in der Adressleiste) und laden Sie diese Seite neu","capture.permission.granted":"Kamerazugriff erlaubt","capture.permission.prompt":"Ihr Browser fragt nach der Kamera. Wählen Sie Zulassen","capture.permission.unknown":"Wir fragen nach Ihrer Kamera, sobald Sie beginnen","capture.preparing.hint":"Die Gesichtserkennung auf dem Gerät wird eingerichtet. Bei langsamer Verbindung kann das einen Moment dauern","capture.preparing.title":"Sichere Aufnahme wird vorbereitet…","capture.retryCoaching.eyeLevel":"Halten Sie das Smartphone auf Augenhöhe","capture.retryCoaching.head":"Schauen Sie direkt in die Kamera und halten Sie den Kopf gerade","capture.retryCoaching.light":"Sorgen Sie für gutes Licht: auf Ihrem Gesicht, nicht hinter Ihnen","capture.retryCoaching.title":"Dieser Versuch hat nicht geklappt. Ein paar Anpassungen helfen:","capture.securityNote":"Ihre Bilder werden verschlüsselt und nur für diese Verifizierung verwendet","capture.start":"Kamera starten","capture.tips.eyeLevel":"Halten Sie das Smartphone auf Augenhöhe","capture.tips.light":"Wenden Sie sich einer Lichtquelle zu. Vermeiden Sie starkes Licht hinter sich","capture.tips.listen":"Anweisungen anhören","capture.tips.stop":"Stopp","capture.tips.straight":"Schauen Sie direkt in die Kamera und halten Sie still","capture.tips.summary":"Stellen Sie sich an einen gut beleuchteten Ort. Zeigen Sie Ihr Gesicht frei: keine Brille, keine Maske. Sobald die Kamera startet, halten Sie das Smartphone auf Augenhöhe, schauen Sie direkt in die Kamera und halten Sie still.","capture.tips.title":"So gelingt die Aufnahme:","capture.tips.uncover":"Zeigen Sie Ihr Gesicht frei: keine Brille, keine Maske, keine Hand davor","common.loading":"Ihre Verifizierungssitzung wird geladen","common.noAttemptsLeft":"Keine Versuche mehr übrig","common.refresh":"Status aktualisieren","common.retry":"Erneut versuchen","consent.human.terms.data":"Sekyro AI erfasst eine kurze Aufnahme Ihres Gesichts.","consent.human.terms.intro":"Sekyro AI bestätigt im Auftrag der anfragenden Organisation, dass eine echte Person diesen Schritt ausführt.","consent.human.terms.processing":"Die Aufnahme wird geprüft, um zu bestätigen, dass Sie eine echte, anwesende Person sind. Sie kann mit Gesichtern verglichen werden, die für diese Organisation bereits verifiziert wurden.","consent.human.terms.retention":"Ihre Daten werden verschlüsselt gespeichert und nur so lange aufbewahrt, wie das Gesetz und die Einstellungen der Organisation es verlangen. Um Ihre Datenschutzrechte auszuüben, wenden Sie sich an die Organisation, die diese Verifizierung angefordert hat.","consent.human.terms.sharing":"Die Organisation, die diese Verifizierung angefordert hat, erfährt das Ergebnis.","consent.short":"Wenn Sie fortfahren, stimmen Sie den {terms} zu.","consent.termsLink":"Bedingungen","contact.description":"Wählen Sie eine Option.","contact.email":"Per E-Mail","contact.phone":"Per Telefon (WhatsApp oder SMS)","contact.switch":"Andere Option wählen","contact.title":"Wie möchten Sie Ihren Code erhalten?","cooldown.retryAt":"Zu viele Versuche. Versuchen Sie es ab {time} erneut.","cooldown.retryIn":"Zu viele Versuche. Versuchen Sie es {time} erneut.","emailOtp.codeHelper":"Geben Sie den 6-stelligen Code aus der E-Mail ein","emailOtp.codeLabel":"Bestätigungscode","emailOtp.emailHelper":"Wir senden einen Einmalcode an diese Adresse","emailOtp.emailInvalid":"Geben Sie eine gültige E-Mail-Adresse ein","emailOtp.emailLabel":"E-Mail-Adresse","emailOtp.emailPlaceholder":"Ihre E-Mail-Adresse","emailOtp.expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen an","emailOtp.expiresIn":"Der Code läuft ab in {time}","emailOtp.prefilledNotice":"Wir senden einen Bestätigungscode an Ihre hinterlegte E-Mail-Adresse.","emailOtp.reason_email_disposable":"Verwenden Sie eine dauerhafte E-Mail-Adresse, keine Wegwerfadresse","emailOtp.reason_email_invalid":"An diese Adresse können wir nicht senden. Prüfen Sie sie oder geben Sie eine andere ein","emailOtp.reason_otp_daily_cap_reached":"Wir können Ihnen heute keinen Code per E-Mail senden. Wählen Sie einen anderen Weg, falls angeboten, oder versuchen Sie es später erneut.","emailOtp.reason_otp_expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen Code an, um fortzufahren","emailOtp.reason_otp_mismatch":"Der Code ist falsch. Prüfen Sie ihn und geben Sie ihn erneut ein","emailOtp.reason_otp_rate_limited":"Zu viele Codes angefordert. Warten Sie einen Moment und versuchen Sie es dann erneut","emailOtp.reason_otp_send_failed":"Wir konnten die E-Mail nicht senden. Versuchen Sie es gleich noch einmal","emailOtp.resend":"Code erneut senden","emailOtp.resendIn":"Code erneut senden in {seconds} s","emailOtp.send":"Code per E-Mail senden","emailOtp.sendDescription":"Wir senden Ihnen einen Einmalcode per E-Mail, um zu bestätigen, dass diese Adresse Ihnen gehört","emailOtp.sendTitle":"Bestätigen Sie Ihre E-Mail-Adresse","emailOtp.sentTo":"Wir haben einen 6-stelligen Code an {email} gesendet","emailOtp.verify":"Code bestätigen","emailOtp.verifyDescription":"Geben Sie den 6-stelligen Code aus unserer E-Mail ein, um Ihre Adresse zu bestätigen","emailOtp.verifyTitle":"Bestätigungscode eingeben","errors.network_error":"Wir konnten den Verifizierungsdienst nicht erreichen. Prüfen Sie Ihre Internetverbindung und versuchen Sie es erneut","errors.session_expired":"Diese Verifizierungssitzung ist abgelaufen. Bitten Sie die Organisation, die Sie hierher geschickt hat, um einen neuen Link","fcv2.err.generic":"Die Kamera ist nicht verfügbar. Versuchen Sie es erneut oder wenden Sie sich an den Support, wenn der Fehler bleibt","fcv2.err.insecure":"Die Kamera benötigt eine sichere Verbindung (HTTPS). Öffnen Sie diese Seite erneut über HTTPS","fcv2.err.inuse":"Eine andere App verwendet die Kamera. Schließen Sie sie und versuchen Sie es erneut","fcv2.err.models":"Die Modelle zur Gesichtserkennung konnten nicht geladen werden. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut","fcv2.err.notfound":"Keine Kamera erkannt. Schließen Sie eine Kamera an oder aktivieren Sie sie und versuchen Sie es erneut","fcv2.err.permission":"Erlauben Sie den Kamerazugriff in den Browsereinstellungen (das Kamerasymbol in der Adressleiste) und versuchen Sie es erneut","fcv2.err.unsupported":"Ihr Browser kann nicht in einem unterstützten Format aufnehmen. Öffnen Sie diese Seite in einem aktuellen Browser wie Chrome oder Safari","fcv3.center_face":"Platzieren Sie Ihr Gesicht mittig im Kreis","fcv3.come_closer":"Halten Sie das Smartphone etwas näher","fcv3.hold_still":"Perfekt. Halten Sie still","fcv3.hold_upright":"Halten Sie das Smartphone aufrecht","fcv3.more_light":"Suchen Sie einen helleren Ort. Beleuchten Sie Ihr Gesicht","fcv3.move_back":"Halten Sie das Smartphone etwas weiter weg","fcv3.no_face":"Wir sehen Ihr Gesicht nicht. Halten Sie das Smartphone vor sich","fcv3.steady_camera":"Halten Sie das Smartphone ruhig","fcv3.straighten":"Halten Sie den Kopf gerade","fcv3.too_bright":"Zu viel Licht. Gehen Sie aus dem direkten Licht","handoff.copied":"Link kopiert. Öffnen Sie ihn auf Ihrem Smartphone","handoff.copyFailed":"Wir konnten den Link nicht kopieren. Kopieren Sie stattdessen die Adresse dieser Seite aus Ihrem Browser","handoff.copyLink":"Link kopieren","handoff.description":"Scannen Sie mit Ihrem Smartphone, um fortzufahren","handoff.qrAlt":"QR-Code, der diese Verifizierung auf Ihrem Smartphone öffnet","handoff.title":"Auf dem Smartphone fortfahren","handoff.waiting":"Diese Seite geht von selbst weiter, sobald Sie auf dem Smartphone fertig sind","inApp.continueAnyway":"Trotzdem hier fortfahren","inApp.copied":"Link kopiert. Fügen Sie ihn in Ihren Browser ein","inApp.copyFailed":"Wir konnten den Link nicht kopieren. Kopieren Sie stattdessen die Adresse dieser Seite","inApp.copyLink":"Link kopieren","inApp.description":"Die Kamera funktioniert in dieser App nicht zuverlässig. Öffnen Sie den Link in Chrome oder Safari, um fortzufahren.","inApp.title":"Öffnen Sie diese Seite in Ihrem Browser","native.close":"Schließen","native.face.humanIntroLead":"Eine kurze Aufnahme: Schauen Sie einfach auf den Bildschirm.","native.face.humanIntroTitle":"Bestätigen Sie, dass Sie eine echte Person sind","native.face.introLead":"Eine einzige Aufnahme, keine besondere Bewegung: Schauen Sie einfach auf den Bildschirm.","native.face.introTitle":"Jetzt prüfen wir Ihr Gesicht","native.result.approved":"Ihre Verifizierung ist abgeschlossen. Sie können zu {org} zurückkehren.","native.result.back":"Zurück zu {org}","native.result.copied":"Kopiert","native.result.expired":"Beginnen Sie erneut über {org}, um eine neue Sitzung zu erhalten.","native.result.rejected":"Wenden Sie sich an {org}, wenn Sie glauben, dass es sich um einen Fehler handelt.","native.result.review":"Das Ergebnis wird an {org} gesendet. Sie müssen nichts weiter tun.","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.chooseChannel":"Wie möchten Sie Ihren Code erhalten?","otp.codeHelper":"Geben Sie den 6-stelligen Code ein, den wir Ihnen gesendet haben","otp.codeInvalid":"Geben Sie den 6-stelligen Code ein","otp.codeLabel":"Bestätigungscode","otp.expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen an","otp.expiresIn":"Der Code läuft ab in {time}","otp.phoneHelper":"Wir senden einen Einmalcode an diese Nummer","otp.phoneInvalid":"Geben Sie Ihre Telefonnummer mit Ländervorwahl ein","otp.phoneLabel":"Telefonnummer","otp.phonePlaceholder":"8 Ziffern","otp.phonePlaceholderGeneric":"Nummer ohne Ländervorwahl","otp.prefilledNotice":"Wir senden einen Bestätigungscode an Ihre hinterlegte Telefonnummer.","otp.reason_insufficient_balance":"Diese Verifizierungsmethode ist gerade nicht verfügbar. Wählen Sie einen anderen Weg, falls angeboten.","otp.reason_otp_channel_unavailable":"Dieser Kanal ist nicht verfügbar. Wählen Sie einen anderen Weg für Ihren Code","otp.reason_otp_daily_cap_reached":"Wir können Ihnen heute keinen Code senden. Wählen Sie einen anderen Weg, falls angeboten, oder versuchen Sie es später erneut.","otp.reason_otp_destination_not_allowed":"An Nummern aus diesem Land können wir keine Codes senden. Geben Sie eine andere Nummer ein","otp.reason_otp_destination_unknown":"Wir konnten diese Nummer nicht erkennen. Prüfen Sie sie und geben Sie sie mit Ländervorwahl erneut ein","otp.reason_otp_expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen Code an, um fortzufahren","otp.reason_otp_mismatch":"Der Code ist falsch. Prüfen Sie ihn und geben Sie ihn erneut ein","otp.reason_otp_rate_limited":"Zu viele Codes angefordert. Warten Sie einen Moment und versuchen Sie es dann erneut","otp.reason_otp_send_failed":"Wir konnten den Code nicht senden. Versuchen Sie es gleich noch einmal","otp.reason_payment_method_required":"Diese Verifizierungsmethode ist gerade nicht verfügbar. Wählen Sie einen anderen Weg, falls angeboten.","otp.reason_spend_cap_reached":"Diese Verifizierungsmethode ist gerade nicht verfügbar. Wählen Sie einen anderen Weg, falls angeboten.","otp.resend":"Code erneut senden","otp.resendBy":"Erneut per {channel} senden","otp.resendIn":"Code erneut senden in {seconds} s","otp.send":"Code senden","otp.sendBy":"Code per {channel} senden","otp.sendDescription":"Wir senden Ihnen einen Einmalcode, um zu bestätigen, dass diese Nummer Ihnen gehört","otp.sendTitle":"Bestätigen Sie Ihre Telefonnummer","otp.sentTo":"Wir haben einen 6-stelligen Code per {channel} an {number} gesendet","otp.verify":"Code bestätigen","otp.verifyDescription":"Geben Sie den 6-stelligen Code ein, den wir Ihnen gesendet haben, um Ihre Nummer zu bestätigen","otp.verifyTitle":"Bestätigungscode eingeben","reasons.camera_unavailable":"Für diese Verifizierung wird eine Kamera benötigt. Kehren Sie zu {org} zurück, um auf andere Weise fortzufahren.","reasons.capture_tampered":"Wir konnten auf diesem Gerät nicht fortfahren. Versuchen Sie es auf einem anderen Gerät oder in einem anderen Browser erneut.","reasons.clip_too_short":"Die Aufnahme war zu kurz","reasons.device_cooldown":"Zu viele Versuche. Versuchen Sie es später erneut.","reasons.device_velocity_exceeded":"Dieses Gerät kann derzeit nicht für eine weitere Verifizierung verwendet werden. Wenden Sie sich an die Organisation.","reasons.media_unreadable":"Die gesendete Aufnahme konnte nicht gelesen werden","reasons.mobile_required":"Fahren Sie auf Ihrem Smartphone fort, um das Selfie aufzunehmen.","reasons.no_face":"Bei der Prüfung wurde kein Gesicht erkannt","reasons.review_band":"Die automatische Prüfung war nicht eindeutig und wurde deshalb zur manuellen Prüfung weitergeleitet","reasons.spoof_detected":"Die Lebenderkennung konnte keine echte Person vor der Kamera bestätigen","reasons.tester_phone_mismatch":"Verwenden Sie die Telefonnummer, mit der sich die Testperson registriert hat","result.platform_unsupported":"Für diese Verifizierung wird eine Smartphone-App benötigt.","result.referenceLabel":"Referenzcode","section.contact":"Kontakt bestätigen","section.live_photo":"Live-Foto aufnehmen","section.screening":"Weitere Prüfungen","session.processing.age_estimation.description":"Das dauert nur ein paar Sekunden","session.processing.age_estimation.title":"Ihr Alter wird geprüft","session.processing.description":"Das dauert meist nur ein paar Sekunden. Das Ergebnis erscheint hier","session.processing.title":"Ihre Verifizierung wird bearbeitet","session.progressLabel":"Fortschritt der Verifizierung","session.requestedBy":"{orgName} bittet Sie, Ihre Identität zu bestätigen","session.result.approved.description":"Sie sind fertig. Sie können diese Seite schließen","session.result.approved.title":"Ihre Identität ist bestätigt","session.result.detailsMismatch":"Die Angaben stimmen nicht mit den Informationen von {org} überein. Wenden Sie sich an {org}.","session.result.deviceStop":"Wir konnten auf diesem Gerät nicht fortfahren. Versuchen Sie es auf einem anderen Gerät oder in einem anderen Browser erneut.","session.result.deviceVelocity":"Dieses Gerät kann derzeit nicht für eine weitere Verifizierung verwendet werden. Wenden Sie sich an {org}.","session.result.expired.description":"Fordern Sie bei der Organisation, die Ihnen den Link geschickt hat, einen neuen an und beginnen Sie von vorn","session.result.expired.title":"Diese Verifizierungssitzung ist abgelaufen","session.result.rejected.description":"Wenn Sie glauben, dass es sich um einen Fehler handelt, wenden Sie sich an die Organisation, die Ihnen diesen Link geschickt hat","session.result.rejected.title":"Ihre Identität konnte nicht bestätigt werden","session.result.review.description":"Das Ergebnis wird an die Organisation gesendet, die Ihnen diesen Link gegeben hat. Sie müssen nichts weiter tun.","session.result.review.title":"Ihre Verifizierung wird geprüft","session.title":"Bestätigen Sie Ihre Identität","shell.subtitle":"Identitätsverifizierung","shell.subtitleHuman":"Menschliche Verifizierung","shell.verifiedBy":"Verifiziert von Sekyro AI","unsupported.description":"Für diesen Schritt wird eine neuere Version dieser Seite benötigt. Wenden Sie sich an {org}.","unsupported.title":"Aktualisierung erforderlich"}});function Zn(e){return rr(e)?"en":e}function Qn(e){return rr(e)?jn[e]:void 0}function ir(e){return rr(e)&&jn[e]===void 0}function Xn(e){return ir(e)?(e==="es"?Promise.resolve().then(()=>(ci(),si)):e==="pt"?Promise.resolve().then(()=>(di(),li)):Promise.resolve().then(()=>(pi(),ui))).then(n=>{jn[e]=n.overlay},()=>{jn[e]={}}):Promise.resolve()}var jn,rr,Jn=C(()=>{"use strict";jn={},rr=i(e=>e==="es"||e==="pt"||e==="de","isOverlayLocale");i(Zn,"baseLocale");i(Qn,"overlayOf");i(ir,"overlayPending");i(Xn,"loadSekyroLocale")});var en,mi=C(()=>{"use strict";en={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds. Keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work. A few adjustments will help:","capture.retryCoaching.light":"Find good lighting, with the light on your face and not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected. Connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera. Close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS). Reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format. Open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable. Try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face. Hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot. Light your face","fcv3.too_bright":"Too much light. Move out of direct light","fcv3.hold_still":"Perfect, hold still","fcv3.steady_camera":"Hold the phone steady","fcv3.hold_upright":"Hold the phone upright","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm your number","reasons.result_from_cache":"The registry check was confirmed from a recent copy of the registry","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against. The requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry. A reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.id_number_invalid":"The ID number is not valid","reasons.registry_record_not_found":"No record was found in the registry for this ID number","reasons.document_id_number_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided, so your verification went to human review","reasons.capture_back_camera":"Use the front camera. Hold the phone in front of your face and try again","reasons.capture_not_upright":"Hold your phone upright, not sideways, and try again","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","hints.appearance":"Let's try again: face a light source and hold still.","hints.motion":"Hold still and keep the phone steady, then try again.","hints.lighting":"Face a window or a lamp so your face is well lit, then try again.","hints.framing":"Move closer so your face fills the frame, then try again.","reasons.subject_revoked":"The identity on file for this check is no longer available. The requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"Keep your face in the frame the whole time, then try again.","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my Mauritanian national ID number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not confirm this browser session is genuine. Reload the page and try again","errors.network_error":"We could not reach the verification service. Check your internet connection and try again","errors.session_expired":"This verification session has expired. Ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number. Ask the requester for a new link","errors.id_number_unbound":"This link was created without your ID number. Ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source and avoid strong light behind you","capture.tips.uncover":"Uncover your face: no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face: no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera. Choose Allow","capture.permission.denied":"Camera access is blocked. Allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.assisted.title":"Capture the person's face","capture.assisted.lead":"Point the back camera at the person's face and hold the phone upright. The voice guidance speaks to the person being filmed.","capture.assisted.stage":"Point the camera at the person's face","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection. This can take a moment on a slow connection","capture.ready":"Ready. Start when you are","fcv2.err.models":"The face-detection models could not be loaded. Check your connection and try again"}});function eo(e){return xc.get(e)??e}function to(e,t){let n=e,o=t;for(let[r,a]of Object.entries(fi)){let s=o[r],c=o[a];typeof s!="string"&&typeof c=="string"?n[r]=c:typeof c!="string"&&typeof s=="string"&&(n[a]=s)}}var fi,xc,In=C(()=>{"use strict";fi=Object.freeze({"reasons.id_number_invalid":"reasons.nni_invalid","reasons.registry_record_not_found":"reasons.nni_not_found","reasons.document_id_number_mismatch":"reasons.document_nni_mismatch","errors.id_number_unbound":"errors.nni_unbound","population.reason_id_number_invalid":"population.reason_nni_invalid","population.reason_registry_record_not_found":"population.reason_nni_not_found","population.reason_registry_record_not_found_or_document":"population.reason_nni_not_found_or_document","summary.id_number":"summary.nni"}),xc=new Map(Object.entries(fi).filter(([e])=>e.startsWith("reasons.")).map(([e,t])=>[t.slice(8),e.slice(8)]));i(eo,"genericReason");i(to,"aliasRenamedKeys")});var ar,hi=C(()=>{"use strict";ar={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ. أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة. بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة، بحيث يكون الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا. وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا. أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS). افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة. افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة. أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك. أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة. أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا. تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز، لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","fcv3.hold_upright":"أمسك الهاتف بشكل عمودي","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد رقمك","reasons.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها. على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني. سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.id_number_invalid":"رقم الهوية غير صالح","reasons.registry_record_not_found":"لم يُعثر على أي سجل لرقم الهوية هذا في السجل","reasons.document_id_number_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد، لذا أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","hints.appearance":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","hints.motion":"ابقَ ثابتًا وأمسك الهاتف بثبات، ثم حاول مجددًا.","hints.lighting":"اجعل وجهك مقابل نافذة أو مصباح حتى يكون مضاءً جيدًا، ثم حاول مجددًا.","hints.framing":"اقترب أكثر حتى يملأ وجهك الإطار، ثم حاول مجددًا.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة. على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"أبقِ وجهك داخل الإطار طوال الوقت، ثم حاول مجددًا.","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال الرقم الوطني للتعريف الموريتاني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر التأكد من سلامة جلسة المتصفح. أعد تحميل الصفحة وحاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق. تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه. اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف. اطلب رابطًا جديدًا من الجهة الطالبة","errors.id_number_unbound":"أُنشئ هذا الرابط دون رقم هويتك. اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك وتجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك: بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك: بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا. اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور. اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.assisted.title":"صوّر وجه الشخص","capture.assisted.lead":"وجّه الكاميرا الخلفية نحو وجه الشخص وأمسك الهاتف بشكل عمودي. الإرشادات الصوتية تخاطب الشخص الذي تصوّره.","capture.assisted.stage":"وجّه الكاميرا نحو وجه الشخص","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك. قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز. ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه. تحقق من اتصالك ثم أعد المحاولة"}});var sr,gi=C(()=>{"use strict";sr={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes. Gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti. Quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé, avec la lumière sur le visage et non derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée. Branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application. Fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS). Rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible. Ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible. Réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage. Tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux. Éclairez votre visage","fcv3.too_bright":"Trop de lumière. Évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait, ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","fcv3.hold_upright":"Tenez le téléphone à la verticale","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer votre numéro","reasons.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie. C'est au demandeur de le résoudre : reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil. Un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.id_number_invalid":"Le numéro d'identité n'est pas valide","reasons.registry_record_not_found":"Aucun dossier n'a été trouvé dans le registre pour ce numéro d'identité","reasons.document_id_number_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement, votre vérification part donc en revue humaine","reasons.capture_back_camera":"Utilisez la caméra avant. Tenez le téléphone devant votre visage et réessayez","reasons.capture_not_upright":"Tenez votre téléphone à la verticale, pas à l'horizontale, et réessayez","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Réessayons : placez-vous face à une source de lumière et restez immobile.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","hints.appearance":"Réessayons : placez-vous face à une source de lumière et restez immobile.","hints.motion":"Restez immobile et tenez le téléphone bien stable, puis réessayez.","hints.lighting":"Placez-vous face à une fenêtre ou une lampe pour que votre visage soit bien éclairé, puis réessayez.","hints.framing":"Rapprochez-vous pour que votre visage remplisse le cadre, puis réessayez.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible. Le demandeur doit lancer une vérification complète : réessayer n'y changera rien","reasons.probe_not_from_liveness":"Gardez votre visage dans le cadre tout du long, puis réessayez.","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national d'identification mauritanien (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu confirmer l'authenticité de cette session de navigateur. Rechargez la page et réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification. Vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré. Demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification. Demandez un nouveau lien à l'organisme demandeur","errors.id_number_unbound":"Ce lien a été créé sans votre numéro d'identité. Demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière et évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage : ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage : ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra. Choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué. Autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.assisted.title":"Filmez le visage de la personne","capture.assisted.lead":"Pointez la caméra arrière vers le visage de la personne et tenez le téléphone à la verticale. Le guidage vocal s'adresse à la personne filmée.","capture.assisted.stage":"Pointez la caméra vers le visage de la personne","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil. Cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt. Commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage. Vérifiez votre connexion puis réessayez"}});function yi(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";case"upright":return"fcv3.hold_upright";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}function no(e){let t=`hints.${e}`;return Object.hasOwn(en,t)?t:null}function tn(e){return`fcv2.err.${e}`}function nn(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":case"id_number_unbound":return"errors.id_number_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${eo(e)}`;return Object.hasOwn(en,t)?t:null}}}function oo(e,t,n=new Date){if(t===void 0)return null;let o=new Date(t),r=o.getTime()-n.getTime();if(!Number.isFinite(r)||r<=0)return null;if(r<36e5){let c=Math.max(1,Math.ceil(r/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(c,"minute")}}let a=o.toDateString()===n.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...a?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(o)}}function ro(e,t,n){let o=new Intl.PluralRules(t).select(n);return((o==="other"?void 0:e[`capture.attemptsRemaining.${o}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(n))}var Rt=C(()=>{"use strict";mi();In();hi();gi();i(yi,"hintStringKey");i(no,"retakeHintStringKey");i(tn,"captureErrorStringKey");i(nn,"reasonStringKey");i(oo,"retryAfterTime");i(ro,"attemptsRemainingText")});var io,cr=C(()=>{"use strict";io={"session.title":"تحقّق من هويتك","session.requestedBy":"تطلب {orgName} منك التحقق من هويتك","returning.requestedBy":"تطلب {orgName} منك تأكيد أنك أنت","consent.notice":"بإكمال عملية التحقق من الهوية، فإنك توافق على معالجة بياناتك الشخصية والبيومترية للتحقق من هويتك.","consent.details":"التفاصيل","consent.terms.intro":"تتحقق Sekyro AI من هويتك نيابةً عن الجهة التي أرسلت إليك هذا الرابط. قبل البدء، اطّلع على كيفية استخدام بياناتك.","consent.terms.data":"أثناء التحقق، تجمع Sekyro AI صور وثيقة هويتك، ومقطع فيديو ذاتيًا قصيرًا، وصورة ذاتية، ورقم وثيقة هويتك.","consent.terms.processing":"تُستخدم هذه البيانات للتحقق من هويتك فقط: يُقارَن وجهك بالصورة الموجودة على وثيقتك، ويُطابَق رقمك مع سجلات الجهة المُصدِرة متى أمكن ذلك. وقد يفحص بعض الخطوات مراجع بشري مخوَّل.","consent.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","reasons.camera_unavailable":"يتطلب هذا التحقق كاميرا. عُد إلى {org} للمتابعة بطريقة أخرى.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"8 أرقام","otp.send":"إرسال الرمز","otp.channelSms":"رسالة نصية","otp.channelWhatsapp":"واتساب","otp.verifyTitle":"أدخل رمز التحقّق","otp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك لإتمام التحقّق من رقمك","otp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {number} عبر {channel}","otp.codeLabel":"رمز التحقّق","otp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك","otp.verify":"تحقّق من الرمز","otp.resend":"إعادة إرسال الرمز","otp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","otp.expiresIn":"ينتهي الرمز خلال {time}","otp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","otp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","otp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","otp.reason_otp_send_failed":"تعذّر إرسال الرمز. أعد المحاولة بعد قليل","otp.chooseChannel":"كيف تريد أن تتلقّى رمزك؟","otp.sendBy":"إرسال الرمز عبر {channel}","otp.resendBy":"إعادة الإرسال عبر {channel}","otp.reason_otp_channel_unavailable":"هذه الوسيلة غير متاحة. اختر طريقة أخرى لتلقّي رمزك","otp.reason_otp_destination_not_allowed":"لا يمكننا إرسال الرموز إلى أرقام هذا البلد. أدخل رقمًا آخر","otp.reason_otp_destination_unknown":"تعذّر التعرّف على هذا الرقم. تحقّق منه وأعد إدخاله مع رمز البلد","otp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","otp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","otp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","population.reason_id_number_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.reason_registry_record_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_registry_record_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط. لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة صورتك بوثيقة هويتك…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.countryLabel":"البلد","otp.phonePlaceholderGeneric":"الرقم بدون رمز البلد","otp.codeInvalid":"أدخل الرمز المكوّن من 6 أرقام","doc.countryTitle":"ما البلد الذي أصدر وثيقتك؟","doc.countryLabel":"بلد الإصدار","doc.countrySearch":"ابحث عن بلد","doc.noCountryMatch":"لا يوجد بلد يطابق بحثك","doc.type.carte_identite":"بطاقة الهوية","doc.type.residence_permit":"بطاقة الإقامة","doc.type.passport":"جواز السفر","doc.showSide":"اعرض أحد وجهي البطاقة","doc.showPage":"اعرض صفحة الصورة","doc.flip":"اقلب البطاقة","doc.sameFace":"الوجه نفسه · اقلب البطاقة","doc.reaskRecto":"اعرض الوجه الأمامي مرة أخرى","doc.reread":"تعذّرت قراءة هذا الوجه · ثبّت البطاقة في إضاءة جيدة","doc.photoTaken":"تم التقاط الصورة","doc.frontCaptured":"تم التقاط الوجه الأمامي","doc.backCaptured":"تم التقاط الوجه الخلفي","doc.pageCaptured":"تم التقاط الصفحة","doc.progressFront":"الأمام","doc.progressBack":"الخلف","doc.progressPage":"صفحة الصورة","doc.shutter":"التقط الصورة","doc.torchOn":"شغّل الضوء","doc.torchOff":"أطفئ الضوء","result.platform_unsupported":"يتطلب هذا التحقق تطبيقًا على الهاتف.","unsupported.title":"يلزم التحديث","unsupported.description":"تتطلب هذه الخطوة إصدارًا أحدث من هذه الصفحة. تواصل مع {org}.","shell.subtitle":"التحقق من الهوية","shell.subtitleHuman":"التحقق البشري","shell.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","native.face.humanIntroTitle":"أكّد أنك شخص حقيقي","native.face.humanIntroLead":"لقطة قصيرة واحدة: انظر إلى الشاشة فقط.","native.doc.holdIt":"احتفظ بوثيقتك في متناول يدك.","native.doc.changeCountry":"تغيير البلد","native.result.approved":"اكتمل التحقق. يمكنك العودة إلى {org}.","native.result.review":"ستُرسل النتيجة إلى {org}. لا يلزمك فعل أي شيء آخر.","native.result.rejected":"تواصل مع {org} إذا كنت تعتقد أن هذا خطأ.","native.result.expired":"ابدأ من جديد من {org} للحصول على جلسة جديدة.","native.result.copied":"تم النسخ","native.result.back":"العودة إلى {org}"}});var ao,lr=C(()=>{"use strict";ao={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the verification code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","otp.reason_payment_method_required":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_spend_cap_reached":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_insufficient_balance":"This verification method is not available right now. Choose another way to verify if one is offered.","session.steps.population.title":"Enter your national ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","population.reason_id_number_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.reason_registry_record_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_registry_record_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Which document will you use?","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Your checks are being processed","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","session.processing.age_estimation.title":"Checking your age","session.processing.age_estimation.description":"This takes a few seconds","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done. You can close this page","session.result.review.title":"Your verification is under review","session.result.review.description":"The result will be sent to the organization that gave you this link. You don't need to do anything else.","session.result.rejected.title":"Your identity could not be verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"This verification session has expired","session.result.expired.description":"Request a new link from the organization that sent it, then start again","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","session.result.deviceStop":"We couldn't continue on this device. Try again on another device or browser.","result.referenceLabel":"Reference code","common.loading":"Loading your verification session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photo with your identity document…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This verification needs a phone app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","population.recheck.title":"Check your national number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.countryLabel":"Country","otp.phonePlaceholderGeneric":"Number without the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Which country issued your document?","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you are a real person","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.approved":"Your verification is complete. You can go back to {org}.","native.result.review":"The result will be sent to {org}. There's nothing else you need to do.","native.result.rejected":"Contact {org} if you think this is a mistake.","native.result.expired":"Start again from {org} to get a new session.","native.result.copied":"Copied","native.result.back":"Back to {org}"}});var so,dr=C(()=>{"use strict";so={"session.title":"Vérifiez votre identité","session.requestedBy":"{orgName} vous demande de vérifier votre identité","returning.requestedBy":"{orgName} vous demande de confirmer qu'il s'agit bien de vous","consent.notice":"En poursuivant la vérification d'identité, vous consentez au traitement de vos données personnelles et biométriques afin de vérifier votre identité.","consent.details":"En savoir plus","consent.terms.intro":"Sekyro AI vérifie votre identité pour le compte de l'organisme qui vous a envoyé ce lien. Avant de commencer, consultez la façon dont vos données sont utilisées.","consent.terms.data":"Pendant la vérification, Sekyro AI recueille les photos de votre pièce d'identité, une courte vidéo selfie, une photo selfie et le numéro de votre pièce d'identité.","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre numéro est vérifié auprès des registres de l'autorité émettrice lorsque c'est possible. Certaines étapes peuvent être examinées par un examinateur humain habilité.","consent.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro de téléphone","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code de vérification","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","otp.reason_payment_method_required":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_spend_cap_reached":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_insufficient_balance":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","session.steps.population.title":"Saisissez votre numéro national d'identification","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Vérification auprès du registre civil","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","population.reason_id_number_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.reason_registry_record_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_registry_record_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Quel document allez-vous utiliser ?","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Vos vérifications sont en cours de traitement","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur votre téléphone","session.processing.age_estimation.title":"Vérification de votre âge","session.processing.age_estimation.description":"Cela prend quelques secondes","session.result.approved.title":"Votre identité est vérifiée","session.result.approved.description":"C'est terminé. Vous pouvez fermer cette page","session.result.review.title":"Votre vérification est en cours d'examen","session.result.review.description":"Le résultat sera transmis à l'organisation qui vous a envoyé ce lien. Vous n'avez rien d'autre à faire.","session.result.rejected.title":"Votre identité n'a pas pu être vérifiée","session.result.rejected.description":"Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur","session.result.expired.title":"Cette session de vérification a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui l'a envoyé, puis recommencez","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","session.result.deviceStop":"Impossible de continuer sur cet appareil. Réessayez sur un autre appareil ou navigateur.","result.referenceLabel":"Code de référence","common.loading":"Chargement de votre session de vérification","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo d’identité","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification de votre photo…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison de votre photo avec votre pièce d'identité…","portrait.reviewTitle":"Nous allons vérifier votre photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Cette vérification nécessite une application mobile","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","population.recheck.title":"Vérifiez votre numéro national","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.countryLabel":"Pays","otp.phonePlaceholderGeneric":"Numéro sans l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Quel pays a délivré votre document ?","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions maintenant votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez que vous êtes une personne réelle","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.approved":"Votre vérification est terminée. Vous pouvez retourner à {org}.","native.result.review":"Le résultat sera transmis à {org}. Vous n'avez rien d'autre à faire.","native.result.rejected":"Contactez {org} si vous pensez qu'il s'agit d'une erreur.","native.result.expired":"Recommencez depuis {org} pour obtenir une nouvelle session.","native.result.copied":"Copiée","native.result.back":"Revenir à {org}"}});function co(e,t){let n=Qn(e),o=n===void 0?vi[Zn(e)]:{...vi.en,...n};if(t===void 0)return o;let r={...o};for(let a of Object.keys(t)){let s=t[a];typeof s=="string"&&(r[a]=s)}return to(r,t),r}function lo(e){let[,t]=(0,At.useState)(0),n=ir(e);return(0,At.useEffect)(()=>{if(!n)return;let o=!0;return Xn(e).then(()=>o&&t(r=>r+1)),()=>{o=!1}},[e,n]),!n}function Ae(){return(0,At.useContext)(ki)}var At,vi,ki,bi,et=C(()=>{"use strict";At=require("react");Rt();In();Jn();vi={ar,fr:sr,en};i(co,"resolveStrings");i(lo,"useLocaleReady");ki=(0,At.createContext)(e=>en[e]??""),bi=ki.Provider;i(Ae,"useStrings")});function qe(e,t){return t===void 0?e:e.replace(/\{(\w+)\}/g,(n,o)=>Object.hasOwn(t,o)?String(t[o]):n)}function ur(e,t){let n=Zn(e),o={...co(n),...Ic[n],...Qn(e)};if(t!==void 0){for(let r of Object.keys(t)){let a=t[r];typeof a=="string"&&(o[r]=a)}to(o,t)}return o}function _i(e,t){let n=ur(e,t);return{locale:e,strings:n,t:i((o,r)=>qe(n[o]??"",r),"t")}}function on({locale:e,strings:t,children:n}){let o=lo(e),r=(0,Gt.useMemo)(()=>_i(e,t),[e,t,o]);return o?(0,Ci.jsx)(Si.Provider,{value:r,children:n}):null}function ce(e,t){let n=(0,Gt.useContext)(Si);return(0,Gt.useMemo)(()=>n!==null&&e===void 0&&t===void 0?n:_i(e??n?.locale??"en",t),[n,e,t])}var Gt,Ci,Ic,Si,Ne=C(()=>{"use strict";Gt=require("react");cr();lr();dr();Jn();In();et();Ci=require("react/jsx-runtime"),Ic={en:ao,fr:so,ar:io};i(qe,"formatTemplate");i(ur,"resolveSekyroStrings");Si=(0,Gt.createContext)(null);i(_i,"build");i(on,"StepI18nProvider");i(ce,"useStepI18n")});var wi,Ni,L,ve=C(()=>{"use strict";wi=require("react"),Ni=require("react/jsx-runtime"),L=(0,wi.forwardRef)(i(function({kind:t="primary",full:n=!1,className:o,type:r,...a},s){let c=["sekyro-btn",`sekyro-btn--${t}`];return n&&c.push("sekyro-btn--full"),o!==void 0&&c.push(o),(0,Ni.jsx)("button",{ref:s,type:r??"button",className:c.join(" "),...a})},"Button"))});function po({id:e,value:t,onChange:n,length:o=6,describedBy:r,invalid:a}){let[s,c]=(0,Pt.useState)(!1),[l,u]=(0,Pt.useState)(0);(0,Pt.useEffect)(()=>{a&&u(f=>f+1)},[a]);let p=(0,Pt.useRef)(null);(0,Pt.useEffect)(()=>{let f=setTimeout(()=>p.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(f)},[]);let g=t.length<o?t.length:-1;return(0,Ut.jsxs)("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[(0,Ut.jsx)("div",{className:`sekyro-otp-row${l>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:o},(f,d)=>(0,Ut.jsx)("span",{className:`sekyro-otp-box${d<t.length?" is-filled":""}${s&&d===g?" is-current":""}${a?" is-invalid":""}`,children:t[d]!==void 0?(0,Ut.jsx)("span",{className:"sekyro-otp-digit",children:t[d]},t[d]):null},d))},l),(0,Ut.jsx)("input",{ref:p,id:e,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:t,"aria-describedby":r,"aria-invalid":a||void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),onChange:f=>n((0,xi.normalizeNni)(f.target.value).replace(/\D/g,"").slice(0,o))})]})}var xi,Pt,Ut,pr=C(()=>{"use strict";xi=require("@sekyro/web"),Pt=require("react"),Ut=require("react/jsx-runtime");i(po,"CodeInput")});function Ue(e,t){if(e instanceof rn.InvalidInputError)return e.field==="phone"?"otp.phoneInvalid":e.field==="code"?"otp.codeInvalid":e.kind==="check_digit"?"population.reason_id_number_invalid":"population.invalid";if(e instanceof rn.OtpInputError&&e.field==="channel")return"otp.reason_otp_channel_unavailable";if(e instanceof rn.HostedApiError){let n=`errors.${e.code}`;if(Object.hasOwn(t,n))return n}return"errors.network_error"}var rn,Wt=C(()=>{"use strict";rn=require("@sekyro/web");i(Ue,"errorKey")});function be(){return(0,Ri.useCallback)(e=>{e?.focus()},[])}var Ri,lt=C(()=>{"use strict";Ri=require("react");i(be,"useFocusOnMount")});function Ee({id:e,title:t,lead:n}){let o=be();return(0,Et.jsxs)("div",{className:"sekyro-heading",children:[(0,Et.jsx)("h2",{id:e,ref:o,tabIndex:-1,className:"sekyro-text-body",children:t}),n!==void 0?(0,Et.jsx)("p",{className:"sekyro-text-muted",children:n}):null]})}function Me({children:e}){return(0,Et.jsx)("div",{className:"sekyro-actions",children:e})}function mo(e){let t=(0,We.useContext)(mr);(0,We.useEffect)(()=>(t(e),()=>t(!1)),[e,t])}function zn({swapKey:e,className:t,children:n}){let[o,r]=(0,We.useState)({key:e,node:n}),a=(0,We.useRef)(n);a.current=n;let s=o.key!==e;return(0,We.useEffect)(()=>{if(!s)return;let c=setTimeout(()=>r({key:e,node:a.current}),zc);return()=>clearTimeout(c)},[s,e]),(0,Et.jsx)("div",{className:`${t}${s?" is-leaving":""}`,"aria-hidden":s||void 0,children:s?o.node:n},o.key)}var We,Et,an,mr,zc,Ai,dt=C(()=>{"use strict";We=require("react");lt();Et=require("react/jsx-runtime");i(Ee,"StepHeading");i(Me,"StepActions");an=(0,We.createContext)(void 0),mr=(0,We.createContext)(()=>{});i(mo,"useImmersive");zc=100;i(zn,"Swap");Ai=i(({pageKey:e,children:t})=>(0,Et.jsx)(zn,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap")});function we({tone:e,role:t,children:n,testId:o}){return(0,Pi.jsx)("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":o,children:n})}var Pi,sn=C(()=>{"use strict";Pi=require("react/jsx-runtime");i(we,"Notice")});function q({tone:e,children:t}){return(0,Ei.jsx)(we,{tone:e,children:t})}function tt(e,t,n){return n?e.t("common.noAttemptsLeft"):ro(e.strings,e.locale,t)}var Ei,Ke=C(()=>{"use strict";sn();Rt();Ei=require("react/jsx-runtime");i(q,"StepNotice");i(tt,"attemptsLine")});function cn(e){let[t,n]=(0,fo.useState)(()=>Date.now());return(0,fo.useEffect)(()=>{if(!e)return;let o=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(o)},[e]),t}var fo,ho=C(()=>{"use strict";fo=require("react");i(cn,"useNow")});var Hi,Bi=C(()=>{"use strict";Hi={"emailOtp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إلى بريدك الإلكتروني اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"عنوان بريدك الإلكتروني","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا","emailOtp.send":"أرسل لي رمزًا عبر البريد الإلكتروني","emailOtp.verifyTitle":"أدخل رمز التحقّق","emailOtp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى بريدك الإلكتروني لإتمام التحقّق من عنوانك","emailOtp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {email}","emailOtp.codeLabel":"رمز التحقّق","emailOtp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الوارد في الرسالة","emailOtp.verify":"تحقّق من الرمز","emailOtp.resend":"إعادة إرسال الرمز","emailOtp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","emailOtp.expiresIn":"ينتهي الرمز خلال {time}","emailOtp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","emailOtp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","emailOtp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","emailOtp.reason_otp_send_failed":"تعذّر إرسال الرسالة. أعد المحاولة بعد قليل","emailOtp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","emailOtp.reason_email_invalid":"لا يمكننا الإرسال إلى هذا العنوان. تحقّق منه أو أدخل عنوانًا آخر","emailOtp.reason_email_disposable":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا"}});var Tn,Fi=C(()=>{"use strict";Tn={"emailOtp.reason_otp_daily_cap_reached":"We can't email you a code today. Choose another way to verify if one is offered, or try again later.","emailOtp.sendTitle":"Verify your email address","emailOtp.sendDescription":"We'll email you a one-time code to confirm this address is yours","emailOtp.prefilledNotice":"We'll send a verification code to your registered email address.","emailOtp.emailLabel":"Email address","emailOtp.emailHelper":"We'll send a one-time code to this address","emailOtp.emailPlaceholder":"Your email address","emailOtp.emailInvalid":"Enter a valid email address","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the verification code","emailOtp.verifyDescription":"Type the 6-digit code we emailed you to finish verifying your address","emailOtp.sentTo":"We sent a 6-digit code to {email}","emailOtp.codeLabel":"Verification code","emailOtp.codeHelper":"Enter the 6-digit code from the email","emailOtp.verify":"Verify code","emailOtp.resend":"Resend code","emailOtp.resendIn":"Resend code in {seconds}s","emailOtp.expiresIn":"Code expires in {time}","emailOtp.expired":"That code has expired. Resend a new one","emailOtp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","emailOtp.reason_otp_expired":"That code has expired. Resend a new code to continue","emailOtp.reason_otp_send_failed":"We couldn't send the email. Try again in a moment","emailOtp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","emailOtp.reason_email_invalid":"We can't send to this address. Check it or enter another one","emailOtp.reason_email_disposable":"Use a permanent email address, not a temporary one"}});var qi,Ki=C(()=>{"use strict";qi={"emailOtp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code par e-mail aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","emailOtp.sendTitle":"Vérifiez votre adresse e-mail","emailOtp.sendDescription":"Nous vous enverrons par e-mail un code à usage unique pour confirmer que cette adresse vous appartient","emailOtp.prefilledNotice":"Nous enverrons un code de vérification à votre adresse e-mail enregistrée.","emailOtp.emailLabel":"Adresse e-mail","emailOtp.emailHelper":"Nous enverrons un code à usage unique à cette adresse","emailOtp.emailPlaceholder":"Votre adresse e-mail","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code de vérification","emailOtp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé par e-mail pour finaliser la vérification de votre adresse","emailOtp.sentTo":"Nous avons envoyé un code à 6 chiffres à {email}","emailOtp.codeLabel":"Code de vérification","emailOtp.codeHelper":"Saisissez le code à 6 chiffres reçu par e-mail","emailOtp.verify":"Vérifier le code","emailOtp.resend":"Renvoyer le code","emailOtp.resendIn":"Renvoyer le code dans {seconds} s","emailOtp.expiresIn":"Le code expire dans {time}","emailOtp.expired":"Ce code a expiré. Renvoyez-en un nouveau","emailOtp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","emailOtp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","emailOtp.reason_otp_send_failed":"Nous n'avons pas pu envoyer l'e-mail. Réessayez dans un instant","emailOtp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","emailOtp.reason_email_invalid":"Nous ne pouvons pas envoyer à cette adresse. Vérifiez-la ou saisissez-en une autre","emailOtp.reason_email_disposable":"Utilisez une adresse e-mail permanente, pas une adresse temporaire"}});var Ui={};vt(Ui,{EmailOtpView:()=>Fc});function Fc({step:e,i18n:t,className:n,defaultEmail:o="",onError:r}){let a=i((E,F)=>qe(t.strings[E]??Dc[t.locale][E],F),"t"),[s,c]=(0,Yt.useState)(o),[l,u]=(0,Yt.useState)(""),[p,g]=(0,Yt.useState)(!1),[f,d]=(0,Yt.useState)(null),m=e.phase==="verify",y=cn(m),h=(0,Yt.useId)(),v=i(async E=>{g(!0),d(null);try{await E()}catch(F){d(F instanceof Gi.OtpInputError&&F.field==="email"?a("emailOtp.emailInvalid"):t.t(Ue(F,t.strings))),r?.(F)}finally{g(!1)}},"run"),S=i(E=>{v(()=>e.send(e.needsEmail&&(!E||s!==o)?{email:s}:{}))},"send"),T=i(E=>{v(()=>e.verify(E))},"submitCode"),M=i(E=>{E.preventDefault(),m?T(l):S(!1)},"onSubmit"),R=$i(e.codeExpiresAt,y),w=$i(e.resendAvailableAt,y),P=m&&e.codeExpiresAt!==void 0&&R===0,[B,H]=a("emailOtp.sentTo").split("{email}"),b=e.reason==="otp_mismatch"?(0,Q.jsxs)(q,{tone:"danger",children:[(0,Q.jsx)("span",{children:a("emailOtp.reason_otp_mismatch")}),(0,Q.jsx)("span",{children:tt(t,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Bc.has(e.reason)?(0,Q.jsx)(q,{tone:"warning",children:(0,Q.jsx)("span",{children:a(`emailOtp.reason_${e.reason}`)})}):null;return(0,Q.jsxs)("form",{className:`sekyro-step sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":h,onSubmit:M,noValidate:!0,children:[(0,Q.jsx)(Ee,{id:h,title:a(m?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:m?(0,Q.jsxs)(Q.Fragment,{children:[B,(0,Q.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),H]}):a("emailOtp.sendDescription")}),b,f!==null?(0,Q.jsx)(q,{tone:"danger",children:(0,Q.jsx)("span",{children:f})}):null,m?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("div",{className:"sekyro-field",children:[(0,Q.jsx)("label",{className:"sekyro-label",htmlFor:`${h}-code`,children:a("emailOtp.codeLabel")}),(0,Q.jsx)(po,{id:`${h}-code`,value:l,invalid:e.reason==="otp_mismatch",onChange:E=>{u(E),E.length===6&&l.length!==6&&!p&&!e.attemptsExhausted&&T(E)}}),(0,Q.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${P?" is-danger":""}`,"aria-hidden":!P||void 0,children:P?a("emailOtp.expired"):a("emailOtp.expiresIn",{time:Hc(R)})})]}),(0,Q.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:P?a("emailOtp.expired"):""}),(0,Q.jsxs)(Me,{children:[(0,Q.jsx)(L,{type:"submit",full:!0,disabled:p||l.length!==6,"aria-busy":p||void 0,children:a("emailOtp.verify")}),(0,Q.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:p||w>0,onClick:()=>S(!0),children:w>0?a("emailOtp.resendIn",{seconds:w}):a("emailOtp.resend")})]})]}):(0,Q.jsxs)(Q.Fragment,{children:[e.needsEmail?(0,Q.jsxs)("div",{className:"sekyro-field",children:[(0,Q.jsx)("label",{className:"sekyro-label",htmlFor:`${h}-email`,children:a("emailOtp.emailLabel")}),(0,Q.jsx)("input",{id:`${h}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:a("emailOtp.emailPlaceholder"),value:s,"aria-describedby":`${h}-email-help`,onChange:E=>c(E.target.value)}),(0,Q.jsx)("span",{id:`${h}-email-help`,className:"sekyro-help",children:a("emailOtp.emailHelper")})]}):(0,Q.jsx)("p",{className:"sekyro-text-muted",children:a("emailOtp.prefilledNotice")}),(0,Q.jsx)(Me,{children:(0,Q.jsx)(L,{type:"submit",full:!0,disabled:p,"aria-busy":p||void 0,children:a("emailOtp.send")})})]})]})}var Gi,Yt,Q,Dc,$i,Hc,Bc,Wi=C(()=>{"use strict";Gi=require("@sekyro/web"),Yt=require("react");ve();Bi();Fi();Ki();Wt();dt();Ne();Ke();pr();ho();Q=require("react/jsx-runtime"),Dc={en:Tn,fr:qi,ar:Hi,es:Tn,pt:Tn,de:Tn},$i=i((e,t)=>{if(e===void 0)return 0;let n=Date.parse(e)-t;return Number.isFinite(n)?Math.max(0,Math.ceil(n/1e3)):0},"secondsUntil"),Hc=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Bc=new Set(["otp_expired","otp_send_failed","otp_rate_limited","email_invalid","email_disposable","otp_daily_cap_reached"]);i(Fc,"EmailOtpView")});var vo,hr=C(()=>{"use strict";vo={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق عبر هويتك الرقمية الوطنية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل الرمز من تطبيق الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز. اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك. اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات. تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا. أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"}});var pt,gr=C(()=>{"use strict";pt={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your national eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter the code from your eID app","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired. Get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect. Check it and enter it again","reasons.eid_code_expired":"Your code has expired. Get a new code to continue","reasons.eid_locked":"Too many incorrect codes. eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now. Try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes. Enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"}});var ko,yr=C(()=>{"use strict";ko={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID national","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré. Demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré. Demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects. La connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment. Réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"}});var Zi={};vt(Zi,{EidView:()=>Gc});function Gc({step:e,i18n:t,className:n,onError:o}){let r=t.strings,a=i((A,G)=>qe(r[A]??Yi[t.locale][A]??"",G),"t"),s=i((A,G)=>{let ae=new Intl.PluralRules(t.locale).select(G),O=`${A}.${ae}`,ge=r[O]??Yi[t.locale][O]??a(`${A}.other`);return qe(ge,{count:new Intl.NumberFormat(t.locale).format(G)})},"plural"),c=i(A=>e.providerName?a(`eid.${A}`,{provider:e.providerName}):a(`eid.${A}Generic`),"named"),[l,u]=(0,Oe.useState)(""),[p,g]=(0,Oe.useState)(""),[f,d]=(0,Oe.useState)(!1),[m,y]=(0,Oe.useState)(null),h=e.phase==="code",v=cn(h),S=(0,Oe.useId)(),T=be(),M=i(async A=>{d(!0),y(null);try{await A()}catch(G){y(Ue(G,t.strings)),o?.(G)}finally{d(!1)}},"run"),R=(0,Oe.useRef)(!1);(0,Oe.useEffect)(()=>{!e.identifierBound||h||e.reason!==void 0||R.current||(R.current=!0,M(()=>e.start()))},[e.identifierBound,h,e.reason]),(0,Oe.useEffect)(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&g("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let w=(0,Oe.useRef)(h);(0,Oe.useEffect)(()=>{h&&!w.current&&document.getElementById(`${S}-code`)?.focus(),w.current=h},[h,S]);let P=e.reason==="eid_locked",B=ji(e.codeExpiresAt,v),H=h&&e.codeExpiresAt!==void 0&&B===0,b=ji(e.resendAvailableAt,v),E=e.resendsRemaining===0||e.reason==="eid_resend_limit",F=i(A=>{if(A.preventDefault(),h){p.length===vr&&!P&&M(()=>e.verify(p));return}if(e.identifierBound){M(()=>e.start());return}let G=(0,ln.normalizeNni)(l);if(e.country==="MR"){if(!/^\d{10}$/.test(G))return y("population.invalid");if(!(0,ln.isValidNni)(G))return y("population.reason_nni_invalid")}M(()=>e.start(G))},"onSubmit"),I=e.reason?.startsWith("eid_")?e.reason:void 0,V=(0,j.jsxs)(j.Fragment,{children:[I!==void 0?(0,j.jsxs)(q,{tone:Kc.has(I)?"danger":"warning",children:[(0,j.jsx)("span",{children:a(`reasons.${I}`)}),I==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?(0,j.jsx)("span",{children:s("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?(0,j.jsx)(L,{kind:"ghost",disabled:f,onClick:()=>{M(()=>e.useCamera())},children:a("eid.useCamera")}):null]}):null,m!==null?(0,j.jsx)(q,{tone:"danger",children:(0,j.jsx)("span",{children:t.t(m)})}):null]}),[N,x]=h?[c("codeTitle"),c("codeHelp")]:[c("identifierTitle"),c(e.identifierBound?"boundDescription":"identifierDescription")];return(0,j.jsxs)("form",{className:`sekyro-stack sekyro-stack--4 sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":S,onSubmit:F,noValidate:!0,"data-testid":"sekyro-eid",children:[(0,j.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,j.jsx)("h2",{id:S,ref:T,tabIndex:-1,className:"sekyro-text-body",children:N}),(0,j.jsx)("p",{className:"sekyro-text-muted",children:x}),e.afterPass==="continue"?(0,j.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?a("eid.continueHint",{provider:e.providerName}):a("eid.continueHintGeneric")}):null]}),V,h?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{className:"sekyro-field",children:[(0,j.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-code`,children:a("eid.codeLabel")}),(0,j.jsx)("input",{id:`${S}-code`,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:p,disabled:P,onChange:A=>{y(null),g((0,ln.normalizeNni)(A.target.value).replace(/\D/g,"").slice(0,vr))}})]}),(0,j.jsxs)("div",{className:"sekyro-row",children:[e.codeExpiresAt!==void 0?(0,j.jsx)("span",{className:"sekyro-text-muted",children:H?a("eid.expired"):a("eid.expiresIn",{time:$c(B)})}):null,E?(0,j.jsx)("span",{className:"sekyro-text-muted",children:a("eid.noResendsLeft")}):(0,j.jsx)(L,{kind:"ghost",disabled:f||b>0||P,onClick:()=>{M(()=>e.resend())},children:b>0?a("eid.resendIn",{seconds:b}):a("eid.resend")})]}),!E&&e.resendsRemaining!==void 0?(0,j.jsx)("p",{className:"sekyro-text-muted",children:s("eid.resendsRemaining",e.resendsRemaining)}):null,(0,j.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:H?a("eid.expired"):""}),(0,j.jsx)(L,{type:"submit",full:!0,disabled:f||p.length!==vr||P,"aria-busy":f||void 0,children:a("eid.verify")})]}):(0,j.jsxs)(j.Fragment,{children:[e.identifierBound?null:(0,j.jsxs)("div",{className:"sekyro-field",children:[(0,j.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-nni`,children:t.t("population.label")}),(0,j.jsx)("input",{id:`${S}-nni`,className:"sekyro-input sekyro-mono",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:t.t("population.placeholder"),value:l,"aria-describedby":`${S}-nni-help`,"aria-invalid":m==="population.invalid"||m==="population.reason_nni_invalid"||void 0,onChange:A=>{y(null),u((0,ln.normalizeNni)(A.target.value).replace(/\D/g,"").slice(0,10))}}),(0,j.jsx)("span",{id:`${S}-nni-help`,className:"sekyro-help",children:t.t("population.helper")})]}),(0,j.jsx)(L,{type:"submit",full:!0,disabled:f,"aria-busy":f||void 0,children:a("eid.start")})]})]})}var ln,Oe,j,Yi,vr,Kc,ji,$c,Qi=C(()=>{"use strict";ln=require("@sekyro/web"),Oe=require("react");ve();hr();gr();yr();lt();Wt();Ne();Ke();ho();j=require("react/jsx-runtime"),Yi={en:pt,fr:ko,ar:vo,es:pt,pt,de:pt},vr=6,Kc=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),ji=i((e,t)=>{if(e===void 0)return 0;let n=Date.parse(e)-t;return Number.isFinite(n)?Math.max(0,Math.ceil(n/1e3)):0},"secondsUntil"),$c=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");i(Gc,"EidView")});function jt({title:e,description:t,options:n,busy:o,error:r,focus:a,testId:s,look:c="cards",marked:l,onChoose:u}){let p=(0,St.useId)(),g=be(),[f,d]=(0,St.useState)(null),m=(0,St.useRef)(null);(0,St.useEffect)(()=>{r!==null&&d(null)},[r]),(0,St.useEffect)(()=>()=>{m.current!==null&&clearTimeout(m.current)},[]);let y=i(h=>{o||f!==null||(d(h),m.current=setTimeout(()=>{m.current=null,d(null),u(h)},Wc))},"choose");return(0,Pe.jsxs)("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":p,"data-testid":s,children:[(0,Pe.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,Pe.jsx)("h2",{id:p,ref:a?g:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?(0,Pe.jsx)("p",{className:"sekyro-text-muted",children:t}):null]}),r!==null?(0,Pe.jsx)(we,{tone:"danger",children:(0,Pe.jsx)("span",{children:r})}):null,c==="buttons"?(0,Pe.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:n.map((h,v)=>(0,Pe.jsx)(L,{kind:v===0?"primary":"ghost",full:!0,disabled:o,"aria-busy":o||void 0,onClick:()=>u(h.id),children:h.label},h.id))}):(0,Pe.jsx)("div",{className:"sekyro-choices",children:n.map(h=>(0,Pe.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":(f??l)===h.id,"aria-busy":o||void 0,disabled:o||f!==null&&f!==h.id,onClick:()=>y(h.id),children:[h.glyph,(0,Pe.jsxs)("span",{className:"sekyro-card__body",children:[(0,Pe.jsx)("span",{className:"sekyro-card__title",children:h.label}),h.sub!==void 0?(0,Pe.jsx)("span",{className:"sekyro-card__sub",children:h.sub}):null]}),(0,Pe.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},h.id))})]})}var St,Pe,Wc,So=C(()=>{"use strict";St=require("react");ve();sn();lt();Pe=require("react/jsx-runtime"),Wc=220;i(jt,"ChoiceScreen")});function Rn(e,t){switch(e.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let n=e.nationalEid?.providerName;return n?t.t("method.national_eid",{provider:n}):t.t("method.national_eidGeneric")}default:return null}}function Zt(e,t){let[n,o]=(0,kr.useState)(!1),[r,a]=(0,kr.useState)(null);return{busy:n,error:r,run:i(c=>{o(!0),a(null),c().then(()=>o(!1),l=>{o(!1),a(e.t(Ue(l,e.strings))),t?.(l)})},"run")}}var kr,_o,br=C(()=>{"use strict";kr=require("react");Wt();_o={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};i(Rn,"identityLabel");i(Zt,"useChoiceAction")});function jc(e,t,n,o){return n?"var(--sekyro-color-success)":e?o?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":t<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":t<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}function Xi({progress:e,phase:t,draining:n=!1}){let o=Math.min(1,Math.max(0,e)),r=Math.round(o*56),a=t==="checking",s=t==="recording",c=t==="frozen",l=a||c,u=a||s||c,p=t==="locked"||u,g=n&&!p;return(0,_t.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":t,"data-filled":r,"data-recording":s?"":void 0,"data-draining":g?"":void 0,children:[(0,_t.jsx)("path",{fillRule:"evenodd",d:Zc,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),(0,_t.jsxs)("g",{className:t==="locked"?"sekyro-capture-settle":void 0,children:[(0,_t.jsx)("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:Yc.map((f,d)=>(0,_t.jsx)("line",{x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,stroke:jc(d<r,f.frac,p,g),strokeWidth:3,strokeLinecap:"round",style:f.style,className:"sekyro-arc__tick"},f.id))}),(0,_t.jsx)("g",{className:t==="seeking"?"sekyro-capture-breathe":void 0,children:(0,_t.jsx)("circle",{cx:150,cy:150,r:100,fill:"none",stroke:p?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:p?3.5:2.5,className:u?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}var _t,Yc,Zc,Ji=C(()=>{"use strict";_t=require("react/jsx-runtime"),Yc=Array.from({length:56},(e,t)=>{let n=t/56*2*Math.PI-Math.PI/2,o=Math.cos(n),r=Math.sin(n);return{id:`tick-${t}`,frac:t/55,x1:150+108*o,y1:150+108*r,x2:150+138*o,y2:150+138*r,style:{transitionDelay:`${t*6}ms`}}});i(jc,"tickColor");Zc="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";i(Xi,"CaptureArc")});function ea({videoRef:e,guidanceText:t,guidanceHint:n,guidanceKey:o,progress:r,phase:a,draining:s=!1,stillUrl:c,showChecking:l,onSwitchCamera:u,canSwitchCamera:p,operatorText:g=null,voicePrompt:f,overlay:d,reduceMotion:m=!1}){let y=Ae(),h=a==="checking",S=h||a==="frozen",T=S&&l?y("capture.checking"):t,M=f?.(n,T,o);return(0,ke.jsxs)("div",{className:m?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[(0,ke.jsx)("video",{ref:e,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),c!==null&&S?(0,ke.jsx)("img",{src:c,alt:y("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,(0,ke.jsx)(Xi,{progress:r,phase:a,draining:s}),d?.(e),M!=null&&!S?(0,ke.jsx)("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:M}):null,p?(0,ke.jsx)(L,{kind:"chip",onClick:u,"aria-label":y("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:(0,ke.jsx)(An,{})}):null,h&&l?(0,ke.jsxs)("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[(0,ke.jsx)(Qc,{}),y("capture.cameraOff")]}):null,(0,ke.jsxs)("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[(0,ke.jsx)("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:T},T),S&&l?(0,ke.jsx)("span",{className:"sekyro-stage__guidance-hint",children:y("capture.checkingHint")}):g!==null&&!S?(0,ke.jsx)("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:g}):null]})]})}function An(){return(0,ke.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[(0,ke.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,ke.jsx)("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),(0,ke.jsx)("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}function Qc(){return(0,ke.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[(0,ke.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,ke.jsx)("path",{d:"M3 3l18 18"})]})}var ke,Co=C(()=>{"use strict";ve();Ji();et();ke=require("react/jsx-runtime");i(ea,"CaptureStage");i(An,"FlipCameraIcon");i(Qc,"CameraOffIcon")});function ta({showCoaching:e,attemptsText:t,showRetake:n,onRetake:o}){let r=Ae(),a=(0,wo.useRef)(null);return(0,wo.useEffect)(()=>{n&&a.current?.focus()},[n]),!e&&!n?null:(0,nt.jsxs)("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?(0,nt.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,nt.jsx)("p",{className:"sekyro-text-body",children:r("capture.retryCoaching.title")}),(0,nt.jsxs)("ul",{className:"sekyro-coaching",children:[(0,nt.jsx)("li",{children:r("capture.retryCoaching.light")}),(0,nt.jsx)("li",{children:r("capture.retryCoaching.eyeLevel")}),(0,nt.jsx)("li",{children:r("capture.retryCoaching.head")})]}),t!==null?(0,nt.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:t}):null]}):null,n?(0,nt.jsx)(L,{ref:a,className:"sekyro-btn--start",onClick:o,children:r("capture.recordAgain")}):null]})}var wo,nt,na=C(()=>{"use strict";wo=require("react");ve();et();nt=require("react/jsx-runtime");i(ta,"CapturedPanel")});function No(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}var Sr=C(()=>{"use strict";i(No,"isDevBuild")});var oa,xo,_r=C(()=>{"use strict";oa=require("react"),xo=(0,oa.createContext)(null)});function Io({value:e,onChange:t}){let n=Ae(),o=(0,ra.useId)();return(0,Ct.jsxs)("fieldset",{className:"sekyro-segmented","data-testid":"sekyro-facing",children:[(0,Ct.jsx)("legend",{className:"sekyro-segmented__legend",children:n("capture.cameraLabel")}),(0,Ct.jsx)("div",{className:"sekyro-segmented__options",children:Xc.map(r=>(0,Ct.jsxs)("label",{className:"sekyro-segmented__option",children:[(0,Ct.jsx)("input",{type:"radio",className:"sekyro-segmented__input",name:o,value:r,checked:e===r,onChange:()=>t(r)}),(0,Ct.jsxs)("span",{className:"sekyro-segmented__face",children:[(0,Ct.jsx)("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),n(`capture.facing.${r}`)]})]},r))})]})}var ra,Ct,Xc,Cr=C(()=>{"use strict";ra=require("react");et();Ct=require("react/jsx-runtime"),Xc=["user","environment"];i(Io,"FacingPicker")});function mt({className:e,children:t}){return(0,$.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}function ia(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,$.jsx)("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}function aa(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,$.jsx)("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}function sa(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),(0,$.jsx)("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),(0,$.jsx)("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}function ca(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),(0,$.jsx)("circle",{cx:"12",cy:"12",r:"2.8"})]})}function la(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("path",{d:wr}),(0,$.jsx)("path",{d:"M9 13l2 2 4-4"})]})}function da(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("path",{d:wr}),(0,$.jsx)("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}function ua(e){return(0,$.jsxs)(mt,{...e,children:[(0,$.jsx)("path",{d:wr}),(0,$.jsx)("path",{d:"M3 3l18 18"})]})}function dn({off:e,className:t}){return(0,$.jsxs)(mt,{className:t,children:[(0,$.jsx)("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?(0,$.jsx)("path",{d:"M4 4l16 16"}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),(0,$.jsx)("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}function pa(e){return(0,$.jsx)(mt,{...e,children:(0,$.jsx)("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}function ma(e){return(0,$.jsxs)(mt,{className:e.className??"sekyro-spinner",children:[(0,$.jsx)("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),(0,$.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}var $,wr,un=C(()=>{"use strict";$=require("react/jsx-runtime");i(mt,"Svg");wr="M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z";i(ia,"SunIcon");i(aa,"FaceUncoveredIcon");i(sa,"PhoneEyeLevelIcon");i(ca,"LookStraightIcon");i(la,"CameraCheckIcon");i(da,"CameraAskIcon");i(ua,"CameraBlockedIcon");i(dn,"SpeakerIcon");i(pa,"CheckIcon");i(ma,"SpinnerIcon")});function fa({state:e}){let t=Ae(),[n,o]=(0,Lo.useState)(!1);(0,Lo.useEffect)(()=>{e!=="unknown"&&o(!0)},[e]);let r=e==="granted"?(0,Ot.jsx)(la,{}):e==="denied"?(0,Ot.jsx)(ua,{}):(0,Ot.jsx)(da,{});return(0,Ot.jsxs)("div",{role:n?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[(0,Ot.jsx)("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:r}),(0,Ot.jsx)("span",{children:t(`capture.permission.${e}`)})]})}var Lo,Ot,ha=C(()=>{"use strict";Lo=require("react");et();un();Ot=require("react/jsx-runtime");i(fa,"PermissionRow")});function ya({tips:e}){let t=Ae(),n=(0,ga.useId)();return e.length===0?null:(0,Ye.jsxs)("section",{className:"sekyro-tips","aria-labelledby":n,"data-testid":"sekyro-tips",children:[(0,Ye.jsx)("p",{className:"sekyro-tips__title",id:n,children:t("capture.tips.title")}),(0,Ye.jsx)("ul",{className:"sekyro-tips__list",children:e.map(o=>{let r=typeof o=="string"?Jc[o]:void 0,a=typeof o=="string"?o:o.id,s=r!==void 0?r.icon():typeof o=="string"?void 0:o.icon,c=r!==void 0?t(r.key):typeof o=="string"?o:o.text;return(0,Ye.jsxs)("li",{className:"sekyro-tips__item",children:[s!=null?(0,Ye.jsx)("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:s}):null,(0,Ye.jsx)("span",{children:c})]},a)})})]})}var ga,Ye,zo,Jc,Nr=C(()=>{"use strict";ga=require("react");et();un();Ye=require("react/jsx-runtime"),zo=["light","uncover","eyeLevel","straight"],Jc={light:{key:"capture.tips.light",icon:i(()=>(0,Ye.jsx)(ia,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:i(()=>(0,Ye.jsx)(aa,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:i(()=>(0,Ye.jsx)(sa,{}),"icon")},straight:{key:"capture.tips.straight",icon:i(()=>(0,Ye.jsx)(ca,{}),"icon")}};i(ya,"TipList")});function va({voice:e}){let t=Ae();if(!e.supported)return null;let n=e.enabled;return(0,Dt.jsxs)("button",{type:"button",role:"switch","aria-checked":n,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[(0,Dt.jsxs)("span",{className:"sekyro-switch__label",children:[(0,Dt.jsx)(dn,{off:!n}),t("capture.voiceGuidance")]}),(0,Dt.jsx)("span",{className:"sekyro-switch__track","aria-hidden":"true",children:(0,Dt.jsx)("span",{className:"sekyro-switch__thumb",children:n?(0,Dt.jsx)(pa,{className:"sekyro-switch__check"}):null})})]})}var Dt,ka=C(()=>{"use strict";et();un();Dt=require("react/jsx-runtime");i(va,"VoiceSwitch")});function ba({assets:e,onRetryAssets:t,permission:n,captureMode:o="self",canChooseFacing:r,facing:a,onFacingChange:s,voice:c,tips:l,summary:u,startLabel:p,startDisabled:g,onStart:f}){let d=Ae(),m=(0,$e.useRef)(u?.stop);m.current=u?.stop,(0,$e.useEffect)(()=>()=>m.current?.(),[]);let y=(0,$e.useRef)(null),h=(0,$e.useRef)(null),v=(0,$e.useRef)(null),S=(0,$e.useRef)(e),T=(0,$e.useRef)(!1);(0,$e.useEffect)(()=>{let b=S.current;if(S.current=e,b===e)return;let E=T.current;e!=="loading"&&(T.current=!1),el(y.current)&&(e==="failed"?v.current?.focus():E&&h.current?.focus())},[e]);let M=(0,$e.useCallback)(()=>{T.current=!0,t()},[t]),R=e==="loading",w=R||g,P=(0,$e.useCallback)(()=>{w||(m.current?.(),f())},[w,f]),B;e==="failed"?B=(0,me.jsxs)(we,{tone:"danger",testId:"sekyro-assets-error",children:[(0,me.jsx)("p",{className:"sekyro-text-body",children:d("fcv2.err.models")}),(0,me.jsx)(L,{kind:"ghost",ref:v,className:"sekyro-btn--start",onClick:M,"data-testid":"sekyro-assets-retry",children:d("common.retry")})]}):B=(0,me.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,me.jsx)(L,{ref:h,full:!0,"data-testid":"sekyro-start","aria-disabled":w?"true":void 0,"aria-busy":R?"true":void 0,onClick:P,children:R?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(ma,{}),d("capture.preparing.title")]}):p??d("capture.start")}),R?(0,me.jsx)("p",{className:"sekyro-text-muted",children:d("capture.preparing.hint")}):null]});let H=o==="assisted";return(0,me.jsxs)("div",{ref:y,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[H?(0,me.jsxs)("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[(0,me.jsx)("h2",{className:"sekyro-text-body",children:d("capture.assisted.title")}),(0,me.jsx)("p",{className:"sekyro-text-muted",children:d("capture.assisted.lead")})]}):null,l!==!1?(0,me.jsx)(ya,{tips:l}):null,u!==void 0?(0,me.jsxs)(L,{kind:"ghost",className:"sekyro-btn--start",onClick:u.toggle,"data-testid":"sekyro-tips-listen",children:[(0,me.jsx)(dn,{off:!1}),d(u.playing?"capture.tips.stop":"capture.tips.listen")]}):null,(0,me.jsx)(fa,{state:n}),H&&r?(0,me.jsx)(Io,{value:a,onChange:s}):null,(0,me.jsx)(va,{voice:c}),(0,me.jsx)("p",{className:"sekyro-text-muted",children:d("capture.securityNote")}),B,(0,me.jsx)("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?d("capture.preparing.title"):e==="ready"?d("capture.ready"):""})]})}function el(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}var $e,me,Sa=C(()=>{"use strict";$e=require("react");ve();sn();et();Cr();un();ha();Nr();ka();me=require("react/jsx-runtime");i(ba,"PreCaptureScreen");i(el,"focusIsOurs")});function Ro(){let[e,t]=(0,pn.useState)({state:"unknown",settled:!1}),[n,o]=(0,pn.useState)({canChoose:!1,settled:!1});return(0,pn.useEffect)(()=>(0,To.subscribeCameraPermission)(r=>t({state:r,settled:!0})),[]),(0,pn.useEffect)(()=>{let r=!0;return(0,To.hasMultipleCameras)().then(a=>{r&&o({canChoose:a,settled:!0})},()=>{r&&o({canChoose:!1,settled:!0})}),()=>{r=!1}},[]),{permission:e.state,permissionSettled:e.settled,canChooseFacing:n.canChoose,facingSettled:n.settled}}var To,pn,xr=C(()=>{"use strict";To=require("@sekyro/web"),pn=require("react");i(Ro,"useCameraStatus")});function _a(e){return wa(e,"mobileRequired")}function Ca(e){return wa(e,"returning").required}function wa(e,t){let[n,o]=(0,Ht.useState)({required:!1,settled:e===void 0});return(0,Ht.useEffect)(()=>{let r=e?.[t];if(e===void 0||typeof r!="function"){o({required:!1,settled:!0});return}let a=!0;return o({required:!1,settled:!1}),Promise.resolve().then(()=>r.call(e)).then(s=>{a&&o({required:s===!0,settled:!0})},()=>{a&&o({required:!1,settled:!0})}),()=>{a=!1}},[e,t]),n}function Na(e){let[t,n]=(0,Ht.useState)({mode:"self",settled:e===void 0});return(0,Ht.useEffect)(()=>{let o=e?.captureMode;if(e===void 0||typeof o!="function"){n({mode:"self",settled:!0});return}let r=!0;return n({mode:"self",settled:!1}),Promise.resolve().then(()=>o.call(e)).then(a=>{r&&n({mode:a==="assisted"?"assisted":"self",settled:!0})},()=>{r&&n({mode:"self",settled:!0})}),()=>{r=!1}},[e]),t}function xa(e){let[t,n]=(0,Ht.useState)(!1);return(0,Ht.useEffect)(()=>{if(n(!1),e===void 0)return;let o=e.on("busy",()=>n(!0)),r=e.on("result",()=>n(!1));return()=>{o(),r()}},[e]),t}var Ht,Ia=C(()=>{"use strict";Ht=require("react");i(_a,"useMobileRequired");i(Ca,"useReturning");i(wa,"useFlag");i(Na,"useCaptureMode");i(xa,"useBusy")});function Ao({colour:e}){return e===null?null:(0,za.jsx)("div",{"aria-hidden":"true","data-testid":"sekyro-screen-ramp","data-colour":e,style:{position:"fixed",inset:0,pointerEvents:"none",backgroundColor:(0,La.screenRampColourValue)(e)}})}var La,za,Ir=C(()=>{"use strict";La=require("@sekyro/web"),za=require("react/jsx-runtime");i(Ao,"ScreenRampLayer")});function Ta(e){return(0,mn.preloadLivenessAssets)(e!==void 0?{assetBaseUrl:e}:{})}function Ra(e,t=!0){let n=(0,De.useSyncExternalStore)((0,De.useCallback)(g=>(0,mn.subscribeLivenessAssets)(g,e),[e]),()=>(0,mn.getLivenessAssetsStatus)(e),tl),[o,r]=(0,De.useState)(null),a=(0,De.useRef)(!1),s=(0,De.useCallback)(()=>{Ta(e).then(g=>{a.current&&g==="idle"&&r({base:e})})},[e]);(0,De.useEffect)(()=>(a.current=!0,s(),()=>{a.current=!1}),[s]);let c=(0,De.useRef)(null);(0,De.useEffect)(()=>{if(n!=="idle"){c.current={base:e};return}!t||c.current===null||c.current.base!==e||(c.current=null,s())},[n,e,s,t]);let l=(0,De.useCallback)(()=>{Ta(e)},[e]);return{gate:o!==null&&o.base===e&&n==="idle"||n==="ready"?"ready":n==="failed"?"failed":"loading",retry:l}}var mn,De,tl,Aa=C(()=>{"use strict";mn=require("@sekyro/web"),De=require("react"),tl=i(()=>"idle","serverSnapshot");i(Ta,"preload");i(Ra,"useLivenessAssets")});function Ma(e){let{videoRef:t,assetBaseUrl:n}=e,r=(0,ue.useRef)(e.verification).current,a=(0,ue.useRef)(!1);e.verification!==r&&!a.current&&No()&&(a.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let s=(0,ue.useRef)(null),[c,l]=(0,ue.useState)("idle"),[u,p]=(0,ue.useState)(Pa),[g,f]=(0,ue.useState)(!1),[d,m]=(0,ue.useState)(!1),[y,h]=(0,ue.useState)(null),[v,S]=(0,ue.useState)(!1),[T,M]=(0,ue.useState)(null),[R,w]=(0,ue.useState)(null),[P,B]=(0,ue.useState)(null),[H,b]=(0,ue.useState)(null),[E,F]=(0,ue.useState)(null),I=(0,ue.useRef)(null),V=(0,ue.useRef)("idle"),N=(0,ue.useRef)(e);N.current=e,(0,ue.useEffect)(()=>{let ae=t.current;if(ae===null)return;let O={video:ae,...n!==void 0?{assetBaseUrl:n}:{}},ge=r!==void 0?r.liveness(O):(0,Ea.createLivenessCapture)(O);s.current=ge;let He=i(()=>F(ge.facingMode??null),"readFacing");He();let pe=[ge.on("state",K=>{K==="starting"?(w(null),B(null),p(Pa),m(!1),f(!1),h(null),M(null),I.current=null):K==="gating"&&V.current==="recording"&&(m(!1),f(!1),h(null),I.current=null),V.current=K,He(),l(K),N.current.onStateChange?.(K)}),ge.on("gate",K=>{let U=I.current;I.current=K.progress,f(U!==null&&K.progress<U-.001&&K.progress>0&&K.progress<1),K.progress>=1&&m(!0),p(K)}),ge.on("frozen",({previewDataUrl:K})=>h(K)),ge.on("profile",({animations:K})=>S(K==="reduced")),ge.on("ramp",({colour:K})=>M(K)),ge.on("captured",K=>{w(K),b(null),N.current.onCaptured?.(K)}),ge.on("error",K=>{B(K),N.current.onError?.(K)}),r?.on("result",K=>{b(K),N.current.onResult?.(K)})];return()=>{for(let K of pe)K?.();s.current=null,ge.destroy()}},[r,t,n]);let x=(0,ue.useCallback)(ae=>{s.current?.start(ae)},[]),A=(0,ue.useCallback)(()=>{s.current?.retry()},[]),G=(0,ue.useCallback)(()=>{let ae=s.current,O=ae?.switchCamera()===!0;return O&&(F(ae?.facingMode??null),m(!1),f(!1),h(null),I.current=null),O},[]);return{state:c,gate:u,draining:g,gateLocked:d,frozenPreview:y,reduceMotion:v,rampColour:T,artifacts:R,error:P,result:H,facingMode:E,start:x,retry:A,switchCamera:G}}var Ea,ue,Pa,Va=C(()=>{"use strict";Ea=require("@sekyro/web"),ue=require("react");Sr();Pa={progress:0,hint:null,faceDetected:!1};i(Ma,"useLivenessHandle")});function Oa(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(n=>nl.has(n));return t.length>0?{...e,options:t}:null}function Da(e){let[t,n]=(0,wt.useState)(null),[o,r]=(0,wt.useState)(e===void 0),[a,s]=(0,wt.useState)(!1),[c,l]=(0,wt.useState)(!1);(0,wt.useEffect)(()=>{if(n(null),e===void 0){r(!0);return}let f=!0,d=e.methodChoice;typeof d=="function"?(r(!1),Promise.resolve().then(()=>d.call(e)).then(y=>{f&&n(Oa(y))},()=>{}).finally(()=>{f&&r(!0)})):r(!0);let m=e.on("method",y=>n(Oa(y)));return()=>{f=!1,m()}},[e]);let u=(0,wt.useCallback)(async f=>{if(e===void 0)return!1;s(!0),l(!1);try{return await e.selectMethod(f),n(null),!0}catch{return l(!0),!1}finally{s(!1)}},[e]),p=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:p==="national_number"&&!c?p:null,settled:o,busy:a,failed:c,select:u}}var wt,nl,Ha=C(()=>{"use strict";wt=require("react"),nl=new Set(["national_number"]);i(Oa,"pending");i(Da,"useMethodChoice")});function Qt(e){return e!==null&&Po.includes(e)}var Po,Eo=C(()=>{"use strict";Po=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","fcv3.hold_upright","capture.tips.summary"];i(Qt,"isVoiceKey")});function rl(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}function il(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let n={};for(let o of ol){let r=t[o];if(!(typeof r!="object"||r===null))for(let[a,s]of Object.entries(r))!Qt(a)||!rl(s)||((n[o]??(n[o]={}))[a]=s)}return Object.keys(n).length>0?n:null}function Ba(e){let[t,n]=(0,fn.useState)(null);(0,fn.useEffect)(()=>{if(n(null),e===void 0)return;let r=!0,a=i(c=>{if(!r)return;let l=typeof c=="object"&&c!==null&&typeof c.setId=="string"?c:null;n(u=>u?.setId===l?.setId?u:l)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(a,()=>a(null))}catch{a(null)}let s=e.on("view",c=>a(c.voice));return()=>{r=!1,s()}},[e]);let o=(0,fn.useMemo)(()=>t!==null?il(t):null,[t]);return e===void 0?null:o}var fn,ol,Fa=C(()=>{"use strict";fn=require("react");Eo();ol=["ar","fr","en"];i(rl,"isClipUrl");i(il,"toVoiceClipMap");i(Ba,"useServerVoiceClips")});function qa({voice:e}){let t=Ae();return(0,Lr.jsx)(L,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:(0,Lr.jsx)(dn,{off:!e.enabled,className:"sekyro-icon"})})}var Lr,Ka=C(()=>{"use strict";ve();un();et();Lr=require("react/jsx-runtime");i(qa,"VoiceChip")});function hn(e,t,n){let o;try{if(typeof e=="function")o=e(t,n);else{let r=e[n];o=r!=null&&al(r,t)?r[t]:null}}catch{return null}return typeof o=="string"&&o!==""?o:null}var al,$a=C(()=>{"use strict";al=i((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");i(hn,"resolveClip")});function ft(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}function cl(){return ft()!==null&&typeof SpeechSynthesisUtterance=="function"}function Ga(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}function Ya(e,t){let n=i(r=>r.replace(/_/g,"-").toLowerCase(),"norm"),o=Ga(t);return e.find(r=>n(r.lang)===n(t))??e.find(r=>Ga(r.lang)===o)}function ja(e){if(!cl())return!1;let t=[];try{t=ft()?.getVoices()??[]}catch{return!0}return t.length===0||Ya(t,e)!==void 0}function Za(e){let t=ft();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}function Pn(e){try{let t=typeof location<"u"?location.href:"http://localhost/",n=new URL(e,t);return`clip:${n.origin}${n.pathname}`}catch{return`clip:${e}`}}function Ua(e){e.pause(),e.removeAttribute("src"),e.load()}function Qa(){let e=null,t=null,n=0,o=null,r=[],a=new Map,s=i(()=>{r=ft()?.getVoices()??[]},"loadVoices"),c=!1,l=i(()=>{let d=ft();c||d===null||(c=!0,s(),d.addEventListener?.("voiceschanged",s))},"bindVoices"),u=i(()=>(e??(e=new Audio),e),"element"),p=i((d,m,y)=>{let h=ft();if(h!==null&&d!==""&&typeof SpeechSynthesisUtterance=="function"){l();let v=Ya(r,m);if(r.length===0||v!==void 0){h.cancel();let S=new SpeechSynthesisUtterance(d);S.lang=m,v!==void 0&&(S.voice=v),S.rate=.95,y!==void 0&&(S.onend=S.onerror=y),h.speak(S);return}}y?.()},"speak"),g=i(()=>{n+=1,o=null,e!==null&&(e.pause(),e.currentTime=0),ft()?.cancel()},"stop"),f=i(d=>{for(let m of d){let y=Pn(m);if(a.has(y))continue;let h=new Audio;h.preload="auto",h.src=m,a.set(y,h)}},"warmClips");return{say(d){let m=d.url!==null?Pn(d.url):`tts:${d.lang}:${d.text}`;if(m===o)return;o=m,n+=1;let y=n,h=d.onEnd,v=h!==void 0?()=>{y===n&&h()}:void 0;if(ft()?.cancel(),d.url!==null){let S=u();S.pause(),S.muted=!1,S.src=d.url,S.currentTime=0,S.onended=v??null,S.play()?.catch(T=>{y===n&&T?.name!=="AbortError"&&(d.speech?p(d.text,d.lang,v):v?.())});return}d.speech?p(d.text,d.lang,v):v?.()},unlock({lang:d,speech:m,prefetch:y}){let h=u();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let T=Uint8Array.from(atob(sl),M=>M.charCodeAt(0));t=URL.createObjectURL(new Blob([T],{type:"audio/wav"}))}let v=h.paused===!1&&t!==null&&h.src!==t;t!==null&&!v&&(h.muted=!0,h.onended=null,h.src=t,h.play()?.catch(()=>{}));let S=ft();if(m&&S!==null&&typeof SpeechSynthesisUtterance=="function"){l();let T=new SpeechSynthesisUtterance(" ");T.volume=0,T.lang=d,S.speak(T)}f(y??[])},prefetch:f,stop:g,dispose(){g(),c&&ft()?.removeEventListener?.("voiceschanged",s),c=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&Ua(e),e=null;for(let d of a.values())Ua(d);a.clear()}}}var sl,Wa,Xa=C(()=>{"use strict";sl="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",Wa={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};i(ft,"synth");i(cl,"speechAvailable");i(Ga,"baseLang");i(Ya,"pickVoice");i(ja,"speechUsable");i(Za,"subscribeVoices");i(Pn,"clipIdentity");i(Ua,"release");i(Qa,"createVoicePlayer")});function es(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}function ts(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}var Ja,ns=C(()=>{"use strict";Ja="sekyro.voiceGuidance";i(es,"readVoicePreference");i(ts,"writeVoicePreference")});function zr(e,t){let n=new Set,o=[];for(let r of Po){let a=r===En?null:hn(e,r,t);a===null||n.has(Pn(a))||(n.add(Pn(a)),o.push(a))}return o}function Tr({locale:e,defaultClips:t,options:n}){let o=n===!1,r=o?{}:n??{},a=r.storageKey===void 0?Ja:r.storageKey,[s,c]=(0,W.useState)(r.defaultEnabled??!0),l=(0,W.useRef)(s),[u,p]=(0,W.useState)(!1),[g,f]=(0,W.useState)("none"),[d,m]=(0,W.useState)(!1),y=(0,W.useRef)(!1),[h,v]=(0,W.useState)(0),S=(0,W.useRef)(null),T=(0,W.useCallback)(()=>(S.current??(S.current=Qa()),S.current),[]),M=Wa[e],R=r.speechFallback,w=R===void 0||R===!0?!0:R===!1?!1:R.includes(e),P=r.clips??t??dl,B=(0,W.useRef)(!1),H=(0,W.useRef)(P);ll(()=>{H.current=P,l.current=s}),(0,W.useEffect)(()=>{if(o||a===null)return;let O=es(a);O!==null&&(l.current=O,c(O))},[o,a]),(0,W.useEffect)(()=>{if(!(o||!w))return Za(()=>v(O=>O+1))},[o,w]);let b=r.clips;(0,W.useEffect)(()=>{if(o)return;let O=w&&ja(M);p(zr(P,e).length>0||O),f(b!==void 0&&hn(b,En,e)!==null?"partner":hn(P,En,e)!==null||O?"default":"none")},[o,P,b,e,w,M,h]),(0,W.useEffect)(()=>{if(o||!s||!B.current)return;let O=zr(P,e);O.length>0&&T().prefetch(O)},[o,s,P,e,T]),(0,W.useEffect)(()=>()=>{S.current?.dispose(),S.current=null,B.current=!1},[]);let E=(0,W.useCallback)(O=>{o||(B.current=!0,T().unlock({lang:M,speech:w,...O?{prefetch:zr(H.current,e)}:{}}))},[o,T,M,w,e]),F=(0,W.useCallback)(()=>E(l.current),[E]),I=(0,W.useCallback)(()=>{y.current=!1,m(!1)},[]),V=(0,W.useCallback)(()=>{I(),S.current?.stop()},[I]),N=(0,W.useCallback)(()=>{y.current&&V()},[V]),x=(0,W.useCallback)((O,ge)=>{if(o)return;if(y.current){V();return}let He=T();He.stop(),y.current=!0,m(!0);let pe=ge?.clip===!1?null:hn(H.current,En,e);He.say({url:pe,text:O,lang:M,speech:w,onEnd:I})},[o,V,T,e,M,w,I]),A=(0,W.useCallback)(O=>{o||(O?E(!0):V(),a!==null&&ts(a,O),l.current=O,c(O))},[o,E,V,a]),G=(0,W.useCallback)(()=>A(!l.current),[A]),ae=(0,W.useCallback)((O,ge)=>{if(o||!s)return;y.current&&I();let He=hn(H.current,O,e);T().say({url:He,text:ge,lang:M,speech:w})},[o,s,e,T,M,w,I]);return(0,W.useMemo)(()=>({supported:!o&&u,enabled:!o&&s,setEnabled:A,toggle:G,unlock:F,speakKey:ae,stop:V,summary:o?"none":g,summaryPlaying:d,toggleSummary:x,stopSummary:N}),[o,u,s,A,G,F,ae,V,g,d,x,N])}function Rr(e,t,n,o){let{speakKey:r,stop:a,enabled:s}=e,c=(0,W.useRef)(!1);(0,W.useEffect)(()=>{if(!o||!s){c.current&&a(),c.current=!1;return}c.current=!0,Qt(t)&&t!==En&&n!==""&&r(t,n)},[o,s,t,n,r,a])}var W,En,ll,dl,os=C(()=>{"use strict";W=require("react");$a();Eo();Xa();ns();En="capture.tips.summary",ll=typeof window<"u"?W.useLayoutEffect:W.useEffect,dl=Object.freeze({});i(zr,"resolvedClipUrls");i(Tr,"useVoiceGuidance");i(Rr,"useSpeakGuidance")});var rs=C(()=>{"use strict";Eo();os()});function pl(e){return e===void 0||e!==!1&&e.length===zo.length&&zo.every(t=>e.includes(t))}function ml(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}function fl(e){return typeof e=="object"&&e!==null&&!(0,Y.isValidElement)(e)&&"tone"in e&&"text"in e}function hl(e){return e==="starting"||e==="gating"||e==="recording"}function gl(e){return e==="captured"||e==="uploading"||e==="checking"}function Mo({verification:e,locale:t,dir:n,strings:o,slots:r,autoStart:a=!1,notice:s,startDisabled:c=!1,startLabel:l,tips:u,tipsSummary:p,coach:g,voice:f,onGuidance:d,onCaptured:m,onResult:y,onError:h,onStateChange:v,assetBaseUrl:S,className:T}){let M=lo(t),R=(0,Y.useMemo)(()=>co(t,o),[t,o,M]),w=(0,Y.useMemo)(()=>ne=>R[ne]??"",[R]),P=n??(t==="ar"?"rtl":"ltr"),B=(0,Y.useRef)(null),H=(0,Y.useContext)(xo),b=Ma({verification:e,videoRef:B,assetBaseUrl:S,onCaptured:m,onResult:y,onError:h,onStateChange:v}),E=Ra(S,b.state==="idle"&&b.error===null),F=Da(e),I=F.choice!==null,V=_a(e),N=Ca(e),x=xa(e),A=Ro(),G=Na(e),ae=G.mode==="assisted",O=ae&&A.canChooseFacing,ge=f!==!1&&f?.clips===void 0,He=Ba(ge?e:void 0),pe=Tr({locale:t,defaultClips:He,options:f}),[K,U]=(0,Y.useState)(null),X=ae?K??(A.canChooseFacing?"environment":"user"):"user",ht=G.settled&&(!ae||A.facingSettled),Je=(0,Y.useRef)(null),It=(0,Y.useRef)(!1),gt=(0,Y.useRef)(pe.unlock);gt.current=pe.unlock,(0,Y.useEffect)(()=>{let ne=Je.current;if(ne===null)return;let ct=["pointerup","touchend","click","keydown"],Tt=i(()=>{for(let xn of ct)ne.removeEventListener(xn,Jt,!0)},"disarm");function Jt(xn){if(It.current){Tt();return}ml(xn)&&(It.current=!0,Tt(),gt.current())}i(Jt,"onGesture");for(let xn of ct)ne.addEventListener(xn,Jt,{capture:!0,passive:!0});return Tt},[]);let ze=(0,Y.useCallback)(()=>{It.current||(It.current=!0,pe.unlock()),b.start({facing:X})},[pe.unlock,b.start,X]),qt=(0,Y.useCallback)(()=>b.start({facing:X}),[b.start,X]),Lt=(0,Y.useRef)(!1),zt=b.state==="idle"&&b.error===null,qn=!I&&!V.required&&(a===!0||a==="when-permitted"&&A.permission==="granted"),Kn=qn&&F.settled&&V.settled&&ht,Zo=a==="when-permitted"&&!A.permissionSettled&&!Lt.current,_n=qn&&zt&&!Lt.current,Kt=(Zo||_n||!ht)&&E.gate==="ready"?"loading":E.gate;(0,Y.useEffect)(()=>{!Kn||!zt||E.gate!=="ready"||Lt.current||(Lt.current=!0,qt())},[Kn,zt,E.gate,qt]);let J=zt&&!I&&!V.required&&!(_n&&E.gate==="ready"),re=(0,Y.useCallback)(()=>{b.switchCamera()&&U(X==="user"?"environment":"user")},[b.switchCamera,X]),ee=b.state!=="idle"&&b.facingMode!==null?b.facingMode:X;(0,Y.useEffect)(()=>{let ne=B.current?.style;ee==="user"?ne?.removeProperty("transform"):ne&&(ne.transform="none")},[ee]);let Be=(0,Y.useMemo)(()=>b.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(b.artifacts.keyframe):null,[b.artifacts]);(0,Y.useEffect)(()=>{if(Be!==null)return()=>URL.revokeObjectURL(Be)},[Be]);let Te=b.frozenPreview??Be,Ve=e!==void 0,Re=hl(b.state),te=gl(b.state),Ge=Re||te,Fe=b.result,it=b.state==="done"&&Fe!==null,at=b.state==="recording"&&b.frozenPreview!==null,Qo=H!==null,Cn=te||at,Yr=te?"checking":at?"frozen":b.state==="recording"?"recording":b.gateLocked||b.gate.progress>=1?"locked":b.gate.faceDetected?"aligning":"seeking",$n=Re?b.gate.hint:null,Gn=b.state==="starting"?"capture.preparing.title":$n===null?null:$n==="center"&&!b.gate.faceDetected?"fcv3.no_face":yi($n),[uc,jr]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{if(Gn!=="fcv3.no_face"){jr(Gn);return}if(!Re)return;let ne=setTimeout(()=>jr(Gn),ul);return()=>clearTimeout(ne)},[Gn,Re]);let Xo=Re&&typeof g=="string"&&g!=="",Zr=ae&&Re?w("capture.assisted.stage"):null,$t=Re&&!Xo?uc:null,Jo=Xo?g:$t===null?"":w($t);Rr(pe,$t,Jo,Re);let Qr=(0,Y.useRef)(d);Qr.current=d,(0,Y.useEffect)(()=>{if(Qt($t))try{Qr.current?.($t)}catch(ne){console.error("[@sekyro/react] onGuidance threw:",ne)}},[$t]);let wn=(0,Y.useMemo)(()=>({supported:pe.supported,enabled:pe.enabled,setEnabled:pe.setEnabled,toggle:pe.toggle}),[pe.supported,pe.enabled,pe.setEnabled,pe.toggle]),er=r?.voicePrompt,Xr=er!==void 0,Jr=f===void 0,ei=(0,Y.useRef)(!1);(0,Y.useEffect)(()=>{!Xr||!Jr||ei.current||!No()||(ei.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[Xr,Jr]);let pc=er!==void 0?(ne,ct,Tt)=>er(ne,ct,Tt,wn):pe.supported?()=>(0,Z.jsx)(qa,{voice:wn}):void 0,{summary:tr,summaryPlaying:ti,toggleSummary:ni,stopSummary:oi}=pe,Un=p!==void 0&&p!=="",ri=Un?p:w("capture.tips.summary"),ii=Un?tr!=="none":tr==="partner"||tr==="default"&&pl(u),mc=(0,Y.useMemo)(()=>ii?{playing:ti,toggle:i(()=>ni(ri,{clip:!Un}),"toggle"),stop:oi}:void 0,[ii,ti,ni,ri,oi,Un]),fc=(0,Y.useMemo)(()=>({assets:Kt,retryAssets:E.retry,permission:A.permission,permissionSettled:A.permissionSettled,captureMode:G.mode,facing:X,setFacing:U,canChooseFacing:O,voice:wn}),[Kt,E.retry,A.permission,A.permissionSettled,G.mode,O,X,wn]),hc=fl(s)?(0,Z.jsx)(we,{tone:s.tone,testId:"sekyro-host-notice",children:(0,Z.jsx)("span",{children:s.text})}):s??null,yt=Fe!==null&&Fe.status==="retry"?Fe:null,st=it&&Fe.status==="unavailable"&&!I&&Fe.reason!=="portrait_required"?Fe:null,Nn=it&&(Fe.status==="approved"||Fe.status==="rejected"||Fe.status==="review")?Fe:null,Wn=i((ne,ct)=>{if(ne===void 0)return null;if(ne==="device_cooldown"){let Jt=oo(t,ct);if(Jt!==null)return w(Jt.key).replace("{time}",Jt.time)}let Tt=nn(ne);return Tt===null?null:w(Tt)},"reasonText"),nr=i(ne=>{let ct=ne.retakeHint===void 0?null:no(ne.retakeHint);return ct===null?Wn(ne.reason):w(ct)},"retryText"),gc=st!==null&&st.reason!==void 0&&st.reason!=="nni_unbound"&&st.reason!=="id_number_unbound"&&st.reason!=="method_required"&&st.reason!=="mobile_required"&&!(st.reason==="no_recorder"&&b.artifacts?.degraded==="NO_RECORDER"),ai=be(),yc=I&&F.auto===null&&!Re&&!te&&b.error===null,or=(0,Y.useCallback)(async ne=>{await F.select(ne)&&b.state==="done"&&b.retry()},[F.select,b.state,b.retry]);return(0,Y.useEffect)(()=>{F.auto!==null&&!F.busy&&!Re&&!te&&or(F.auto)},[F.auto,F.busy,Re,te,or]),(0,Z.jsx)(bi,{value:w,children:(0,Z.jsxs)("div",{ref:Je,className:T===void 0?"sekyro-capture":`sekyro-capture ${T}`,dir:P,lang:t,"data-testid":"sekyro-liveness-capture","data-state":b.state,children:[r?.header,yt!==null&&nr(yt)!==null&&!(Qo&&Ge)?(0,Z.jsx)(we,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:(0,Z.jsx)("span",{children:nr(yt)})}):null,x&&te&&!Qo?(0,Z.jsx)(we,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:(0,Z.jsx)("span",{children:w("capture.busy")})}):null,V.required&&zt?(0,Z.jsx)(we,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:(0,Z.jsx)("span",{children:w("reasons.mobile_required")})}):null,b.error!==null?r?.errorPanel!==void 0?r.errorPanel(b.error,b.retry):(0,Z.jsxs)(we,{tone:"danger",testId:"sekyro-error-notice",children:[(0,Z.jsx)("span",{children:w(tn(b.error.kind))}),b.error.retryable?(0,Z.jsx)(L,{ref:ai,kind:"ghost",className:"sekyro-btn--start",onClick:b.retry,children:w("common.retry")}):null]}):null,st!==null?(0,Z.jsxs)(we,{tone:"danger",testId:"sekyro-unavailable-notice",children:[(0,Z.jsx)("span",{children:Wn(st.reason)??w(st.reason===void 0?"errors.session_expired":"errors.network_error")}),gc?(0,Z.jsx)(L,{ref:ai,kind:"ghost",className:"sekyro-btn--start",onClick:b.retry,children:w("capture.recordAgain")}):null]}):null,Nn!==null&&Wn(Nn.reason)!==null?(0,Z.jsx)(we,{tone:Nn.status==="rejected"?"danger":"info",testId:"sekyro-result-notice",children:(0,Z.jsx)("span",{children:Wn(Nn.reason,Nn.retryAfter)})}):null,(0,Z.jsx)("div",{className:Ge?void 0:"sekyro-hidden","data-capture-live":Ge?"":void 0,children:Qo?H({videoRef:B,guidance:Cn&&Ve?w("capture.checking"):Jo,coached:Xo&&!(Cn&&Ve),note:Cn?Ve?w(x?"capture.busy":"capture.checkingHint"):null:yt!==null?nr(yt):Zr,settled:Cn&&Ve,progress:b.gate.progress,phase:Yr,still:Cn?Te:null,live:Ge,switchCamera:Re&&b.state!=="recording"&&O&&re,ramp:b.rampColour===null?null:{colour:b.rampColour}}):(0,Z.jsx)(ea,{videoRef:B,guidanceText:Jo,guidanceHint:$n,guidanceKey:$t,progress:b.gate.progress,phase:Yr,draining:b.draining,stillUrl:Te,showChecking:Ve,onSwitchCamera:re,canSwitchCamera:ae&&Re&&b.state!=="recording",operatorText:Zr,voicePrompt:pc,overlay:ne=>(0,Z.jsxs)(Z.Fragment,{children:[r?.stageOverlay?.(ne),(0,Z.jsx)(Ao,{colour:b.rampColour})]}),reduceMotion:b.reduceMotion})}),yc&&F.choice!==null?(0,Z.jsx)(jt,{title:w("method.title"),description:w("method.description"),options:F.choice.options.map(ne=>({id:ne,label:w(`method.${ne}`)})),busy:F.busy,error:F.failed?w("errors.network_error"):null,focus:b.state==="done",testId:"sekyro-method",look:"buttons",onChoose:ne=>{or(ne)}}):null,J?(0,Z.jsxs)(Z.Fragment,{children:[N&&r?.header===void 0?(0,Z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,Z.jsx)("h2",{className:"sekyro-text-body",children:w("returning.title")}),(0,Z.jsx)("p",{className:"sekyro-text-muted",children:w("returning.description")})]}):null,hc,r?.intro!==void 0?r.intro(ze,fc):(0,Z.jsx)(ba,{assets:Kt,onRetryAssets:E.retry,permission:A.permission,captureMode:G.mode,canChooseFacing:O,facing:X,onFacingChange:U,voice:wn,tips:u??zo,summary:mc,startLabel:l,startDisabled:c,onStart:ze})]}):null,(0,Z.jsx)(ta,{showCoaching:yt!==null,attemptsText:yt?.attemptsRemaining!==void 0?ro(R,t,yt.attemptsRemaining):null,showRetake:yt!==null&&!Re&&!te||!Ve&&b.state==="captured",onRetake:b.retry}),r?.footer]})})}var Y,Z,ul,Ar=C(()=>{"use strict";Y=require("react");ve();Co();na();Sr();_r();Sa();Nr();So();sn();Rt();xr();Ia();Ir();lt();Aa();Va();Ha();Fa();et();Ka();rs();Z=require("react/jsx-runtime"),ul=800;i(pl,"isDefaultTips");i(ml,"carriesActivation");i(fl,"isNoticeObject");i(hl,"isCapturing");i(gl,"isPostCapture");i(Mo,"LivenessCapture")});var is,as=C(()=>{"use strict";is={"consent.human.terms.intro":"تؤكد Sekyro AI أن شخصًا حقيقيًا يُجري هذه الخطوة، نيابةً عن الجهة التي طلبتها.","consent.human.terms.data":"تلتقط Sekyro AI تسجيلًا قصيرًا لوجهك.","consent.human.terms.processing":"يُفحص هذا التسجيل للتأكد من أنك شخص حقيقي وحاضر، وقد يُقارَن بالوجوه التي سبق التحقق منها لدى هذه الجهة.","consent.human.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.human.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون وإعدادات الجهة. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.noCamera.title":"تتطلب هذه الخطوة كاميرا","capture.noCamera.body":"اسمح بالوصول إلى الكاميرا وحاول مرة أخرى، أو تابع على هاتف مزوّد بكاميرا.","capture.noCamera.continue":"المتابعة بدون كاميرا","capture.noCamera.deniedTitle":"اسمح بالوصول إلى الكاميرا للمتابعة","capture.noCamera.deniedBody":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","choice.title":"كيف تريد المتابعة؟","choice.description":"اختر خيارًا واحدًا.","choice.switch":"استخدم خيارًا آخر","contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف الموريتاني (NNI)","summary.id_number":"رقم الهوية","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة. تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة. يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك: دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي. الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح هذه الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط. الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال"}});var Mn,ss=C(()=>{"use strict";Mn={"consent.human.terms.intro":"Sekyro AI confirms that a real person is completing this step, on behalf of the organization that asked for it.","consent.human.terms.data":"Sekyro AI collects a short capture of your face.","consent.human.terms.processing":"The capture is checked to confirm that you are a real person who is present. It may be compared with faces already verified for this organization.","consent.human.terms.sharing":"The organization that requested this verification learns its outcome.","consent.human.terms.retention":"Your data is stored encrypted and kept only as long as the law and the organization's settings require. To exercise your data-protection rights, contact the organization that requested this verification.","capture.noCamera.title":"This step needs a camera","capture.noCamera.body":"Allow camera access and try again, or continue on a phone with a camera.","capture.noCamera.continue":"Continue without a camera","capture.noCamera.deniedTitle":"Allow camera access to continue","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","choice.title":"How do you want to continue?","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"How do you want to get your code?","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"Mauritanian national ID number (NNI)","summary.id_number":"ID number","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again. Contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps. A religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face: no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed. Only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link. Copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open this page in your browser","inApp.description":"The camera doesn't work well inside this app. Open the link in Chrome or Safari to continue.","inApp.copyLink":"Copy link","inApp.copied":"Link copied. Paste it in your browser","inApp.copyFailed":"We couldn't copy the link. Copy this page's address instead","inApp.continueAnyway":"Continue here anyway"}});var cs,ls=C(()=>{"use strict";cs={"consent.human.terms.intro":"Sekyro AI confirme qu'une personne réelle effectue cette étape, pour le compte de l'organisme qui l'a demandée.","consent.human.terms.data":"Sekyro AI recueille une courte capture de votre visage.","consent.human.terms.processing":"La capture est analysée pour confirmer que vous êtes une personne réelle et présente. Elle peut être comparée aux visages déjà vérifiés pour cet organisme.","consent.human.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.human.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi et les paramètres de l'organisme. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.noCamera.title":"Cette étape nécessite une caméra","capture.noCamera.body":"Autorisez l'accès à la caméra et réessayez, ou continuez sur un téléphone équipé d'une caméra.","capture.noCamera.continue":"Continuer sans caméra","capture.noCamera.deniedTitle":"Autorisez l'accès à la caméra pour continuer","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","choice.title":"Comment voulez-vous continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Comment voulez-vous recevoir votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification mauritanien (NNI)","summary.id_number":"Numéro d'identité","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer. Contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette. Un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme : sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée. Seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien. Copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez cette page dans votre navigateur","inApp.description":"La caméra fonctionne mal dans cette application. Ouvrez le lien dans Chrome ou Safari pour continuer.","inApp.copyLink":"Copier le lien","inApp.copied":"Lien copié. Collez-le dans votre navigateur","inApp.copyFailed":"Impossible de copier le lien. Copiez plutôt l'adresse de cette page","inApp.continueAnyway":"Continuer ici quand même"}});var ds,us=C(()=>{"use strict";ds={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'}});function fe({name:e,className:t}){return(0,ps.jsx)("svg",{className:`sekyro-glyph${t?` ${t}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:ds[e]}})}var ps,Nt=C(()=>{"use strict";us();ps=require("react/jsx-runtime");i(fe,"Icon")});function yl(){let e=`sekyro-face-light-${(0,ms.useId)().replace(/[^A-Za-z0-9_-]/g,"")}`;return(0,oe.jsxs)("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[(0,oe.jsx)("defs",{children:(0,oe.jsx)("mask",{id:e,children:(0,oe.jsx)("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),(0,oe.jsx)("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),(0,oe.jsx)("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),(0,oe.jsx)("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),(0,oe.jsx)("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${e})`})]})}function Vo({start:e,context:t,tips:n,tipsTitle:o,extra:r,human:a=!1,notice:s}){let{t:c}=ce();return(0,oe.jsxs)("section",{className:"sekyro-step",children:[(0,oe.jsx)(yl,{}),t.captureMode==="assisted"?(0,oe.jsx)(Ee,{title:c("capture.assisted.title"),lead:c("capture.assisted.lead")}):(0,oe.jsx)(Ee,{title:c(a?"native.face.humanIntroTitle":"native.face.introTitle"),lead:c(a?"native.face.humanIntroLead":"native.face.introLead")}),o!==void 0?(0,oe.jsx)("p",{className:"sekyro-section-label",children:o}):null,(0,oe.jsx)("ul",{className:"sekyro-tiprows",children:n!==void 0?n.map(l=>(0,oe.jsxs)("li",{children:[(0,oe.jsx)(fe,{name:vl[l.id]??"face"}),l.text]},l.id)):(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("li",{children:[(0,oe.jsx)(fe,{name:"light"}),c("capture.tips.light")]}),(0,oe.jsxs)("li",{children:[(0,oe.jsx)(fe,{name:"jGlasses"}),c("capture.tips.uncover")]}),(0,oe.jsxs)("li",{children:[(0,oe.jsx)(fe,{name:"smartphone"}),c("capture.tips.eyeLevel")]})]})}),r,s??null,s!==void 0?null:t.assets==="failed"?(0,oe.jsx)(L,{kind:"ghost",onClick:t.retryAssets,children:c("common.refresh")}):null,s!==void 0?null:(0,oe.jsx)(Me,{children:(0,oe.jsxs)(L,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:e,children:[(0,oe.jsx)(fe,{name:"camera"}),c("capture.start")]})})]})}var ms,oe,vl,Pr=C(()=>{"use strict";ms=require("react");ve();Nt();dt();Ne();oe=require("react/jsx-runtime");i(yl,"FaceMark");vl={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};i(Vo,"FaceIntro")});function Mr(e,t){let n=0;for(let o=7;o>=0;o-=1)n=n<<1^(n>>>7)*285,n^=(t>>>o&1)*e;return n&255}function bl(e){let t=new Array(e).fill(0);t[e-1]=1;let n=1;for(let o=0;o<e;o+=1){for(let r=0;r<e;r+=1)t[r]=Mr(t[r],n),r+1<e&&(t[r]=t[r]^t[r+1]);n=Mr(n,2)}return t}function Sl(e,t){let n=t.map(()=>0);for(let o of e){let r=o^n.shift();n.push(0),t.forEach((a,s)=>{n[s]=n[s]^Mr(a,r)})}return n}function _l(e,t){let n=[],o=i((d,m)=>{for(let y=m-1;y>=0;y-=1)n.push(d>>>y&1)},"put");o(4,4),o(e.length,t<10?8:16);for(let d of e)o(d,8);let r=Er(t)*8;o(0,Math.min(4,r-n.length)),o(0,(8-n.length%8)%8);let a=[];for(let d=0;d<n.length;d+=8)a.push(n.slice(d,d+8).reduce((m,y)=>m<<1|y,0));for(let d=236;a.length<Er(t);d^=253)a.push(d);let[s,c]=Or[t-1],l=bl(s),u=[],p=0;for(let[d,m]of c)for(let y=0;y<d;y+=1){let h=a.slice(p,p+m);p+=m,u.push({data:h,ec:Sl(h,l)})}let g=[],f=Math.max(...u.map(d=>d.data.length));for(let d=0;d<f;d+=1)for(let m of u)d<m.data.length&&g.push(m.data[d]);for(let d=0;d<s;d+=1)for(let m of u)g.push(m.ec[d]);return g}function Cl(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.ceil((e*4+4)/(t*2-2))*2,o=[6];for(let r=e*4+10;o.length<t;r-=n)o.splice(1,0,r);return o}function Nl(e,t){let n=e.size;for(let a=0;a<n;a+=1)e.set(6,a,a%2===0),e.set(a,6,a%2===0);for(let[a,s]of[[3,3],[3,n-4],[n-4,3]])for(let c=-4;c<=4;c+=1)for(let l=-4;l<=4;l+=1){let u=a+c,p=s+l;if(u<0||u>=n||p<0||p>=n)continue;let g=Math.max(Math.abs(c),Math.abs(l));e.set(u,p,g!==2&&g!==4)}let o=Cl(t),r=o.length-1;if(o.forEach((a,s)=>o.forEach((c,l)=>{if(!(s===0&&l===0||s===0&&l===r||s===r&&l===0))for(let u=-2;u<=2;u+=1)for(let p=-2;p<=2;p+=1)e.set(a+u,c+p,Math.max(Math.abs(u),Math.abs(p))!==1)})),hs(e,0),t>=7){let a=t;for(let c=0;c<12;c+=1)a=a<<1^(a>>>11)*7973;let s=t<<12|a;for(let c=0;c<18;c+=1){let l=(s>>>c&1)===1,u=n-11+c%3,p=Math.floor(c/3);e.set(u,p,l),e.set(p,u,l)}}}function hs(e,t){let n=e.size,o=kl<<3|t,r=o;for(let c=0;c<10;c+=1)r=r<<1^(r>>>9)*1335;let a=(o<<10|r)^21522,s=i(c=>(a>>>c&1)===1,"bit");for(let c=0;c<=5;c+=1)e.set(c,8,s(c));e.set(7,8,s(6)),e.set(8,8,s(7)),e.set(8,7,s(8));for(let c=9;c<15;c+=1)e.set(8,14-c,s(c));for(let c=0;c<8;c+=1)e.set(8,n-1-c,s(c));for(let c=8;c<15;c+=1)e.set(n-15+c,8,s(c));e.set(n-8,8,!0)}function xl(e,t){let n=e.size,o=0;for(let r=n-1;r>=1;r-=2){r===6&&(r=5);for(let a=0;a<n;a+=1)for(let s=0;s<2;s+=1){let c=r-s,u=(r+1&2)===0?n-1-a:a;e.fixed[u*n+c]!==!0&&(o<t.length*8&&(e.dark[u*n+c]=(t[o>>>3]>>>7-(o&7)&1)===1),o+=1)}}}function Il(e,t){let n=wl[t];for(let o=0;o<e.size;o+=1)for(let r=0;r<e.size;r+=1)e.fixed[o*e.size+r]!==!0&&n(o,r)&&(e.dark[o*e.size+r]=!e.dark[o*e.size+r])}function Ll(e){let t=e.size,n=0,o=i(a=>{let s=1;for(let c=1;c<=t;c+=1)c<t&&a(c)===a(c-1)?s+=1:(s>=5&&(n+=3+(s-5)),s=1);for(let c=0;c+10<t;c+=1){let l=[!0,!1,!0,!0,!0,!1,!0];if(!(l.every((f,d)=>a(c+d)===f)||l.every((f,d)=>a(c+4+d)===f)))continue;let p=[0,1,2,3].every(f=>!a(c+f))&&l.every((f,d)=>a(c+4+d)===f),g=l.every((f,d)=>a(c+d)===f)&&[7,8,9,10].every(f=>!a(c+f));p&&(n+=40),g&&(n+=40)}},"line");for(let a=0;a<t;a+=1)o(s=>e.get(a,s));for(let a=0;a<t;a+=1)o(s=>e.get(s,a));for(let a=0;a+1<t;a+=1)for(let s=0;s+1<t;s+=1){let c=e.get(a,s);c===e.get(a,s+1)&&c===e.get(a+1,s)&&c===e.get(a+1,s+1)&&(n+=3)}let r=e.dark.filter(Boolean).length;return n+=Math.floor(Math.abs(r*20-t*t*10)/(t*t))*10,n}function gs(e,t={}){let n=new TextEncoder().encode(e),o=1;for(;o<=fs&&!(4+(o<10?8:16)+n.length*8<=Er(o)*8);o+=1);if(o>fs)throw new RangeError("text too long for a QR code");let r=_l(n,o),a=i(l=>{let u=new Vr(o*4+17);return Nl(u,o),xl(u,r),Il(u,l),hs(u,l),u},"build"),s=null;if(t.mask!==void 0)s=a(t.mask);else{let l=Number.POSITIVE_INFINITY;for(let u=0;u<8;u+=1){let p=a(u),g=Ll(p);g<l&&(l=g,s=p)}}let c=s;return{size:c.size,get:i((l,u)=>c.get(l,u),"get")}}function ys(e,t=4){let n=[];for(let o=0;o<e.size;o+=1)for(let r=0;r<e.size;r+=1)e.get(o,r)&&n.push(`M${r+t} ${o+t}h1v1h-1z`);return{size:e.size+t*2,d:n.join("")}}var Or,fs,kl,Er,wl,Dr,Vr,vs=C(()=>{"use strict";Or=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]],[30,[[1,50],[4,51]]],[22,[[6,36],[2,37]]],[22,[[8,37],[1,38]]],[24,[[4,40],[5,41]]],[24,[[5,41],[5,42]]],[28,[[7,45],[3,46]]],[28,[[10,46],[1,47]]],[26,[[9,43],[4,44]]],[26,[[3,44],[11,45]]],[26,[[3,41],[13,42]]]],fs=Or.length,kl=0,Er=i(e=>(Or[e-1]?.[1]??[]).reduce((t,[n,o])=>t+n*o,0),"dataCapacity");i(Mr,"gfMul");i(bl,"rsDivisor");i(Sl,"rsRemainder");i(_l,"codewords");i(Cl,"alignmentPositions");wl=[(e,t)=>(e+t)%2===0,e=>e%2===0,(e,t)=>t%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0],Dr=class Dr{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,n,o){this.dark[t*this.size+n]=o,this.fixed[t*this.size+n]=!0}get(t,n){return this.dark[t*this.size+n]===!0}};i(Dr,"Grid");Vr=Dr;i(Nl,"drawFunctionPatterns");i(hs,"drawFormat");i(xl,"placeData");i(Il,"applyMask");i(Ll,"penalty");i(gs,"encodeQr");i(ys,"qrPath")});var ws={};vt(ws,{ContactChoiceView:()=>Tl,DesktopHandoffView:()=>$l,EidContinueHint:()=>Bl,GenericChoiceView:()=>Rl,HandoffView:()=>Br,HumanConsentTerms:()=>Kl,IdentitySummaryView:()=>Vl,InAppBrowserPrompt:()=>Ul,LaneChoiceView:()=>Pl,LaneSwitch:()=>Al,LivePhotoLiveness:()=>Dl,NoCameraView:()=>Gl,PortraitRetakeNotice:()=>Hl});function je(e){let t=e.strings;return(n,o)=>qe(t[n]??zl[e.locale][n]??"",o)}function Ss(e,t){let n=je(t);return e.flatMap(o=>{let r=o.service==="phone_otp"?n("contact.phone"):o.service==="email_otp"?n("contact.email"):Rn(o,t),a=_o[o.service];return r===null?[]:[{id:o.id,label:r,...a!==void 0?{glyph:(0,z.jsx)(fe,{name:a})}:{}}]})}function _s({step:e,i18n:t,onError:n}){let o=je(t),{busy:r,error:a,run:s}=Zt(t,n),c=e.kind==="contact_choice";return(0,z.jsx)(jt,{title:o(c?"contact.title":"choice.title"),description:o(c?"contact.description":"choice.description"),options:Ss(e.choice.options,t),busy:r,error:a,focus:!0,testId:c?"sekyro-contact-choice":"sekyro-choice",onChoose:l=>s(()=>e.choose(l))})}function Al({step:e,i18n:t,onError:n,onOpen:o}){let r=je(t),{busy:a,error:s,run:c}=Zt(t,n),l=e,u=e.context.switchable,p=u===void 0?[]:u.options.filter(h=>h.id!==u.current),g=l.kind==="registry"&&(l.reason==="nni_not_found"||l.reason==="registry_record_not_found")&&l.canUseDocument||l.kind==="eid"&&l.reason?.startsWith("eid_")&&l.canUseCamera,f=p.length===1?p[0]:void 0,d=f!==void 0&&(f.service==="phone_otp"||f.service==="email_otp"),m=d&&l.canSwitch&&l.switchTo!==void 0?()=>l.switchTo.call(e):l.chooseOption===void 0||f===void 0?void 0:()=>l.chooseOption.call(e,f.id);if(p.length===0||g||f!==void 0&&(m===void 0||y()===null)||f===void 0&&l.chooseOption===void 0)return null;function y(){return f===void 0?r("choice.switch"):f.service==="phone_otp"||f.service==="email_otp"?r("contact.switch"):l.kind==="registry"&&f.service==="document"?t.t("population.useDocument"):l.kind==="eid"?t.strings["eid.useCamera"]??bs[t.locale]["eid.useCamera"]:Rn(f,t)}return i(y,"labelOf"),(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[s!==null?(0,z.jsx)(q,{tone:"danger",children:(0,z.jsx)("span",{children:s})}):null,(0,z.jsx)(L,{kind:"ghost",disabled:a,"aria-busy":a||void 0,onClick:()=>m===void 0?o():c(m),"data-testid":d?"sekyro-contact-switch":"sekyro-lane-switch",children:y()})]})}function Pl({step:e,i18n:t,onError:n,onClose:o}){let r=je(t),{busy:a,error:s,run:c}=Zt(t,n),l=e.context.switchable,u=e.chooseOption;return l===void 0||u===void 0?null:(0,z.jsx)(jt,{title:r("choice.title"),description:r("choice.description"),options:Ss(l.options,t),...l.current!==null?{marked:l.current}:{},busy:a,error:s,focus:!0,testId:"sekyro-lane-choice",onChoose:p=>p===l.current?o():c(()=>u.call(e,p))})}function Ml(e){let[t,n]=(0,ye.useState)(null);return(0,ye.useEffect)(()=>{if(!e.portraitAvailable)return;let o=!0,r=null;return e.portrait().then(a=>{!o||a===null||!a.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(r=URL.createObjectURL(a),n(r))}),()=>{o=!1,r!==null&&URL.revokeObjectURL(r)}},[e.portraitAvailable]),t}function Vl({step:e,i18n:t,onError:n}){let o=je(t),r=(0,ye.useId)(),a=be(),s=Ml(e),{busy:c,error:l,run:u}=Zt(t,n),p=e.context.orgName,g=["registry","document","chip"].find(m=>m===e.source),f=e.summaryKind==="partial",d=i(m=>t.strings[`doc.type.${m}`]??m,"documentLabel");return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":r,"data-testid":"sekyro-identity-summary",children:[(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,z.jsx)("h2",{id:r,ref:a,tabIndex:-1,className:"sekyro-text-body",children:o("summary.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:o("summary.description")}),g!==void 0?(0,z.jsx)("p",{className:"sekyro-text-muted",children:o(`summary.source.${g}`)}):null]}),(0,z.jsxs)("div",{className:"sekyro-summary",children:[s!==null?(0,z.jsx)("img",{className:"sekyro-summary__portrait",src:s,alt:o("summary.portraitAlt")}):null,(0,z.jsx)("dl",{className:"sekyro-summary__list",children:El.map(([m,y,h])=>{let v=m==="idNumberMasked"?e.idNumberMasked??e.nniMasked:e[m];return v===void 0?null:(0,z.jsxs)("div",{className:"sekyro-summary__row",children:[(0,z.jsx)("dt",{className:"sekyro-text-muted",children:o(m==="fullName"&&f?"summary.name":y)}),(0,z.jsx)("dd",{children:h?(0,z.jsx)("bdi",{dir:"ltr",children:v}):m==="documentType"?d(v):v})]},m)})})]}),l!==null?(0,z.jsx)(q,{tone:"danger",children:(0,z.jsx)("span",{children:l})}):null,(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--3",children:[(0,z.jsx)(L,{full:!0,disabled:c,"aria-busy":c||void 0,onClick:()=>u(()=>e.confirm()),children:o("summary.confirm")}),e.retakeAvailable?(0,z.jsx)(L,{kind:"ghost",full:!0,disabled:c,onClick:()=>u(()=>e.retake()),children:o(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):(0,z.jsx)("p",{className:"sekyro-text-muted",children:o("summary.noRetake",{org:p})})]})]})}function Dl({step:e,i18n:t,livenessProps:n,sekyroIntro:o}){let r=je(t),[a,s]=(0,ye.useState)(null);(0,ye.useEffect)(()=>e.onLivePhoto(m=>{let y=m.update?.coach;s(m.holding||y===void 0?null:t.t(`portrait.coach.${y}`))}),[e,t]);let c=e.instructions==="icao",l=e.icao?.profile==="selfie",u=(0,ye.useMemo)(()=>c?Ol.filter(m=>!l||m!=="background").map(m=>({id:m,text:r(`capture.tipsIcao.${m}`)})):void 0,[c,l,t]),p=(0,ye.useMemo)(()=>c&&!l?{...n.strings,"capture.tips.title":r("capture.tipsIcao.title")}:n.strings,[c,l,n.strings,t]),g=l?void 0:r("capture.tipsIcao.title"),f=(0,ye.useMemo)(()=>o===!0&&u!==void 0?{...n.slots,intro:i((m,y)=>(0,z.jsx)(Vo,{start:m,context:y,tips:u,...g!==void 0?{tipsTitle:g}:{}}),"intro")}:n.slots,[o,u,g,n.slots,t]),d=l?`${(u??[]).map(m=>m.text).join(". ")}.`:r("capture.tipsIcao.summary");return(0,z.jsx)(Mo,{...n,...f!==void 0?{slots:f}:{},...p!==void 0?{strings:p}:{},...u!==void 0?{tips:u,tipsSummary:d}:{},coach:a})}function Hl({i18n:e}){let t=je(e);return(0,z.jsxs)(q,{tone:"info",children:[(0,z.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,z.jsx)("span",{children:t("portrait.keepCamera")})]})}function Bl({i18n:e,provider:t}){let n=e.strings,o=i(r=>n[r]??bs[e.locale][r]??"","pick");return(0,z.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?qe(o("eid.continueHint"),{provider:t}):o("eid.continueHintGeneric")})}async function Fl(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function Cs({url:e,i18n:t,label:n}){let o=je(t),[r,a]=(0,ye.useState)("idle"),s=n.startsWith("inApp.")?"inApp":"handoff";return(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,z.jsx)(L,{kind:"ghost",onClick:()=>{Fl(e).then(c=>a(c?"copied":"failed"))},children:o(n)}),(0,z.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:r==="idle"?"":o(`${s}.${r==="copied"?"copied":"copyFailed"}`)})]})}function Br({url:e,i18n:t,refresh:n,footer:o}){let r=je(t),a=(0,ye.useId)(),s=(0,ye.useMemo)(()=>{try{return ys(gs(e))}catch{return null}},[e]),c=(0,ye.useRef)(n);c.current=n;let l=be();return(0,ye.useEffect)(()=>{let u=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&c.current?.().catch(()=>{})},5e3);return()=>clearInterval(u)},[]),(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":a,"data-testid":"sekyro-handoff",children:[(0,z.jsx)("h2",{id:a,ref:l,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("handoff.description")}),s!==null?(0,z.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${s.size} ${s.size}`,role:"img","aria-label":r("handoff.qrAlt"),shapeRendering:"crispEdges",children:[(0,z.jsx)("rect",{width:s.size,height:s.size,className:"sekyro-qr__bg"}),(0,z.jsx)("path",{d:s.d,className:"sekyro-qr__fg"})]}):null,(0,z.jsx)(Cs,{url:e,i18n:t,label:"handoff.copyLink"}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("handoff.waiting")}),o??null]})}function Kl({i18n:e}){let t=je(e);return(0,z.jsx)(z.Fragment,{children:ql.map(n=>(0,z.jsx)("p",{children:t(`consent.human.terms.${n}`)},n))})}function $l({url:e,i18n:t}){return(0,ye.useMemo)(()=>!(0,Hr.detectIsMobile)(),[])?(0,z.jsx)(Br,{url:e,i18n:t}):null}function Gl({i18n:e,cause:t,onRetry:n,onContinue:o,handoffUrl:r}){let a=je(e),s=(0,ye.useId)(),c=be(),[l,u]=(0,ye.useState)("idle"),p=(0,ye.useMemo)(()=>r!==void 0&&!(0,Hr.detectIsMobile)(),[r]),g=t==="denied",f=i(()=>{o!==void 0&&(u("busy"),o(t).then(()=>u("idle"),d=>u(d instanceof ks.HostedApiError&&d.code==="check_out_of_order"?"idle":"failed")))},"end");return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":s,"data-testid":"sekyro-no-camera","data-cause":t,children:[p&&r!==void 0?(0,z.jsx)(Br,{url:r,i18n:e}):null,(0,z.jsx)("h2",{id:s,ref:c,tabIndex:-1,className:"sekyro-text-body",children:a(g?"capture.noCamera.deniedTitle":"capture.noCamera.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:a(g?"capture.noCamera.deniedBody":"capture.noCamera.body")}),l==="failed"?(0,z.jsx)(q,{tone:"danger",children:(0,z.jsx)("span",{children:e.t("errors.network_error")})}):null,(0,z.jsx)(L,{kind:g?"primary":"ghost",onClick:n,children:e.t("common.retry")}),o!==void 0?(0,z.jsx)(L,{kind:"ghost",disabled:l==="busy","aria-busy":l==="busy"||void 0,onClick:f,children:a("capture.noCamera.continue")}):null]})}function Ul({url:e,i18n:t,onContinue:n}){let o=je(t),r=(0,ye.useId)(),a=be();return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":r,"data-testid":"sekyro-in-app",children:[(0,z.jsx)("h2",{id:r,ref:a,tabIndex:-1,className:"sekyro-text-body",children:o("inApp.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:o("inApp.description")}),(0,z.jsx)(Cs,{url:e,i18n:t,label:"inApp.copyLink"}),(0,z.jsx)(L,{kind:"ghost",onClick:n,children:o("inApp.continueAnyway")})]})}var ks,Hr,ye,z,zl,bs,Tl,Rl,El,Ol,ql,Ns=C(()=>{"use strict";ks=require("@sekyro/web"),Hr=require("@sekyro/web/core"),ye=require("react");ve();So();Ar();hr();gr();yr();as();ss();ls();lt();Pr();Nt();br();vs();Ne();Ke();z=require("react/jsx-runtime"),zl={en:Mn,fr:cs,ar:is,es:Mn,pt:Mn,de:Mn},bs={en:pt,fr:ko,ar:vo,es:pt,pt,de:pt};i(je,"flowT");i(Ss,"labelled");i(_s,"PlanChoiceView");Tl=_s,Rl=_s;i(Al,"LaneSwitch");i(Pl,"LaneChoiceView");El=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["idNumberMasked","summary.id_number",!0],["expiryDate","summary.expiryDate",!0]];i(Ml,"usePortraitUrl");i(Vl,"IdentitySummaryView");Ol=["glasses","headwear","expression","faceCamera","background","lighting","hair"];i(Dl,"LivePhotoLiveness");i(Hl,"PortraitRetakeNotice");i(Bl,"EidContinueHint");i(Fl,"copy");i(Cs,"CopyLink");i(Br,"HandoffView");ql=["intro","data","processing","sharing","retention"];i(Kl,"HumanConsentTerms");i($l,"DesktopHandoffView");i(Gl,"NoCameraView");i(Ul,"InAppBrowserPrompt")});var Ts,Rs=C(()=>{"use strict";Ts={image:'<path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/><path d="M14 8A2 2 0 1 0 18 8A2 2 0 1 0 14 8Z" stroke="currentColor"/><path d="M2 12.5L3.75 10.97C4.66 10.17 6.04 10.22 6.89 11.07L11.18 15.36C11.87 16.05 12.95 16.14 13.75 15.58L14.04 15.37C15.19 14.57 16.74 14.66 17.78 15.6L21 18.5" stroke="currentColor" stroke-linecap="round"/>',flashlight:'<path d="M9 11.66V19C9 19.93 9 20.4 9.15 20.77C9.36 21.26 9.74 21.64 10.23 21.85C10.6 22 11.07 22 12 22C12.93 22 13.4 22 13.77 21.85C14.26 21.64 14.64 21.26 14.85 20.77C15 20.4 15 19.93 15 19V11.66C15 10.84 15 10.43 15.15 10.06C15.3 9.7 15.59 9.41 16.17 8.83L16.17 8.83L19.41 5.59C19.7 5.3 19.85 5.15 19.92 4.97C20 4.78 20 4.58 20 4.17V4C20 3.06 20 2.59 19.71 2.29C19.41 2 18.94 2 18 2H6C5.06 2 4.59 2 4.29 2.29C4 2.59 4 3.06 4 4V4.17C4 4.58 4 4.78 4.08 4.97C4.15 5.15 4.3 5.3 4.59 5.59L7.83 8.83C8.41 9.41 8.7 9.7 8.85 10.06C9 10.43 9 10.84 9 11.66Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 10H9" stroke="currentColor" stroke-linecap="round"/><path d="M12 13V15" stroke="currentColor" stroke-linecap="round"/><path d="M4.5 5H19.5" stroke="currentColor" stroke-linecap="round"/>'}});var As,Ps=C(()=>{"use strict";As={"dcv3.mrz.searching":"ضع صفحة جواز السفر كاملة داخل الإطار","dcv3.mrz.showMrzSide":"اعرض الوجه الذي يحتوي على سطرين أو ثلاثة أسطر من الحروف","dcv3.mrz.reading":"جارٍ قراءة الوثيقة… ثبّتها","dcv3.mrz.moveCloser":"اقترب حتى تملأ أسطر الحروف الإطار","dcv3.mrz.turnSideways":"أدر هاتفك أفقيًا لقراءة أسطر الحروف","dcv3.mrz.glare":"أمِل الوثيقة لإزالة الانعكاس","dcv3.mrz.holdStill":"لا تتحرك","dcv3.mrz.valid":"تمت قراءة الوثيقة. جارٍ التقاط الصورة","dcv3.mrz.looksLikePassport":"يبدو أن هذا جواز سفر","dcv3.mrz.looksLikeCard":"يبدو أن هذه بطاقة تعريف أو بطاقة إقامة"}});var Dn,Es=C(()=>{"use strict";Dn={"dcv3.mrz.searching":"Fit the whole passport page in the frame","dcv3.mrz.showMrzSide":"Show the side with the two or three lines of characters","dcv3.mrz.reading":"Reading the document… hold it steady","dcv3.mrz.moveCloser":"Move closer so the lines of characters fill the frame","dcv3.mrz.turnSideways":"Turn your phone sideways to read the lines of characters","dcv3.mrz.glare":"Tilt the document to remove the reflection","dcv3.mrz.holdStill":"Hold still","dcv3.mrz.valid":"Document read. Taking the photo","dcv3.mrz.looksLikePassport":"This looks like a passport","dcv3.mrz.looksLikeCard":"This looks like an identity card or residence permit"}});var Ms,Vs=C(()=>{"use strict";Ms={"dcv3.mrz.searching":"Cadrez toute la page du passeport","dcv3.mrz.showMrzSide":"Montrez la face avec les deux ou trois lignes de caractères","dcv3.mrz.reading":"Lecture du document… tenez-le immobile","dcv3.mrz.moveCloser":"Rapprochez-vous pour que les lignes de caractères remplissent le cadre","dcv3.mrz.turnSideways":"Tournez votre téléphone à l’horizontale pour lire les lignes de caractères","dcv3.mrz.glare":"Inclinez le document pour supprimer le reflet","dcv3.mrz.holdStill":"Ne bougez plus","dcv3.mrz.valid":"Document lu. Prise de la photo","dcv3.mrz.looksLikePassport":"Ceci ressemble à un passeport","dcv3.mrz.looksLikeCard":"Ceci ressemble à une carte d’identité ou un titre de séjour"}});var Os,Ds=C(()=>{"use strict";Os={"native.doc.introTitle":"سنلتقط صورة لوثيقتك","native.doc.introLead":"ستُفتح كاميرا هاتفك، وتُلتقط الصورة تلقائيًا بمجرد أن تكون الوثيقة داخل الإطار.","native.doc.tip.flat":"ضع الوثيقة مسطحة على سطح داكن.","native.doc.tip.glare":"تجنّب انعكاسات المصابيح أو الشمس.","native.doc.tip.frame":"أبقِ الوثيقة كاملة داخل الإطار.","native.doc.openCamera":"افتح الكاميرا","native.doc.changeDocument":"تغيير الوثيقة","native.scan.closer":"اقترب قليلًا","native.scan.farther":"ابتعد قليلًا","native.scan.glare":"أمِل البطاقة قليلًا","native.scan.dark":"الإضاءة ضعيفة. شغّل المصباح.","native.scan.blurry":"الصورة غير واضحة. ثبّت الهاتف.","native.scan.holdStill":"لا تتحرك","native.scan.reading":"جارٍ التحقق من وثيقتك…","native.scan.putDown":"يمكنك وضع وثيقتك جانبًا.","native.scan.retry":"لنحاول مرة أخرى"}});var Hn,Hs=C(()=>{"use strict";Hn={"native.doc.introTitle":"We'll photograph your document","native.doc.introLead":"Your phone's camera will open. The photo is taken by itself as soon as the document is well framed.","native.doc.tip.flat":"Lay the document flat on a dark surface.","native.doc.tip.glare":"Avoid glare from lamps or sunlight.","native.doc.tip.frame":"Keep the whole document in the frame.","native.doc.openCamera":"Open the camera","native.doc.changeDocument":"Change document","native.scan.closer":"Move a little closer","native.scan.farther":"Move back a little","native.scan.glare":"Tilt the card a little","native.scan.dark":"Too dark. Turn on the light.","native.scan.blurry":"Blurry image. Hold the phone still.","native.scan.holdStill":"Hold still","native.scan.reading":"Checking your document…","native.scan.putDown":"You can put your document down.","native.scan.retry":"Let's try that again"}});var Bs,Fs=C(()=>{"use strict";Bs={"native.doc.introTitle":"Nous allons photographier votre pièce","native.doc.introLead":"La caméra de votre téléphone va s'ouvrir. La photo est prise automatiquement dès que la pièce est bien cadrée.","native.doc.tip.flat":"Posez la pièce à plat, sur une surface sombre.","native.doc.tip.glare":"Évitez les reflets de lampe ou de soleil.","native.doc.tip.frame":"Gardez toute la pièce dans le cadre.","native.doc.openCamera":"Ouvrir la caméra","native.doc.changeDocument":"Changer de document","native.scan.closer":"Approchez un peu","native.scan.farther":"Reculez un peu","native.scan.glare":"Inclinez un peu la carte","native.scan.dark":"Trop sombre. Allumez la lampe.","native.scan.blurry":"Image floue. Tenez le téléphone immobile.","native.scan.holdStill":"Ne bougez plus","native.scan.reading":"Vérification de votre document…","native.scan.putDown":"Vous pouvez poser votre pièce.","native.scan.retry":"Réessayons"}});var Jl,Fr,Do,qs=C(()=>{"use strict";Jl=["locking","capturing"],Fr=class Fr{constructor(){this.shown={hint:null,locking:!1,card:null,manualShutter:!1};this.candidate=null;this.candidateSince=0;this.hintShownAt=0;this.lockLostAt=null;this.detectedSince=null;this.lostSince=null;this.shutterSince=null}present(t,n){return this.presentHint(t,n),this.presentLock(t,n),this.presentCard(t,n),this.shutterSince=t.manualShutter?this.shutterSince??n:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&n-this.shutterSince>=1e3},this.shown}presentHint(t,n){let o=t.phase==="framing"&&!(t.hint==="blurry"&&t.card===null)?t.hint:null;if(t.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(o!==this.candidate&&(this.candidate=o,this.candidateSince=n),o===this.shown.hint)return;let r=n-this.candidateSince>=(o===null?0:350),a=this.shown.hint===null||n-this.hintShownAt>=1200;r&&a&&(this.shown={...this.shown,hint:o},this.hintShownAt=n)}presentLock(t,n){if(Jl.includes(t.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(t.phase!=="framing"){this.shown={...this.shown,locking:!1},this.lockLostAt=null;return}this.lockLostAt??(this.lockLostAt=n),n-this.lockLostAt>=300&&(this.shown={...this.shown,locking:!1},this.lockLostAt=null)}}presentCard(t,n){let o=t.card;if(o===null||t.phase!=="framing"){if(t.phase!=="framing"){this.shown={...this.shown,card:null},this.detectedSince=null,this.lostSince=null;return}this.detectedSince=null,this.lostSince??(this.lostSince=n),n-this.lostSince>=300&&(this.shown={...this.shown,card:null});return}if(this.lostSince=null,this.detectedSince??(this.detectedSince=n),n-this.detectedSince<250)return;let r=this.shown.card;if(r===null){this.shown={...this.shown,card:{...o}};return}let a=.35;this.shown={...this.shown,card:{fill:r.fill+(o.fill-r.fill)*a,offsetX:r.offsetX+(o.offsetX-r.offsetX)*a,offsetY:r.offsetY+(o.offsetY-r.offsetY)*a}}}};i(Fr,"ScanPresenter");Do=Fr});var js={};vt(js,{DocumentCaptureView:()=>nd,LOCK_TRACE_MS:()=>Ks,guideRect:()=>qr,mrzInstruction:()=>Us,slotOf:()=>Ys});function Gs({name:e}){return(0,k.jsx)("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:Ts[e]}})}function Us(e,t){return e===null||e.state==="fallback"||e.state==="mismatch"?null:e.state==="searching"?t?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":e.state==="valid"?"dcv3.mrz.valid":e.coach!==void 0?`dcv3.mrz.${e.coach}`:"dcv3.mrz.reading"}function Ws(e){return e.reason==="unreadable"?"doc.reason_unreadable":e.reason!==void 0&&e.reason!=="side_missing"?nn(e.reason):null}function nd({step:e,i18n:t,liveMrz:n,...o}){let[r,a]=(0,le.useState)(!1);return r?(0,k.jsx)(cd,{step:e,i18n:t,...n!==void 0?{liveMrz:n}:{},onClose:()=>a(!1)}):(0,k.jsx)(id,{step:e,i18n:t,onOpen:()=>a(!0),...o})}function od({passport:e}){let n=Math.round(228/(e?1.42:1.586));return(0,k.jsxs)("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${n+24}`,"aria-hidden":"true",focusable:"false",children:[(0,k.jsx)("defs",{children:(0,k.jsx)("clipPath",{id:"sekyro-card-clip",children:(0,k.jsx)("rect",{width:228,height:n,rx:"12.5"})})}),(0,k.jsx)("rect",{className:"sekyro-mark__card",width:228,height:n,rx:"12.5"}),(0,k.jsx)("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:n*.52,rx:"6"}),[0,1,2].map(o=>(0,k.jsx)("rect",{className:"sekyro-mark__text",x:"88",y:23+o*n*.12,width:100-o*20,height:"6",rx:"3"},o)),[0,1].map(o=>(0,k.jsx)("rect",{className:"sekyro-mark__text",x:"17",y:n*.74+o*9,width:194,height:"4",rx:"2"},o)),(0,k.jsx)("g",{clipPath:"url(#sekyro-card-clip)",children:(0,k.jsx)("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:(0,k.jsx)("rect",{x:"-1",width:"2",height:n,className:"sekyro-mark__beam"})})}),(0,k.jsx)("path",{className:"sekyro-mark__brackets",d:rd(-10,-10,248,n+20,16,30)})]})}function rd(e,t,n,o,r,a){let s=Math.min(r,a*.6);return[[e,t,1,1],[e+n,t,-1,1],[e,t+o,1,-1],[e+n,t+o,-1,-1]].map(([l,u,p,g])=>`M${l} ${u+g*a}V${u+g*s}Q${l} ${u} ${l+p*s} ${u}H${l+p*a}`).join("")}function id({step:e,i18n:t,onOpen:n,onChangeCountry:o,onChangeDocument:r}){let a=$s(t),s=e.documentType==="passport",c=Ws(e);return(0,k.jsxs)("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[(0,k.jsx)(od,{passport:s}),(0,k.jsx)(Ee,{title:a("native.doc.introTitle"),lead:a("native.doc.introLead")}),c!==null?(0,k.jsxs)(q,{tone:"warning",children:[(0,k.jsx)("span",{children:t.t(c)}),(0,k.jsx)("span",{children:tt(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,(0,k.jsxs)("ul",{className:"sekyro-tiprows",children:[(0,k.jsxs)("li",{children:[(0,k.jsx)(fe,{name:s?"passport":"card"}),a("native.doc.tip.flat")]}),(0,k.jsxs)("li",{children:[(0,k.jsx)(fe,{name:"light"}),a("native.doc.tip.glare")]}),(0,k.jsxs)("li",{children:[(0,k.jsx)(Gs,{name:"image"}),a("native.doc.tip.frame")]})]}),r!==void 0||o!==void 0?(0,k.jsxs)("div",{className:"sekyro-links",children:[r!==void 0?(0,k.jsx)("button",{type:"button",className:"sekyro-link",onClick:r,children:a("native.doc.changeDocument")}):null,o!==void 0?(0,k.jsx)("button",{type:"button",className:"sekyro-link",onClick:o,children:t.t("native.doc.changeCountry")}):null]}):null,(0,k.jsx)(Me,{children:(0,k.jsxs)(L,{full:!0,onClick:n,children:[(0,k.jsx)(fe,{name:"camera"}),a("native.doc.openCamera")]})})]})}function qr(e,t,n){let o=e*.88,r=o/n;return{x:(e-o)/2,y:t*.42-r/2,w:o,h:r}}function cd({step:e,i18n:t,liveMrz:n,onClose:o}){let r=$s(t),a=(0,le.useRef)(null),s=(0,le.useRef)(null),c=(0,le.useRef)(null),[l,u]=(0,le.useState)("idle"),[p,g]=(0,le.useState)(null),[f,d]=(0,le.useState)(null),[m,y]=(0,le.useState)({w:0,h:0}),[h,v]=(0,le.useState)({hint:null,locking:!1,card:null,manualShutter:!1}),[S,T]=(0,le.useState)({}),[M,R]=(0,le.useState)(null),[w,P]=(0,le.useState)(null),[B,H]=(0,le.useState)(0),[b,E]=(0,le.useState)(null),[F,I]=(0,le.useState)(null),V=e.documentType==="passport",N=V?1.42:1.586;mo(!0),(0,le.useLayoutEffect)(()=>{let J=a.current;if(J===null)return;let re=i(()=>y({w:J.clientWidth,h:J.clientHeight}),"measure");if(re(),typeof ResizeObserver>"u")return;let ee=new ResizeObserver(re);return ee.observe(J),()=>ee.disconnect()},[]);let x=qr(m.w,m.h,N);(0,le.useEffect)(()=>{m.w===0||m.h===0||c.current?.setGuide?.({viewAspect:m.w/m.h,rect:{x:x.x/m.w,y:x.y/m.h,width:x.w/m.w,height:x.h/m.h}})},[m.w,m.h,x.x,x.y,x.w,x.h]),(0,le.useEffect)(()=>{let J=s.current;if(J===null)return;let re=e.capture({video:J,...n!==void 0?{liveMrz:n}:{}});c.current=re;let ee=a.current;if(ee!==null&&ee.clientWidth>0&&ee.clientHeight>0){let te=qr(ee.clientWidth,ee.clientHeight,N);re.setGuide?.({viewAspect:ee.clientWidth/ee.clientHeight,rect:{x:te.x/ee.clientWidth,y:te.y/ee.clientHeight,width:te.w/ee.clientWidth,height:te.h/ee.clientHeight}})}let Be=new Do,Te={scan:null,feedback:null,gate:null},Ve=i(te=>{Te={...Te,...te};let Ge=Te.gate?.guide,Fe={phase:Te.scan?.phase??"framing",hint:Te.feedback?.reticle==="coaching"?Te.feedback.key:null,card:Ge?.detected?{fill:Ge.fill,offsetX:Ge.offsetX,offsetY:Ge.offsetY}:null,manualShutter:Te.scan?.manualShutter??!1},it=Be.present(Fe,performance.now());v(at=>at.hint===it.hint&&at.locking===it.locking&&at.manualShutter===it.manualShutter&&at.card?.fill===it.card?.fill&&at.card?.offsetX===it.card?.offsetX&&at.card?.offsetY===it.card?.offsetY?at:it)},"present"),Re=[re.on("state",u),re.on("feedback",te=>Ve({feedback:te})),re.on("gate",te=>Ve({gate:te})),re.on("scan",te=>{g(te),Ve({scan:te})}),re.on("captured",te=>{T(Ge=>({...Ge,[Ys(te.side,V,Ge)]:te.previewDataUrl})),R(te.previewDataUrl),P(dd(J))}),re.on("error",d),re.on("mrz",te=>{te.state==="mismatch"?I(te.format??null):E(te)})];return re.start().catch(()=>{}),()=>{for(let te of Re)te();re.destroy(),c.current=null}},[e.issuer,e.documentType]);let A=p?.phase??"framing",G=A==="reading"||A==="result",ae=A==="flipCue"||A==="reaskRecto",O=h.locking,ge=p?.captured.length??0;(0,le.useEffect)(()=>{O&&H(J=>J+1)},[O]),(0,le.useEffect)(()=>{ge>0&&H(J=>J+1)},[ge]);let He=p?.expected??null;(0,le.useEffect)(()=>{E(null)},[He]),(0,le.useEffect)(()=>{if(F===null)return;let J=setTimeout(()=>I(null),2e3);return()=>clearTimeout(J)},[F]);let pe=ae||G?null:Us(b,V),K=F!==null?F==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":pe,U=K===null?null:t.strings[K]??td[t.locale][K],X=Ws(e),ht=h.hint===null?null:ad[h.hint]??`dcv2.${h.hint}`,Je=ht??(A==="flipCue"?p?.notice==="same_face"?"doc.sameFace":"doc.flip":A==="reaskRecto"?"doc.reaskRecto":G?"native.scan.reading":A==="locking"||A==="capturing"||O?"native.scan.holdStill":p?.notice==="reread"?"doc.reread":p?.notice==="technical"?"native.scan.retry":p?.notice==="blurry"?"native.scan.blurry":X??(V?"doc.showPage":"doc.showSide")),It=U??r(Je),gt=h.card,ze=x;if(!O&>!==null&>.fill>=.45&>.fill<=1.25&&!sd()){let J=x.w*gt.fill,re=J/N,ee=x.x+x.w/2+x.w*Math.max(-.25,Math.min(.25,gt.offsetX)),Be=x.y+x.h/2+x.h*Math.max(-.25,Math.min(.25,gt.offsetY));ze={x:ee-J/2,y:Be-re/2,w:J,h:re}}let qt=x.w*.045,Lt=28,zt=Math.min(qt,Lt*.6),qn=[[ze.x,ze.y,1,1],[ze.x+ze.w,ze.y,-1,1],[ze.x,ze.y+ze.h,1,-1],[ze.x+ze.w,ze.y+ze.h,-1,-1]],Kn=O?"is-locked":h.hint!==null?"is-coaching":"",Zo=V?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],_n=x.y+x.h+48,Kt={insetInlineStart:x.x,insetBlockStart:x.y,inlineSize:x.w,blockSize:x.h,borderRadius:qt};return(0,k.jsx)("section",{className:"sekyro-lm","aria-label":It,"data-testid":"sekyro-document",children:(0,k.jsxs)("div",{ref:a,className:`sekyro-lm-stage${G?" is-reading":""}${ae?" is-flip":""}`,style:{"--sekyro-guide-w":`${x.w}px`},children:[(0,k.jsx)("video",{ref:s,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:J=>{let re=J.currentTarget,ee=re.getBoundingClientRect(),Be=Math.max(ee.width/(re.videoWidth||1),ee.height/(re.videoHeight||1)),Te=re.videoWidth*Be,Ve=re.videoHeight*Be;Te>0&&Ve>0&&c.current?.focusAt((J.clientX-ee.left+(Te-ee.width)/2)/Te,(J.clientY-ee.top+(Ve-ee.height)/2)/Ve)}}),m.w>0?(0,k.jsxs)(k.Fragment,{children:[G&&w!==null?(0,k.jsx)("img",{className:"sekyro-lm-scene",src:w,alt:""}):null,G&&M!==null?(0,k.jsx)("img",{className:"sekyro-lm-frozen",src:M,alt:"",style:Kt}):null,(0,k.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${m.w} ${m.h}`,"aria-hidden":"true",focusable:"false",children:[(0,k.jsxs)("defs",{children:[(0,k.jsxs)("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,k.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),(0,k.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),(0,k.jsxs)("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,k.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),(0,k.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),(0,k.jsx)("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${m.w}V${m.h}H0Z${ld(x,qt)}`}),(0,k.jsx)("rect",{width:m.w,height:Math.max(0,x.y),fill:"url(#sekyro-lm-top)"}),(0,k.jsx)("rect",{y:x.y+x.h,width:m.w,height:Math.max(0,m.h-x.y-x.h),fill:"url(#sekyro-lm-bottom)"}),(0,k.jsx)("g",{className:`sekyro-lm-brackets ${Kn}`,children:qn.map(([J,re,ee,Be],Te)=>(0,k.jsx)("path",{style:{transform:`translate(${J}px, ${re}px) scale(${ee}, ${Be})`},d:`M0 ${Lt}V${zt}Q0 0 ${zt} 0H${Lt}`},Te))}),O?(0,k.jsx)("rect",{className:"sekyro-lm-trace",x:x.x,y:x.y,width:x.w,height:x.h,rx:qt,pathLength:"1",style:{animationDuration:`${Ks}ms`}}):null]}),(0,k.jsx)("div",{className:"sekyro-lm-slot",style:Kt,"aria-hidden":"true",children:G?(0,k.jsx)("span",{className:"sekyro-lm-read is-repeating"}):B>0?(0,k.jsx)("span",{className:"sekyro-lm-read"},B):null})]}):null,pe!==null?(0,k.jsx)("div",{className:"sekyro-lm-slot",style:Kt,"aria-hidden":"true",children:(0,k.jsx)("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${V?" is-page":""}${b?.state==="valid"?" is-valid":""}`})}):null,(0,k.jsxs)("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:x.y-64},children:[(0,k.jsx)("div",{role:"status","aria-live":"polite",children:(0,k.jsx)(zn,{swapKey:It,className:"sekyro-lm-line",children:It})}),X!==null&&A==="framing"&&ht===null?(0,k.jsx)("p",{className:"sekyro-lm-attempts",children:tt(t,e.attemptsRemaining,e.attemptsExhausted)}):null]}),G?(0,k.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:_n-12},children:[(0,k.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),r("native.scan.putDown")]}):ae?(0,k.jsx)("div",{className:`sekyro-lm-under sekyro-lm-flip${A==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:_n-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:(0,k.jsxs)("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(N)},children:[(0,k.jsx)("span",{className:"sekyro-lm-flip-front"}),(0,k.jsx)("span",{className:"sekyro-lm-flip-back"})]})}):null,(0,k.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,k.jsxs)("div",{className:"sekyro-lm-bar",children:[(0,k.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":t.t("native.close"),onClick:o,children:(0,k.jsx)(fe,{name:"close"})}),p?.torchAvailable?(0,k.jsx)("button",{type:"button",className:`sekyro-glass${p.torch?" is-on":""}`,"aria-label":t.t("doc.torchOn"),"aria-pressed":p.torch,onClick:()=>c.current?.setTorch(!p.torch),children:(0,k.jsx)(Gs,{name:"flashlight"})}):null]}),f!==null?(0,k.jsxs)("div",{className:"sekyro-lm-error",role:"alert",children:[(0,k.jsx)("p",{children:t.t("doc.cameraBlocked")}),(0,k.jsx)("p",{children:t.t(f.kind==="permission"?"doc.cameraBlockedHint":tn(f.kind))}),(0,k.jsx)(L,{onClick:()=>{d(null),c.current?.retry()},children:t.t("doc.retryCamera")})]}):null,h.manualShutter?(0,k.jsx)("button",{type:"button",className:"sekyro-shutter","aria-label":t.t("doc.shutter"),onClick:()=>c.current?.shutter()}):null,(0,k.jsx)("ol",{className:"sekyro-lm-tray",children:Zo.map(({side:J,label:re})=>{let ee=p?.captured.includes(J)??!1;return(0,k.jsxs)("li",{className:ee?"is-done":void 0,"aria-current":!ee&&(V||p?.expected===J)?"step":void 0,children:[ee?(0,k.jsxs)("span",{className:"sekyro-lm-thumb",children:[S[J]!==void 0?(0,k.jsx)("img",{src:S[J],alt:""}):null,(0,k.jsx)("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:(0,k.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,r(re)]},J)})})]}),l==="uploading"||l==="checking"?(0,k.jsx)("span",{className:"sekyro-visually-hidden",role:"status",children:l==="uploading"?t.t("doc.uploading"):r("native.scan.reading")}):null]})})}function Ys(e,t,n){return t?"single":e==="recto"||e==="verso"?e:n.recto===void 0?"recto":"verso"}function ld({x:e,y:t,w:n,h:o},r){return`M${e+r} ${t}H${e+n-r}Q${e+n} ${t} ${e+n} ${t+r}V${t+o-r}Q${e+n} ${t+o} ${e+n-r} ${t+o}H${e+r}Q${e} ${t+o} ${e} ${t+o-r}V${t+r}Q${e} ${t} ${e+r} ${t}Z`}function dd(e){let t=Math.round(e.videoWidth/4),n=Math.round(e.videoHeight/4);if(t===0||n===0||typeof document>"u")return null;try{let o=document.createElement("canvas");o.width=t,o.height=n;let r=o.getContext("2d");return r===null?null:(r.drawImage(e,0,0,t,n),o.toDataURL("image/jpeg",.7))}catch{return null}}var le,k,ed,Ks,$s,td,ad,sd,Zs=C(()=>{"use strict";le=require("react");ve();Rs();Rt();Ps();Es();Vs();Ds();Hs();Fs();Nt();dt();qs();Ne();Ke();k=require("react/jsx-runtime"),ed={en:Hn,fr:Bs,ar:Os,es:Hn,pt:Hn,de:Hn},Ks=450,$s=i(e=>t=>qe(e.strings[t]??ed[e.locale][t]??""),"useScanCopy");i(Gs,"ScanGlyph");td={en:Dn,fr:Ms,ar:As,es:Dn,pt:Dn,de:Dn};i(Us,"mrzInstruction");i(Ws,"reasonOf");i(nd,"DocumentCaptureView");i(od,"ScanMark");i(rd,"brackets");i(id,"DocumentIntro");i(qr,"guideRect");ad={too_far:"native.scan.closer",too_close:"native.scan.farther",focus_far:"native.scan.farther",glare:"native.scan.glare",too_bright:"native.scan.glare",too_dark:"native.scan.dark",blurry:"native.scan.blurry"},sd=i(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");i(cd,"LumiereScan");i(Ys,"slotOf");i(ld,"roundedRect");i(dd,"sceneSnapshot")});function pd(e,t){let n=e*.72,o=n*1.32;return{cx:e/2,cy:(t-o)/2.1+o/2,a:n/2,b:o/2}}function md({cx:e,cy:t,a:n,b:o}){return Array.from({length:Bo},(r,a)=>{let s=-Math.PI/2+a/Bo*2*Math.PI,c=Math.cos(s),l=Math.sin(s),u=e+n*c,p=t+o*l,g=Math.hypot(o*c,n*l),f=o*c/g,d=n*l/g,m=i(y=>Math.round(y*10)/10,"r");return`M${m(u+f*16)} ${m(p+d*16)}L${m(u+f*28)} ${m(p+d*28)}`})}function Fo({video:e,instruction:t,note:n,busy:o,progress:r,still:a,overlay:s,ramp:c,onClose:l,closeLabel:u,end:p,live:g=!0,children:f,testId:d}){mo(g);let m=(0,bn.useRef)(null),[y,h]=(0,bn.useState)({w:0,h:0});(0,bn.useLayoutEffect)(()=>{let P=m.current;if(P===null)return;let B=i(()=>h({w:P.clientWidth,h:P.clientHeight}),"measure");if(B(),typeof ResizeObserver>"u")return;let H=new ResizeObserver(B);return H.observe(P),()=>H.disconnect()},[]);let v=pd(y.w,y.h),S=y.w>0?md(v):[],T=Math.round(Math.min(1,Math.max(0,r))*Bo),M=v.cy-v.b,R=Math.max(v.a,v.b)+40,w=70*Math.PI/180;return(0,ie.jsx)("section",{className:"sekyro-lm sekyro-fc","aria-label":t,"data-testid":d,"data-ramp":c?"":void 0,children:(0,ie.jsxs)("div",{ref:m,className:"sekyro-lm-stage",children:[e,a?(0,ie.jsx)("img",{className:"sekyro-lm-video sekyro-fc-still",src:a,alt:""}):null,s,y.w>0?(0,ie.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${y.w} ${y.h}`,"aria-hidden":"true",focusable:"false",children:[(0,ie.jsxs)("defs",{children:[(0,ie.jsxs)("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:v.cx-R*Math.sin(w),y1:v.cy,x2:v.cx,y2:v.cy,children:[(0,ie.jsx)("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),(0,ie.jsx)("stop",{offset:"1",className:"sekyro-fc-fade"})]}),(0,ie.jsx)("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:y.w,height:y.h,children:(0,ie.jsx)("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${v.cx}px ${v.cy}px`},d:`M${v.cx} ${v.cy}L${v.cx-R*Math.sin(w)} ${v.cy-R*Math.cos(w)}A${R} ${R} 0 0 1 ${v.cx} ${v.cy-R}Z`,fill:"url(#sekyro-fc-fade)"})})]}),(0,ie.jsx)("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${y.w}V${y.h}H0Z M${v.cx-v.a} ${v.cy}a${v.a} ${v.b} 0 1 0 ${2*v.a} 0a${v.a} ${v.b} 0 1 0 ${-2*v.a} 0Z`}),(0,ie.jsx)("ellipse",{className:"sekyro-fc-rim",cx:v.cx,cy:v.cy,rx:v.a,ry:v.b}),(0,ie.jsx)("path",{className:"sekyro-fc-ticks",d:S.join("")}),T>0?(0,ie.jsx)("path",{className:"sekyro-fc-ticks is-done",d:S.slice(0,T).join("")}):null,T<Bo?(0,ie.jsx)("path",{className:"sekyro-fc-ticks is-light",d:S.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,(0,ie.jsx)(Ao,{colour:c??null}),(0,ie.jsx)("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:M-80},children:(0,ie.jsx)("div",{role:"status","aria-live":"polite",children:(0,ie.jsx)(zn,{swapKey:t,className:"sekyro-lm-line",children:t})})}),n?(0,ie.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:M+2*v.b+48},children:[o?(0,ie.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,(0,ie.jsx)("span",{children:n})]}):null,(0,ie.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,ie.jsxs)("div",{className:"sekyro-lm-bar",children:[l!==void 0?(0,ie.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":u,onClick:l,children:(0,ie.jsx)(fe,{name:"close"})}):null,p]}),f]})]})})}var bn,ie,Bo,Kr=C(()=>{"use strict";bn=require("react");Ir();Nt();dt();ie=require("react/jsx-runtime"),Bo=72;i(pd,"faceOval");i(md,"ticks");i(Fo,"FaceCamera")});var Qs={};vt(Qs,{PortraitCaptureView:()=>fd});function fd({step:e,i18n:t,assetBaseUrl:n}){let{t:o}=t,r=(0,Qe.useRef)(null),a=(0,Qe.useRef)(null),[s,c]=(0,Qe.useState)("idle"),[l,u]=(0,Qe.useState)(null),[p,g]=(0,Qe.useState)(null),[f,d]=(0,Qe.useState)({facing:"user",assisted:!1}),{canChooseFacing:m}=Ro(),y=be(),h=(0,Qe.useContext)(an);(0,Qe.useEffect)(()=>{let I=r.current;if(I===null)return;let V=e.capture({video:I,...n!==void 0?{assetBaseUrl:n}:{}});a.current=V;let N=i(()=>d({facing:V.facingMode??"user",assisted:V.captureMode==="assisted"}),"readCamera");N();let x=[V.on("state",A=>{N(),c(A)}),V.on("gate",u),V.on("error",g)];return V.start().catch(()=>{}),()=>{for(let A of x)A();V.destroy(),a.current=null}},[]);let v=s==="uploading"||s==="checking",S=s==="done",T=S&&e.reason!==void 0&&!e.uploadFailed,M=s==="starting"||s==="idle"?"portrait.starting":s==="captured"?"portrait.taken":s==="uploading"?"portrait.uploading":s==="checking"?"portrait.checking":`portrait.coach.${l?.coach??"no_face"}`,R=(e.report??[]).filter(I=>!I.pass),w=e.reason!==void 0?`reasons.${e.reason}`:null,P=i(()=>{g(null),a.current?.retry()},"retake"),B=i(I=>{let V=l?.criteria.find(N=>N.criterion===I);return V!==void 0&&(V.held||V.waived)},"met"),H=l?.ready||s==="captured"||v?1:$r.filter(B).length/$r.length,b=w!==null&&(s==="gating"||T),E=f.assisted&&m&&(s==="starting"||s==="gating"||s==="error"),F=i(()=>{let I=a.current;I?.switchCamera()===!0&&(g(null),u(null),d({facing:I.facingMode??"user",assisted:!0}))},"switchCamera");return(0,de.jsxs)(Fo,{testId:"sekyro-portrait",video:(0,de.jsx)("video",{ref:r,className:`sekyro-lm-video sekyro-fc-video${f.facing==="environment"?" is-rear":""}`,playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true"}),instruction:o(M),progress:H,closeLabel:o("native.close"),...h!==void 0?{onClose:h}:{},...E?{end:(0,de.jsx)("button",{type:"button",className:"sekyro-glass",onClick:F,"aria-label":o("capture.switchCamera"),"data-testid":"sekyro-portrait-switch",children:(0,de.jsx)(An,{})})}:{},children:[(0,de.jsx)("h2",{ref:y,tabIndex:-1,className:"sekyro-visually-hidden",children:o(e.reason!==void 0?"portrait.retryTitle":"session.steps.portrait.title")}),b||p!==null||S&&(e.uploadFailed||!e.attemptsExhausted)?(0,de.jsxs)("div",{className:"sekyro-fc-panel",children:[b?(0,de.jsxs)(q,{tone:"warning",children:[(0,de.jsx)("span",{children:t.strings[w]!==void 0?o(w):o("portrait.retryTitle")}),R.length>0?(0,de.jsxs)("span",{children:[o("portrait.reportTitle"),": ",R.map(I=>o(`portrait.report.${I.criterion}`)).join(", ")]}):null,(0,de.jsx)("span",{children:tt(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,p!==null?(0,de.jsxs)(q,{tone:"danger",children:[(0,de.jsx)("span",{children:o("portrait.cameraBlocked")}),(0,de.jsx)("span",{children:o("portrait.cameraBlockedHint")}),(0,de.jsx)(L,{kind:"ghost",onClick:P,children:o("portrait.retryCamera")})]}):null,e.uploadFailed&&S?(0,de.jsx)(q,{tone:"danger",children:(0,de.jsx)("span",{children:o("portrait.uploadFailed")})}):null,S&&!e.attemptsExhausted?(0,de.jsx)(L,{full:!0,onClick:P,disabled:v,children:o("portrait.retake")}):null]}):null,(0,de.jsx)("ul",{className:"sekyro-fc-checks","aria-label":o("portrait.checksLabel"),children:$r.map(I=>(0,de.jsxs)("li",{className:B(I)?"is-met":void 0,children:[(0,de.jsx)("span",{className:"sekyro-fc-mark","aria-hidden":"true",children:(0,de.jsx)("svg",{viewBox:"0 0 18 18",children:(0,de.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})}),(0,de.jsx)("span",{children:o(`portrait.criteria.${I}`)}),(0,de.jsx)("span",{className:"sekyro-visually-hidden",children:o(B(I)?"portrait.met":"portrait.notMet")})]},I))})]})}var Qe,de,$r,Xs=C(()=>{"use strict";Qe=require("react");ve();Co();xr();lt();Kr();dt();Ke();de=require("react/jsx-runtime"),$r=["pose","eyes","mouth","lighting","background","resolution"];i(fd,"PortraitCaptureView")});var Bd={};vt(Bd,{DocumentCapture:()=>Ho,EidStep:()=>bo,EmailOtpStep:()=>yo,IdNumberEntry:()=>On,MethodChoice:()=>Oo,NniEntry:()=>Is,PhoneOtpStep:()=>go,PortraitCapture:()=>qo,SekyroFlow:()=>dc,SekyroVerification:()=>Yo,StepI18nProvider:()=>on,VerificationResultScreen:()=>Wo,arSteps:()=>io,enSteps:()=>ao,formatTemplate:()=>qe,frSteps:()=>so,isInAppBrowser:()=>jo,loadSekyroLocale:()=>Xn,resolveSekyroStrings:()=>ur,retakeHintStringKey:()=>no,useStepI18n:()=>ce,useVerificationStep:()=>uo});module.exports=_c(Bd);Jn();Rt();cr();lr();dr();Ne();var Ln=require("react");function uo(e){let[t,n]=(0,Ln.useState)(()=>e?.currentStep?.()??null),[o,r]=(0,Ln.useState)(null);return(0,Ln.useEffect)(()=>{if(e===void 0)return;if(typeof e.run!="function"){r(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let a=!0,s=e.on("step",c=>{a&&n(c)});return e.run().then(c=>{a&&n(l=>l??c)},c=>{a&&r(c)}),()=>{a=!1,s()}},[e]),{step:t,error:o}}i(uo,"useVerificationStep");var xe=require("react");ve();pr();var Lc="AC247 AD376 AE971/0 AF93/0 AG1/1 AI1/1 AL355/0 AM374/0 AO244 AR54/0 AS1/1 AT43/0 AU61/0 AW297 AX358/0 AZ994/0 BA387/0 BB1/1 BD880/0 BE32/0 BF226 BG359/0 BH973 BI257 BJ229 BL590/0 BM1/1 BN673 BO591/0 BQ599 BR55/0 BS1/1 BT975 BW267 BY375/8 BZ501 CA1/1 CC61/0 CD243/0 CF236 CG242 CH41/0 CI225 CK682 CL56 CM237 CN86/0 CO57/0 CR506 CU53/0 CV238 CW599 CX61/0 CY357 CZ420 DE49/0 DJ253 DK45 DM1/1 DO1/1 DZ213/0 EC593/0 EE372 EG20/0 EH212/0 ER291/0 ES34 ET251/0 FI358/0 FJ679 FK500 FM691 FO298 FR33/0 GA241 GB44/0 GD1/1 GE995/0 GF594/0 GG44/0 GH233/0 GI350 GL299 GM220 GN224 GP590/0 GQ240 GR30 GT502 GU1/1 GW245 GY592 HK852 HN504 HR385/0 HT509 HU36/06 ID62/0 IE353/0 IL972/0 IM44/0 IN91/0 IO246 IQ964/0 IR98/0 IS354 IT39 JE44/0 JM1/1 JO962/0 JP81/0 KE254/0 KG996/0 KH855/0 KI686/0 KM269 KN1/1 KP850/0 KR82/0 KW965 KY1/1 KZ7/8 LA856/0 LB961/0 LC1/1 LI423/0 LK94/0 LR231/0 LS266 LT370/0 LU352 LV371 LY218/0 MA212/0 MC377/0 MD373/0 ME382/0 MF590/0 MG261/0 MH692/1 MK389/0 ML223 MM95/0 MN976/0 MO853 MP1/1 MQ596/0 MR222 MS1/1 MT356 MU230 MV960 MW265/0 MX52 MY60/0 MZ258 NA264/0 NC687 NE227 NF672 NG234/0 NI505 NL31/0 NO47 NP977/0 NR674 NU683 NZ64/0 OM968 PA507 PE51/0 PF689 PG675 PH63/0 PK92/0 PL48 PM508/0 PR1/1 PS970/0 PT351 PW680 PY595/0 QA974 RE262/0 RO40/0 RS381/0 RU7/8 RW250/0 SA966/0 SB677 SC248 SD249/0 SE46/0 SG65 SH290 SI386/0 SJ47 SK421/0 SL232/0 SM378 SN221 SO252/0 SR597 SS211/0 ST239 SV503 SX1/1 SY963/0 SZ268 TA290 TC1/1 TD235 TG228 TH66/0 TJ992 TK690 TL670 TM993/8 TN216 TO676 TR90/0 TT1/1 TV688 TW886/0 TZ255/0 UA380/0 UG256/0 US1/1 UY598/0 UZ998 VA39 VC1/1 VE58/0 VG1/1 VI1/1 VN84/0 VU678 WF681 WS685 XK383/0 YE967/0 YT262/0 ZA27/0 ZM260/0 ZW263/0",Ii;function Li(e){return Ii??(Ii=new Map(Lc.split(" ").map(t=>{let[n,o]=t.slice(2).split("/");return[t.slice(0,2),[n,o]]}))),Ii.get(e.toUpperCase())}i(Li,"entryOf");function zi(e){return Li(e)?.[0]}i(zi,"dialCodeOf");function Ti(e){return Li(e)?.[1]}i(Ti,"nationalPrefixOf");Wt();dt();Ne();Ke();ho();var D=require("react/jsx-runtime"),Mi=i((e,t)=>{if(e===void 0)return 0;let n=Date.parse(e)-t;return Number.isFinite(n)?Math.max(0,Math.ceil(n/1e3)):0},"secondsUntil"),Tc=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Rc=["whatsapp","sms"],Ac=new Set(["otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited"]);function Vi(e){let t=e.replace(/[\s-]/g,""),n=t.startsWith("+")?t.slice(1):t;return/^\d{8,15}$/.test(n)?`+${n}`:null}i(Vi,"normalizedPhone");var Pc=i(e=>String.fromCodePoint(...Array.from(e,t=>127397+t.charCodeAt(0))),"flagOf");function Ec(e){let t=[];for(let n of e.phoneCountries??["MR"]){let o=zi(n);o!==void 0&&!t.some(r=>r.code===n)&&t.push({code:n,dial:`+${o}`})}return t}i(Ec,"phoneCountriesOf");function Mc(e,t){if(t===null||!e.startsWith(t.dial))return Vi(e);let n=e.slice(t.dial.length).replace(/\D/g,""),o=Ti(t.code);return o!==void 0&&n.startsWith(o)&&(n=n.slice(o.length)),Vi(t.dial+n)}i(Mc,"e164Of");function Oi(e,t){return t.filter(o=>e.startsWith(o.dial)).sort((o,r)=>r.dial.length-o.dial.length)[0]?.code??t[0]?.code??null}i(Oi,"countryFor");function Vc(e,t){let n=null;try{n=new Intl.DisplayNames([e],{type:"region"})}catch{}return new Map(t.map(o=>[o,n?.of(o)??o]))}i(Vc,"countryLabels");function Oc({id:e,label:t,value:n,onChange:o,placeholder:r,countries:a,country:s,onCountry:c,locale:l,countryLabel:u}){let p=a.find(h=>h.code===s)?.dial??null,g=p===null||n.startsWith("+")&&!n.startsWith(p),f=g?n:n.slice(n.startsWith(p)?p.length:0).trim(),d=(0,xe.useMemo)(()=>Vc(l,a.map(h=>h.code)),[l,a]),m=(0,xe.useRef)(null);(0,xe.useEffect)(()=>{let h=setTimeout(()=>m.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(h)},[]);let y=(0,D.jsxs)("div",{className:"sekyro-phone",dir:"ltr",children:[g||s===null?null:(0,D.jsxs)("span",{className:"sekyro-phone__dial",id:`${e}-dial`,children:[(0,D.jsx)("span",{className:"sekyro-phone__flag","aria-hidden":"true",children:Pc(s)}),p]}),(0,D.jsx)("input",{ref:m,id:e,className:"sekyro-phone__input",type:"tel",dir:"ltr",inputMode:"tel",autoComplete:"tel",...g?{}:{"aria-describedby":`${e}-dial`},placeholder:p===null?"+":r,value:f,onChange:h=>{let v=h.target.value.replace(/[^\d +]/g,"");o(v.startsWith("+")||p===null?v:p+v.replace(/\D/g,""))}})]});return(0,D.jsxs)("div",{className:"sekyro-field",children:[(0,D.jsx)("label",{className:"sekyro-label",htmlFor:e,children:t}),a.length>1?(0,D.jsxs)("div",{className:"sekyro-phone-row",children:[(0,D.jsx)("select",{className:"sekyro-phone__country","aria-label":u,value:s??"",onChange:h=>{let v=a.find(S=>S.code===h.target.value);v!==void 0&&(c(v.code),o(g&&n.startsWith("+")?n:v.dial+f.replace(/\D/g,"")))},children:a.map(h=>(0,D.jsx)("option",{value:h.code,children:`${d.get(h.code)??h.code} (${h.dial})`},h.code))}),y]}):y]})}i(Oc,"PhoneField");function go({step:e,locale:t,strings:n,className:o,defaultPhone:r,onError:a}){let s=ce(t,n),{t:c}=s,l=(0,xe.useMemo)(()=>Ec(e),[e.phoneCountries]),u=r??l[0]?.dial??"",[p,g]=(0,xe.useState)(()=>Oi(u,l)),f=l.map(U=>U.code).join(",");(0,xe.useEffect)(()=>{if(p===null||!l.some(U=>U.code===p)){let U=Oi(u,l);g(U);let X=m.current,ht=l.find(Je=>Je.code===U)?.dial;ht!==void 0&&h(Je=>X!==null&&Je.startsWith(X.dial)?ht+Je.slice(X.dial.length):Je.startsWith("+")?Je:ht)}},[f,u]);let d=l.find(U=>U.code===p)??null,m=(0,xe.useRef)(d);d!==null&&(m.current=d);let[y,h]=(0,xe.useState)(u),[v,S]=(0,xe.useState)(""),[T,M]=(0,xe.useState)(!1),[R,w]=(0,xe.useState)(null),P=e.phase==="verify",B=cn(P),H=(0,xe.useId)(),b=i(async U=>{M(!0),w(null);try{await U()}catch(X){w(Ue(X,s.strings)),a?.(X)}finally{M(!1)}},"run"),E=Rc.filter(U=>(e.channels??[]).includes(U)),F=l.length===0&&!y.trim().startsWith("+")?null:Mc(y,d),I=!e.needsPhone||F!==null,V=i((U,X=!1)=>{b(()=>e.send({...e.needsPhone&&(!X||y!==u)?{phone:F??y}:{},...U!==void 0?{channel:U}:{}}))},"send"),N=i(U=>{b(()=>e.verify(U))},"submitCode"),x=i(U=>{U.preventDefault(),P?N(v):E.length<=1&&I&&V(E[0])},"onSubmit"),A=Mi(e.codeExpiresAt,B),G=Mi(e.resendAvailableAt,B),ae=P&&e.codeExpiresAt!==void 0&&A===0,O=i(U=>c(U==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),[ge,He]=c("otp.sentTo",{channel:O(e.channel)}).split("{number}"),pe=e.reason==="otp_mismatch"?(0,D.jsxs)(q,{tone:"danger",children:[(0,D.jsx)("span",{children:c("otp.reason_otp_mismatch")}),(0,D.jsx)("span",{children:tt(s,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Ac.has(e.reason)?(0,D.jsx)(q,{tone:"warning",children:(0,D.jsx)("span",{children:c(`otp.reason_${e.reason}`)})}):null,K=(0,D.jsxs)(D.Fragment,{children:[pe,R!==null?(0,D.jsx)(q,{tone:"danger",children:(0,D.jsx)("span",{children:c(R)})}):null]});if(P){let U=E.length===0;return(0,D.jsxs)("form",{className:`sekyro-step sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":H,onSubmit:x,noValidate:!0,children:[(0,D.jsx)(Ee,{id:H,title:c("otp.verifyTitle"),lead:(0,D.jsxs)(D.Fragment,{children:[ge,(0,D.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),He]})}),K,(0,D.jsxs)("div",{className:"sekyro-field",children:[(0,D.jsx)("label",{className:"sekyro-label",htmlFor:`${H}-code`,children:c("otp.codeLabel")}),(0,D.jsx)(po,{id:`${H}-code`,value:v,invalid:e.reason==="otp_mismatch",onChange:X=>{S(X),X.length===6&&v.length!==6&&!T&&!e.attemptsExhausted&&N(X)}}),(0,D.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${ae?" is-danger":""}`,"aria-hidden":!ae||void 0,children:ae?c("otp.expired"):c("otp.expiresIn",{time:Tc(A)})})]}),(0,D.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:ae?c("otp.expired"):""}),(0,D.jsxs)(Me,{children:[(0,D.jsx)(L,{type:"submit",full:!0,disabled:T||v.length!==6||e.attemptsExhausted,"aria-busy":T||void 0,children:c("otp.verify")}),U?(0,D.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:T||G>0,onClick:()=>V(void 0,!0),children:G>0?c("otp.resendIn",{seconds:G}):c("otp.resend")}):G>0?(0,D.jsx)("p",{className:"sekyro-resend is-waiting",children:c("otp.resendIn",{seconds:G})}):(0,D.jsx)("div",{className:"sekyro-resend-row",children:E.map(X=>(0,D.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:T,onClick:()=>V(X,!0),children:c("otp.resendBy",{channel:O(X)})},X))})]})]})}return(0,D.jsxs)("form",{className:`sekyro-step sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":H,onSubmit:x,noValidate:!0,children:[(0,D.jsx)(Ee,{id:H,title:c("otp.sendTitle"),lead:c("otp.sendDescription")}),K,e.needsPhone?(0,D.jsx)(Oc,{id:`${H}-phone`,label:c("otp.phoneLabel"),value:y,onChange:h,placeholder:c(p==="MR"?"otp.phonePlaceholder":"otp.phonePlaceholderGeneric"),countries:l,country:p,onCountry:g,locale:s.locale,countryLabel:c("otp.countryLabel")}):(0,D.jsx)("p",{className:"sekyro-text-muted",children:c("otp.prefilledNotice")}),(0,D.jsx)(Me,{children:E.length>0?(0,D.jsxs)("div",{className:"sekyro-actions__group",role:"group","aria-label":c("otp.chooseChannel"),children:[(0,D.jsx)("p",{className:"sekyro-label","aria-hidden":"true",children:c("otp.chooseChannel")}),E.map((U,X)=>(0,D.jsx)(L,{kind:X===0?"primary":"ghost",full:!0,disabled:T||!I,"aria-busy":X===0&&T||void 0,onClick:()=>V(U),children:c("otp.sendBy",{channel:O(U)})},U))]}):(0,D.jsx)(L,{type:"submit",full:!0,disabled:T||!I,"aria-busy":T||void 0,children:c("otp.send")})})]})}i(go,"PhoneOtpStep");var Mt=require("react");ve();var Di=require("react");var fr=class fr extends Di.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};i(fr,"LoadBoundary");var ut=fr;Ne();Ke();var kt=require("react/jsx-runtime"),qc={load:i(()=>Promise.resolve().then(()=>(Wi(),Ui)),"load")};function yo({locale:e,strings:t,...n}){let o=ce(e,t),[r,a]=(0,Mt.useState)(0),s=(0,Mt.useMemo)(()=>(0,Mt.lazy)(()=>qc.load().then(l=>({default:l.EmailOtpView}))),[r]),c=(0,kt.jsxs)(q,{tone:"danger",children:[(0,kt.jsx)("span",{children:o.t("errors.network_error")}),(0,kt.jsx)(L,{kind:"ghost",onClick:()=>a(l=>l+1),children:o.t("common.retry")})]});return(0,kt.jsx)(ut,{fallback:c,children:(0,kt.jsx)(Mt.Suspense,{fallback:(0,kt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:o.t("common.loading")}),children:(0,kt.jsx)(s,{...n,i18n:o})})},r)}i(yo,"EmailOtpStep");var Vt=require("react");ve();Ne();Ke();var bt=require("react/jsx-runtime"),Uc={load:i(()=>Promise.resolve().then(()=>(Qi(),Zi)),"load")};function bo({locale:e,strings:t,...n}){let o=ce(e,t),[r,a]=(0,Vt.useState)(0),s=(0,Vt.useMemo)(()=>(0,Vt.lazy)(()=>Uc.load().then(l=>({default:l.EidView}))),[r]),c=(0,bt.jsxs)(q,{tone:"danger",children:[(0,bt.jsx)("span",{children:o.t("errors.network_error")}),(0,bt.jsx)(L,{kind:"ghost",onClick:()=>a(l=>l+1),children:o.t("common.retry")})]});return(0,bt.jsx)(ut,{fallback:c,children:(0,bt.jsx)(Vt.Suspense,{fallback:(0,bt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:o.t("common.loading")}),children:(0,bt.jsx)(s,{...n,i18n:o})})},r)}i(bo,"EidStep");var xs=require("react");So();br();var Bt=require("react");ve();Ke();var xt=require("react/jsx-runtime"),Wl={load:i(()=>Promise.resolve().then(()=>(Ns(),ws)),"load")};function Ie({view:e,i18n:t,quiet:n,...o}){let[r,a]=(0,Bt.useState)(0),s=(0,Bt.useMemo)(()=>(0,Bt.lazy)(()=>Wl.load().then(l=>({default:l[e]}))),[e,r]),c=(0,xt.jsxs)(q,{tone:"danger",children:[(0,xt.jsx)("span",{children:t.t("errors.network_error")}),(0,xt.jsx)(L,{kind:"ghost",onClick:()=>a(l=>l+1),children:t.t("common.retry")})]});return(0,xt.jsx)(ut,{fallback:c,children:(0,xt.jsx)(Bt.Suspense,{fallback:n===!0?null:(0,xt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:t.t("common.loading")}),children:(0,xt.jsx)(s,{...o,i18n:t})})},r)}i(Ie,"Flow");Nt();Ne();var gn=require("react/jsx-runtime");function Oo({step:e,locale:t,strings:n,className:o,onError:r}){let a=ce(t,n),{busy:s,error:c,run:l}=Zt(a,r),u=(0,xs.useMemo)(()=>e.choice.options.flatMap(g=>{let f=Rn(g,a),d=_o[g.service];return f===null?[]:[{id:g.id,label:f,glyph:d&&(0,gn.jsx)(fe,{name:d})}]}),[e.choice.options,a]),p=e.choice.options.find(g=>g.service==="national_eid");return(0,gn.jsxs)("div",{className:o,children:[(0,gn.jsx)(jt,{title:a.t("method.title"),description:a.t("method.description"),options:u,busy:s,error:c,focus:!0,testId:"sekyro-method",onChoose:g=>l(()=>e.choose(g))}),p?.nationalEid?.afterPass==="continue"?(0,gn.jsx)(Ie,{view:"EidContinueHint",i18n:a,provider:p.nationalEid.providerName,quiet:!0}):null]})}i(Oo,"MethodChoice");var Vn=require("@sekyro/web"),yn=require("react");ve();Wt();dt();Ne();Ke();var se=require("react/jsx-runtime"),Yl=new Set(["nni_not_found","registry_record_not_found"]),jl=new Set(["nni_invalid","id_number_invalid"]);function On({step:e,locale:t,strings:n,className:o,onError:r}){let a=ce(t,n),{t:s}=a,[c,l]=(0,yn.useState)(""),[u,p]=(0,yn.useState)(!1),[g,f]=(0,yn.useState)(null),d=(0,yn.useId)(),m=e.attemptsExhausted,y=i(async B=>{p(!0),f(null);try{await B()}catch(H){f(Ue(H,a.strings)),r?.(H)}finally{p(!1)}},"run"),h=i(B=>{if(B.preventDefault(),e.source!=="typed"){y(()=>e.confirm());return}let H=(0,Vn.normalizeNni)(c);if(!/^\d{10}$/.test(H))return f("population.invalid");if(!(0,Vn.isValidNni)(H))return f("population.reason_id_number_invalid");y(()=>typeof e.submitIdNumber=="function"?e.submitIdNumber(H):e.submitNni(H))},"onSubmit"),v=tt(a,e.attemptsRemaining,m),S=e.reason!==void 0&&Yl.has(e.reason),T=e.reason!==void 0&&jl.has(e.reason),M=(0,se.jsxs)(se.Fragment,{children:[e.reason==="registry_unavailable"?(0,se.jsxs)(q,{tone:"warning",children:[(0,se.jsx)("span",{children:s("population.reason_registry_unavailable")}),(0,se.jsx)("span",{children:v})]}):null,S&&e.canUseDocument?(0,se.jsxs)(q,{tone:"warning",children:[(0,se.jsx)("span",{children:s("population.reason_registry_record_not_found_or_document")}),(0,se.jsx)("span",{children:v}),(0,se.jsx)(L,{kind:"ghost",disabled:u,onClick:()=>{y(()=>e.useDocument())},children:s("population.useDocument")})]}):null,S&&!e.canUseDocument||T?(0,se.jsxs)(q,{tone:"danger",children:[(0,se.jsx)("span",{children:s(S?"population.reason_registry_record_not_found":"population.reason_id_number_invalid")}),(0,se.jsx)("span",{children:v})]}):null,m&&e.reason===void 0?(0,se.jsx)(q,{tone:"danger",children:(0,se.jsx)("span",{children:v})}):null,g!==null?(0,se.jsx)(q,{tone:"danger",children:(0,se.jsx)("span",{children:s(g)})}):null]}),[R,w,P]=e.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:e.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:e.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return(0,se.jsxs)("form",{className:`sekyro-step${o?` ${o}`:""}`,"aria-labelledby":d,onSubmit:h,noValidate:!0,children:[(0,se.jsx)(Ee,{id:d,title:s(R),lead:s(w)}),M,e.source==="typed"?(0,se.jsxs)("div",{className:"sekyro-field",children:[(0,se.jsx)("label",{className:"sekyro-label",htmlFor:`${d}-id-number`,children:s("population.label")}),(0,se.jsx)("input",{id:`${d}-id-number`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:s("population.placeholder"),value:c,"aria-describedby":`${d}-id-number-help`,"aria-invalid":g==="population.invalid"||g==="population.reason_id_number_invalid"||void 0,onChange:B=>{f(null),l((0,Vn.normalizeNni)(B.target.value).replace(/\D/g,"").slice(0,10))}}),(0,se.jsx)("span",{id:`${d}-id-number-help`,className:"sekyro-help",children:s("population.helper")})]}):null,(0,se.jsx)(Me,{children:m?null:(0,se.jsx)(L,{type:"submit",full:!0,disabled:u,"aria-busy":u||void 0,children:s(P)})})]})}i(On,"IdNumberEntry");function Is(e){return On(e)}i(Is,"NniEntry");var kn=require("@sekyro/web"),rt=require("react");ve();var vn=require("@sekyro/web"),Ze=require("react");Nt();dt();var he=require("react/jsx-runtime"),Ls=i(e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),"fold"),Zl=i(e=>String.fromCodePoint(...Array.from(e.toUpperCase(),t=>127397+t.charCodeAt(0))),"flag"),Ql=220;function Xl(e,t,n=[]){let o=null;try{o=new Intl.DisplayNames([e],{type:"region"})}catch{}let r=t.map(c=>({code:c,name:o?.of(c)??c})),a=new Intl.Collator(e),s=i(c=>{let l=n.indexOf(c);return l<0?n.length:l},"rank");return r.sort((c,l)=>s(c.code)-s(l.code)||a.compare(c.name,l.name))}i(Xl,"countryNames");function zs({step:e,i18n:t,issuer:n,onPicked:o}){let{t:r,locale:a}=t,s=(0,Ze.useMemo)(()=>(0,vn.acceptedIssuers)(e.documents),[e.documents]),c=(0,Ze.useMemo)(()=>Xl(a,s,Object.keys(e.documents.byIssuer??{})),[a,s,e.documents]),l=s.length===1?s[0]:null,[u,p]=(0,Ze.useState)(n??l),[g,f]=(0,Ze.useState)(""),[d,m]=(0,Ze.useState)(null),y=(0,Ze.useId)(),h=l===null?[]:(0,vn.acceptedTypesFor)(e.documents,l),v=l!==null&&h.length===1?h[0]:null;(0,Ze.useEffect)(()=>{l!==null&&v!==null&&e.selectDocument(l,v)},[l,v]);let S=i((R,w)=>{e.selectDocument(R,w),o?.()},"pick"),T=i(R=>{let w=(0,vn.acceptedTypesFor)(e.documents,R);w.length===1?S(R,w[0]):p(R)},"chooseIssuer");if((0,Ze.useEffect)(()=>{if(d===null||u===null)return;let R=setTimeout(()=>S(u,d),Ql);return()=>clearTimeout(R)},[d]),v!==null)return null;if(u===null){let R=Ls(g.trim()),w=R===""?c:c.filter(P=>Ls(P.name).includes(R)||P.code.toLowerCase()===R);return(0,he.jsxs)("section",{className:"sekyro-step",children:[(0,he.jsx)(Ee,{title:r("doc.countryTitle"),lead:r("doc.pickDescription")}),(0,he.jsxs)("div",{className:"sekyro-field",children:[(0,he.jsx)("label",{className:"sekyro-label",htmlFor:y,children:r("doc.countryLabel")}),(0,he.jsx)("input",{id:y,type:"search",className:"sekyro-input",placeholder:r("doc.countrySearch"),value:g,onChange:P=>f(P.target.value)})]}),w.length===0?(0,he.jsx)("p",{className:"sekyro-text-muted",children:r("doc.noCountryMatch")}):(0,he.jsx)("ul",{className:"sekyro-rows",children:w.map(P=>(0,he.jsx)("li",{children:(0,he.jsxs)("button",{type:"button",className:"sekyro-row-btn",onClick:()=>T(P.code),children:[(0,he.jsx)("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:Zl(P.code)}),P.name]})},P.code))}),(0,he.jsx)(Me,{children:null})]})}let M=(0,vn.acceptedTypesFor)(e.documents,u);return(0,he.jsxs)("section",{className:"sekyro-step",children:[(0,he.jsx)(Ee,{title:r("doc.pickTitle"),lead:r("native.doc.holdIt")}),(0,he.jsx)("div",{className:"sekyro-choices",children:M.map(R=>(0,he.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":d===R,disabled:d!==null&&d!==R,onClick:()=>m(R),children:[(0,he.jsx)(fe,{name:R==="passport"?"passport":"card"}),(0,he.jsxs)("span",{className:"sekyro-card__body",children:[(0,he.jsx)("span",{className:"sekyro-card__title",children:r(`doc.type.${R}`)}),(0,he.jsx)("span",{className:"sekyro-card__sub",children:r(`doc.sub.${R}`)})]}),(0,he.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},R))}),s.length>1?(0,he.jsx)("button",{type:"button",className:"sekyro-link",onClick:()=>{p(null),m(null)},children:r("native.doc.changeCountry")}):null,(0,he.jsx)(Me,{children:null})]})}i(zs,"DocumentPicker");Ne();Ke();var ot=require("react/jsx-runtime"),ud={load:i(()=>Promise.resolve().then(()=>(Zs(),js)),"load")};function Ho({step:e,locale:t,strings:n,className:o,liveMrz:r}){let a=ce(t,n),[s,c]=(0,rt.useState)(0),[l,u]=(0,rt.useState)(null),p=(0,kn.acceptedIssuers)(e.documents).length>1,g=e.issuer!==null&&(0,kn.acceptedTypesFor)(e.documents,e.issuer).length>1,f=(0,rt.useMemo)(()=>(0,rt.lazy)(()=>ud.load().then(m=>({default:m.DocumentCaptureView}))),[s]);(0,rt.useEffect)(()=>{(0,kn.warmDocumentCapture)()},[]);let d=(0,ot.jsxs)(q,{tone:"danger",children:[(0,ot.jsx)("span",{children:a.t("errors.network_error")}),(0,ot.jsx)(L,{kind:"ghost",onClick:()=>c(m=>m+1),children:a.t("doc.retryCamera")})]});return(0,ot.jsx)("div",{className:o,children:e.documentType===null||e.issuer===null||l!==null?(0,ot.jsx)(zs,{step:e,i18n:a,...l==="document"&&e.issuer!==null?{issuer:e.issuer}:{},onPicked:()=>u(null)}):(0,ot.jsx)(ut,{fallback:d,children:(0,ot.jsx)(rt.Suspense,{fallback:(0,ot.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,ot.jsx)(f,{step:e,i18n:a,liveMrz:r,...p?{onChangeCountry:i(()=>u("country"),"onChangeCountry")}:{},...g?{onChangeDocument:i(()=>u("document"),"onChangeDocument")}:{}})})},s)})}i(Ho,"DocumentCapture");var Js=require("@sekyro/web"),Xe=require("react");ve();lt();Ne();Ke();var _e=require("react/jsx-runtime"),hd={load:i(()=>Promise.resolve().then(()=>(Xs(),Qs)),"load")},Ur=class Ur extends Xe.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};i(Ur,"LoadBoundary");var Gr=Ur;function gd({step:e,i18n:t}){let{t:n}=t,o=be();return(0,_e.jsxs)("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[(0,_e.jsx)("h2",{ref:o,tabIndex:-1,className:"sekyro-text-body",children:n(e.review?"portrait.reviewTitle":"session.steps.portrait.title")}),e.review?(0,_e.jsx)("p",{className:"sekyro-text-muted",children:n("portrait.reviewDescription")}):null,e.uploadFailed?(0,_e.jsxs)(q,{tone:"danger",children:[(0,_e.jsx)("span",{children:n("portrait.uploadFailed")}),(0,_e.jsx)(L,{kind:"ghost",onClick:()=>{e.resubmit()},children:n("portrait.sendAgain")})]}):(0,_e.jsx)("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:n("portrait.matching")})]})}i(gd,"MatchPhase");function qo({step:e,locale:t,strings:n,className:o,assetBaseUrl:r}){let a=ce(t,n),[s,c]=(0,Xe.useState)(0),l=(0,Xe.useMemo)(()=>(0,Xe.lazy)(()=>hd.load().then(p=>({default:p.PortraitCaptureView}))),[s]);if((0,Xe.useEffect)(()=>{e.phase==="capture"&&(0,Js.warmPortraitCapture)()},[e.phase]),e.phase==="match")return(0,_e.jsx)("div",{className:o,children:(0,_e.jsx)(gd,{step:e,i18n:a})});let u=(0,_e.jsxs)(q,{tone:"danger",children:[(0,_e.jsx)("span",{children:a.t("errors.network_error")}),(0,_e.jsx)(L,{kind:"ghost",onClick:()=>c(p=>p+1),children:a.t("portrait.retryCamera")})]});return(0,_e.jsx)("div",{className:o,children:(0,_e.jsx)(Gr,{fallback:u,children:(0,_e.jsx)(Xe.Suspense,{fallback:(0,_e.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,_e.jsx)(l,{step:e,i18n:a,...r!==void 0?{assetBaseUrl:r}:{}})})},s)})}i(qo,"PortraitCapture");var lc=require("@sekyro/web"),Se=require("react");ve();Co();Cr();var Le={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};Ar();_r();sn();Rt();lt();var ec=require("react/jsx-runtime"),Bn={colors:{...Le.light},radius:Le.radiusLg,fontFamily:Le.font},Wr={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function yd(e={}){let t={};for(let n of Object.keys(Wr))t[Wr[n]]=e.colors?.[n]??Bn.colors[n];return t["--sekyro-radius"]=e.radius??Bn.radius,t["--sekyro-font"]=e.fontFamily??Bn.fontFamily,t}i(yd,"themeToCssVars");var vd=/^#[0-9a-f]{6}$/i,kd={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},bd={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function Ko(e){let t={};if(!e)return t;let n={};for(let[a,s]of Object.entries(e.colors??{}))a in Wr&&a!=="ring"&&vd.test(s??"")&&(n[a]=s);n.brand&&(n.ring=n.brand),Object.keys(n).length&&(t.colors=n);let o=kd[e.radius];o&&(t.radius=o);let r=bd[e.fontFamily];return r!==void 0&&(t.fontFamily=r?`${r}, ${Bn.fontFamily}`:Bn.fontFamily),t}i(Ko,"brandingToTheme");function $o(...e){let t={};for(let n of e)n?.colors&&(t.colors={...t.colors,...n.colors}),n?.radius&&(t.radius=n.radius),n?.fontFamily&&(t.fontFamily=n.fontFamily);return t}i($o,"mergeThemes");function Go({theme:e,children:t,className:n}){let o=yd(e);return(0,ec.jsx)("div",{className:n===void 0?"sekyro-root":`sekyro-root ${n}`,style:o,children:t})}i(Go,"SekyroThemeProvider");var Uo=require("react");var Ft=require("react/jsx-runtime"),Sd=["intro","data","processing","sharing","retention"];function tc({i18n:e,purpose:t="identity"}){let{t:n}=e,[o,r]=(0,Uo.useState)(!1),a=(0,Uo.useId)(),[s,c=""]=n("consent.short").split("{terms}");return(0,Ft.jsxs)("section",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-consent",children:[(0,Ft.jsxs)("p",{className:"sekyro-text-muted",children:[s,(0,Ft.jsx)("button",{type:"button",className:"sekyro-link","aria-expanded":o,"aria-controls":a,onClick:()=>r(l=>!l),children:n("consent.termsLink")}),c]}),(0,Ft.jsx)("div",{id:a,hidden:!o,className:"sekyro-stack sekyro-stack--1 sekyro-text-muted","data-testid":"sekyro-consent-terms",children:t==="human"?(0,Ft.jsx)(Ie,{view:"HumanConsentTerms",i18n:e,quiet:!0}):Sd.map(l=>(0,Ft.jsx)("p",{children:n(`consent.terms.${l}`)},l))})]})}i(tc,"ConsentNotice");Wt();Kr();Pr();Nt();function nc(e){let t=e.trim().split(/\s+/).filter(o=>o!=="");return(t.length>=2?[t[0],t[1]].map(o=>Array.from(o??"")[0]??""):Array.from(t[0]??"").slice(0,2)).join("").toUpperCase()}i(nc,"initials");dt();var rc=require("react");var ic=i(e=>({colors:{...e?Le.dark:Le.light},radius:Le.radiusLg,fontFamily:Le.font}),"brandTheme"),Zg=ic(!1);function ac(e,t,n){let o=Ko(e);if(n&&o.colors!==void 0){let{brand:r,brandFg:a}=o.colors;r!==void 0&&Nd(r,Le.dark.bg)>=3?o.colors={brand:r,ring:r,...a!==void 0?{brandFg:a}:{}}:delete o.colors}return $o(ic(n),o,t)}i(ac,"verificationTheme");function sc(e){let t=(0,rc.useSyncExternalStore)(wd,Cd,()=>!1);return e==="dark"||e==="system"&&t}i(sc,"useDarkScheme");var _d="(prefers-color-scheme: dark)",cc=i(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(_d):null,"media"),Cd=i(()=>cc()?.matches??!1,"prefersDark");function wd(e){let t=cc();return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}i(wd,"subscribe");function Nd(e,t){let[n,o]=[oc(e),oc(t)];return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}i(Nd,"contrast");function oc(e){let t=[1,3,5].map(n=>{let o=Number.parseInt(e.slice(n,n+2),16)/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4});return .2126*(t[0]??0)+.7152*(t[1]??0)+.0722*(t[2]??0)}i(oc,"luminance");Ne();var Sn=require("react");Rt();In();lt();ve();Nt();Ne();var Ce=require("react/jsx-runtime"),xd=new Set(["document_id_number_mismatch","name_mismatch","birth_date_mismatch"]),Id={approved:"M6.5 12.5l3.6 3.6 7.4-8.2",review:"M12 7v5l3.2 2",expired:"M8 5h8M8 19h8M9 5c0 4 6 5 6 7s-6 3-6 7M15 5c0 4-6 5-6 7s6 3 6 7",rejected:"M8 8l8 8M16 8l-8 8"};function Ld({outcome:e}){return(0,Ce.jsxs)("svg",{className:`sekyro-outcome sekyro-outcome--${e}`,viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[(0,Ce.jsx)("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"57",pathLength:"1"}),(0,Ce.jsx)("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),(0,Ce.jsx)("path",{className:"sekyro-outcome__glyph",d:Id[e],pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]})}i(Ld,"OutcomeMark");function zd({label:e,id:t,copied:n}){let[o,r]=(0,Sn.useState)(!1);return(0,Sn.useEffect)(()=>{if(!o)return;let a=setTimeout(()=>r(!1),1600);return()=>clearTimeout(a)},[o]),(0,Ce.jsxs)("button",{type:"button",className:`sekyro-reference${o?" is-copied":""}`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>r(!0),()=>{})},children:[(0,Ce.jsx)("span",{"aria-live":"polite",children:o?n:e}),(0,Ce.jsx)("bdi",{dir:"ltr",children:t}),(0,Ce.jsx)(fe,{name:"copy"})]})}i(zd,"ReferenceLine");function Wo({step:e,locale:t,strings:n,className:o,onClose:r}){let a=ce(t,n),{t:s}=a,c=(0,Sn.useId)(),l=be(),u=e.context.orgName,p=e.display==="approved"?"approved":e.display==="review"?"review":e.display==="expired"?"expired":"rejected",g;switch(e.display){case"policy_stop":{let f=e.failureReason??"";if(xd.has(eo(f)))g=s("session.result.detailsMismatch",{org:u});else if(f==="device_velocity_exceeded")g=s("session.result.deviceVelocity",{org:u});else if(f==="capture_tampered")g=s("session.result.deviceStop");else if(f==="camera_unavailable")g=s("reasons.camera_unavailable",{org:u});else{let d=nn(f);g=d!==null?s(d,{org:u}):s("session.result.rejected.description")}break}case"cooldown":{let f=oo(a.locale,e.retryAfter);g=f!==null?s(f.key,{time:f.time}):s("reasons.device_cooldown");break}case"platform_unsupported":g=s("result.platform_unsupported");break;case"attempts_exhausted":g=s("common.noAttemptsLeft");break;default:g=u!==""?s(`native.result.${p}`,{org:u}):s(`session.result.${p}.description`)}return(0,Ce.jsxs)("section",{className:`sekyro-result${o?` ${o}`:""}`,"aria-labelledby":c,"data-testid":"sekyro-result",children:[(0,Ce.jsxs)("div",{className:"sekyro-result__body",children:[(0,Ce.jsx)(Ld,{outcome:e.display==="cooldown"?"review":p}),(0,Ce.jsxs)("div",{className:"sekyro-heading",children:[(0,Ce.jsx)("h2",{id:c,ref:l,tabIndex:-1,className:"sekyro-text-body",children:s(`session.result.${p}.title`)}),(0,Ce.jsx)("p",{className:"sekyro-text-muted",children:g})]}),(0,Ce.jsx)(zd,{label:s("result.referenceLabel"),id:e.context.sessionId,copied:s("native.result.copied")})]}),r!==void 0?(0,Ce.jsx)("div",{className:"sekyro-actions",children:(0,Ce.jsx)(L,{full:!0,onClick:r,children:u!==""?s("native.result.back",{org:u}):s("native.close")})}):null]})}i(Wo,"VerificationResultScreen");var _=require("react/jsx-runtime");function Td(e,t){let n=t?Le.dark:Le.light,o=t?Le.roles.dark:Le.roles.light,r=e.colors??{},a={},s=r.fg===n.fg&&r.surface===n.surface;return r.brand===n.brand&&r.surface===n.surface&&(a["--sekyro-color-brand-soft"]=o.brandSoft),s&&(a["--sekyro-color-line"]=o.line,a["--sekyro-color-line-subtle"]=o.lineSubtle,a["--sekyro-color-line-strong"]=o.lineStrong,a["--sekyro-color-sunken"]=o.sunken),r.fgMuted===n.fgMuted&&r.surface===n.surface&&(a["--sekyro-color-fg-subtle"]=o.fgSubtle),e.fontFamily===Le.font&&(a["--sekyro-font-display"]=Le.fontDisplay),a}i(Td,"flowRoles");function Yo(e){let{verification:t,locale:n,strings:o,onStep:r,onResult:a}=e,{step:s,error:c}=uo(t);(0,Se.useEffect)(()=>{s!==null&&r?.(s)},[s,r]),(0,Se.useEffect)(()=>a===void 0?void 0:t.on("result",a),[t,a]);let l=sc(e.colorScheme??"light"),u=ac(s?.context.branding,e.theme,l),[p,g]=(0,Se.useState)(!1),f=`sekyro-verification${l?" sekyro-verification--dark":""}${p?" is-immersive":""}${e.className!==void 0?` ${e.className}`:""}`,d=(0,Se.useRef)(e.onClose);d.current=e.onClose;let m=(0,Se.useRef)(s);m.current=s;let y=(0,Se.useCallback)(()=>{let h=m.current;d.current?.(h?.kind==="result"?{reason:"finished",result:h.result}:{reason:"cancelled"})},[]);return(0,_.jsx)(Go,{theme:u,className:f,children:(0,_.jsx)(on,{locale:n,...o!==void 0?{strings:o}:{},children:(0,_.jsx)("div",{dir:e.dir??(n==="ar"?"rtl":"ltr"),lang:n,className:"sekyro-flow",style:Td(u,l),children:(0,_.jsx)(mr.Provider,{value:g,children:(0,_.jsx)(an.Provider,{value:e.onClose!==void 0?y:void 0,children:(0,_.jsx)(Pd,{...e,step:s,error:c,immersive:p})})})})})})}i(Yo,"SekyroVerification");function Rd(e,t){if(t===void 0)return null;let n=e,o=n[`session.processing.${t}.title`],r=n[`session.processing.${t}.description`];return typeof o=="string"&&o!==""&&typeof r=="string"&&r!==""?{title:o,description:r}:null}i(Rd,"processingCopyOf");function Ad({error:e,retry:t}){let{t:n}=ce(),o=be();return(0,_.jsxs)(we,{tone:"danger",testId:"sekyro-error-notice",children:[(0,_.jsx)("span",{children:n(tn(e.kind))}),e.retryable?(0,_.jsx)(L,{ref:o,kind:"ghost",className:"sekyro-btn--start",onClick:t,children:n("common.retry")}):null]})}i(Ad,"CameraErrorNotice");function Pd(e){let{step:t,error:n,slots:o,immersive:r}=e,a=ce(),{t:s}=a,[c,l]=(0,Se.useState)(!1),[u,p]=(0,Se.useState)(0),[g,f]=(0,Se.useState)(null),d=t?.context.purpose??"identity",m=e.verification,y=d==="human"||t?.context.cameraUnavailableHandled===!0,h=m.reportCameraUnavailable!==void 0&&y?N=>m.reportCameraUnavailable?.(N)??Promise.resolve():void 0,v=t?.kind==="liveness"&&t.mode==="liveness"&&t.reason===void 0&&!t.attemptsExhausted,S=e.handoffUrl,T=(0,Se.useCallback)((N,x)=>h===void 0?void 0:(0,_.jsx)(Ie,{view:"NoCameraView",i18n:a,quiet:!0,cause:x,onRetry:N,...v?{onContinue:h}:{},...S!==void 0?{handoffUrl:S}:{}}),[a,m,y,v,S]),M=(0,Se.useCallback)((N,x)=>(0,_.jsx)(Vo,{start:N,context:x,human:d==="human",extra:x.canChooseFacing&&(0,_.jsx)(Io,{value:x.facing,onChange:x.setFacing}),notice:x.permissionSettled&&x.permission==="denied"?T(N,"denied"):void 0}),[d,T]),R=(0,Se.useCallback)((N,x)=>{let A=(0,lc.cameraUnavailableCauseOf)(N.kind);return(A!==void 0?T(x,A):void 0)??(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ad,{error:N,retry:x}),A!==void 0&&S!==void 0?(0,_.jsx)(Ie,{view:"DesktopHandoffView",i18n:a,quiet:!0,url:S}):null]})},[T,S,a]),w=(0,Se.useRef)(""),P=e.livenessProps?.slots?.stageOverlay,B=(0,Se.useCallback)(N=>(N.guidance!==""&&!N.coached&&(w.current=N.guidance),(0,_.jsx)(Fo,{testId:"sekyro-capture-stage",video:(0,_.jsx)("video",{ref:N.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:N.guidance!==""?N.guidance:w.current,note:N.note,busy:N.settled,progress:N.phase==="seeking"||N.phase==="aligning"?N.progress:1,still:N.still,live:N.live,closeLabel:s("native.close"),overlay:P?.(N.videoRef),ramp:N.ramp?.colour??null,...N.settled?{}:{onClose:i(()=>p(x=>x+1),"onClose")},end:N.switchCamera&&(0,_.jsx)("button",{type:"button",className:"sekyro-glass",onClick:N.switchCamera,"aria-label":s("capture.switchCamera"),children:(0,_.jsx)(An,{})})})),[s,P]),H=(0,Se.useId)();if(n!==null)return(0,_.jsx)(we,{tone:"danger",children:(0,_.jsx)("span",{children:s(Ue(n,a.strings))})});if(t===null)return(0,_.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:s("common.loading")});let{context:b}=t,E=i(N=>{l(!0),N().finally(()=>l(!1))},"refresh"),F=o?.header??(0,_.jsx)(Md,{context:b,headerId:H,end:o?.headerEnd}),I,V=g===t.key&&t.context.switchable!==void 0;if(V)I=(0,_.jsx)(Ie,{view:"LaneChoiceView",i18n:a,step:t,onClose:()=>f(null)});else switch(t.kind){case"phone_otp":I=(0,_.jsx)(go,{step:t});break;case"email_otp":I=(0,_.jsx)(yo,{step:t});break;case"method":I=(0,_.jsx)(Oo,{step:t});break;case"registry":I=(0,_.jsx)(On,{step:t});break;case"document":I=(0,_.jsx)(Ho,{step:t,...e.documentLiveMrz!==void 0?{liveMrz:e.documentLiveMrz}:{}});break;case"liveness":{let N=e.livenessProps?.slots?.intro,x={...e.livenessProps??{},slots:{...e.livenessProps?.slots,intro:N??M,...N===void 0&&e.livenessProps?.slots?.errorPanel===void 0?{errorPanel:R}:{}},...u>0?{autoStart:!1}:{},verification:e.verification,locale:e.locale,dir:e.dir,strings:a.strings,assetBaseUrl:e.assetBaseUrl,voice:e.voice,onCaptured:e.onLivenessCaptured};I=(0,_.jsx)(xo.Provider,{value:B,children:t.instructions==="icao"||t.livePhoto?.icao===!0?(0,_.jsx)(Ie,{view:"LivePhotoLiveness",i18n:a,step:t,livenessProps:x,sekyroIntro:N===void 0},u):(0,_.jsx)(Mo,{...x},u)});break}case"portrait":I=(0,_.jsxs)(_.Fragment,{children:[t.retakeOnly?(0,_.jsx)(Ie,{view:"PortraitRetakeNotice",i18n:a,quiet:!0}):null,(0,_.jsx)(qo,{step:t,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{}})]});break;case"contact_choice":I=(0,_.jsx)(Ie,{view:"ContactChoiceView",i18n:a,step:t});break;case"choice":I=(0,_.jsx)(Ie,{view:"GenericChoiceView",i18n:a,step:t});break;case"identity_summary":I=(0,_.jsx)(Ie,{view:"IdentitySummaryView",i18n:a,step:t});break;case"mobile_required":I=e.handoffUrl!==void 0?(0,_.jsx)(Ie,{view:"HandoffView",i18n:a,url:e.handoffUrl,refresh:t.refresh}):(0,_.jsxs)(we,{tone:"info",children:[(0,_.jsx)("strong",{children:s("handoff.title")}),(0,_.jsx)("span",{children:s("reasons.mobile_required")}),(0,_.jsx)(L,{kind:"ghost",disabled:c,onClick:()=>E(t.refresh),children:s("common.refresh")})]});break;case"processing":{let N=Rd(a.strings,t.service);I=(0,_.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",role:"status","aria-live":"polite",children:[(0,_.jsx)("h2",{className:"sekyro-text-body",children:N?.title??s("session.processing.title")}),(0,_.jsx)("p",{className:"sekyro-text-muted",children:N?.description??s("session.processing.description")}),t.stalled?(0,_.jsx)(L,{kind:"ghost",disabled:c,onClick:()=>E(t.refresh),children:s("common.refresh")}):null]});break}case"eid":I=(0,_.jsx)(bo,{step:t});break;case"unsupported":{let N=t.reason==="platform_unsupported";I=(0,_.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",children:[(0,_.jsx)("h2",{className:"sekyro-text-body",children:s(N?"needsApp.title":"unsupported.title")}),(0,_.jsx)("p",{children:N?b.orgName!==""?s("needsApp.description",{org:b.orgName}):s("needsApp.descriptionNoOrg"):s("unsupported.description",{org:b.orgName})})]});break}case"result":I=o?.result?.(t)??(0,_.jsx)(Ed,{step:t});break;default:{let N=t;I=null}}return(0,_.jsxs)(_.Fragment,{children:[r?null:F,!r&&t.kind!=="result"&&b.sections.length>1?(0,_.jsx)(Vd,{context:b,current:t.section,i18n:a}):null,!r&&!b.consentRecorded&&t.kind!=="result"?(0,_.jsx)(tc,{i18n:a,purpose:b.purpose}):null,(0,_.jsx)(Ai,{pageKey:t.key,children:I}),!r&&!V&&t.kind!=="result"&&t.context.switchable!==void 0?(0,_.jsx)(Ie,{view:"LaneSwitch",i18n:a,step:t,onOpen:()=>f(t.key),quiet:!0},t.key):null,r?null:o?.footer!==void 0?o.footer:b.branding?.hideAttribution===!0?null:(0,_.jsxs)("a",{className:"sekyro-footer",href:"https://sekyro.ai",target:"_blank",rel:"noopener noreferrer",children:[(0,_.jsx)(fe,{name:"lock"}),s("shell.verifiedBy")]})]})}i(Pd,"Body");function Ed({step:e}){return(0,_.jsx)(an.Consumer,{children:t=>(0,_.jsx)(Wo,{step:e,...t!==void 0?{onClose:t}:{}})})}i(Ed,"ResultPage");function Md({context:e,headerId:t,end:n}){let{t:o}=ce(),[r,a]=(0,Se.useState)(!1),s=r?void 0:e.branding?.logoUrl,c=e.orgName!==""?e.orgName:o(e.returning?"returning.title":"session.title");return(0,_.jsxs)("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":t,children:[(0,_.jsxs)("div",{className:"sekyro-org",children:[(0,_.jsx)("span",{className:"sekyro-org__tile","aria-hidden":"true",children:s!==void 0?(0,_.jsx)("img",{className:"sekyro-org__logo",src:s,alt:"",onError:()=>a(!0)}):nc(e.orgName)}),(0,_.jsxs)("div",{className:"sekyro-org__text",children:[(0,_.jsx)("h1",{id:t,className:"sekyro-org__name",children:c}),(0,_.jsx)("p",{className:"sekyro-org__sub",children:o(e.purpose==="human"?"shell.subtitleHuman":"shell.subtitle")})]}),n!=null?(0,_.jsx)("div",{className:"sekyro-org__end",children:n}):null,(0,_.jsx)(an.Consumer,{children:l=>l!==void 0?(0,_.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":o("native.close"),onClick:l,children:(0,_.jsx)(fe,{name:"close"})}):null})]}),e.returning?(0,_.jsx)("p",{className:"sekyro-text-muted",children:o("returning.description")}):null]})}i(Md,"OrgHeader");function Vd({context:e,current:t,i18n:n}){let o=t===null?-1:e.sections.indexOf(t),r=e.progress,a=r!==void 0&&r.length===e.sections.length?r:e.sections.map((s,c)=>({id:s,state:c<o?"done":c===o?"current":"upcoming"}));return(0,_.jsx)("ol",{className:"sekyro-progress__bars","aria-label":n.t("session.progressLabel"),children:a.map(({id:s,state:c})=>(0,_.jsx)("li",{className:`sekyro-progress__bar${c==="done"?" is-done":c==="current"?" is-current":""}`,...c==="current"?{"aria-current":"step"}:{},children:(0,_.jsx)("span",{className:"sekyro-visually-hidden",children:n.strings[`section.${s}`]??s})},s))})}i(Vd,"SectionProgress");var Fn=require("react");var Od=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function jo(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));return Od.test(t)}i(jo,"isInAppBrowser");Ne();var Xt=require("react/jsx-runtime");function Dd(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}i(Dd,"pageUrl");function dc({hostedUrl:e,inAppBrowser:t,...n}){let[o,r]=(0,Fn.useState)(t===!0);(0,Fn.useEffect)(()=>{t===void 0&&jo()&&r(!0)},[t]);let[a,s]=(0,Fn.useState)(!1),c=n.handoffUrl??e??Dd();return o&&!a?(0,Xt.jsx)(Go,{theme:$o(Ko(void 0),n.theme),...n.className!==void 0?{className:n.className}:{},children:(0,Xt.jsx)(on,{locale:n.locale,...n.strings!==void 0?{strings:n.strings}:{},children:(0,Xt.jsx)("div",{dir:n.dir??(n.locale==="ar"?"rtl":"ltr"),lang:n.locale,className:"sekyro-stack sekyro-stack--4",children:(0,Xt.jsx)(Hd,{url:c,onContinue:()=>s(!0)})})})}):(0,Xt.jsx)(Yo,{...n,...c!==""?{handoffUrl:c}:{}})}i(dc,"SekyroFlow");function Hd({url:e,onContinue:t}){let n=ce();return(0,Xt.jsx)(Ie,{view:"InAppBrowserPrompt",i18n:n,url:e,onContinue:t})}i(Hd,"Prompt");
|
|
2
|
+
"use strict";var eo=Object.defineProperty;var Oc=Object.getOwnPropertyDescriptor;var Dc=Object.getOwnPropertyNames;var Hc=Object.prototype.hasOwnProperty;var i=(e,t)=>eo(e,"name",{value:t,configurable:!0});var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var wt=(e,t)=>{for(var n in t)eo(e,n,{get:t[n],enumerable:!0})},Bc=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Dc(t))!Hc.call(e,r)&&r!==n&&eo(e,r,{get:()=>t[r],enumerable:!(o=Oc(t,r))||o.enumerable});return e};var Fc=e=>Bc(eo({},"__esModule",{value:!0}),e);var hi={};wt(hi,{overlay:()=>qc});var qc,gi=w(()=>{"use strict";qc={"capture.attemptsRemaining.one":"Queda {count} intento","capture.attemptsRemaining.other":"Quedan {count} intentos","capture.cameraOff":"Cámara apagada","capture.checking":"Estamos verificando su identidad…","capture.checkingHint":"Suele tardar unos segundos. Mantenga esta página abierta","capture.noCamera.body":"Permita el acceso a la cámara e inténtelo de nuevo, o continúe en un teléfono con cámara.","capture.noCamera.continue":"Continuar sin cámara","capture.noCamera.deniedBody":"Su navegador bloqueó la cámara para esta página. Permítala en la configuración del sitio y vuelva a intentarlo.","capture.noCamera.deniedTitle":"Permita el acceso a la cámara para continuar","capture.noCamera.title":"Este paso necesita una cámara","capture.permission.denied":"El acceso a la cámara está bloqueado. Permítalo en la configuración del navegador (el icono de la cámara en la barra de direcciones) y vuelva a cargar esta página","capture.permission.granted":"Acceso a la cámara permitido","capture.permission.prompt":"Su navegador le pedirá usar la cámara. Elija Permitir","capture.permission.unknown":"Le pediremos usar la cámara cuando empiece","capture.preparing.hint":"Configurando la detección facial en el dispositivo. Puede tardar un poco con una conexión lenta","capture.preparing.title":"Preparando la captura segura…","capture.retryCoaching.eyeLevel":"Sostenga el teléfono a la altura de los ojos","capture.retryCoaching.head":"Mire directamente a la cámara y mantenga la cabeza recta","capture.retryCoaching.light":"Busque buena luz. Luz sobre su rostro, no detrás de usted","capture.retryCoaching.title":"Ese intento no funcionó. Estos ajustes le ayudarán:","capture.securityNote":"Sus imágenes se cifran y se usan solo para esta verificación","capture.start":"Activar la cámara","capture.tips.eyeLevel":"Sostenga el teléfono a la altura de los ojos","capture.tips.light":"Colóquese frente a una fuente de luz. Evite una luz fuerte detrás de usted","capture.tips.listen":"Escuchar las instrucciones","capture.tips.stop":"Detener","capture.tips.straight":"Mire directamente a la cámara y no se mueva","capture.tips.summary":"Colóquese en un lugar bien iluminado. Descubra su rostro: sin gafas ni mascarilla. Cuando se active la cámara, sostenga el teléfono a la altura de los ojos, mire directamente a la cámara y no se mueva.","capture.tips.title":"Para que la verificación salga bien:","capture.tips.uncover":"Descubra su rostro: sin gafas, mascarilla ni manos delante","common.loading":"Cargando su sesión de verificación","common.noAttemptsLeft":"No quedan intentos","common.refresh":"Actualizar estado","common.retry":"Intentar de nuevo","consent.human.terms.data":"Sekyro AI recoge una breve captura de su rostro.","consent.human.terms.intro":"Sekyro AI confirma que una persona real está completando este paso, en nombre de la organización que lo solicitó.","consent.human.terms.processing":"La captura se analiza para confirmar que usted es una persona real y presente. Puede compararse con rostros ya verificados para esta organización.","consent.human.terms.retention":"Sus datos se almacenan cifrados y se conservan solo el tiempo que exigen la ley y la configuración de la organización. Para ejercer sus derechos de protección de datos, contacte con la organización que solicitó esta verificación.","consent.human.terms.sharing":"La organización que solicitó esta verificación conoce su resultado.","consent.short":"Al continuar, acepta las {terms}.","consent.termsLink":"condiciones","contact.description":"Elija una opción.","contact.email":"Por correo electrónico","contact.phone":"Por teléfono (WhatsApp o SMS)","contact.switch":"Usar otra opción","contact.title":"¿Cómo quiere recibir su código?","cooldown.retryAt":"Demasiados intentos. Inténtelo de nuevo a partir de {time}.","cooldown.retryIn":"Demasiados intentos. Inténtelo de nuevo {time}.","emailOtp.codeHelper":"Introduzca el código de 6 dígitos del correo","emailOtp.codeLabel":"Código de verificación","emailOtp.emailHelper":"Enviaremos un código de un solo uso a esta dirección","emailOtp.emailInvalid":"Introduzca un correo electrónico válido","emailOtp.emailLabel":"Correo electrónico","emailOtp.emailPlaceholder":"Su correo electrónico","emailOtp.expired":"Ese código ha caducado. Solicite uno nuevo","emailOtp.expiresIn":"El código caduca en {time}","emailOtp.prefilledNotice":"Enviaremos un código de verificación a su dirección de correo registrada.","emailOtp.reason_email_disposable":"Use una dirección de correo permanente, no una temporal","emailOtp.reason_email_invalid":"No podemos enviar a esta dirección. Revísela o introduzca otra","emailOtp.reason_otp_daily_cap_reached":"No podemos enviarle un código por correo hoy. Elija otra forma de verificación si está disponible, o inténtelo de nuevo más tarde.","emailOtp.reason_otp_expired":"Ese código ha caducado. Solicite uno nuevo para continuar","emailOtp.reason_otp_mismatch":"El código no es correcto. Revíselo e introdúzcalo de nuevo","emailOtp.reason_otp_rate_limited":"Se han pedido demasiados códigos. Espere un momento e inténtelo de nuevo","emailOtp.reason_otp_send_failed":"No pudimos enviar el correo. Inténtelo de nuevo en un momento","emailOtp.resend":"Reenviar código","emailOtp.resendIn":"Reenviar código en {seconds} s","emailOtp.send":"Enviarme un código","emailOtp.sendDescription":"Le enviaremos un código de un solo uso para confirmar que esta dirección es suya","emailOtp.sendTitle":"Verifique su correo electrónico","emailOtp.sentTo":"Enviamos un código de 6 dígitos a {email}","emailOtp.verify":"Verificar código","emailOtp.verifyDescription":"Escriba el código de 6 dígitos que le enviamos por correo para terminar de verificar su dirección","emailOtp.verifyTitle":"Introduzca el código de verificación","errors.network_error":"No pudimos conectar con el servicio de verificación. Revise su conexión a internet e inténtelo de nuevo","errors.session_expired":"Esta sesión de verificación ha caducado. Pida un nuevo enlace a la organización que le trajo hasta aquí","fcv2.err.generic":"La cámara no está disponible. Inténtelo de nuevo o contacte con el soporte si sigue fallando","fcv2.err.insecure":"La cámara necesita una conexión segura (HTTPS). Vuelva a abrir esta página con HTTPS","fcv2.err.inuse":"Otra aplicación está usando la cámara. Ciérrela e inténtelo de nuevo","fcv2.err.models":"No se pudieron cargar los modelos de detección facial. Revise su conexión e inténtelo de nuevo","fcv2.err.notfound":"No se detecta ninguna cámara. Conecte o active una cámara e inténtelo de nuevo","fcv2.err.permission":"Permita el acceso a la cámara en la configuración del navegador (el icono de la cámara en la barra de direcciones) e inténtelo de nuevo","fcv2.err.unsupported":"Su navegador no puede grabar en un formato compatible. Abra esta página en un navegador reciente como Chrome o Safari","fcv3.center_face":"Centre su rostro en el círculo","fcv3.come_closer":"Acerque un poco el teléfono","fcv3.hold_still":"Perfecto. No se mueva","fcv3.hold_upright":"Sostenga el teléfono en vertical","fcv3.more_light":"Busque un lugar con más luz. Ilumine su rostro","fcv3.move_back":"Aleje un poco el teléfono","fcv3.no_face":"No vemos su rostro. Sostenga el teléfono delante de usted","fcv3.steady_camera":"Mantenga el teléfono estable","fcv3.straighten":"Mantenga la cabeza recta","fcv3.too_bright":"Demasiada luz. Apártese de la luz directa","handoff.copied":"Enlace copiado. Ábralo en su teléfono","handoff.copyFailed":"No pudimos copiar el enlace. Copie la dirección de esta página desde su navegador","handoff.copyLink":"Copiar enlace","handoff.description":"Escanee con su teléfono para continuar","handoff.qrAlt":"Código QR que abre esta verificación en su teléfono","handoff.title":"Continúe en su teléfono","handoff.waiting":"Esta página avanzará sola cuando termine en su teléfono","inApp.continueAnyway":"Continuar aquí de todos modos","inApp.copied":"Enlace copiado. Péguelo en su navegador","inApp.copyFailed":"No pudimos copiar el enlace. Copie la dirección de esta página","inApp.copyLink":"Copiar enlace","inApp.description":"La cámara no funciona bien dentro de esta aplicación. Abra el enlace en Chrome o Safari para continuar.","inApp.title":"Abra esta página en su navegador","native.close":"Cerrar","native.face.humanIntroLead":"Una captura breve: solo mire la pantalla.","native.face.humanIntroTitle":"Confirme que es una persona real","native.face.introLead":"Una sola captura, sin movimientos especiales: solo mire la pantalla.","native.face.introTitle":"Ahora verifiquemos su rostro","native.result.approved":"Su verificación ha terminado. Puede volver a {org}.","native.result.back":"Volver a {org}","native.result.copied":"Copiado","native.result.expired":"Vuelva a empezar desde {org} para obtener una nueva sesión.","native.result.rejected":"Contacte con {org} si cree que se trata de un error.","native.result.review":"El resultado se enviará a {org}. No necesita hacer nada más.","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.chooseChannel":"¿Cómo quiere recibir su código?","otp.codeHelper":"Introduzca el código de 6 dígitos que le enviamos","otp.codeInvalid":"Introduzca el código de 6 dígitos","otp.codeLabel":"Código de verificación","otp.countryLabel":"País","otp.expired":"Ese código ha caducado. Solicite uno nuevo","otp.expiresIn":"El código caduca en {time}","otp.or":"o","otp.otherCountry":"Otro país","otp.phoneHelper":"Enviaremos un código de un solo uso a este número","otp.phoneInvalid":"Introduzca su número de teléfono con el prefijo del país","otp.phoneLabel":"Número de teléfono","otp.phoneLengthError":"Compruebe el número: debe tener {digits} dígitos.","otp.phonePlaceholder":"8 dígitos","otp.phonePlaceholderGeneric":"Introduzca su número de teléfono sin el prefijo","otp.prefilledNotice":"Enviaremos un código de verificación a su número de teléfono registrado.","otp.reason_insufficient_balance":"Este método de verificación no está disponible por ahora. Elija otra forma de verificación si está disponible.","otp.reason_otp_channel_unavailable":"Ese canal no está disponible. Elija otra forma de recibir su código","otp.reason_otp_daily_cap_reached":"No podemos enviarle un código hoy. Elija otra forma de verificación si está disponible, o inténtelo de nuevo más tarde.","otp.reason_otp_destination_not_allowed":"No podemos enviar códigos a números de este país. Introduzca otro número","otp.reason_otp_destination_unknown":"No reconocemos este número. Revíselo e introdúzcalo de nuevo con el prefijo del país","otp.reason_otp_expired":"Ese código ha caducado. Solicite uno nuevo para continuar","otp.reason_otp_mismatch":"El código no es correcto. Revíselo e introdúzcalo de nuevo","otp.reason_otp_number_invalid":"Este número no parece completo para su país. Compruébelo e inténtelo de nuevo.","otp.reason_otp_number_not_mobile":"Introduzca un número de móvil. Los códigos no llegan a un teléfono fijo.","otp.reason_otp_rate_limited":"Se han pedido demasiados códigos. Espere un momento e inténtelo de nuevo","otp.reason_otp_send_failed":"No pudimos enviar el código. Inténtelo de nuevo en un momento","otp.reason_payment_method_required":"Este método de verificación no está disponible por ahora. Elija otra forma de verificación si está disponible.","otp.reason_spend_cap_reached":"Este método de verificación no está disponible por ahora. Elija otra forma de verificación si está disponible.","otp.resend":"Reenviar código","otp.resendBy":"Reenviar por {channel}","otp.resendIn":"Reenviar código en {seconds} s","otp.send":"Enviar código","otp.sendBy":"Enviar código por {channel}","otp.sendDescription":"Le enviaremos un código de un solo uso para confirmar que este número es suyo","otp.sendTitle":"Verifique su número de teléfono","otp.sentTo":"Enviamos un código de 6 dígitos a {number} por {channel}","otp.verify":"Verificar código","otp.verifyDescription":"Escriba el código de 6 dígitos que le enviamos para terminar de verificar su número","otp.verifyTitle":"Introduzca el código de verificación","reasons.camera_unavailable":"Esta verificación necesita una cámara. Vuelva a {org} para continuar de otra forma.","reasons.capture_tampered":"No pudimos continuar en este dispositivo. Inténtelo de nuevo en otro dispositivo o navegador.","reasons.clip_too_short":"La captura fue demasiado corta","reasons.device_cooldown":"Demasiados intentos. Inténtelo de nuevo más tarde.","reasons.device_velocity_exceeded":"Este dispositivo no se puede usar para otra verificación por ahora. Contacte con la organización.","reasons.media_unreadable":"No se pudo leer la captura enviada","reasons.mobile_required":"Continúe en su teléfono para tomar el selfie.","reasons.no_face":"No se detectó ningún rostro durante la verificación","reasons.review_band":"La verificación automática no fue concluyente, así que se envió a revisión manual","reasons.spoof_detected":"La prueba de vida no pudo confirmar que haya una persona real frente a la cámara","reasons.tester_phone_mismatch":"Use el número de teléfono con el que se registró la persona de prueba","result.platform_unsupported":"Esta verificación necesita una aplicación para teléfono.","result.referenceLabel":"Código de referencia","section.contact":"Verifique su contacto","section.live_photo":"Tome una foto en directo","section.screening":"Comprobaciones adicionales","session.processing.age_estimation.description":"Esto tarda unos segundos","session.processing.age_estimation.title":"Comprobando su edad","session.processing.description":"Suele tardar unos segundos. El resultado aparecerá aquí","session.processing.title":"Estamos procesando su verificación","session.progressLabel":"Progreso de la verificación","session.requestedBy":"{orgName} le pide que verifique su identidad","session.result.approved.description":"Ha terminado. Puede cerrar esta página","session.result.approved.title":"Su identidad está verificada","session.result.detailsMismatch":"Los datos no coinciden con la información que tiene {org}. Contacte con {org}.","session.result.deviceStop":"No pudimos continuar en este dispositivo. Inténtelo de nuevo en otro dispositivo o navegador.","session.result.deviceVelocity":"Este dispositivo no se puede usar para otra verificación por ahora. Contacte con {org}.","session.result.expired.description":"Pida un nuevo enlace a la organización que se lo envió y vuelva a empezar","session.result.expired.title":"Esta sesión de verificación ha caducado","session.result.rejected.description":"Si cree que se trata de un error, contacte con la organización que le envió este enlace","session.result.rejected.title":"No pudimos verificar su identidad","session.result.review.description":"El resultado se enviará a la organización que le dio este enlace. No necesita hacer nada más.","session.result.review.title":"Su verificación está en revisión","session.title":"Verifique su identidad","shell.subtitle":"Verificación de identidad","shell.subtitleHuman":"Verificación humana","shell.verifiedBy":"Verificado por Sekyro AI","unsupported.description":"Este paso necesita una versión más reciente de esta página. Contacte con {org}.","unsupported.title":"Actualización necesaria"}});var yi={};wt(yi,{overlay:()=>Kc});var Kc,vi=w(()=>{"use strict";Kc={"capture.attemptsRemaining.one":"{count} tentativa restante","capture.attemptsRemaining.other":"{count} tentativas restantes","capture.cameraOff":"Câmera desligada","capture.checking":"Estamos verificando sua identidade…","capture.checkingHint":"Isso costuma levar alguns segundos. Mantenha esta página aberta","capture.noCamera.body":"Permita o acesso à câmera e tente novamente, ou continue em um telefone com câmera.","capture.noCamera.continue":"Continuar sem câmera","capture.noCamera.deniedBody":"O seu navegador bloqueou a câmera para esta página. Permita-a nas configurações do site e tente novamente.","capture.noCamera.deniedTitle":"Permita o acesso à câmera para continuar","capture.noCamera.title":"Esta etapa precisa de uma câmera","capture.permission.denied":"O acesso à câmera está bloqueado. Permita nas configurações do navegador (o ícone da câmera na barra de endereço) e recarregue esta página","capture.permission.granted":"Acesso à câmera permitido","capture.permission.prompt":"Seu navegador vai pedir para usar a câmera. Escolha Permitir","capture.permission.unknown":"Vamos pedir para usar sua câmera quando você começar","capture.preparing.hint":"Configurando a detecção de rosto no dispositivo. Pode levar um momento em uma conexão lenta","capture.preparing.title":"Preparando a captura segura…","capture.retryCoaching.eyeLevel":"Segure o telefone na altura dos olhos","capture.retryCoaching.head":"Olhe diretamente para a câmera e mantenha a cabeça reta","capture.retryCoaching.light":"Procure uma boa iluminação. Luz no seu rosto, não atrás de você","capture.retryCoaching.title":"Essa tentativa não deu certo. Alguns ajustes vão ajudar:","capture.securityNote":"Suas imagens são criptografadas e usadas apenas para esta verificação","capture.start":"Ligar a câmera","capture.tips.eyeLevel":"Segure o telefone na altura dos olhos","capture.tips.light":"Fique de frente para uma fonte de luz. Evite luz forte atrás de você","capture.tips.listen":"Ouvir as instruções","capture.tips.stop":"Parar","capture.tips.straight":"Olhe diretamente para a câmera e fique parado","capture.tips.summary":"Fique em um lugar bem iluminado. Deixe o rosto descoberto: sem óculos e sem máscara. Quando a câmera ligar, segure o telefone na altura dos olhos, olhe diretamente para a câmera e fique parado.","capture.tips.title":"Para uma verificação bem-sucedida:","capture.tips.uncover":"Deixe o rosto descoberto: sem óculos, máscara ou mão na frente","common.loading":"Carregando sua sessão de verificação","common.noAttemptsLeft":"Não há mais tentativas","common.refresh":"Atualizar status","common.retry":"Tentar novamente","consent.human.terms.data":"A Sekyro AI coleta uma breve captura do seu rosto.","consent.human.terms.intro":"A Sekyro AI confirma que uma pessoa real está concluindo esta etapa, em nome da organização que a solicitou.","consent.human.terms.processing":"A captura é analisada para confirmar que você é uma pessoa real e presente. Ela pode ser comparada com rostos já verificados para esta organização.","consent.human.terms.retention":"Seus dados são armazenados com criptografia e mantidos apenas pelo tempo exigido pela lei e pelas configurações da organização. Para exercer seus direitos de proteção de dados, entre em contato com a organização que solicitou esta verificação.","consent.human.terms.sharing":"A organização que solicitou esta verificação fica sabendo do resultado.","consent.short":"Ao continuar, você aceita os {terms}.","consent.termsLink":"termos","contact.description":"Escolha uma opção.","contact.email":"Por e-mail","contact.phone":"Por telefone (WhatsApp ou SMS)","contact.switch":"Usar outra opção","contact.title":"Como você quer receber seu código?","cooldown.retryAt":"Muitas tentativas. Tente novamente a partir de {time}.","cooldown.retryIn":"Muitas tentativas. Tente novamente {time}.","emailOtp.codeHelper":"Digite o código de 6 dígitos do e-mail","emailOtp.codeLabel":"Código de verificação","emailOtp.emailHelper":"Vamos enviar um código de uso único para este endereço","emailOtp.emailInvalid":"Digite um endereço de e-mail válido","emailOtp.emailLabel":"Endereço de e-mail","emailOtp.emailPlaceholder":"Seu endereço de e-mail","emailOtp.expired":"Esse código expirou. Peça um novo","emailOtp.expiresIn":"O código expira em {time}","emailOtp.prefilledNotice":"Vamos enviar um código de verificação para o seu e-mail cadastrado.","emailOtp.reason_email_disposable":"Use um endereço de e-mail permanente, não um temporário","emailOtp.reason_email_invalid":"Não podemos enviar para este endereço. Confira ou digite outro","emailOtp.reason_otp_daily_cap_reached":"Não podemos enviar um código por e-mail hoje. Escolha outra forma de verificação, se houver, ou tente novamente mais tarde.","emailOtp.reason_otp_expired":"Esse código expirou. Peça um novo código para continuar","emailOtp.reason_otp_mismatch":"O código está incorreto. Confira e digite novamente","emailOtp.reason_otp_rate_limited":"Muitos códigos solicitados. Aguarde um momento e tente novamente","emailOtp.reason_otp_send_failed":"Não foi possível enviar o e-mail. Tente novamente em instantes","emailOtp.resend":"Reenviar código","emailOtp.resendIn":"Reenviar código em {seconds} s","emailOtp.send":"Enviar código por e-mail","emailOtp.sendDescription":"Vamos enviar um código de uso único por e-mail para confirmar que este endereço é seu","emailOtp.sendTitle":"Verifique seu endereço de e-mail","emailOtp.sentTo":"Enviamos um código de 6 dígitos para {email}","emailOtp.verify":"Verificar código","emailOtp.verifyDescription":"Digite o código de 6 dígitos que enviamos por e-mail para concluir a verificação do seu endereço","emailOtp.verifyTitle":"Digite o código de verificação","errors.network_error":"Não conseguimos acessar o serviço de verificação. Verifique sua conexão com a internet e tente novamente","errors.session_expired":"Esta sessão de verificação expirou. Peça um novo link à organização que trouxe você até aqui","fcv2.err.generic":"A câmera não está disponível. Tente novamente ou entre em contato com o suporte se o problema continuar","fcv2.err.insecure":"A câmera precisa de uma conexão segura (HTTPS). Abra esta página novamente por HTTPS","fcv2.err.inuse":"Outro aplicativo está usando a câmera. Feche-o e tente novamente","fcv2.err.models":"Não foi possível carregar os modelos de detecção de rosto. Verifique sua conexão e tente novamente","fcv2.err.notfound":"Nenhuma câmera detectada. Conecte ou ative uma câmera e tente novamente","fcv2.err.permission":"Permita o acesso à câmera nas configurações do navegador (o ícone da câmera na barra de endereço) e tente novamente","fcv2.err.unsupported":"Seu navegador não consegue gravar em um formato compatível. Abra esta página em um navegador recente, como Chrome ou Safari","fcv3.center_face":"Centralize o rosto no círculo","fcv3.come_closer":"Aproxime um pouco o telefone","fcv3.hold_still":"Perfeito. Fique parado","fcv3.hold_upright":"Segure o telefone na vertical","fcv3.more_light":"Procure um lugar mais claro. Ilumine seu rosto","fcv3.move_back":"Afaste um pouco o telefone","fcv3.no_face":"Não conseguimos ver seu rosto. Segure o telefone à sua frente","fcv3.steady_camera":"Mantenha o telefone firme","fcv3.straighten":"Mantenha a cabeça reta","fcv3.too_bright":"Luz demais. Saia da luz direta","handoff.copied":"Link copiado. Abra-o no seu telefone","handoff.copyFailed":"Não foi possível copiar o link. Copie o endereço desta página no navegador","handoff.copyLink":"Copiar link","handoff.description":"Escaneie com o telefone para continuar","handoff.qrAlt":"Código QR que abre esta verificação no seu telefone","handoff.title":"Continue no seu telefone","handoff.waiting":"Esta página avança sozinha quando você terminar no telefone","inApp.continueAnyway":"Continuar aqui mesmo assim","inApp.copied":"Link copiado. Cole-o no navegador","inApp.copyFailed":"Não foi possível copiar o link. Copie o endereço desta página","inApp.copyLink":"Copiar link","inApp.description":"A câmera não funciona bem dentro deste aplicativo. Abra o link no Chrome ou no Safari para continuar.","inApp.title":"Abra esta página no navegador","native.close":"Fechar","native.face.humanIntroLead":"Uma captura rápida: basta olhar para a tela.","native.face.humanIntroTitle":"Confirme que você é uma pessoa real","native.face.introLead":"Uma única captura, sem nenhum movimento especial: basta olhar para a tela.","native.face.introTitle":"Agora vamos verificar seu rosto","native.result.approved":"Sua verificação foi concluída. Você pode voltar para {org}.","native.result.back":"Voltar para {org}","native.result.copied":"Copiado","native.result.expired":"Comece de novo a partir de {org} para obter uma nova sessão.","native.result.rejected":"Entre em contato com {org} se você acha que isso é um erro.","native.result.review":"O resultado será enviado para {org}. Você não precisa fazer mais nada.","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.chooseChannel":"Como você quer receber seu código?","otp.codeHelper":"Digite o código de 6 dígitos que enviamos","otp.codeInvalid":"Digite o código de 6 dígitos","otp.codeLabel":"Código de verificação","otp.countryLabel":"País","otp.expired":"Esse código expirou. Peça um novo","otp.expiresIn":"O código expira em {time}","otp.or":"ou","otp.otherCountry":"Outro país","otp.phoneHelper":"Vamos enviar um código de uso único para este número","otp.phoneInvalid":"Digite seu número de telefone com o código do país","otp.phoneLabel":"Número de telefone","otp.phoneLengthError":"Verifique o número: ele deve ter {digits} dígitos.","otp.phonePlaceholder":"8 dígitos","otp.phonePlaceholderGeneric":"Digite seu número de telefone sem o código do país","otp.prefilledNotice":"Vamos enviar um código de verificação para o seu número de telefone cadastrado.","otp.reason_insufficient_balance":"Este método de verificação não está disponível no momento. Escolha outra forma de verificação, se houver.","otp.reason_otp_channel_unavailable":"Esse canal não está disponível. Escolha outra forma de receber seu código","otp.reason_otp_daily_cap_reached":"Não podemos enviar um código para você hoje. Escolha outra forma de verificação, se houver, ou tente novamente mais tarde.","otp.reason_otp_destination_not_allowed":"Não podemos enviar códigos para números deste país. Digite outro número","otp.reason_otp_destination_unknown":"Não reconhecemos este número. Confira e digite novamente com o código do país","otp.reason_otp_expired":"Esse código expirou. Peça um novo código para continuar","otp.reason_otp_mismatch":"O código está incorreto. Confira e digite novamente","otp.reason_otp_number_invalid":"Este número não parece completo para o país dele. Verifique e tente novamente.","otp.reason_otp_number_not_mobile":"Digite um número de celular. Os códigos não chegam a um telefone fixo.","otp.reason_otp_rate_limited":"Muitos códigos solicitados. Aguarde um momento e tente novamente","otp.reason_otp_send_failed":"Não foi possível enviar o código. Tente novamente em instantes","otp.reason_payment_method_required":"Este método de verificação não está disponível no momento. Escolha outra forma de verificação, se houver.","otp.reason_spend_cap_reached":"Este método de verificação não está disponível no momento. Escolha outra forma de verificação, se houver.","otp.resend":"Reenviar código","otp.resendBy":"Reenviar por {channel}","otp.resendIn":"Reenviar código em {seconds} s","otp.send":"Enviar código","otp.sendBy":"Enviar código por {channel}","otp.sendDescription":"Vamos enviar um código de uso único para confirmar que este número é seu","otp.sendTitle":"Verifique seu número de telefone","otp.sentTo":"Enviamos um código de 6 dígitos para {number} por {channel}","otp.verify":"Verificar código","otp.verifyDescription":"Digite o código de 6 dígitos que enviamos para concluir a verificação do seu número","otp.verifyTitle":"Digite o código de verificação","reasons.camera_unavailable":"Esta verificação precisa de uma câmera. Volte para {org} para continuar de outra forma.","reasons.capture_tampered":"Não foi possível continuar neste dispositivo. Tente novamente em outro dispositivo ou navegador.","reasons.clip_too_short":"A captura foi curta demais","reasons.device_cooldown":"Muitas tentativas. Tente novamente mais tarde.","reasons.device_velocity_exceeded":"Este dispositivo não pode ser usado para outra verificação no momento. Entre em contato com a organização.","reasons.media_unreadable":"Não foi possível ler a captura enviada","reasons.mobile_required":"Continue no seu telefone para tirar a selfie.","reasons.no_face":"Nenhum rosto foi detectado durante a verificação","reasons.review_band":"A verificação automática não foi conclusiva e foi enviada para análise humana","reasons.spoof_detected":"A prova de vida não confirmou uma pessoa real diante da câmera","reasons.tester_phone_mismatch":"Use o número de telefone com que o testador se cadastrou","result.platform_unsupported":"Esta verificação precisa de um aplicativo de celular.","result.referenceLabel":"Código de referência","section.contact":"Verifique seu contato","section.live_photo":"Tire uma foto ao vivo","section.screening":"Verificações adicionais","session.processing.age_estimation.description":"Isso leva alguns segundos","session.processing.age_estimation.title":"Verificando sua idade","session.processing.description":"Isso costuma levar alguns segundos. O resultado aparecerá aqui","session.processing.title":"Estamos processando sua verificação","session.progressLabel":"Progresso da verificação","session.requestedBy":"{orgName} pede que você verifique sua identidade","session.result.approved.description":"Pronto. Você já pode fechar esta página","session.result.approved.title":"Sua identidade foi verificada","session.result.detailsMismatch":"Os dados não correspondem às informações que {org} tem. Entre em contato com {org}.","session.result.deviceStop":"Não foi possível continuar neste dispositivo. Tente novamente em outro dispositivo ou navegador.","session.result.deviceVelocity":"Este dispositivo não pode ser usado para outra verificação no momento. Entre em contato com {org}.","session.result.expired.description":"Peça um novo link à organização que o enviou e comece de novo","session.result.expired.title":"Esta sessão de verificação expirou","session.result.rejected.description":"Se você acha que isso é um erro, entre em contato com a organização que enviou este link","session.result.rejected.title":"Não foi possível verificar sua identidade","session.result.review.description":"O resultado será enviado à organização que passou este link para você. Você não precisa fazer mais nada.","session.result.review.title":"Sua verificação está em análise","session.title":"Verifique sua identidade","shell.subtitle":"Verificação de identidade","shell.subtitleHuman":"Verificação humana","shell.verifiedBy":"Verificado por Sekyro AI","unsupported.description":"Esta etapa precisa de uma versão mais recente desta página. Entre em contato com {org}.","unsupported.title":"Atualização necessária"}});var ki={};wt(ki,{overlay:()=>$c});var $c,bi=w(()=>{"use strict";$c={"capture.attemptsRemaining.one":"Noch {count} Versuch","capture.attemptsRemaining.other":"Noch {count} Versuche","capture.cameraOff":"Kamera aus","capture.checking":"Wir prüfen Ihre Identität…","capture.checkingHint":"Das dauert meist nur ein paar Sekunden. Lassen Sie diese Seite geöffnet","capture.noCamera.body":"Erlauben Sie den Kamerazugriff und versuchen Sie es erneut, oder fahren Sie auf einem Smartphone mit Kamera fort.","capture.noCamera.continue":"Ohne Kamera fortfahren","capture.noCamera.deniedBody":"Ihr Browser hat die Kamera für diese Seite blockiert. Erlauben Sie sie in den Website-Einstellungen und versuchen Sie es erneut.","capture.noCamera.deniedTitle":"Erlauben Sie den Kamerazugriff, um fortzufahren","capture.noCamera.title":"Für diesen Schritt wird eine Kamera benötigt","capture.permission.denied":"Der Kamerazugriff ist blockiert. Erlauben Sie ihn in den Browsereinstellungen (das Kamerasymbol in der Adressleiste) und laden Sie diese Seite neu","capture.permission.granted":"Kamerazugriff erlaubt","capture.permission.prompt":"Ihr Browser fragt nach der Kamera. Wählen Sie Zulassen","capture.permission.unknown":"Wir fragen nach Ihrer Kamera, sobald Sie beginnen","capture.preparing.hint":"Die Gesichtserkennung auf dem Gerät wird eingerichtet. Bei langsamer Verbindung kann das einen Moment dauern","capture.preparing.title":"Sichere Aufnahme wird vorbereitet…","capture.retryCoaching.eyeLevel":"Halten Sie das Smartphone auf Augenhöhe","capture.retryCoaching.head":"Schauen Sie direkt in die Kamera und halten Sie den Kopf gerade","capture.retryCoaching.light":"Sorgen Sie für gutes Licht: auf Ihrem Gesicht, nicht hinter Ihnen","capture.retryCoaching.title":"Dieser Versuch hat nicht geklappt. Ein paar Anpassungen helfen:","capture.securityNote":"Ihre Bilder werden verschlüsselt und nur für diese Verifizierung verwendet","capture.start":"Kamera starten","capture.tips.eyeLevel":"Halten Sie das Smartphone auf Augenhöhe","capture.tips.light":"Wenden Sie sich einer Lichtquelle zu. Vermeiden Sie starkes Licht hinter sich","capture.tips.listen":"Anweisungen anhören","capture.tips.stop":"Stopp","capture.tips.straight":"Schauen Sie direkt in die Kamera und halten Sie still","capture.tips.summary":"Stellen Sie sich an einen gut beleuchteten Ort. Zeigen Sie Ihr Gesicht frei: keine Brille, keine Maske. Sobald die Kamera startet, halten Sie das Smartphone auf Augenhöhe, schauen Sie direkt in die Kamera und halten Sie still.","capture.tips.title":"So gelingt die Aufnahme:","capture.tips.uncover":"Zeigen Sie Ihr Gesicht frei: keine Brille, keine Maske, keine Hand davor","common.loading":"Ihre Verifizierungssitzung wird geladen","common.noAttemptsLeft":"Keine Versuche mehr übrig","common.refresh":"Status aktualisieren","common.retry":"Erneut versuchen","consent.human.terms.data":"Sekyro AI erfasst eine kurze Aufnahme Ihres Gesichts.","consent.human.terms.intro":"Sekyro AI bestätigt im Auftrag der anfragenden Organisation, dass eine echte Person diesen Schritt ausführt.","consent.human.terms.processing":"Die Aufnahme wird geprüft, um zu bestätigen, dass Sie eine echte, anwesende Person sind. Sie kann mit Gesichtern verglichen werden, die für diese Organisation bereits verifiziert wurden.","consent.human.terms.retention":"Ihre Daten werden verschlüsselt gespeichert und nur so lange aufbewahrt, wie das Gesetz und die Einstellungen der Organisation es verlangen. Um Ihre Datenschutzrechte auszuüben, wenden Sie sich an die Organisation, die diese Verifizierung angefordert hat.","consent.human.terms.sharing":"Die Organisation, die diese Verifizierung angefordert hat, erfährt das Ergebnis.","consent.short":"Wenn Sie fortfahren, stimmen Sie den {terms} zu.","consent.termsLink":"Bedingungen","contact.description":"Wählen Sie eine Option.","contact.email":"Per E-Mail","contact.phone":"Per Telefon (WhatsApp oder SMS)","contact.switch":"Andere Option wählen","contact.title":"Wie möchten Sie Ihren Code erhalten?","cooldown.retryAt":"Zu viele Versuche. Versuchen Sie es ab {time} erneut.","cooldown.retryIn":"Zu viele Versuche. Versuchen Sie es {time} erneut.","emailOtp.codeHelper":"Geben Sie den 6-stelligen Code aus der E-Mail ein","emailOtp.codeLabel":"Bestätigungscode","emailOtp.emailHelper":"Wir senden einen Einmalcode an diese Adresse","emailOtp.emailInvalid":"Geben Sie eine gültige E-Mail-Adresse ein","emailOtp.emailLabel":"E-Mail-Adresse","emailOtp.emailPlaceholder":"Ihre E-Mail-Adresse","emailOtp.expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen an","emailOtp.expiresIn":"Der Code läuft ab in {time}","emailOtp.prefilledNotice":"Wir senden einen Bestätigungscode an Ihre hinterlegte E-Mail-Adresse.","emailOtp.reason_email_disposable":"Verwenden Sie eine dauerhafte E-Mail-Adresse, keine Wegwerfadresse","emailOtp.reason_email_invalid":"An diese Adresse können wir nicht senden. Prüfen Sie sie oder geben Sie eine andere ein","emailOtp.reason_otp_daily_cap_reached":"Wir können Ihnen heute keinen Code per E-Mail senden. Wählen Sie einen anderen Weg, falls angeboten, oder versuchen Sie es später erneut.","emailOtp.reason_otp_expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen Code an, um fortzufahren","emailOtp.reason_otp_mismatch":"Der Code ist falsch. Prüfen Sie ihn und geben Sie ihn erneut ein","emailOtp.reason_otp_rate_limited":"Zu viele Codes angefordert. Warten Sie einen Moment und versuchen Sie es dann erneut","emailOtp.reason_otp_send_failed":"Wir konnten die E-Mail nicht senden. Versuchen Sie es gleich noch einmal","emailOtp.resend":"Code erneut senden","emailOtp.resendIn":"Code erneut senden in {seconds} s","emailOtp.send":"Code per E-Mail senden","emailOtp.sendDescription":"Wir senden Ihnen einen Einmalcode per E-Mail, um zu bestätigen, dass diese Adresse Ihnen gehört","emailOtp.sendTitle":"Bestätigen Sie Ihre E-Mail-Adresse","emailOtp.sentTo":"Wir haben einen 6-stelligen Code an {email} gesendet","emailOtp.verify":"Code bestätigen","emailOtp.verifyDescription":"Geben Sie den 6-stelligen Code aus unserer E-Mail ein, um Ihre Adresse zu bestätigen","emailOtp.verifyTitle":"Bestätigungscode eingeben","errors.network_error":"Wir konnten den Verifizierungsdienst nicht erreichen. Prüfen Sie Ihre Internetverbindung und versuchen Sie es erneut","errors.session_expired":"Diese Verifizierungssitzung ist abgelaufen. Bitten Sie die Organisation, die Sie hierher geschickt hat, um einen neuen Link","fcv2.err.generic":"Die Kamera ist nicht verfügbar. Versuchen Sie es erneut oder wenden Sie sich an den Support, wenn der Fehler bleibt","fcv2.err.insecure":"Die Kamera benötigt eine sichere Verbindung (HTTPS). Öffnen Sie diese Seite erneut über HTTPS","fcv2.err.inuse":"Eine andere App verwendet die Kamera. Schließen Sie sie und versuchen Sie es erneut","fcv2.err.models":"Die Modelle zur Gesichtserkennung konnten nicht geladen werden. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut","fcv2.err.notfound":"Keine Kamera erkannt. Schließen Sie eine Kamera an oder aktivieren Sie sie und versuchen Sie es erneut","fcv2.err.permission":"Erlauben Sie den Kamerazugriff in den Browsereinstellungen (das Kamerasymbol in der Adressleiste) und versuchen Sie es erneut","fcv2.err.unsupported":"Ihr Browser kann nicht in einem unterstützten Format aufnehmen. Öffnen Sie diese Seite in einem aktuellen Browser wie Chrome oder Safari","fcv3.center_face":"Platzieren Sie Ihr Gesicht mittig im Kreis","fcv3.come_closer":"Halten Sie das Smartphone etwas näher","fcv3.hold_still":"Perfekt. Halten Sie still","fcv3.hold_upright":"Halten Sie das Smartphone aufrecht","fcv3.more_light":"Suchen Sie einen helleren Ort. Beleuchten Sie Ihr Gesicht","fcv3.move_back":"Halten Sie das Smartphone etwas weiter weg","fcv3.no_face":"Wir sehen Ihr Gesicht nicht. Halten Sie das Smartphone vor sich","fcv3.steady_camera":"Halten Sie das Smartphone ruhig","fcv3.straighten":"Halten Sie den Kopf gerade","fcv3.too_bright":"Zu viel Licht. Gehen Sie aus dem direkten Licht","handoff.copied":"Link kopiert. Öffnen Sie ihn auf Ihrem Smartphone","handoff.copyFailed":"Wir konnten den Link nicht kopieren. Kopieren Sie stattdessen die Adresse dieser Seite aus Ihrem Browser","handoff.copyLink":"Link kopieren","handoff.description":"Scannen Sie mit Ihrem Smartphone, um fortzufahren","handoff.qrAlt":"QR-Code, der diese Verifizierung auf Ihrem Smartphone öffnet","handoff.title":"Auf dem Smartphone fortfahren","handoff.waiting":"Diese Seite geht von selbst weiter, sobald Sie auf dem Smartphone fertig sind","inApp.continueAnyway":"Trotzdem hier fortfahren","inApp.copied":"Link kopiert. Fügen Sie ihn in Ihren Browser ein","inApp.copyFailed":"Wir konnten den Link nicht kopieren. Kopieren Sie stattdessen die Adresse dieser Seite","inApp.copyLink":"Link kopieren","inApp.description":"Die Kamera funktioniert in dieser App nicht zuverlässig. Öffnen Sie den Link in Chrome oder Safari, um fortzufahren.","inApp.title":"Öffnen Sie diese Seite in Ihrem Browser","native.close":"Schließen","native.face.humanIntroLead":"Eine kurze Aufnahme: Schauen Sie einfach auf den Bildschirm.","native.face.humanIntroTitle":"Bestätigen Sie, dass Sie eine echte Person sind","native.face.introLead":"Eine einzige Aufnahme, keine besondere Bewegung: Schauen Sie einfach auf den Bildschirm.","native.face.introTitle":"Jetzt prüfen wir Ihr Gesicht","native.result.approved":"Ihre Verifizierung ist abgeschlossen. Sie können zu {org} zurückkehren.","native.result.back":"Zurück zu {org}","native.result.copied":"Kopiert","native.result.expired":"Beginnen Sie erneut über {org}, um eine neue Sitzung zu erhalten.","native.result.rejected":"Wenden Sie sich an {org}, wenn Sie glauben, dass es sich um einen Fehler handelt.","native.result.review":"Das Ergebnis wird an {org} gesendet. Sie müssen nichts weiter tun.","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.chooseChannel":"Wie möchten Sie Ihren Code erhalten?","otp.codeHelper":"Geben Sie den 6-stelligen Code ein, den wir Ihnen gesendet haben","otp.codeInvalid":"Geben Sie den 6-stelligen Code ein","otp.codeLabel":"Bestätigungscode","otp.countryLabel":"Land","otp.expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen an","otp.expiresIn":"Der Code läuft ab in {time}","otp.or":"oder","otp.otherCountry":"Anderes Land","otp.phoneHelper":"Wir senden einen Einmalcode an diese Nummer","otp.phoneInvalid":"Geben Sie Ihre Telefonnummer mit Ländervorwahl ein","otp.phoneLabel":"Telefonnummer","otp.phoneLengthError":"Prüfen Sie die Nummer: Sie sollte {digits} Ziffern haben.","otp.phonePlaceholder":"8 Ziffern","otp.phonePlaceholderGeneric":"Geben Sie Ihre Telefonnummer ohne Ländervorwahl ein","otp.prefilledNotice":"Wir senden einen Bestätigungscode an Ihre hinterlegte Telefonnummer.","otp.reason_insufficient_balance":"Diese Verifizierungsmethode ist gerade nicht verfügbar. Wählen Sie einen anderen Weg, falls angeboten.","otp.reason_otp_channel_unavailable":"Dieser Kanal ist nicht verfügbar. Wählen Sie einen anderen Weg für Ihren Code","otp.reason_otp_daily_cap_reached":"Wir können Ihnen heute keinen Code senden. Wählen Sie einen anderen Weg, falls angeboten, oder versuchen Sie es später erneut.","otp.reason_otp_destination_not_allowed":"An Nummern aus diesem Land können wir keine Codes senden. Geben Sie eine andere Nummer ein","otp.reason_otp_destination_unknown":"Wir konnten diese Nummer nicht erkennen. Prüfen Sie sie und geben Sie sie mit Ländervorwahl erneut ein","otp.reason_otp_expired":"Dieser Code ist abgelaufen. Fordern Sie einen neuen Code an, um fortzufahren","otp.reason_otp_mismatch":"Der Code ist falsch. Prüfen Sie ihn und geben Sie ihn erneut ein","otp.reason_otp_number_invalid":"Diese Nummer scheint für ihr Land nicht vollständig zu sein. Prüfen Sie sie und versuchen Sie es erneut.","otp.reason_otp_number_not_mobile":"Geben Sie eine Mobilnummer ein. Codes erreichen kein Festnetz.","otp.reason_otp_rate_limited":"Zu viele Codes angefordert. Warten Sie einen Moment und versuchen Sie es dann erneut","otp.reason_otp_send_failed":"Wir konnten den Code nicht senden. Versuchen Sie es gleich noch einmal","otp.reason_payment_method_required":"Diese Verifizierungsmethode ist gerade nicht verfügbar. Wählen Sie einen anderen Weg, falls angeboten.","otp.reason_spend_cap_reached":"Diese Verifizierungsmethode ist gerade nicht verfügbar. Wählen Sie einen anderen Weg, falls angeboten.","otp.resend":"Code erneut senden","otp.resendBy":"Erneut per {channel} senden","otp.resendIn":"Code erneut senden in {seconds} s","otp.send":"Code senden","otp.sendBy":"Code per {channel} senden","otp.sendDescription":"Wir senden Ihnen einen Einmalcode, um zu bestätigen, dass diese Nummer Ihnen gehört","otp.sendTitle":"Bestätigen Sie Ihre Telefonnummer","otp.sentTo":"Wir haben einen 6-stelligen Code per {channel} an {number} gesendet","otp.verify":"Code bestätigen","otp.verifyDescription":"Geben Sie den 6-stelligen Code ein, den wir Ihnen gesendet haben, um Ihre Nummer zu bestätigen","otp.verifyTitle":"Bestätigungscode eingeben","reasons.camera_unavailable":"Für diese Verifizierung wird eine Kamera benötigt. Kehren Sie zu {org} zurück, um auf andere Weise fortzufahren.","reasons.capture_tampered":"Wir konnten auf diesem Gerät nicht fortfahren. Versuchen Sie es auf einem anderen Gerät oder in einem anderen Browser erneut.","reasons.clip_too_short":"Die Aufnahme war zu kurz","reasons.device_cooldown":"Zu viele Versuche. Versuchen Sie es später erneut.","reasons.device_velocity_exceeded":"Dieses Gerät kann derzeit nicht für eine weitere Verifizierung verwendet werden. Wenden Sie sich an die Organisation.","reasons.media_unreadable":"Die gesendete Aufnahme konnte nicht gelesen werden","reasons.mobile_required":"Fahren Sie auf Ihrem Smartphone fort, um das Selfie aufzunehmen.","reasons.no_face":"Bei der Prüfung wurde kein Gesicht erkannt","reasons.review_band":"Die automatische Prüfung war nicht eindeutig und wurde deshalb zur manuellen Prüfung weitergeleitet","reasons.spoof_detected":"Die Lebenderkennung konnte keine echte Person vor der Kamera bestätigen","reasons.tester_phone_mismatch":"Verwenden Sie die Telefonnummer, mit der sich die Testperson registriert hat","result.platform_unsupported":"Für diese Verifizierung wird eine Smartphone-App benötigt.","result.referenceLabel":"Referenzcode","section.contact":"Kontakt bestätigen","section.live_photo":"Live-Foto aufnehmen","section.screening":"Weitere Prüfungen","session.processing.age_estimation.description":"Das dauert nur ein paar Sekunden","session.processing.age_estimation.title":"Ihr Alter wird geprüft","session.processing.description":"Das dauert meist nur ein paar Sekunden. Das Ergebnis erscheint hier","session.processing.title":"Ihre Verifizierung wird bearbeitet","session.progressLabel":"Fortschritt der Verifizierung","session.requestedBy":"{orgName} bittet Sie, Ihre Identität zu bestätigen","session.result.approved.description":"Sie sind fertig. Sie können diese Seite schließen","session.result.approved.title":"Ihre Identität ist bestätigt","session.result.detailsMismatch":"Die Angaben stimmen nicht mit den Informationen von {org} überein. Wenden Sie sich an {org}.","session.result.deviceStop":"Wir konnten auf diesem Gerät nicht fortfahren. Versuchen Sie es auf einem anderen Gerät oder in einem anderen Browser erneut.","session.result.deviceVelocity":"Dieses Gerät kann derzeit nicht für eine weitere Verifizierung verwendet werden. Wenden Sie sich an {org}.","session.result.expired.description":"Fordern Sie bei der Organisation, die Ihnen den Link geschickt hat, einen neuen an und beginnen Sie von vorn","session.result.expired.title":"Diese Verifizierungssitzung ist abgelaufen","session.result.rejected.description":"Wenn Sie glauben, dass es sich um einen Fehler handelt, wenden Sie sich an die Organisation, die Ihnen diesen Link geschickt hat","session.result.rejected.title":"Ihre Identität konnte nicht bestätigt werden","session.result.review.description":"Das Ergebnis wird an die Organisation gesendet, die Ihnen diesen Link gegeben hat. Sie müssen nichts weiter tun.","session.result.review.title":"Ihre Verifizierung wird geprüft","session.title":"Bestätigen Sie Ihre Identität","shell.subtitle":"Identitätsverifizierung","shell.subtitleHuman":"Menschliche Verifizierung","shell.verifiedBy":"Verifiziert von Sekyro AI","unsupported.description":"Für diesen Schritt wird eine neuere Version dieser Seite benötigt. Wenden Sie sich an {org}.","unsupported.title":"Aktualisierung erforderlich"}});function no(e){return sr(e)?"en":e}function oo(e){return sr(e)?to[e]:void 0}function cr(e){return sr(e)&&to[e]===void 0}function ro(e){return cr(e)?(e==="es"?Promise.resolve().then(()=>(gi(),hi)):e==="pt"?Promise.resolve().then(()=>(vi(),yi)):Promise.resolve().then(()=>(bi(),ki))).then(n=>{to[e]=n.overlay},()=>{to[e]={}}):Promise.resolve()}var to,sr,io=w(()=>{"use strict";to={},sr=i(e=>e==="es"||e==="pt"||e==="de","isOverlayLocale");i(no,"baseLocale");i(oo,"overlayOf");i(cr,"overlayPending");i(ro,"loadSekyroLocale")});var cn,Si=w(()=>{"use strict";cn={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds. Keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work. A few adjustments will help:","capture.retryCoaching.light":"Find good lighting, with the light on your face and not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected. Connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera. Close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS). Reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format. Open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable. Try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face. Hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot. Light your face","fcv3.too_bright":"Too much light. Move out of direct light","fcv3.hold_still":"Perfect, hold still","fcv3.steady_camera":"Hold the phone steady","fcv3.hold_upright":"Hold the phone upright","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm your number","reasons.result_from_cache":"The registry check was confirmed from a recent copy of the registry","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against. The requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry. A reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.id_number_invalid":"The ID number is not valid","reasons.registry_record_not_found":"No record was found in the registry for this ID number","reasons.document_id_number_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided, so your verification went to human review","reasons.capture_back_camera":"Use the front camera. Hold the phone in front of your face and try again","reasons.capture_not_upright":"Hold your phone upright, not sideways, and try again","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","hints.appearance":"Let's try again: face a light source and hold still.","hints.motion":"Hold still and keep the phone steady, then try again.","hints.lighting":"Face a window or a lamp so your face is well lit, then try again.","hints.framing":"Move closer so your face fills the frame, then try again.","reasons.subject_revoked":"The identity on file for this check is no longer available. The requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"Keep your face in the frame the whole time, then try again.","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my Mauritanian national ID number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not confirm this browser session is genuine. Reload the page and try again","errors.network_error":"We could not reach the verification service. Check your internet connection and try again","errors.session_expired":"This verification session has expired. Ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number. Ask the requester for a new link","errors.id_number_unbound":"This link was created without your ID number. Ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source and avoid strong light behind you","capture.tips.uncover":"Uncover your face: no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face: no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera. Choose Allow","capture.permission.denied":"Camera access is blocked. Allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.assisted.title":"Capture the person's face","capture.assisted.lead":"Point the back camera at the person's face and hold the phone upright. The voice guidance speaks to the person being filmed.","capture.assisted.stage":"Point the camera at the person's face","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection. This can take a moment on a slow connection","capture.ready":"Ready. Start when you are","fcv2.err.models":"The face-detection models could not be loaded. Check your connection and try again"}});function ao(e){return Gc.get(e)??e}function so(e,t){let n=e,o=t;for(let[r,a]of Object.entries(_i)){let s=o[r],c=o[a];typeof s!="string"&&typeof c=="string"?n[r]=c:typeof c!="string"&&typeof s=="string"&&(n[a]=s)}}var _i,Gc,En=w(()=>{"use strict";_i=Object.freeze({"reasons.id_number_invalid":"reasons.nni_invalid","reasons.registry_record_not_found":"reasons.nni_not_found","reasons.document_id_number_mismatch":"reasons.document_nni_mismatch","errors.id_number_unbound":"errors.nni_unbound","population.reason_id_number_invalid":"population.reason_nni_invalid","population.reason_registry_record_not_found":"population.reason_nni_not_found","population.reason_registry_record_not_found_or_document":"population.reason_nni_not_found_or_document","summary.id_number":"summary.nni"}),Gc=new Map(Object.entries(_i).filter(([e])=>e.startsWith("reasons.")).map(([e,t])=>[t.slice(8),e.slice(8)]));i(ao,"genericReason");i(so,"aliasRenamedKeys")});var lr,Ci=w(()=>{"use strict";lr={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ. أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة. بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة، بحيث يكون الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا. وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا. أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS). افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة. افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة. أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك. أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة. أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا. تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز، لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","fcv3.hold_upright":"أمسك الهاتف بشكل عمودي","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد رقمك","reasons.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها. على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني. سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.id_number_invalid":"رقم الهوية غير صالح","reasons.registry_record_not_found":"لم يُعثر على أي سجل لرقم الهوية هذا في السجل","reasons.document_id_number_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد، لذا أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","hints.appearance":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","hints.motion":"ابقَ ثابتًا وأمسك الهاتف بثبات، ثم حاول مجددًا.","hints.lighting":"اجعل وجهك مقابل نافذة أو مصباح حتى يكون مضاءً جيدًا، ثم حاول مجددًا.","hints.framing":"اقترب أكثر حتى يملأ وجهك الإطار، ثم حاول مجددًا.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة. على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"أبقِ وجهك داخل الإطار طوال الوقت، ثم حاول مجددًا.","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال الرقم الوطني للتعريف الموريتاني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر التأكد من سلامة جلسة المتصفح. أعد تحميل الصفحة وحاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق. تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه. اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف. اطلب رابطًا جديدًا من الجهة الطالبة","errors.id_number_unbound":"أُنشئ هذا الرابط دون رقم هويتك. اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك وتجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك: بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك: بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا. اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور. اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.assisted.title":"صوّر وجه الشخص","capture.assisted.lead":"وجّه الكاميرا الخلفية نحو وجه الشخص وأمسك الهاتف بشكل عمودي. الإرشادات الصوتية تخاطب الشخص الذي تصوّره.","capture.assisted.stage":"وجّه الكاميرا نحو وجه الشخص","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك. قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز. ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه. تحقق من اتصالك ثم أعد المحاولة"}});var ur,wi=w(()=>{"use strict";ur={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes. Gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti. Quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé, avec la lumière sur le visage et non derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée. Branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application. Fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS). Rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible. Ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible. Réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage. Tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux. Éclairez votre visage","fcv3.too_bright":"Trop de lumière. Évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait, ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","fcv3.hold_upright":"Tenez le téléphone à la verticale","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer votre numéro","reasons.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie. C'est au demandeur de le résoudre : reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil. Un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.id_number_invalid":"Le numéro d'identité n'est pas valide","reasons.registry_record_not_found":"Aucun dossier n'a été trouvé dans le registre pour ce numéro d'identité","reasons.document_id_number_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement, votre vérification part donc en revue humaine","reasons.capture_back_camera":"Utilisez la caméra avant. Tenez le téléphone devant votre visage et réessayez","reasons.capture_not_upright":"Tenez votre téléphone à la verticale, pas à l'horizontale, et réessayez","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Réessayons : placez-vous face à une source de lumière et restez immobile.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","hints.appearance":"Réessayons : placez-vous face à une source de lumière et restez immobile.","hints.motion":"Restez immobile et tenez le téléphone bien stable, puis réessayez.","hints.lighting":"Placez-vous face à une fenêtre ou une lampe pour que votre visage soit bien éclairé, puis réessayez.","hints.framing":"Rapprochez-vous pour que votre visage remplisse le cadre, puis réessayez.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible. Le demandeur doit lancer une vérification complète : réessayer n'y changera rien","reasons.probe_not_from_liveness":"Gardez votre visage dans le cadre tout du long, puis réessayez.","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national d'identification mauritanien (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu confirmer l'authenticité de cette session de navigateur. Rechargez la page et réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification. Vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré. Demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification. Demandez un nouveau lien à l'organisme demandeur","errors.id_number_unbound":"Ce lien a été créé sans votre numéro d'identité. Demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière et évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage : ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage : ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra. Choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué. Autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.assisted.title":"Filmez le visage de la personne","capture.assisted.lead":"Pointez la caméra arrière vers le visage de la personne et tenez le téléphone à la verticale. Le guidage vocal s'adresse à la personne filmée.","capture.assisted.stage":"Pointez la caméra vers le visage de la personne","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil. Cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt. Commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage. Vérifiez votre connexion puis réessayez"}});function Ni(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";case"upright":return"fcv3.hold_upright";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}function co(e){let t=`hints.${e}`;return Object.hasOwn(cn,t)?t:null}function ln(e){return`fcv2.err.${e}`}function un(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":case"id_number_unbound":return"errors.id_number_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${ao(e)}`;return Object.hasOwn(cn,t)?t:null}}}function lo(e,t,n=new Date){if(t===void 0)return null;let o=new Date(t),r=o.getTime()-n.getTime();if(!Number.isFinite(r)||r<=0)return null;if(r<36e5){let c=Math.max(1,Math.ceil(r/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(c,"minute")}}let a=o.toDateString()===n.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...a?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(o)}}function uo(e,t,n){let o=new Intl.PluralRules(t).select(n);return((o==="other"?void 0:e[`capture.attemptsRemaining.${o}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(n))}var Vt=w(()=>{"use strict";Si();En();Ci();wi();i(Ni,"hintStringKey");i(co,"retakeHintStringKey");i(ln,"captureErrorStringKey");i(un,"reasonStringKey");i(lo,"retryAfterTime");i(uo,"attemptsRemainingText")});var po,dr=w(()=>{"use strict";po={"session.title":"تحقّق من هويتك","session.requestedBy":"تطلب {orgName} منك التحقق من هويتك","returning.requestedBy":"تطلب {orgName} منك تأكيد أنك أنت","consent.notice":"بإكمال عملية التحقق من الهوية، فإنك توافق على معالجة بياناتك الشخصية والبيومترية للتحقق من هويتك.","consent.details":"التفاصيل","consent.terms.intro":"تتحقق Sekyro AI من هويتك نيابةً عن الجهة التي أرسلت إليك هذا الرابط. قبل البدء، اطّلع على كيفية استخدام بياناتك.","consent.terms.data":"أثناء التحقق، تجمع Sekyro AI صور وثيقة هويتك، ومقطع فيديو ذاتيًا قصيرًا، وصورة ذاتية، ورقم وثيقة هويتك.","consent.terms.processing":"تُستخدم هذه البيانات للتحقق من هويتك فقط: يُقارَن وجهك بالصورة الموجودة على وثيقتك، ويُطابَق رقمك مع سجلات الجهة المُصدِرة متى أمكن ذلك. وقد يفحص بعض الخطوات مراجع بشري مخوَّل.","consent.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","reasons.camera_unavailable":"يتطلب هذا التحقق كاميرا. عُد إلى {org} للمتابعة بطريقة أخرى.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"8 أرقام","otp.send":"إرسال الرمز","otp.channelSms":"رسالة نصية","otp.channelWhatsapp":"واتساب","otp.verifyTitle":"أدخل رمز التحقّق","otp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك لإتمام التحقّق من رقمك","otp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {number} عبر {channel}","otp.codeLabel":"رمز التحقّق","otp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك","otp.verify":"تحقّق من الرمز","otp.resend":"إعادة إرسال الرمز","otp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","otp.expiresIn":"ينتهي الرمز خلال {time}","otp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","otp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","otp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","otp.reason_otp_send_failed":"تعذّر إرسال الرمز. أعد المحاولة بعد قليل","otp.chooseChannel":"كيف تريد أن تتلقّى رمزك؟","otp.sendBy":"إرسال الرمز عبر {channel}","otp.resendBy":"إعادة الإرسال عبر {channel}","otp.reason_otp_channel_unavailable":"هذه الوسيلة غير متاحة. اختر طريقة أخرى لتلقّي رمزك","otp.reason_otp_destination_not_allowed":"لا يمكننا إرسال الرموز إلى أرقام هذا البلد. أدخل رقمًا آخر","otp.reason_otp_destination_unknown":"تعذّر التعرّف على هذا الرقم. تحقّق منه وأعد إدخاله مع رمز البلد","otp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","otp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","otp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.phonePlaceholderGeneric":"أدخل رقم هاتفك بدون رمز البلد","otp.countryLabel":"البلد","otp.phoneLengthError":"تحقق من الرقم: يجب أن يكون عدد أرقامه {digits}.","otp.or":"أو","otp.otherCountry":"بلد آخر","otp.reason_otp_number_invalid":"لا يبدو هذا الرقم كاملاً لبلده. تحقق منه ثم أعد المحاولة.","otp.reason_otp_number_not_mobile":"أدخل رقم هاتف محمول. لا يمكن إرسال الرموز إلى خط أرضي.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","population.reason_id_number_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.reason_registry_record_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_registry_record_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط. لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة صورتك بوثيقة هويتك…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.codeInvalid":"أدخل الرمز المكوّن من 6 أرقام","doc.countryTitle":"ما البلد الذي أصدر وثيقتك؟","doc.countryLabel":"بلد الإصدار","doc.countrySearch":"ابحث عن بلد","doc.noCountryMatch":"لا يوجد بلد يطابق بحثك","doc.type.carte_identite":"بطاقة الهوية","doc.type.residence_permit":"بطاقة الإقامة","doc.type.passport":"جواز السفر","doc.showSide":"اعرض أحد وجهي البطاقة","doc.showPage":"اعرض صفحة الصورة","doc.flip":"اقلب البطاقة","doc.sameFace":"الوجه نفسه · اقلب البطاقة","doc.reaskRecto":"اعرض الوجه الأمامي مرة أخرى","doc.reread":"تعذّرت قراءة هذا الوجه · ثبّت البطاقة في إضاءة جيدة","doc.photoTaken":"تم التقاط الصورة","doc.frontCaptured":"تم التقاط الوجه الأمامي","doc.backCaptured":"تم التقاط الوجه الخلفي","doc.pageCaptured":"تم التقاط الصفحة","doc.progressFront":"الأمام","doc.progressBack":"الخلف","doc.progressPage":"صفحة الصورة","doc.shutter":"التقط الصورة","doc.torchOn":"شغّل الضوء","doc.torchOff":"أطفئ الضوء","result.platform_unsupported":"يتطلب هذا التحقق تطبيقًا على الهاتف.","unsupported.title":"يلزم التحديث","unsupported.description":"تتطلب هذه الخطوة إصدارًا أحدث من هذه الصفحة. تواصل مع {org}.","shell.subtitle":"التحقق من الهوية","shell.subtitleHuman":"التحقق البشري","shell.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","native.face.humanIntroTitle":"أكّد أنك شخص حقيقي","native.face.humanIntroLead":"لقطة قصيرة واحدة: انظر إلى الشاشة فقط.","native.doc.holdIt":"احتفظ بوثيقتك في متناول يدك.","native.doc.changeCountry":"تغيير البلد","native.result.approved":"اكتمل التحقق. يمكنك العودة إلى {org}.","native.result.review":"ستُرسل النتيجة إلى {org}. لا يلزمك فعل أي شيء آخر.","native.result.rejected":"تواصل مع {org} إذا كنت تعتقد أن هذا خطأ.","native.result.expired":"ابدأ من جديد من {org} للحصول على جلسة جديدة.","native.result.copied":"تم النسخ","native.result.back":"العودة إلى {org}"}});var mo,pr=w(()=>{"use strict";mo={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the verification code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","otp.reason_payment_method_required":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_spend_cap_reached":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_insufficient_balance":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.phonePlaceholderGeneric":"Type your phone number without the prefix","otp.countryLabel":"Country","otp.phoneLengthError":"Check the number: it should have {digits} digits.","otp.or":"or","otp.otherCountry":"Another country","otp.reason_otp_number_invalid":"This number does not look complete for its country. Check it and try again.","otp.reason_otp_number_not_mobile":"Enter a mobile number. Codes cannot reach a landline.","session.steps.population.title":"Enter your national ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","population.reason_id_number_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.reason_registry_record_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_registry_record_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Which document will you use?","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Your checks are being processed","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","session.processing.age_estimation.title":"Checking your age","session.processing.age_estimation.description":"This takes a few seconds","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done. You can close this page","session.result.review.title":"Your verification is under review","session.result.review.description":"The result will be sent to the organization that gave you this link. You don't need to do anything else.","session.result.rejected.title":"Your identity could not be verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"This verification session has expired","session.result.expired.description":"Request a new link from the organization that sent it, then start again","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","session.result.deviceStop":"We couldn't continue on this device. Try again on another device or browser.","result.referenceLabel":"Reference code","common.loading":"Loading your verification session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photo with your identity document…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This verification needs a phone app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","population.recheck.title":"Check your national number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Which country issued your document?","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you are a real person","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.approved":"Your verification is complete. You can go back to {org}.","native.result.review":"The result will be sent to {org}. There's nothing else you need to do.","native.result.rejected":"Contact {org} if you think this is a mistake.","native.result.expired":"Start again from {org} to get a new session.","native.result.copied":"Copied","native.result.back":"Back to {org}"}});var fo,mr=w(()=>{"use strict";fo={"session.title":"Vérifiez votre identité","session.requestedBy":"{orgName} vous demande de vérifier votre identité","returning.requestedBy":"{orgName} vous demande de confirmer qu'il s'agit bien de vous","consent.notice":"En poursuivant la vérification d'identité, vous consentez au traitement de vos données personnelles et biométriques afin de vérifier votre identité.","consent.details":"En savoir plus","consent.terms.intro":"Sekyro AI vérifie votre identité pour le compte de l'organisme qui vous a envoyé ce lien. Avant de commencer, consultez la façon dont vos données sont utilisées.","consent.terms.data":"Pendant la vérification, Sekyro AI recueille les photos de votre pièce d'identité, une courte vidéo selfie, une photo selfie et le numéro de votre pièce d'identité.","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre numéro est vérifié auprès des registres de l'autorité émettrice lorsque c'est possible. Certaines étapes peuvent être examinées par un examinateur humain habilité.","consent.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro de téléphone","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code de vérification","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","otp.reason_payment_method_required":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_spend_cap_reached":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_insufficient_balance":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.phonePlaceholderGeneric":"Saisissez votre numéro sans l'indicatif","otp.countryLabel":"Pays","otp.phoneLengthError":"Vérifiez le numéro : il doit comporter {digits} chiffres.","otp.or":"ou","otp.otherCountry":"Autre pays","otp.reason_otp_number_invalid":"Ce numéro ne semble pas complet pour son pays. Vérifiez-le et réessayez.","otp.reason_otp_number_not_mobile":"Saisissez un numéro de mobile. Les codes ne peuvent pas atteindre une ligne fixe.","session.steps.population.title":"Saisissez votre numéro national d'identification","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Vérification auprès du registre civil","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","population.reason_id_number_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.reason_registry_record_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_registry_record_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Quel document allez-vous utiliser ?","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Vos vérifications sont en cours de traitement","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur votre téléphone","session.processing.age_estimation.title":"Vérification de votre âge","session.processing.age_estimation.description":"Cela prend quelques secondes","session.result.approved.title":"Votre identité est vérifiée","session.result.approved.description":"C'est terminé. Vous pouvez fermer cette page","session.result.review.title":"Votre vérification est en cours d'examen","session.result.review.description":"Le résultat sera transmis à l'organisation qui vous a envoyé ce lien. Vous n'avez rien d'autre à faire.","session.result.rejected.title":"Votre identité n'a pas pu être vérifiée","session.result.rejected.description":"Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur","session.result.expired.title":"Cette session de vérification a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui l'a envoyé, puis recommencez","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","session.result.deviceStop":"Impossible de continuer sur cet appareil. Réessayez sur un autre appareil ou navigateur.","result.referenceLabel":"Code de référence","common.loading":"Chargement de votre session de vérification","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo d’identité","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification de votre photo…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison de votre photo avec votre pièce d'identité…","portrait.reviewTitle":"Nous allons vérifier votre photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Cette vérification nécessite une application mobile","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","population.recheck.title":"Vérifiez votre numéro national","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Quel pays a délivré votre document ?","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions maintenant votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez que vous êtes une personne réelle","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.approved":"Votre vérification est terminée. Vous pouvez retourner à {org}.","native.result.review":"Le résultat sera transmis à {org}. Vous n'avez rien d'autre à faire.","native.result.rejected":"Contactez {org} si vous pensez qu'il s'agit d'une erreur.","native.result.expired":"Recommencez depuis {org} pour obtenir une nouvelle session.","native.result.copied":"Copiée","native.result.back":"Revenir à {org}"}});function ho(e,t){let n=oo(e),o=n===void 0?xi[no(e)]:{...xi.en,...n};if(t===void 0)return o;let r={...o};for(let a of Object.keys(t)){let s=t[a];typeof s=="string"&&(r[a]=s)}return so(r,t),r}function go(e){let[,t]=(0,Ot.useState)(0),n=cr(e);return(0,Ot.useEffect)(()=>{if(!n)return;let o=!0;return ro(e).then(()=>o&&t(r=>r+1)),()=>{o=!1}},[e,n]),!n}function Oe(){return(0,Ot.useContext)(Ii)}var Ot,xi,Ii,Li,at=w(()=>{"use strict";Ot=require("react");Vt();En();io();xi={ar:lr,fr:ur,en:cn};i(ho,"resolveStrings");i(go,"useLocaleReady");Ii=(0,Ot.createContext)(e=>cn[e]??""),Li=Ii.Provider;i(Oe,"useStrings")});function je(e,t){return t===void 0?e:e.replace(/\{(\w+)\}/g,(n,o)=>Object.hasOwn(t,o)?String(t[o]):n)}function fr(e,t){let n=no(e),o={...ho(n),...Uc[n],...oo(e)};if(t!==void 0){for(let r of Object.keys(t)){let a=t[r];typeof a=="string"&&(o[r]=a)}so(o,t)}return o}function Ri(e,t){let n=fr(e,t);return{locale:e,strings:n,t:i((o,r)=>je(n[o]??"",r),"t")}}function dn({locale:e,strings:t,children:n}){let o=go(e),r=(0,Qt.useMemo)(()=>Ri(e,t),[e,t,o]);return o?(0,zi.jsx)(Ti.Provider,{value:r,children:n}):null}function se(e,t){let n=(0,Qt.useContext)(Ti);return(0,Qt.useMemo)(()=>n!==null&&e===void 0&&t===void 0?n:Ri(e??n?.locale??"en",t),[n,e,t])}var Qt,zi,Uc,Ti,Ee=w(()=>{"use strict";Qt=require("react");dr();pr();mr();io();En();at();zi=require("react/jsx-runtime"),Uc={en:mo,fr:fo,ar:po};i(je,"formatTemplate");i(fr,"resolveSekyroStrings");Ti=(0,Qt.createContext)(null);i(Ri,"build");i(dn,"StepI18nProvider");i(se,"useStepI18n")});var Ai,Pi,T,be=w(()=>{"use strict";Ai=require("react"),Pi=require("react/jsx-runtime"),T=(0,Ai.forwardRef)(i(function({kind:t="primary",full:n=!1,className:o,type:r,...a},s){let c=["sekyro-btn",`sekyro-btn--${t}`];return n&&c.push("sekyro-btn--full"),o!==void 0&&c.push(o),(0,Pi.jsx)("button",{ref:s,type:r??"button",className:c.join(" "),...a})},"Button"))});function vo({id:e,value:t,onChange:n,length:o=6,describedBy:r,invalid:a}){let[s,c]=(0,Dt.useState)(!1),[l,d]=(0,Dt.useState)(0);(0,Dt.useEffect)(()=>{a&&d(f=>f+1)},[a]);let m=(0,Dt.useRef)(null);(0,Dt.useEffect)(()=>{let f=setTimeout(()=>m.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(f)},[]);let h=t.length<o?t.length:-1;return(0,Xt.jsxs)("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[(0,Xt.jsx)("div",{className:`sekyro-otp-row${l>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:o},(f,u)=>(0,Xt.jsx)("span",{className:`sekyro-otp-box${u<t.length?" is-filled":""}${s&&u===h?" is-current":""}${a?" is-invalid":""}`,children:t[u]!==void 0?(0,Xt.jsx)("span",{className:"sekyro-otp-digit",children:t[u]},t[u]):null},u))},l),(0,Xt.jsx)("input",{ref:m,id:e,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:t,"aria-describedby":r,"aria-invalid":a||void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),onChange:f=>n((0,Ei.normalizeNni)(f.target.value).replace(/\D/g,"").slice(0,o))})]})}var Ei,Dt,Xt,hr=w(()=>{"use strict";Ei=require("@sekyro/web"),Dt=require("react"),Xt=require("react/jsx-runtime");i(vo,"CodeInput")});function Xe(e,t){if(e instanceof pn.InvalidInputError)return e.field==="phone"?"otp.phoneInvalid":e.field==="code"?"otp.codeInvalid":e.kind==="check_digit"?"population.reason_id_number_invalid":"population.invalid";if(e instanceof pn.OtpInputError&&e.field==="channel")return"otp.reason_otp_channel_unavailable";if(e instanceof pn.HostedApiError){let n=`errors.${e.code}`;if(Object.hasOwn(t,n))return n}return"errors.network_error"}var pn,Jt=w(()=>{"use strict";pn=require("@sekyro/web");i(Xe,"errorKey")});function _e(){return(0,qi.useCallback)(e=>{e?.focus()},[])}var qi,ft=w(()=>{"use strict";qi=require("react");i(_e,"useFocusOnMount")});function Be({id:e,title:t,lead:n}){let o=_e();return(0,Ht.jsxs)("div",{className:"sekyro-heading",children:[(0,Ht.jsx)("h2",{id:e,ref:o,tabIndex:-1,className:"sekyro-text-body",children:t}),n!==void 0?(0,Ht.jsx)("p",{className:"sekyro-text-muted",children:n}):null]})}function Fe({children:e}){return(0,Ht.jsx)("div",{className:"sekyro-actions",children:e})}function bo(e){let t=(0,Je.useContext)(kr);(0,Je.useEffect)(()=>(t(e),()=>t(!1)),[e,t])}function Vn({swapKey:e,className:t,children:n}){let[o,r]=(0,Je.useState)({key:e,node:n}),a=(0,Je.useRef)(n);a.current=n;let s=o.key!==e;return(0,Je.useEffect)(()=>{if(!s)return;let c=setTimeout(()=>r({key:e,node:a.current}),Yc);return()=>clearTimeout(c)},[s,e]),(0,Ht.jsx)("div",{className:`${t}${s?" is-leaving":""}`,"aria-hidden":s||void 0,children:s?o.node:n},o.key)}var Je,Ht,mn,kr,Yc,Ki,ht=w(()=>{"use strict";Je=require("react");ft();Ht=require("react/jsx-runtime");i(Be,"StepHeading");i(Fe,"StepActions");mn=(0,Je.createContext)(void 0),kr=(0,Je.createContext)(()=>{});i(bo,"useImmersive");Yc=100;i(Vn,"Swap");Ki=i(({pageKey:e,children:t})=>(0,Ht.jsx)(Vn,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap")});function ze({tone:e,role:t,children:n,testId:o}){return(0,$i.jsx)("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":o,children:n})}var $i,fn=w(()=>{"use strict";$i=require("react/jsx-runtime");i(ze,"Notice")});function $({tone:e,children:t}){return(0,Gi.jsx)(ze,{tone:e,children:t})}function st(e,t,n){return n?e.t("common.noAttemptsLeft"):uo(e.strings,e.locale,t)}var Gi,Ze=w(()=>{"use strict";fn();Vt();Gi=require("react/jsx-runtime");i($,"StepNotice");i(st,"attemptsLine")});function hn(e){let[t,n]=(0,So.useState)(()=>Date.now());return(0,So.useEffect)(()=>{if(!e)return;let o=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(o)},[e]),t}var So,_o=w(()=>{"use strict";So=require("react");i(hn,"useNow")});var Qi,Xi=w(()=>{"use strict";Qi={"emailOtp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إلى بريدك الإلكتروني اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"عنوان بريدك الإلكتروني","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا","emailOtp.send":"أرسل لي رمزًا عبر البريد الإلكتروني","emailOtp.verifyTitle":"أدخل رمز التحقّق","emailOtp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى بريدك الإلكتروني لإتمام التحقّق من عنوانك","emailOtp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {email}","emailOtp.codeLabel":"رمز التحقّق","emailOtp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الوارد في الرسالة","emailOtp.verify":"تحقّق من الرمز","emailOtp.resend":"إعادة إرسال الرمز","emailOtp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","emailOtp.expiresIn":"ينتهي الرمز خلال {time}","emailOtp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","emailOtp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","emailOtp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","emailOtp.reason_otp_send_failed":"تعذّر إرسال الرسالة. أعد المحاولة بعد قليل","emailOtp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","emailOtp.reason_email_invalid":"لا يمكننا الإرسال إلى هذا العنوان. تحقّق منه أو أدخل عنوانًا آخر","emailOtp.reason_email_disposable":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا"}});var On,Ji=w(()=>{"use strict";On={"emailOtp.reason_otp_daily_cap_reached":"We can't email you a code today. Choose another way to verify if one is offered, or try again later.","emailOtp.sendTitle":"Verify your email address","emailOtp.sendDescription":"We'll email you a one-time code to confirm this address is yours","emailOtp.prefilledNotice":"We'll send a verification code to your registered email address.","emailOtp.emailLabel":"Email address","emailOtp.emailHelper":"We'll send a one-time code to this address","emailOtp.emailPlaceholder":"Your email address","emailOtp.emailInvalid":"Enter a valid email address","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the verification code","emailOtp.verifyDescription":"Type the 6-digit code we emailed you to finish verifying your address","emailOtp.sentTo":"We sent a 6-digit code to {email}","emailOtp.codeLabel":"Verification code","emailOtp.codeHelper":"Enter the 6-digit code from the email","emailOtp.verify":"Verify code","emailOtp.resend":"Resend code","emailOtp.resendIn":"Resend code in {seconds}s","emailOtp.expiresIn":"Code expires in {time}","emailOtp.expired":"That code has expired. Resend a new one","emailOtp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","emailOtp.reason_otp_expired":"That code has expired. Resend a new code to continue","emailOtp.reason_otp_send_failed":"We couldn't send the email. Try again in a moment","emailOtp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","emailOtp.reason_email_invalid":"We can't send to this address. Check it or enter another one","emailOtp.reason_email_disposable":"Use a permanent email address, not a temporary one"}});var ea,ta=w(()=>{"use strict";ea={"emailOtp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code par e-mail aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","emailOtp.sendTitle":"Vérifiez votre adresse e-mail","emailOtp.sendDescription":"Nous vous enverrons par e-mail un code à usage unique pour confirmer que cette adresse vous appartient","emailOtp.prefilledNotice":"Nous enverrons un code de vérification à votre adresse e-mail enregistrée.","emailOtp.emailLabel":"Adresse e-mail","emailOtp.emailHelper":"Nous enverrons un code à usage unique à cette adresse","emailOtp.emailPlaceholder":"Votre adresse e-mail","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code de vérification","emailOtp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé par e-mail pour finaliser la vérification de votre adresse","emailOtp.sentTo":"Nous avons envoyé un code à 6 chiffres à {email}","emailOtp.codeLabel":"Code de vérification","emailOtp.codeHelper":"Saisissez le code à 6 chiffres reçu par e-mail","emailOtp.verify":"Vérifier le code","emailOtp.resend":"Renvoyer le code","emailOtp.resendIn":"Renvoyer le code dans {seconds} s","emailOtp.expiresIn":"Le code expire dans {time}","emailOtp.expired":"Ce code a expiré. Renvoyez-en un nouveau","emailOtp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","emailOtp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","emailOtp.reason_otp_send_failed":"Nous n'avons pas pu envoyer l'e-mail. Réessayez dans un instant","emailOtp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","emailOtp.reason_email_invalid":"Nous ne pouvons pas envoyer à cette adresse. Vérifiez-la ou saisissez-en une autre","emailOtp.reason_email_disposable":"Utilisez une adresse e-mail permanente, pas une adresse temporaire"}});var ra={};wt(ra,{EmailOtpView:()=>il});function il({step:e,i18n:t,className:n,defaultEmail:o="",onError:r}){let a=i((M,q)=>je(t.strings[M]??nl[t.locale][M],q),"t"),[s,c]=(0,en.useState)(o),[l,d]=(0,en.useState)(""),[m,h]=(0,en.useState)(!1),[f,u]=(0,en.useState)(null),p=e.phase==="verify",g=hn(p),y=(0,en.useId)(),v=i(async M=>{h(!0),u(null);try{await M()}catch(q){u(q instanceof oa.OtpInputError&&q.field==="email"?a("emailOtp.emailInvalid"):t.t(Xe(q,t.strings))),r?.(q)}finally{h(!1)}},"run"),S=i(M=>{v(()=>e.send(e.needsEmail&&(!M||s!==o)?{email:s}:{}))},"send"),E=i(M=>{v(()=>e.verify(M))},"submitCode"),O=i(M=>{M.preventDefault(),p?E(l):S(!1)},"onSubmit"),R=na(e.codeExpiresAt,g),N=na(e.resendAvailableAt,g),A=p&&e.codeExpiresAt!==void 0&&R===0,[F,G]=a("emailOtp.sentTo").split("{email}"),b=e.reason==="otp_mismatch"?(0,ee.jsxs)($,{tone:"danger",children:[(0,ee.jsx)("span",{children:a("emailOtp.reason_otp_mismatch")}),(0,ee.jsx)("span",{children:st(t,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&rl.has(e.reason)?(0,ee.jsx)($,{tone:"warning",children:(0,ee.jsx)("span",{children:a(`emailOtp.reason_${e.reason}`)})}):null;return(0,ee.jsxs)("form",{className:`sekyro-step sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":y,onSubmit:O,noValidate:!0,children:[(0,ee.jsx)(Be,{id:y,title:a(p?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:p?(0,ee.jsxs)(ee.Fragment,{children:[F,(0,ee.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),G]}):a("emailOtp.sendDescription")}),b,f!==null?(0,ee.jsx)($,{tone:"danger",children:(0,ee.jsx)("span",{children:f})}):null,p?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{className:"sekyro-field",children:[(0,ee.jsx)("label",{className:"sekyro-label",htmlFor:`${y}-code`,children:a("emailOtp.codeLabel")}),(0,ee.jsx)(vo,{id:`${y}-code`,value:l,invalid:e.reason==="otp_mismatch",onChange:M=>{d(M),M.length===6&&l.length!==6&&!m&&!e.attemptsExhausted&&E(M)}}),(0,ee.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${A?" is-danger":""}`,"aria-hidden":!A||void 0,children:A?a("emailOtp.expired"):a("emailOtp.expiresIn",{time:ol(R)})})]}),(0,ee.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:A?a("emailOtp.expired"):""}),(0,ee.jsxs)(Fe,{children:[(0,ee.jsx)(T,{type:"submit",full:!0,disabled:m||l.length!==6,"aria-busy":m||void 0,children:a("emailOtp.verify")}),(0,ee.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:m||N>0,onClick:()=>S(!0),children:N>0?a("emailOtp.resendIn",{seconds:N}):a("emailOtp.resend")})]})]}):(0,ee.jsxs)(ee.Fragment,{children:[e.needsEmail?(0,ee.jsxs)("div",{className:"sekyro-field",children:[(0,ee.jsx)("label",{className:"sekyro-label",htmlFor:`${y}-email`,children:a("emailOtp.emailLabel")}),(0,ee.jsx)("input",{id:`${y}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:a("emailOtp.emailPlaceholder"),value:s,"aria-describedby":`${y}-email-help`,onChange:M=>c(M.target.value)}),(0,ee.jsx)("span",{id:`${y}-email-help`,className:"sekyro-help",children:a("emailOtp.emailHelper")})]}):(0,ee.jsx)("p",{className:"sekyro-text-muted",children:a("emailOtp.prefilledNotice")}),(0,ee.jsx)(Fe,{children:(0,ee.jsx)(T,{type:"submit",full:!0,disabled:m,"aria-busy":m||void 0,children:a("emailOtp.send")})})]})]})}var oa,en,ee,nl,na,ol,rl,ia=w(()=>{"use strict";oa=require("@sekyro/web"),en=require("react");be();Xi();Ji();ta();Jt();ht();Ee();Ze();hr();_o();ee=require("react/jsx-runtime"),nl={en:On,fr:ea,ar:Qi,es:On,pt:On,de:On},na=i((e,t)=>{if(e===void 0)return 0;let n=Date.parse(e)-t;return Number.isFinite(n)?Math.max(0,Math.ceil(n/1e3)):0},"secondsUntil"),ol=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),rl=new Set(["otp_expired","otp_send_failed","otp_rate_limited","email_invalid","email_disposable","otp_daily_cap_reached"]);i(il,"EmailOtpView")});var No,Sr=w(()=>{"use strict";No={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق عبر هويتك الرقمية الوطنية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل الرمز من تطبيق الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز. اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك. اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات. تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا. أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"}});var yt,_r=w(()=>{"use strict";yt={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your national eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter the code from your eID app","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired. Get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect. Check it and enter it again","reasons.eid_code_expired":"Your code has expired. Get a new code to continue","reasons.eid_locked":"Too many incorrect codes. eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now. Try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes. Enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"}});var xo,Cr=w(()=>{"use strict";xo={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID national","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré. Demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré. Demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects. La connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment. Réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"}});var ca={};wt(ca,{EidView:()=>ll});function ll({step:e,i18n:t,className:n,onError:o}){let r=t.strings,a=i((P,Y)=>je(r[P]??aa[t.locale][P]??"",Y),"t"),s=i((P,Y)=>{let oe=new Intl.PluralRules(t.locale).select(Y),V=`${P}.${oe}`,me=r[V]??aa[t.locale][V]??a(`${P}.other`);return je(me,{count:new Intl.NumberFormat(t.locale).format(Y)})},"plural"),c=i(P=>e.providerName?a(`eid.${P}`,{provider:e.providerName}):a(`eid.${P}Generic`),"named"),[l,d]=(0,$e.useState)(""),[m,h]=(0,$e.useState)(""),[f,u]=(0,$e.useState)(!1),[p,g]=(0,$e.useState)(null),y=e.phase==="code",v=hn(y),S=(0,$e.useId)(),E=_e(),O=i(async P=>{u(!0),g(null);try{await P()}catch(Y){g(Xe(Y,t.strings)),o?.(Y)}finally{u(!1)}},"run"),R=(0,$e.useRef)(!1);(0,$e.useEffect)(()=>{!e.identifierBound||y||e.reason!==void 0||R.current||(R.current=!0,O(()=>e.start()))},[e.identifierBound,y,e.reason]),(0,$e.useEffect)(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&h("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let N=(0,$e.useRef)(y);(0,$e.useEffect)(()=>{y&&!N.current&&document.getElementById(`${S}-code`)?.focus(),N.current=y},[y,S]);let A=e.reason==="eid_locked",F=sa(e.codeExpiresAt,v),G=y&&e.codeExpiresAt!==void 0&&F===0,b=sa(e.resendAvailableAt,v),M=e.resendsRemaining===0||e.reason==="eid_resend_limit",q=i(P=>{if(P.preventDefault(),y){m.length===wr&&!A&&O(()=>e.verify(m));return}if(e.identifierBound){O(()=>e.start());return}let Y=(0,gn.normalizeNni)(l);if(e.country==="MR"){if(!/^\d{10}$/.test(Y))return g("population.invalid");if(!(0,gn.isValidNni)(Y))return g("population.reason_nni_invalid")}O(()=>e.start(Y))},"onSubmit"),I=e.reason?.startsWith("eid_")?e.reason:void 0,B=(0,X.jsxs)(X.Fragment,{children:[I!==void 0?(0,X.jsxs)($,{tone:sl.has(I)?"danger":"warning",children:[(0,X.jsx)("span",{children:a(`reasons.${I}`)}),I==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?(0,X.jsx)("span",{children:s("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?(0,X.jsx)(T,{kind:"ghost",disabled:f,onClick:()=>{O(()=>e.useCamera())},children:a("eid.useCamera")}):null]}):null,p!==null?(0,X.jsx)($,{tone:"danger",children:(0,X.jsx)("span",{children:t.t(p)})}):null]}),[L,x]=y?[c("codeTitle"),c("codeHelp")]:[c("identifierTitle"),c(e.identifierBound?"boundDescription":"identifierDescription")];return(0,X.jsxs)("form",{className:`sekyro-stack sekyro-stack--4 sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":S,onSubmit:q,noValidate:!0,"data-testid":"sekyro-eid",children:[(0,X.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,X.jsx)("h2",{id:S,ref:E,tabIndex:-1,className:"sekyro-text-body",children:L}),(0,X.jsx)("p",{className:"sekyro-text-muted",children:x}),e.afterPass==="continue"?(0,X.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?a("eid.continueHint",{provider:e.providerName}):a("eid.continueHintGeneric")}):null]}),B,y?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)("div",{className:"sekyro-field",children:[(0,X.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-code`,children:a("eid.codeLabel")}),(0,X.jsx)("input",{id:`${S}-code`,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:m,disabled:A,onChange:P=>{g(null),h((0,gn.normalizeNni)(P.target.value).replace(/\D/g,"").slice(0,wr))}})]}),(0,X.jsxs)("div",{className:"sekyro-row",children:[e.codeExpiresAt!==void 0?(0,X.jsx)("span",{className:"sekyro-text-muted",children:G?a("eid.expired"):a("eid.expiresIn",{time:cl(F)})}):null,M?(0,X.jsx)("span",{className:"sekyro-text-muted",children:a("eid.noResendsLeft")}):(0,X.jsx)(T,{kind:"ghost",disabled:f||b>0||A,onClick:()=>{O(()=>e.resend())},children:b>0?a("eid.resendIn",{seconds:b}):a("eid.resend")})]}),!M&&e.resendsRemaining!==void 0?(0,X.jsx)("p",{className:"sekyro-text-muted",children:s("eid.resendsRemaining",e.resendsRemaining)}):null,(0,X.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:G?a("eid.expired"):""}),(0,X.jsx)(T,{type:"submit",full:!0,disabled:f||m.length!==wr||A,"aria-busy":f||void 0,children:a("eid.verify")})]}):(0,X.jsxs)(X.Fragment,{children:[e.identifierBound?null:(0,X.jsxs)("div",{className:"sekyro-field",children:[(0,X.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-nni`,children:t.t("population.label")}),(0,X.jsx)("input",{id:`${S}-nni`,className:"sekyro-input sekyro-mono",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:t.t("population.placeholder"),value:l,"aria-describedby":`${S}-nni-help`,"aria-invalid":p==="population.invalid"||p==="population.reason_nni_invalid"||void 0,onChange:P=>{g(null),d((0,gn.normalizeNni)(P.target.value).replace(/\D/g,"").slice(0,10))}}),(0,X.jsx)("span",{id:`${S}-nni-help`,className:"sekyro-help",children:t.t("population.helper")})]}),(0,X.jsx)(T,{type:"submit",full:!0,disabled:f,"aria-busy":f||void 0,children:a("eid.start")})]})]})}var gn,$e,X,aa,wr,sl,sa,cl,la=w(()=>{"use strict";gn=require("@sekyro/web"),$e=require("react");be();Sr();_r();Cr();ft();Jt();Ee();Ze();_o();X=require("react/jsx-runtime"),aa={en:yt,fr:xo,ar:No,es:yt,pt:yt,de:yt},wr=6,sl=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),sa=i((e,t)=>{if(e===void 0)return 0;let n=Date.parse(e)-t;return Number.isFinite(n)?Math.max(0,Math.ceil(n/1e3)):0},"secondsUntil"),cl=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");i(ll,"EidView")});function tn({title:e,description:t,options:n,busy:o,error:r,focus:a,testId:s,look:c="cards",marked:l,onChoose:d}){let m=(0,It.useId)(),h=_e(),[f,u]=(0,It.useState)(null),p=(0,It.useRef)(null);(0,It.useEffect)(()=>{r!==null&&u(null)},[r]),(0,It.useEffect)(()=>()=>{p.current!==null&&clearTimeout(p.current)},[]);let g=i(y=>{o||f!==null||(u(y),p.current=setTimeout(()=>{p.current=null,u(null),d(y)},dl))},"choose");return(0,De.jsxs)("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":m,"data-testid":s,children:[(0,De.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,De.jsx)("h2",{id:m,ref:a?h:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?(0,De.jsx)("p",{className:"sekyro-text-muted",children:t}):null]}),r!==null?(0,De.jsx)(ze,{tone:"danger",children:(0,De.jsx)("span",{children:r})}):null,c==="buttons"?(0,De.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:n.map((y,v)=>(0,De.jsx)(T,{kind:v===0?"primary":"ghost",full:!0,disabled:o,"aria-busy":o||void 0,onClick:()=>d(y.id),children:y.label},y.id))}):(0,De.jsx)("div",{className:"sekyro-choices",children:n.map(y=>(0,De.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":(f??l)===y.id,"aria-busy":o||void 0,disabled:o||f!==null&&f!==y.id,onClick:()=>g(y.id),children:[y.glyph,(0,De.jsxs)("span",{className:"sekyro-card__body",children:[(0,De.jsx)("span",{className:"sekyro-card__title",children:y.label}),y.sub!==void 0?(0,De.jsx)("span",{className:"sekyro-card__sub",children:y.sub}):null]}),(0,De.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},y.id))})]})}var It,De,dl,Lo=w(()=>{"use strict";It=require("react");be();fn();ft();De=require("react/jsx-runtime"),dl=220;i(tn,"ChoiceScreen")});function Dn(e,t){switch(e.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let n=e.nationalEid?.providerName;return n?t.t("method.national_eid",{provider:n}):t.t("method.national_eidGeneric")}default:return null}}function nn(e,t){let[n,o]=(0,Nr.useState)(!1),[r,a]=(0,Nr.useState)(null);return{busy:n,error:r,run:i(c=>{o(!0),a(null),c().then(()=>o(!1),l=>{o(!1),a(e.t(Xe(l,e.strings))),t?.(l)})},"run")}}var Nr,To,xr=w(()=>{"use strict";Nr=require("react");Jt();To={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};i(Dn,"identityLabel");i(nn,"useChoiceAction")});function ml(e,t,n,o){return n?"var(--sekyro-color-success)":e?o?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":t<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":t<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}function ua({progress:e,phase:t,draining:n=!1}){let o=Math.min(1,Math.max(0,e)),r=Math.round(o*56),a=t==="checking",s=t==="recording",c=t==="frozen",l=a||c,d=a||s||c,m=t==="locked"||d,h=n&&!m;return(0,Lt.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":t,"data-filled":r,"data-recording":s?"":void 0,"data-draining":h?"":void 0,children:[(0,Lt.jsx)("path",{fillRule:"evenodd",d:fl,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),(0,Lt.jsxs)("g",{className:t==="locked"?"sekyro-capture-settle":void 0,children:[(0,Lt.jsx)("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:pl.map((f,u)=>(0,Lt.jsx)("line",{x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,stroke:ml(u<r,f.frac,m,h),strokeWidth:3,strokeLinecap:"round",style:f.style,className:"sekyro-arc__tick"},f.id))}),(0,Lt.jsx)("g",{className:t==="seeking"?"sekyro-capture-breathe":void 0,children:(0,Lt.jsx)("circle",{cx:150,cy:150,r:100,fill:"none",stroke:m?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:m?3.5:2.5,className:d?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}var Lt,pl,fl,da=w(()=>{"use strict";Lt=require("react/jsx-runtime"),pl=Array.from({length:56},(e,t)=>{let n=t/56*2*Math.PI-Math.PI/2,o=Math.cos(n),r=Math.sin(n);return{id:`tick-${t}`,frac:t/55,x1:150+108*o,y1:150+108*r,x2:150+138*o,y2:150+138*r,style:{transitionDelay:`${t*6}ms`}}});i(ml,"tickColor");fl="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";i(ua,"CaptureArc")});function pa({videoRef:e,guidanceText:t,guidanceHint:n,guidanceKey:o,progress:r,phase:a,draining:s=!1,stillUrl:c,showChecking:l,onSwitchCamera:d,canSwitchCamera:m,operatorText:h=null,voicePrompt:f,overlay:u,reduceMotion:p=!1}){let g=Oe(),y=a==="checking",S=y||a==="frozen",E=S&&l?g("capture.checking"):t,O=f?.(n,E,o);return(0,Se.jsxs)("div",{className:p?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[(0,Se.jsx)("video",{ref:e,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),c!==null&&S?(0,Se.jsx)("img",{src:c,alt:g("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,(0,Se.jsx)(ua,{progress:r,phase:a,draining:s}),u?.(e),O!=null&&!S?(0,Se.jsx)("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:O}):null,m?(0,Se.jsx)(T,{kind:"chip",onClick:d,"aria-label":g("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:(0,Se.jsx)(Hn,{})}):null,y&&l?(0,Se.jsxs)("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[(0,Se.jsx)(hl,{}),g("capture.cameraOff")]}):null,(0,Se.jsxs)("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[(0,Se.jsx)("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:E},E),S&&l?(0,Se.jsx)("span",{className:"sekyro-stage__guidance-hint",children:g("capture.checkingHint")}):h!==null&&!S?(0,Se.jsx)("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:h}):null]})]})}function Hn(){return(0,Se.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[(0,Se.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,Se.jsx)("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),(0,Se.jsx)("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}function hl(){return(0,Se.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[(0,Se.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,Se.jsx)("path",{d:"M3 3l18 18"})]})}var Se,Ro=w(()=>{"use strict";be();da();at();Se=require("react/jsx-runtime");i(pa,"CaptureStage");i(Hn,"FlipCameraIcon");i(hl,"CameraOffIcon")});function ma({showCoaching:e,attemptsText:t,showRetake:n,onRetake:o}){let r=Oe(),a=(0,zo.useRef)(null);return(0,zo.useEffect)(()=>{n&&a.current?.focus()},[n]),!e&&!n?null:(0,ct.jsxs)("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?(0,ct.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,ct.jsx)("p",{className:"sekyro-text-body",children:r("capture.retryCoaching.title")}),(0,ct.jsxs)("ul",{className:"sekyro-coaching",children:[(0,ct.jsx)("li",{children:r("capture.retryCoaching.light")}),(0,ct.jsx)("li",{children:r("capture.retryCoaching.eyeLevel")}),(0,ct.jsx)("li",{children:r("capture.retryCoaching.head")})]}),t!==null?(0,ct.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:t}):null]}):null,n?(0,ct.jsx)(T,{ref:a,className:"sekyro-btn--start",onClick:o,children:r("capture.recordAgain")}):null]})}var zo,ct,fa=w(()=>{"use strict";zo=require("react");be();at();ct=require("react/jsx-runtime");i(ma,"CapturedPanel")});function yn(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}var Ao=w(()=>{"use strict";i(yn,"isDevBuild")});var ha,Po,Ir=w(()=>{"use strict";ha=require("react"),Po=(0,ha.createContext)(null)});function Eo({value:e,onChange:t}){let n=Oe(),o=(0,ga.useId)();return(0,Tt.jsxs)("fieldset",{className:"sekyro-segmented","data-testid":"sekyro-facing",children:[(0,Tt.jsx)("legend",{className:"sekyro-segmented__legend",children:n("capture.cameraLabel")}),(0,Tt.jsx)("div",{className:"sekyro-segmented__options",children:gl.map(r=>(0,Tt.jsxs)("label",{className:"sekyro-segmented__option",children:[(0,Tt.jsx)("input",{type:"radio",className:"sekyro-segmented__input",name:o,value:r,checked:e===r,onChange:()=>t(r)}),(0,Tt.jsxs)("span",{className:"sekyro-segmented__face",children:[(0,Tt.jsx)("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),n(`capture.facing.${r}`)]})]},r))})]})}var ga,Tt,gl,Lr=w(()=>{"use strict";ga=require("react");at();Tt=require("react/jsx-runtime"),gl=["user","environment"];i(Eo,"FacingPicker")});function vt({className:e,children:t}){return(0,W.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}function ya(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,W.jsx)("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}function va(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,W.jsx)("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}function ka(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),(0,W.jsx)("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),(0,W.jsx)("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}function ba(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),(0,W.jsx)("circle",{cx:"12",cy:"12",r:"2.8"})]})}function Sa(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("path",{d:Tr}),(0,W.jsx)("path",{d:"M9 13l2 2 4-4"})]})}function _a(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("path",{d:Tr}),(0,W.jsx)("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}function Ca(e){return(0,W.jsxs)(vt,{...e,children:[(0,W.jsx)("path",{d:Tr}),(0,W.jsx)("path",{d:"M3 3l18 18"})]})}function vn({off:e,className:t}){return(0,W.jsxs)(vt,{className:t,children:[(0,W.jsx)("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?(0,W.jsx)("path",{d:"M4 4l16 16"}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),(0,W.jsx)("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}function wa(e){return(0,W.jsx)(vt,{...e,children:(0,W.jsx)("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}function Na(e){return(0,W.jsxs)(vt,{className:e.className??"sekyro-spinner",children:[(0,W.jsx)("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),(0,W.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}var W,Tr,kn=w(()=>{"use strict";W=require("react/jsx-runtime");i(vt,"Svg");Tr="M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z";i(ya,"SunIcon");i(va,"FaceUncoveredIcon");i(ka,"PhoneEyeLevelIcon");i(ba,"LookStraightIcon");i(Sa,"CameraCheckIcon");i(_a,"CameraAskIcon");i(Ca,"CameraBlockedIcon");i(vn,"SpeakerIcon");i(wa,"CheckIcon");i(Na,"SpinnerIcon")});function xa({state:e}){let t=Oe(),[n,o]=(0,Mo.useState)(!1);(0,Mo.useEffect)(()=>{e!=="unknown"&&o(!0)},[e]);let r=e==="granted"?(0,qt.jsx)(Sa,{}):e==="denied"?(0,qt.jsx)(Ca,{}):(0,qt.jsx)(_a,{});return(0,qt.jsxs)("div",{role:n?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[(0,qt.jsx)("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:r}),(0,qt.jsx)("span",{children:t(`capture.permission.${e}`)})]})}var Mo,qt,Ia=w(()=>{"use strict";Mo=require("react");at();kn();qt=require("react/jsx-runtime");i(xa,"PermissionRow")});function Ta({tips:e}){let t=Oe(),n=(0,La.useId)();return e.length===0?null:(0,et.jsxs)("section",{className:"sekyro-tips","aria-labelledby":n,"data-testid":"sekyro-tips",children:[(0,et.jsx)("p",{className:"sekyro-tips__title",id:n,children:t("capture.tips.title")}),(0,et.jsx)("ul",{className:"sekyro-tips__list",children:e.map(o=>{let r=typeof o=="string"?yl[o]:void 0,a=typeof o=="string"?o:o.id,s=r!==void 0?r.icon():typeof o=="string"?void 0:o.icon,c=r!==void 0?t(r.key):typeof o=="string"?o:o.text;return(0,et.jsxs)("li",{className:"sekyro-tips__item",children:[s!=null?(0,et.jsx)("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:s}):null,(0,et.jsx)("span",{children:c})]},a)})})]})}var La,et,Vo,yl,Rr=w(()=>{"use strict";La=require("react");at();kn();et=require("react/jsx-runtime"),Vo=["light","uncover","eyeLevel","straight"],yl={light:{key:"capture.tips.light",icon:i(()=>(0,et.jsx)(ya,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:i(()=>(0,et.jsx)(va,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:i(()=>(0,et.jsx)(ka,{}),"icon")},straight:{key:"capture.tips.straight",icon:i(()=>(0,et.jsx)(ba,{}),"icon")}};i(Ta,"TipList")});function Ra({voice:e}){let t=Oe();if(!e.supported)return null;let n=e.enabled;return(0,Kt.jsxs)("button",{type:"button",role:"switch","aria-checked":n,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[(0,Kt.jsxs)("span",{className:"sekyro-switch__label",children:[(0,Kt.jsx)(vn,{off:!n}),t("capture.voiceGuidance")]}),(0,Kt.jsx)("span",{className:"sekyro-switch__track","aria-hidden":"true",children:(0,Kt.jsx)("span",{className:"sekyro-switch__thumb",children:n?(0,Kt.jsx)(wa,{className:"sekyro-switch__check"}):null})})]})}var Kt,za=w(()=>{"use strict";at();kn();Kt=require("react/jsx-runtime");i(Ra,"VoiceSwitch")});function Aa({assets:e,onRetryAssets:t,permission:n,captureMode:o="self",canChooseFacing:r,facing:a,onFacingChange:s,voice:c,tips:l,summary:d,startLabel:m,startDisabled:h,onStart:f}){let u=Oe(),p=(0,Qe.useRef)(d?.stop);p.current=d?.stop,(0,Qe.useEffect)(()=>()=>p.current?.(),[]);let g=(0,Qe.useRef)(null),y=(0,Qe.useRef)(null),v=(0,Qe.useRef)(null),S=(0,Qe.useRef)(e),E=(0,Qe.useRef)(!1);(0,Qe.useEffect)(()=>{let b=S.current;if(S.current=e,b===e)return;let M=E.current;e!=="loading"&&(E.current=!1),vl(g.current)&&(e==="failed"?v.current?.focus():M&&y.current?.focus())},[e]);let O=(0,Qe.useCallback)(()=>{E.current=!0,t()},[t]),R=e==="loading",N=R||h,A=(0,Qe.useCallback)(()=>{N||(p.current?.(),f())},[N,f]),F;e==="failed"?F=(0,he.jsxs)(ze,{tone:"danger",testId:"sekyro-assets-error",children:[(0,he.jsx)("p",{className:"sekyro-text-body",children:u("fcv2.err.models")}),(0,he.jsx)(T,{kind:"ghost",ref:v,className:"sekyro-btn--start",onClick:O,"data-testid":"sekyro-assets-retry",children:u("common.retry")})]}):F=(0,he.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,he.jsx)(T,{ref:y,full:!0,"data-testid":"sekyro-start","aria-disabled":N?"true":void 0,"aria-busy":R?"true":void 0,onClick:A,children:R?(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(Na,{}),u("capture.preparing.title")]}):m??u("capture.start")}),R?(0,he.jsx)("p",{className:"sekyro-text-muted",children:u("capture.preparing.hint")}):null]});let G=o==="assisted";return(0,he.jsxs)("div",{ref:g,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[G?(0,he.jsxs)("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[(0,he.jsx)("h2",{className:"sekyro-text-body",children:u("capture.assisted.title")}),(0,he.jsx)("p",{className:"sekyro-text-muted",children:u("capture.assisted.lead")})]}):null,l!==!1?(0,he.jsx)(Ta,{tips:l}):null,d!==void 0?(0,he.jsxs)(T,{kind:"ghost",className:"sekyro-btn--start",onClick:d.toggle,"data-testid":"sekyro-tips-listen",children:[(0,he.jsx)(vn,{off:!1}),u(d.playing?"capture.tips.stop":"capture.tips.listen")]}):null,(0,he.jsx)(xa,{state:n}),G&&r?(0,he.jsx)(Eo,{value:a,onChange:s}):null,(0,he.jsx)(Ra,{voice:c}),(0,he.jsx)("p",{className:"sekyro-text-muted",children:u("capture.securityNote")}),F,(0,he.jsx)("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?u("capture.preparing.title"):e==="ready"?u("capture.ready"):""})]})}function vl(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}var Qe,he,Pa=w(()=>{"use strict";Qe=require("react");be();fn();at();Lr();kn();Ia();Rr();za();he=require("react/jsx-runtime");i(Aa,"PreCaptureScreen");i(vl,"focusIsOurs")});function Do(){let[e,t]=(0,bn.useState)({state:"unknown",settled:!1}),[n,o]=(0,bn.useState)({canChoose:!1,settled:!1});return(0,bn.useEffect)(()=>(0,Oo.subscribeCameraPermission)(r=>t({state:r,settled:!0})),[]),(0,bn.useEffect)(()=>{let r=!0;return(0,Oo.hasMultipleCameras)().then(a=>{r&&o({canChoose:a,settled:!0})},()=>{r&&o({canChoose:!1,settled:!0})}),()=>{r=!1}},[]),{permission:e.state,permissionSettled:e.settled,canChooseFacing:n.canChoose,facingSettled:n.settled}}var Oo,bn,zr=w(()=>{"use strict";Oo=require("@sekyro/web"),bn=require("react");i(Do,"useCameraStatus")});function Ea(e){return Va(e,"mobileRequired")}function Ma(e){return Va(e,"returning").required}function Va(e,t){let[n,o]=(0,$t.useState)({required:!1,settled:e===void 0});return(0,$t.useEffect)(()=>{let r=e?.[t];if(e===void 0||typeof r!="function"){o({required:!1,settled:!0});return}let a=!0;return o({required:!1,settled:!1}),Promise.resolve().then(()=>r.call(e)).then(s=>{a&&o({required:s===!0,settled:!0})},()=>{a&&o({required:!1,settled:!0})}),()=>{a=!1}},[e,t]),n}function Oa(e){let[t,n]=(0,$t.useState)({mode:"self",settled:e===void 0});return(0,$t.useEffect)(()=>{let o=e?.captureMode;if(e===void 0||typeof o!="function"){n({mode:"self",settled:!0});return}let r=!0;return n({mode:"self",settled:!1}),Promise.resolve().then(()=>o.call(e)).then(a=>{r&&n({mode:a==="assisted"?"assisted":"self",settled:!0})},()=>{r&&n({mode:"self",settled:!0})}),()=>{r=!1}},[e]),t}function Da(e){let[t,n]=(0,$t.useState)(!1);return(0,$t.useEffect)(()=>{if(n(!1),e===void 0)return;let o=e.on("busy",()=>n(!0)),r=e.on("result",()=>n(!1));return()=>{o(),r()}},[e]),t}var $t,Ha=w(()=>{"use strict";$t=require("react");i(Ea,"useMobileRequired");i(Ma,"useReturning");i(Va,"useFlag");i(Oa,"useCaptureMode");i(Da,"useBusy")});function Ho({colour:e}){return e===null?null:(0,Fa.jsx)("div",{"aria-hidden":"true","data-testid":"sekyro-screen-ramp","data-colour":e,style:{position:"fixed",inset:0,pointerEvents:"none",backgroundColor:(0,Ba.screenRampColourValue)(e)}})}var Ba,Fa,Ar=w(()=>{"use strict";Ba=require("@sekyro/web"),Fa=require("react/jsx-runtime");i(Ho,"ScreenRampLayer")});function qa(e){return(0,Sn.preloadLivenessAssets)(e!==void 0?{assetBaseUrl:e}:{})}function Ka(e,t=!0){let n=(0,Ge.useSyncExternalStore)((0,Ge.useCallback)(h=>(0,Sn.subscribeLivenessAssets)(h,e),[e]),()=>(0,Sn.getLivenessAssetsStatus)(e),kl),[o,r]=(0,Ge.useState)(null),a=(0,Ge.useRef)(!1),s=(0,Ge.useCallback)(()=>{qa(e).then(h=>{a.current&&h==="idle"&&r({base:e})})},[e]);(0,Ge.useEffect)(()=>(a.current=!0,s(),()=>{a.current=!1}),[s]);let c=(0,Ge.useRef)(null);(0,Ge.useEffect)(()=>{if(n!=="idle"){c.current={base:e};return}!t||c.current===null||c.current.base!==e||(c.current=null,s())},[n,e,s,t]);let l=(0,Ge.useCallback)(()=>{qa(e)},[e]);return{gate:o!==null&&o.base===e&&n==="idle"||n==="ready"?"ready":n==="failed"?"failed":"loading",retry:l}}var Sn,Ge,kl,$a=w(()=>{"use strict";Sn=require("@sekyro/web"),Ge=require("react"),kl=i(()=>"idle","serverSnapshot");i(qa,"preload");i(Ka,"useLivenessAssets")});function Wa(e){let{videoRef:t,assetBaseUrl:n}=e,r=(0,pe.useRef)(e.verification).current,a=(0,pe.useRef)(!1);e.verification!==r&&!a.current&&yn()&&(a.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let s=(0,pe.useRef)(null),[c,l]=(0,pe.useState)("idle"),[d,m]=(0,pe.useState)(Ga),[h,f]=(0,pe.useState)(!1),[u,p]=(0,pe.useState)(!1),[g,y]=(0,pe.useState)(null),[v,S]=(0,pe.useState)(!1),[E,O]=(0,pe.useState)(null),[R,N]=(0,pe.useState)(null),[A,F]=(0,pe.useState)(null),[G,b]=(0,pe.useState)(null),[M,q]=(0,pe.useState)(null),I=(0,pe.useRef)(null),B=(0,pe.useRef)("idle"),L=(0,pe.useRef)(e);L.current=e,(0,pe.useEffect)(()=>{let oe=t.current;if(oe===null)return;let V={video:oe,...n!==void 0?{assetBaseUrl:n}:{}},me=r!==void 0?r.liveness(V):(0,Ua.createLivenessCapture)(V);s.current=me;let we=i(()=>q(me.facingMode??null),"readFacing");we();let ue=[me.on("state",K=>{K==="starting"?(N(null),F(null),m(Ga),p(!1),f(!1),y(null),O(null),I.current=null):K==="gating"&&B.current==="recording"&&(p(!1),f(!1),y(null),I.current=null),B.current=K,we(),l(K),L.current.onStateChange?.(K)}),me.on("gate",K=>{let Ue=I.current;I.current=K.progress,f(Ue!==null&&K.progress<Ue-.001&&K.progress>0&&K.progress<1),K.progress>=1&&p(!0),m(K)}),me.on("frozen",({previewDataUrl:K})=>y(K)),me.on("profile",({animations:K})=>S(K==="reduced")),me.on("ramp",({colour:K})=>O(K)),me.on("captured",K=>{N(K),b(null),L.current.onCaptured?.(K)}),me.on("error",K=>{F(K),L.current.onError?.(K)}),r?.on("result",K=>{b(K),L.current.onResult?.(K)})];return()=>{for(let K of ue)K?.();s.current=null,me.destroy()}},[r,t,n]);let x=(0,pe.useCallback)(oe=>{s.current?.start(oe)},[]),P=(0,pe.useCallback)(()=>{s.current?.retry()},[]),Y=(0,pe.useCallback)(()=>{let oe=s.current,V=oe?.switchCamera()===!0;return V&&(q(oe?.facingMode??null),p(!1),f(!1),y(null),I.current=null),V},[]);return{state:c,gate:d,draining:h,gateLocked:u,frozenPreview:g,reduceMotion:v,rampColour:E,artifacts:R,error:A,result:G,facingMode:M,start:x,retry:P,switchCamera:Y}}var Ua,pe,Ga,Ya=w(()=>{"use strict";Ua=require("@sekyro/web"),pe=require("react");Ao();Ga={progress:0,hint:null,faceDetected:!1};i(Wa,"useLivenessHandle")});function ja(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(n=>bl.has(n));return t.length>0?{...e,options:t}:null}function Za(e){let[t,n]=(0,Rt.useState)(null),[o,r]=(0,Rt.useState)(e===void 0),[a,s]=(0,Rt.useState)(!1),[c,l]=(0,Rt.useState)(!1);(0,Rt.useEffect)(()=>{if(n(null),e===void 0){r(!0);return}let f=!0,u=e.methodChoice;typeof u=="function"?(r(!1),Promise.resolve().then(()=>u.call(e)).then(g=>{f&&n(ja(g))},()=>{}).finally(()=>{f&&r(!0)})):r(!0);let p=e.on("method",g=>n(ja(g)));return()=>{f=!1,p()}},[e]);let d=(0,Rt.useCallback)(async f=>{if(e===void 0)return!1;s(!0),l(!1);try{return await e.selectMethod(f),n(null),!0}catch{return l(!0),!1}finally{s(!1)}},[e]),m=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:m==="national_number"&&!c?m:null,settled:o,busy:a,failed:c,select:d}}var Rt,bl,Qa=w(()=>{"use strict";Rt=require("react"),bl=new Set(["national_number"]);i(ja,"pending");i(Za,"useMethodChoice")});function on(e){return e!==null&&Bo.includes(e)}var Bo,Fo=w(()=>{"use strict";Bo=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","fcv3.hold_upright","capture.tips.summary"];i(on,"isVoiceKey")});function _l(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}function Cl(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let n={};for(let o of Sl){let r=t[o];if(!(typeof r!="object"||r===null))for(let[a,s]of Object.entries(r))!on(a)||!_l(s)||((n[o]??(n[o]={}))[a]=s)}return Object.keys(n).length>0?n:null}function Xa(e){let[t,n]=(0,_n.useState)(null);(0,_n.useEffect)(()=>{if(n(null),e===void 0)return;let r=!0,a=i(c=>{if(!r)return;let l=typeof c=="object"&&c!==null&&typeof c.setId=="string"?c:null;n(d=>d?.setId===l?.setId?d:l)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(a,()=>a(null))}catch{a(null)}let s=e.on("view",c=>a(c.voice));return()=>{r=!1,s()}},[e]);let o=(0,_n.useMemo)(()=>t!==null?Cl(t):null,[t]);return e===void 0?null:o}var _n,Sl,Ja=w(()=>{"use strict";_n=require("react");Fo();Sl=["ar","fr","en"];i(_l,"isClipUrl");i(Cl,"toVoiceClipMap");i(Xa,"useServerVoiceClips")});function es({voice:e}){let t=Oe();return(0,Pr.jsx)(T,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:(0,Pr.jsx)(vn,{off:!e.enabled,className:"sekyro-icon"})})}var Pr,ts=w(()=>{"use strict";be();kn();at();Pr=require("react/jsx-runtime");i(es,"VoiceChip")});function Cn(e,t,n){let o;try{if(typeof e=="function")o=e(t,n);else{let r=e[n];o=r!=null&&wl(r,t)?r[t]:null}}catch{return null}return typeof o=="string"&&o!==""?o:null}var wl,ns=w(()=>{"use strict";wl=i((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");i(Cn,"resolveClip")});function kt(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}function xl(){return kt()!==null&&typeof SpeechSynthesisUtterance=="function"}function os(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}function as(e,t){let n=i(r=>r.replace(/_/g,"-").toLowerCase(),"norm"),o=os(t);return e.find(r=>n(r.lang)===n(t))??e.find(r=>os(r.lang)===o)}function ss(e){if(!xl())return!1;let t=[];try{t=kt()?.getVoices()??[]}catch{return!0}return t.length===0||as(t,e)!==void 0}function cs(e){let t=kt();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}function Bn(e){try{let t=typeof location<"u"?location.href:"http://localhost/",n=new URL(e,t);return`clip:${n.origin}${n.pathname}`}catch{return`clip:${e}`}}function rs(e){e.pause(),e.removeAttribute("src"),e.load()}function ls(){let e=null,t=null,n=0,o=null,r=[],a=new Map,s=i(()=>{r=kt()?.getVoices()??[]},"loadVoices"),c=!1,l=i(()=>{let u=kt();c||u===null||(c=!0,s(),u.addEventListener?.("voiceschanged",s))},"bindVoices"),d=i(()=>(e??(e=new Audio),e),"element"),m=i((u,p,g)=>{let y=kt();if(y!==null&&u!==""&&typeof SpeechSynthesisUtterance=="function"){l();let v=as(r,p);if(r.length===0||v!==void 0){y.cancel();let S=new SpeechSynthesisUtterance(u);S.lang=p,v!==void 0&&(S.voice=v),S.rate=.95,g!==void 0&&(S.onend=S.onerror=g),y.speak(S);return}}g?.()},"speak"),h=i(()=>{n+=1,o=null,e!==null&&(e.pause(),e.currentTime=0),kt()?.cancel()},"stop"),f=i(u=>{for(let p of u){let g=Bn(p);if(a.has(g))continue;let y=new Audio;y.preload="auto",y.src=p,a.set(g,y)}},"warmClips");return{say(u){let p=u.url!==null?Bn(u.url):`tts:${u.lang}:${u.text}`;if(p===o)return;o=p,n+=1;let g=n,y=u.onEnd,v=y!==void 0?()=>{g===n&&y()}:void 0;if(kt()?.cancel(),u.url!==null){let S=d();S.pause(),S.muted=!1,S.src=u.url,S.currentTime=0,S.onended=v??null,S.play()?.catch(E=>{g===n&&E?.name!=="AbortError"&&(u.speech?m(u.text,u.lang,v):v?.())});return}u.speech?m(u.text,u.lang,v):v?.()},unlock({lang:u,speech:p,prefetch:g}){let y=d();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let E=Uint8Array.from(atob(Nl),O=>O.charCodeAt(0));t=URL.createObjectURL(new Blob([E],{type:"audio/wav"}))}let v=y.paused===!1&&t!==null&&y.src!==t;t!==null&&!v&&(y.muted=!0,y.onended=null,y.src=t,y.play()?.catch(()=>{}));let S=kt();if(p&&S!==null&&typeof SpeechSynthesisUtterance=="function"){l();let E=new SpeechSynthesisUtterance(" ");E.volume=0,E.lang=u,S.speak(E)}f(g??[])},prefetch:f,stop:h,dispose(){h(),c&&kt()?.removeEventListener?.("voiceschanged",s),c=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&rs(e),e=null;for(let u of a.values())rs(u);a.clear()}}}var Nl,is,us=w(()=>{"use strict";Nl="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",is={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};i(kt,"synth");i(xl,"speechAvailable");i(os,"baseLang");i(as,"pickVoice");i(ss,"speechUsable");i(cs,"subscribeVoices");i(Bn,"clipIdentity");i(rs,"release");i(ls,"createVoicePlayer")});function ps(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}function ms(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}var ds,fs=w(()=>{"use strict";ds="sekyro.voiceGuidance";i(ps,"readVoicePreference");i(ms,"writeVoicePreference")});function Er(e,t){let n=new Set,o=[];for(let r of Bo){let a=r===Fn?null:Cn(e,r,t);a===null||n.has(Bn(a))||(n.add(Bn(a)),o.push(a))}return o}function Mr({locale:e,defaultClips:t,options:n}){let o=n===!1,r=o?{}:n??{},a=r.storageKey===void 0?ds:r.storageKey,[s,c]=(0,j.useState)(r.defaultEnabled??!0),l=(0,j.useRef)(s),[d,m]=(0,j.useState)(!1),[h,f]=(0,j.useState)("none"),[u,p]=(0,j.useState)(!1),g=(0,j.useRef)(!1),[y,v]=(0,j.useState)(0),S=(0,j.useRef)(null),E=(0,j.useCallback)(()=>(S.current??(S.current=ls()),S.current),[]),O=is[e],R=r.speechFallback,N=R===void 0||R===!0?!0:R===!1?!1:R.includes(e),A=r.clips??t??Ll,F=(0,j.useRef)(!1),G=(0,j.useRef)(A);Il(()=>{G.current=A,l.current=s}),(0,j.useEffect)(()=>{if(o||a===null)return;let V=ps(a);V!==null&&(l.current=V,c(V))},[o,a]),(0,j.useEffect)(()=>{if(!(o||!N))return cs(()=>v(V=>V+1))},[o,N]);let b=r.clips;(0,j.useEffect)(()=>{if(o)return;let V=N&&ss(O);m(Er(A,e).length>0||V),f(b!==void 0&&Cn(b,Fn,e)!==null?"partner":Cn(A,Fn,e)!==null||V?"default":"none")},[o,A,b,e,N,O,y]),(0,j.useEffect)(()=>{if(o||!s||!F.current)return;let V=Er(A,e);V.length>0&&E().prefetch(V)},[o,s,A,e,E]),(0,j.useEffect)(()=>()=>{S.current?.dispose(),S.current=null,F.current=!1},[]);let M=(0,j.useCallback)(V=>{o||(F.current=!0,E().unlock({lang:O,speech:N,...V?{prefetch:Er(G.current,e)}:{}}))},[o,E,O,N,e]),q=(0,j.useCallback)(()=>M(l.current),[M]),I=(0,j.useCallback)(()=>{g.current=!1,p(!1)},[]),B=(0,j.useCallback)(()=>{I(),S.current?.stop()},[I]),L=(0,j.useCallback)(()=>{g.current&&B()},[B]),x=(0,j.useCallback)((V,me)=>{if(o)return;if(g.current){B();return}let we=E();we.stop(),g.current=!0,p(!0);let ue=me?.clip===!1?null:Cn(G.current,Fn,e);we.say({url:ue,text:V,lang:O,speech:N,onEnd:I})},[o,B,E,e,O,N,I]),P=(0,j.useCallback)(V=>{o||(V?M(!0):B(),a!==null&&ms(a,V),l.current=V,c(V))},[o,M,B,a]),Y=(0,j.useCallback)(()=>P(!l.current),[P]),oe=(0,j.useCallback)((V,me)=>{if(o||!s)return;g.current&&I();let we=Cn(G.current,V,e);E().say({url:we,text:me,lang:O,speech:N})},[o,s,e,E,O,N,I]);return(0,j.useMemo)(()=>({supported:!o&&d,enabled:!o&&s,setEnabled:P,toggle:Y,unlock:q,speakKey:oe,stop:B,summary:o?"none":h,summaryPlaying:u,toggleSummary:x,stopSummary:L}),[o,d,s,P,Y,q,oe,B,h,u,x,L])}function Vr(e,t,n,o){let{speakKey:r,stop:a,enabled:s}=e,c=(0,j.useRef)(!1);(0,j.useEffect)(()=>{if(!o||!s){c.current&&a(),c.current=!1;return}c.current=!0,on(t)&&t!==Fn&&n!==""&&r(t,n)},[o,s,t,n,r,a])}var j,Fn,Il,Ll,hs=w(()=>{"use strict";j=require("react");ns();Fo();us();fs();Fn="capture.tips.summary",Il=typeof window<"u"?j.useLayoutEffect:j.useEffect,Ll=Object.freeze({});i(Er,"resolvedClipUrls");i(Mr,"useVoiceGuidance");i(Vr,"useSpeakGuidance")});var gs=w(()=>{"use strict";Fo();hs()});function Rl(e){return e===void 0||e!==!1&&e.length===Vo.length&&Vo.every(t=>e.includes(t))}function zl(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}function Al(e){return typeof e=="object"&&e!==null&&!(0,Z.isValidElement)(e)&&"tone"in e&&"text"in e}function Pl(e){return e==="starting"||e==="gating"||e==="recording"}function El(e){return e==="captured"||e==="uploading"||e==="checking"}function qo({verification:e,locale:t,dir:n,strings:o,slots:r,autoStart:a=!1,notice:s,startDisabled:c=!1,startLabel:l,tips:d,tipsSummary:m,coach:h,voice:f,onGuidance:u,onCaptured:p,onResult:g,onError:y,onStateChange:v,assetBaseUrl:S,className:E}){let O=go(t),R=(0,Z.useMemo)(()=>ho(t,o),[t,o,O]),N=(0,Z.useMemo)(()=>ne=>R[ne]??"",[R]),A=n??(t==="ar"?"rtl":"ltr"),F=(0,Z.useRef)(null),G=(0,Z.useContext)(Po),b=Wa({verification:e,videoRef:F,assetBaseUrl:S,onCaptured:p,onResult:g,onError:y,onStateChange:v}),M=Ka(S,b.state==="idle"&&b.error===null),q=Za(e),I=q.choice!==null,B=Ea(e),L=Ma(e),x=Da(e),P=Do(),Y=Oa(e),oe=Y.mode==="assisted",V=oe&&P.canChooseFacing,me=f!==!1&&f?.clips===void 0,we=Xa(me?e:void 0),ue=Mr({locale:t,defaultClips:we,options:f}),[K,Ue]=(0,Z.useState)(null),Te=oe?K??(P.canChooseFacing?"environment":"user"):"user",Pt=Y.settled&&(!oe||P.facingSettled),Wt=(0,Z.useRef)(null),dt=(0,Z.useRef)(!1),qe=(0,Z.useRef)(ue.unlock);qe.current=ue.unlock,(0,Z.useEffect)(()=>{let ne=Wt.current;if(ne===null)return;let mt=["pointerup","touchend","click","keydown"],Mt=i(()=>{for(let Pn of mt)ne.removeEventListener(Pn,sn,!0)},"disarm");function sn(Pn){if(dt.current){Mt();return}zl(Pn)&&(dt.current=!0,Mt(),qe.current())}i(sn,"onGesture");for(let Pn of mt)ne.addEventListener(Pn,sn,{capture:!0,passive:!0});return Mt},[]);let Ne=(0,Z.useCallback)(()=>{dt.current||(dt.current=!0,ue.unlock()),b.start({facing:Te})},[ue.unlock,b.start,Te]),Ve=(0,Z.useCallback)(()=>b.start({facing:Te}),[b.start,Te]),it=(0,Z.useRef)(!1),Ke=b.state==="idle"&&b.error===null,bt=!I&&!B.required&&(a===!0||a==="when-permitted"&&P.permission==="granted"),Et=bt&&q.settled&&B.settled&&Pt,Rn=a==="when-permitted"&&!P.permissionSettled&&!it.current,Yt=bt&&Ke&&!it.current,St=(Rn||Yt||!Pt)&&M.gate==="ready"?"loading":M.gate;(0,Z.useEffect)(()=>{!Et||!Ke||M.gate!=="ready"||it.current||(it.current=!0,Ve())},[Et,Ke,M.gate,Ve]);let Q=Ke&&!I&&!B.required&&!(Yt&&M.gate==="ready"),te=(0,Z.useCallback)(()=>{b.switchCamera()&&Ue(Te==="user"?"environment":"user")},[b.switchCamera,Te]),C=b.state!=="idle"&&b.facingMode!==null?b.facingMode:Te;(0,Z.useEffect)(()=>{let ne=F.current?.style;C==="user"?ne?.removeProperty("transform"):ne&&(ne.transform="none")},[C]);let H=(0,Z.useMemo)(()=>b.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(b.artifacts.keyframe):null,[b.artifacts]);(0,Z.useEffect)(()=>{if(H!==null)return()=>URL.revokeObjectURL(H)},[H]);let de=b.frozenPreview??H,fe=e!==void 0,ve=Pl(b.state),U=El(b.state),Re=ve||U,Pe=b.result,We=b.state==="done"&&Pe!==null,Ye=b.state==="recording"&&b.frozenPreview!==null,_t=G!==null,He=U||Ye,an=U?"checking":Ye?"frozen":b.state==="recording"?"recording":b.gateLocked||b.gate.progress>=1?"locked":b.gate.faceDetected?"aligning":"seeking",jt=ve?b.gate.hint:null,Qn=b.state==="starting"?"capture.preparing.title":jt===null?null:jt==="center"&&!b.gate.faceDetected?"fcv3.no_face":Ni(jt),[Rc,oi]=(0,Z.useState)(null);(0,Z.useEffect)(()=>{if(Qn!=="fcv3.no_face"){oi(Qn);return}if(!ve)return;let ne=setTimeout(()=>oi(Qn),Tl);return()=>clearTimeout(ne)},[Qn,ve]);let tr=ve&&typeof h=="string"&&h!=="",ri=oe&&ve?N("capture.assisted.stage"):null,Zt=ve&&!tr?Rc:null,nr=tr?h:Zt===null?"":N(Zt);Vr(ue,Zt,nr,ve);let ii=(0,Z.useRef)(u);ii.current=u,(0,Z.useEffect)(()=>{if(on(Zt))try{ii.current?.(Zt)}catch(ne){console.error("[@sekyro/react] onGuidance threw:",ne)}},[Zt]);let zn=(0,Z.useMemo)(()=>({supported:ue.supported,enabled:ue.enabled,setEnabled:ue.setEnabled,toggle:ue.toggle}),[ue.supported,ue.enabled,ue.setEnabled,ue.toggle]),or=r?.voicePrompt,ai=or!==void 0,si=f===void 0,ci=(0,Z.useRef)(!1);(0,Z.useEffect)(()=>{!ai||!si||ci.current||!yn()||(ci.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[ai,si]);let zc=or!==void 0?(ne,mt,Mt)=>or(ne,mt,Mt,zn):ue.supported?()=>(0,J.jsx)(es,{voice:zn}):void 0,{summary:rr,summaryPlaying:li,toggleSummary:ui,stopSummary:di}=ue,Xn=m!==void 0&&m!=="",pi=Xn?m:N("capture.tips.summary"),mi=Xn?rr!=="none":rr==="partner"||rr==="default"&&Rl(d),Ac=(0,Z.useMemo)(()=>mi?{playing:li,toggle:i(()=>ui(pi,{clip:!Xn}),"toggle"),stop:di}:void 0,[mi,li,ui,pi,di,Xn]),Pc=(0,Z.useMemo)(()=>({assets:St,retryAssets:M.retry,permission:P.permission,permissionSettled:P.permissionSettled,captureMode:Y.mode,facing:Te,setFacing:Ue,canChooseFacing:V,voice:zn}),[St,M.retry,P.permission,P.permissionSettled,Y.mode,V,Te,zn]),Ec=Al(s)?(0,J.jsx)(ze,{tone:s.tone,testId:"sekyro-host-notice",children:(0,J.jsx)("span",{children:s.text})}):s??null,Ct=Pe!==null&&Pe.status==="retry"?Pe:null,pt=We&&Pe.status==="unavailable"&&!I&&Pe.reason!=="portrait_required"?Pe:null,An=We&&(Pe.status==="approved"||Pe.status==="rejected"||Pe.status==="review")?Pe:null,Jn=i((ne,mt)=>{if(ne===void 0)return null;if(ne==="device_cooldown"){let sn=lo(t,mt);if(sn!==null)return N(sn.key).replace("{time}",sn.time)}let Mt=un(ne);return Mt===null?null:N(Mt)},"reasonText"),ir=i(ne=>{let mt=ne.retakeHint===void 0?null:co(ne.retakeHint);return mt===null?Jn(ne.reason):N(mt)},"retryText"),Mc=pt!==null&&pt.reason!==void 0&&pt.reason!=="nni_unbound"&&pt.reason!=="id_number_unbound"&&pt.reason!=="method_required"&&pt.reason!=="mobile_required"&&!(pt.reason==="no_recorder"&&b.artifacts?.degraded==="NO_RECORDER"),fi=_e(),Vc=I&&q.auto===null&&!ve&&!U&&b.error===null,ar=(0,Z.useCallback)(async ne=>{await q.select(ne)&&b.state==="done"&&b.retry()},[q.select,b.state,b.retry]);return(0,Z.useEffect)(()=>{q.auto!==null&&!q.busy&&!ve&&!U&&ar(q.auto)},[q.auto,q.busy,ve,U,ar]),(0,J.jsx)(Li,{value:N,children:(0,J.jsxs)("div",{ref:Wt,className:E===void 0?"sekyro-capture":`sekyro-capture ${E}`,dir:A,lang:t,"data-testid":"sekyro-liveness-capture","data-state":b.state,children:[r?.header,Ct!==null&&ir(Ct)!==null&&!(_t&&Re)?(0,J.jsx)(ze,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:(0,J.jsx)("span",{children:ir(Ct)})}):null,x&&U&&!_t?(0,J.jsx)(ze,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:(0,J.jsx)("span",{children:N("capture.busy")})}):null,B.required&&Ke?(0,J.jsx)(ze,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:(0,J.jsx)("span",{children:N("reasons.mobile_required")})}):null,b.error!==null?r?.errorPanel!==void 0?r.errorPanel(b.error,b.retry):(0,J.jsxs)(ze,{tone:"danger",testId:"sekyro-error-notice",children:[(0,J.jsx)("span",{children:N(ln(b.error.kind))}),b.error.retryable?(0,J.jsx)(T,{ref:fi,kind:"ghost",className:"sekyro-btn--start",onClick:b.retry,children:N("common.retry")}):null]}):null,pt!==null?(0,J.jsxs)(ze,{tone:"danger",testId:"sekyro-unavailable-notice",children:[(0,J.jsx)("span",{children:Jn(pt.reason)??N(pt.reason===void 0?"errors.session_expired":"errors.network_error")}),Mc?(0,J.jsx)(T,{ref:fi,kind:"ghost",className:"sekyro-btn--start",onClick:b.retry,children:N("capture.recordAgain")}):null]}):null,An!==null&&Jn(An.reason)!==null?(0,J.jsx)(ze,{tone:An.status==="rejected"?"danger":"info",testId:"sekyro-result-notice",children:(0,J.jsx)("span",{children:Jn(An.reason,An.retryAfter)})}):null,(0,J.jsx)("div",{className:Re?void 0:"sekyro-hidden","data-capture-live":Re?"":void 0,children:_t?G({videoRef:F,guidance:He&&fe?N("capture.checking"):nr,coached:tr&&!(He&&fe),note:He?fe?N(x?"capture.busy":"capture.checkingHint"):null:Ct!==null?ir(Ct):ri,settled:He&&fe,progress:b.gate.progress,phase:an,still:He?de:null,live:Re,switchCamera:ve&&b.state!=="recording"&&V&&te,ramp:b.rampColour===null?null:{colour:b.rampColour}}):(0,J.jsx)(pa,{videoRef:F,guidanceText:nr,guidanceHint:jt,guidanceKey:Zt,progress:b.gate.progress,phase:an,draining:b.draining,stillUrl:de,showChecking:fe,onSwitchCamera:te,canSwitchCamera:oe&&ve&&b.state!=="recording",operatorText:ri,voicePrompt:zc,overlay:ne=>(0,J.jsxs)(J.Fragment,{children:[r?.stageOverlay?.(ne),(0,J.jsx)(Ho,{colour:b.rampColour})]}),reduceMotion:b.reduceMotion})}),Vc&&q.choice!==null?(0,J.jsx)(tn,{title:N("method.title"),description:N("method.description"),options:q.choice.options.map(ne=>({id:ne,label:N(`method.${ne}`)})),busy:q.busy,error:q.failed?N("errors.network_error"):null,focus:b.state==="done",testId:"sekyro-method",look:"buttons",onChoose:ne=>{ar(ne)}}):null,Q?(0,J.jsxs)(J.Fragment,{children:[L&&r?.header===void 0?(0,J.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,J.jsx)("h2",{className:"sekyro-text-body",children:N("returning.title")}),(0,J.jsx)("p",{className:"sekyro-text-muted",children:N("returning.description")})]}):null,Ec,r?.intro!==void 0?r.intro(Ne,Pc):(0,J.jsx)(Aa,{assets:St,onRetryAssets:M.retry,permission:P.permission,captureMode:Y.mode,canChooseFacing:V,facing:Te,onFacingChange:Ue,voice:zn,tips:d??Vo,summary:Ac,startLabel:l,startDisabled:c,onStart:Ne})]}):null,(0,J.jsx)(ma,{showCoaching:Ct!==null,attemptsText:Ct?.attemptsRemaining!==void 0?uo(R,t,Ct.attemptsRemaining):null,showRetake:Ct!==null&&!ve&&!U||!fe&&b.state==="captured",onRetake:b.retry}),r?.footer]})})}var Z,J,Tl,Or=w(()=>{"use strict";Z=require("react");be();Ro();fa();Ao();Ir();Pa();Rr();Lo();fn();Vt();zr();Ha();Ar();ft();$a();Ya();Qa();Ja();at();ts();gs();J=require("react/jsx-runtime"),Tl=800;i(Rl,"isDefaultTips");i(zl,"carriesActivation");i(Al,"isNoticeObject");i(Pl,"isCapturing");i(El,"isPostCapture");i(qo,"LivenessCapture")});var ys,vs=w(()=>{"use strict";ys={"consent.human.terms.intro":"تؤكد Sekyro AI أن شخصًا حقيقيًا يُجري هذه الخطوة، نيابةً عن الجهة التي طلبتها.","consent.human.terms.data":"تلتقط Sekyro AI تسجيلًا قصيرًا لوجهك.","consent.human.terms.processing":"يُفحص هذا التسجيل للتأكد من أنك شخص حقيقي وحاضر، وقد يُقارَن بالوجوه التي سبق التحقق منها لدى هذه الجهة.","consent.human.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.human.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون وإعدادات الجهة. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.noCamera.title":"تتطلب هذه الخطوة كاميرا","capture.noCamera.body":"اسمح بالوصول إلى الكاميرا وحاول مرة أخرى، أو تابع على هاتف مزوّد بكاميرا.","capture.noCamera.continue":"المتابعة بدون كاميرا","capture.noCamera.deniedTitle":"اسمح بالوصول إلى الكاميرا للمتابعة","capture.noCamera.deniedBody":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","choice.title":"كيف تريد المتابعة؟","choice.description":"اختر خيارًا واحدًا.","choice.switch":"استخدم خيارًا آخر","contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف الموريتاني (NNI)","summary.id_number":"رقم الهوية","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة. تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة. يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك: دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي. الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح هذه الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط. الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال"}});var qn,ks=w(()=>{"use strict";qn={"consent.human.terms.intro":"Sekyro AI confirms that a real person is completing this step, on behalf of the organization that asked for it.","consent.human.terms.data":"Sekyro AI collects a short capture of your face.","consent.human.terms.processing":"The capture is checked to confirm that you are a real person who is present. It may be compared with faces already verified for this organization.","consent.human.terms.sharing":"The organization that requested this verification learns its outcome.","consent.human.terms.retention":"Your data is stored encrypted and kept only as long as the law and the organization's settings require. To exercise your data-protection rights, contact the organization that requested this verification.","capture.noCamera.title":"This step needs a camera","capture.noCamera.body":"Allow camera access and try again, or continue on a phone with a camera.","capture.noCamera.continue":"Continue without a camera","capture.noCamera.deniedTitle":"Allow camera access to continue","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","choice.title":"How do you want to continue?","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"How do you want to get your code?","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"Mauritanian national ID number (NNI)","summary.id_number":"ID number","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again. Contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps. A religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face: no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed. Only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link. Copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open this page in your browser","inApp.description":"The camera doesn't work well inside this app. Open the link in Chrome or Safari to continue.","inApp.copyLink":"Copy link","inApp.copied":"Link copied. Paste it in your browser","inApp.copyFailed":"We couldn't copy the link. Copy this page's address instead","inApp.continueAnyway":"Continue here anyway"}});var bs,Ss=w(()=>{"use strict";bs={"consent.human.terms.intro":"Sekyro AI confirme qu'une personne réelle effectue cette étape, pour le compte de l'organisme qui l'a demandée.","consent.human.terms.data":"Sekyro AI recueille une courte capture de votre visage.","consent.human.terms.processing":"La capture est analysée pour confirmer que vous êtes une personne réelle et présente. Elle peut être comparée aux visages déjà vérifiés pour cet organisme.","consent.human.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.human.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi et les paramètres de l'organisme. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.noCamera.title":"Cette étape nécessite une caméra","capture.noCamera.body":"Autorisez l'accès à la caméra et réessayez, ou continuez sur un téléphone équipé d'une caméra.","capture.noCamera.continue":"Continuer sans caméra","capture.noCamera.deniedTitle":"Autorisez l'accès à la caméra pour continuer","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","choice.title":"Comment voulez-vous continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Comment voulez-vous recevoir votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification mauritanien (NNI)","summary.id_number":"Numéro d'identité","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer. Contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette. Un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme : sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée. Seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien. Copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez cette page dans votre navigateur","inApp.description":"La caméra fonctionne mal dans cette application. Ouvrez le lien dans Chrome ou Safari pour continuer.","inApp.copyLink":"Copier le lien","inApp.copied":"Lien copié. Collez-le dans votre navigateur","inApp.copyFailed":"Impossible de copier le lien. Copiez plutôt l'adresse de cette page","inApp.continueAnyway":"Continuer ici quand même"}});var _s,Cs=w(()=>{"use strict";_s={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'}});function ge({name:e,className:t}){return(0,ws.jsx)("svg",{className:`sekyro-glyph${t?` ${t}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:_s[e]}})}var ws,zt=w(()=>{"use strict";Cs();ws=require("react/jsx-runtime");i(ge,"Icon")});function Ml(){let e=`sekyro-face-light-${(0,Ns.useId)().replace(/[^A-Za-z0-9_-]/g,"")}`;return(0,re.jsxs)("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[(0,re.jsx)("defs",{children:(0,re.jsx)("mask",{id:e,children:(0,re.jsx)("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),(0,re.jsx)("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),(0,re.jsx)("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),(0,re.jsx)("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),(0,re.jsx)("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${e})`})]})}function Ko({start:e,context:t,tips:n,tipsTitle:o,extra:r,human:a=!1,notice:s}){let{t:c}=se();return(0,re.jsxs)("section",{className:"sekyro-step",children:[(0,re.jsx)(Ml,{}),t.captureMode==="assisted"?(0,re.jsx)(Be,{title:c("capture.assisted.title"),lead:c("capture.assisted.lead")}):(0,re.jsx)(Be,{title:c(a?"native.face.humanIntroTitle":"native.face.introTitle"),lead:c(a?"native.face.humanIntroLead":"native.face.introLead")}),o!==void 0?(0,re.jsx)("p",{className:"sekyro-section-label",children:o}):null,(0,re.jsx)("ul",{className:"sekyro-tiprows",children:n!==void 0?n.map(l=>(0,re.jsxs)("li",{children:[(0,re.jsx)(ge,{name:Vl[l.id]??"face"}),l.text]},l.id)):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)("li",{children:[(0,re.jsx)(ge,{name:"light"}),c("capture.tips.light")]}),(0,re.jsxs)("li",{children:[(0,re.jsx)(ge,{name:"jGlasses"}),c("capture.tips.uncover")]}),(0,re.jsxs)("li",{children:[(0,re.jsx)(ge,{name:"smartphone"}),c("capture.tips.eyeLevel")]})]})}),r,s??null,s!==void 0?null:t.assets==="failed"?(0,re.jsx)(T,{kind:"ghost",onClick:t.retryAssets,children:c("common.refresh")}):null,s!==void 0?null:(0,re.jsx)(Fe,{children:(0,re.jsxs)(T,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:e,children:[(0,re.jsx)(ge,{name:"camera"}),c("capture.start")]})})]})}var Ns,re,Vl,Dr=w(()=>{"use strict";Ns=require("react");be();zt();ht();Ee();re=require("react/jsx-runtime");i(Ml,"FaceMark");Vl={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};i(Ko,"FaceIntro")});function Br(e,t){let n=0;for(let o=7;o>=0;o-=1)n=n<<1^(n>>>7)*285,n^=(t>>>o&1)*e;return n&255}function Dl(e){let t=new Array(e).fill(0);t[e-1]=1;let n=1;for(let o=0;o<e;o+=1){for(let r=0;r<e;r+=1)t[r]=Br(t[r],n),r+1<e&&(t[r]=t[r]^t[r+1]);n=Br(n,2)}return t}function Hl(e,t){let n=t.map(()=>0);for(let o of e){let r=o^n.shift();n.push(0),t.forEach((a,s)=>{n[s]=n[s]^Br(a,r)})}return n}function Bl(e,t){let n=[],o=i((u,p)=>{for(let g=p-1;g>=0;g-=1)n.push(u>>>g&1)},"put");o(4,4),o(e.length,t<10?8:16);for(let u of e)o(u,8);let r=Hr(t)*8;o(0,Math.min(4,r-n.length)),o(0,(8-n.length%8)%8);let a=[];for(let u=0;u<n.length;u+=8)a.push(n.slice(u,u+8).reduce((p,g)=>p<<1|g,0));for(let u=236;a.length<Hr(t);u^=253)a.push(u);let[s,c]=qr[t-1],l=Dl(s),d=[],m=0;for(let[u,p]of c)for(let g=0;g<u;g+=1){let y=a.slice(m,m+p);m+=p,d.push({data:y,ec:Hl(y,l)})}let h=[],f=Math.max(...d.map(u=>u.data.length));for(let u=0;u<f;u+=1)for(let p of d)u<p.data.length&&h.push(p.data[u]);for(let u=0;u<s;u+=1)for(let p of d)h.push(p.ec[u]);return h}function Fl(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.ceil((e*4+4)/(t*2-2))*2,o=[6];for(let r=e*4+10;o.length<t;r-=n)o.splice(1,0,r);return o}function Kl(e,t){let n=e.size;for(let a=0;a<n;a+=1)e.set(6,a,a%2===0),e.set(a,6,a%2===0);for(let[a,s]of[[3,3],[3,n-4],[n-4,3]])for(let c=-4;c<=4;c+=1)for(let l=-4;l<=4;l+=1){let d=a+c,m=s+l;if(d<0||d>=n||m<0||m>=n)continue;let h=Math.max(Math.abs(c),Math.abs(l));e.set(d,m,h!==2&&h!==4)}let o=Fl(t),r=o.length-1;if(o.forEach((a,s)=>o.forEach((c,l)=>{if(!(s===0&&l===0||s===0&&l===r||s===r&&l===0))for(let d=-2;d<=2;d+=1)for(let m=-2;m<=2;m+=1)e.set(a+d,c+m,Math.max(Math.abs(d),Math.abs(m))!==1)})),Is(e,0),t>=7){let a=t;for(let c=0;c<12;c+=1)a=a<<1^(a>>>11)*7973;let s=t<<12|a;for(let c=0;c<18;c+=1){let l=(s>>>c&1)===1,d=n-11+c%3,m=Math.floor(c/3);e.set(d,m,l),e.set(m,d,l)}}}function Is(e,t){let n=e.size,o=Ol<<3|t,r=o;for(let c=0;c<10;c+=1)r=r<<1^(r>>>9)*1335;let a=(o<<10|r)^21522,s=i(c=>(a>>>c&1)===1,"bit");for(let c=0;c<=5;c+=1)e.set(c,8,s(c));e.set(7,8,s(6)),e.set(8,8,s(7)),e.set(8,7,s(8));for(let c=9;c<15;c+=1)e.set(8,14-c,s(c));for(let c=0;c<8;c+=1)e.set(8,n-1-c,s(c));for(let c=8;c<15;c+=1)e.set(n-15+c,8,s(c));e.set(n-8,8,!0)}function $l(e,t){let n=e.size,o=0;for(let r=n-1;r>=1;r-=2){r===6&&(r=5);for(let a=0;a<n;a+=1)for(let s=0;s<2;s+=1){let c=r-s,d=(r+1&2)===0?n-1-a:a;e.fixed[d*n+c]!==!0&&(o<t.length*8&&(e.dark[d*n+c]=(t[o>>>3]>>>7-(o&7)&1)===1),o+=1)}}}function Gl(e,t){let n=ql[t];for(let o=0;o<e.size;o+=1)for(let r=0;r<e.size;r+=1)e.fixed[o*e.size+r]!==!0&&n(o,r)&&(e.dark[o*e.size+r]=!e.dark[o*e.size+r])}function Ul(e){let t=e.size,n=0,o=i(a=>{let s=1;for(let c=1;c<=t;c+=1)c<t&&a(c)===a(c-1)?s+=1:(s>=5&&(n+=3+(s-5)),s=1);for(let c=0;c+10<t;c+=1){let l=[!0,!1,!0,!0,!0,!1,!0];if(!(l.every((f,u)=>a(c+u)===f)||l.every((f,u)=>a(c+4+u)===f)))continue;let m=[0,1,2,3].every(f=>!a(c+f))&&l.every((f,u)=>a(c+4+u)===f),h=l.every((f,u)=>a(c+u)===f)&&[7,8,9,10].every(f=>!a(c+f));m&&(n+=40),h&&(n+=40)}},"line");for(let a=0;a<t;a+=1)o(s=>e.get(a,s));for(let a=0;a<t;a+=1)o(s=>e.get(s,a));for(let a=0;a+1<t;a+=1)for(let s=0;s+1<t;s+=1){let c=e.get(a,s);c===e.get(a,s+1)&&c===e.get(a+1,s)&&c===e.get(a+1,s+1)&&(n+=3)}let r=e.dark.filter(Boolean).length;return n+=Math.floor(Math.abs(r*20-t*t*10)/(t*t))*10,n}function Ls(e,t={}){let n=new TextEncoder().encode(e),o=1;for(;o<=xs&&!(4+(o<10?8:16)+n.length*8<=Hr(o)*8);o+=1);if(o>xs)throw new RangeError("text too long for a QR code");let r=Bl(n,o),a=i(l=>{let d=new Fr(o*4+17);return Kl(d,o),$l(d,r),Gl(d,l),Is(d,l),d},"build"),s=null;if(t.mask!==void 0)s=a(t.mask);else{let l=Number.POSITIVE_INFINITY;for(let d=0;d<8;d+=1){let m=a(d),h=Ul(m);h<l&&(l=h,s=m)}}let c=s;return{size:c.size,get:i((l,d)=>c.get(l,d),"get")}}function Ts(e,t=4){let n=[];for(let o=0;o<e.size;o+=1)for(let r=0;r<e.size;r+=1)e.get(o,r)&&n.push(`M${r+t} ${o+t}h1v1h-1z`);return{size:e.size+t*2,d:n.join("")}}var qr,xs,Ol,Hr,ql,Kr,Fr,Rs=w(()=>{"use strict";qr=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]],[30,[[1,50],[4,51]]],[22,[[6,36],[2,37]]],[22,[[8,37],[1,38]]],[24,[[4,40],[5,41]]],[24,[[5,41],[5,42]]],[28,[[7,45],[3,46]]],[28,[[10,46],[1,47]]],[26,[[9,43],[4,44]]],[26,[[3,44],[11,45]]],[26,[[3,41],[13,42]]]],xs=qr.length,Ol=0,Hr=i(e=>(qr[e-1]?.[1]??[]).reduce((t,[n,o])=>t+n*o,0),"dataCapacity");i(Br,"gfMul");i(Dl,"rsDivisor");i(Hl,"rsRemainder");i(Bl,"codewords");i(Fl,"alignmentPositions");ql=[(e,t)=>(e+t)%2===0,e=>e%2===0,(e,t)=>t%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0],Kr=class Kr{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,n,o){this.dark[t*this.size+n]=o,this.fixed[t*this.size+n]=!0}get(t,n){return this.dark[t*this.size+n]===!0}};i(Kr,"Grid");Fr=Kr;i(Kl,"drawFunctionPatterns");i(Is,"drawFormat");i($l,"placeData");i(Gl,"applyMask");i(Ul,"penalty");i(Ls,"encodeQr");i(Ts,"qrPath")});var Vs={};wt(Vs,{ContactChoiceView:()=>Yl,DesktopHandoffView:()=>cu,EidContinueHint:()=>ru,GenericChoiceView:()=>jl,HandoffView:()=>Gr,HumanConsentTerms:()=>su,IdentitySummaryView:()=>eu,InAppBrowserPrompt:()=>uu,LaneChoiceView:()=>Ql,LaneSwitch:()=>Zl,LivePhotoLiveness:()=>nu,NoCameraView:()=>lu,PortraitRetakeNotice:()=>ou});function tt(e){let t=e.strings;return(n,o)=>je(t[n]??Wl[e.locale][n]??"",o)}function Ps(e,t){let n=tt(t);return e.flatMap(o=>{let r=o.service==="phone_otp"?n("contact.phone"):o.service==="email_otp"?n("contact.email"):Dn(o,t),a=To[o.service];return r===null?[]:[{id:o.id,label:r,...a!==void 0?{glyph:(0,z.jsx)(ge,{name:a})}:{}}]})}function Es({step:e,i18n:t,onError:n}){let o=tt(t),{busy:r,error:a,run:s}=nn(t,n),c=e.kind==="contact_choice";return(0,z.jsx)(tn,{title:o(c?"contact.title":"choice.title"),description:o(c?"contact.description":"choice.description"),options:Ps(e.choice.options,t),busy:r,error:a,focus:!0,testId:c?"sekyro-contact-choice":"sekyro-choice",onChoose:l=>s(()=>e.choose(l))})}function Zl({step:e,i18n:t,onError:n,onOpen:o}){let r=tt(t),{busy:a,error:s,run:c}=nn(t,n),l=e,d=e.context.switchable,m=d===void 0?[]:d.options.filter(y=>y.id!==d.current),h=l.kind==="registry"&&(l.reason==="nni_not_found"||l.reason==="registry_record_not_found")&&l.canUseDocument||l.kind==="eid"&&l.reason?.startsWith("eid_")&&l.canUseCamera,f=m.length===1?m[0]:void 0,u=f!==void 0&&(f.service==="phone_otp"||f.service==="email_otp"),p=u&&l.canSwitch&&l.switchTo!==void 0?()=>l.switchTo.call(e):l.chooseOption===void 0||f===void 0?void 0:()=>l.chooseOption.call(e,f.id);if(m.length===0||h||f!==void 0&&(p===void 0||g()===null)||f===void 0&&l.chooseOption===void 0)return null;function g(){return f===void 0?r("choice.switch"):f.service==="phone_otp"||f.service==="email_otp"?r("contact.switch"):l.kind==="registry"&&f.service==="document"?t.t("population.useDocument"):l.kind==="eid"?t.strings["eid.useCamera"]??As[t.locale]["eid.useCamera"]:Dn(f,t)}return i(g,"labelOf"),(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[s!==null?(0,z.jsx)($,{tone:"danger",children:(0,z.jsx)("span",{children:s})}):null,(0,z.jsx)(T,{kind:"ghost",disabled:a,"aria-busy":a||void 0,onClick:()=>p===void 0?o():c(p),"data-testid":u?"sekyro-contact-switch":"sekyro-lane-switch",children:g()})]})}function Ql({step:e,i18n:t,onError:n,onClose:o}){let r=tt(t),{busy:a,error:s,run:c}=nn(t,n),l=e.context.switchable,d=e.chooseOption;return l===void 0||d===void 0?null:(0,z.jsx)(tn,{title:r("choice.title"),description:r("choice.description"),options:Ps(l.options,t),...l.current!==null?{marked:l.current}:{},busy:a,error:s,focus:!0,testId:"sekyro-lane-choice",onChoose:m=>m===l.current?o():c(()=>d.call(e,m))})}function Jl(e){let[t,n]=(0,ke.useState)(null);return(0,ke.useEffect)(()=>{if(!e.portraitAvailable)return;let o=!0,r=null;return e.portrait().then(a=>{!o||a===null||!a.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(r=URL.createObjectURL(a),n(r))}),()=>{o=!1,r!==null&&URL.revokeObjectURL(r)}},[e.portraitAvailable]),t}function eu({step:e,i18n:t,onError:n}){let o=tt(t),r=(0,ke.useId)(),a=_e(),s=Jl(e),{busy:c,error:l,run:d}=nn(t,n),m=e.context.orgName,h=["registry","document","chip"].find(p=>p===e.source),f=e.summaryKind==="partial",u=i(p=>t.strings[`doc.type.${p}`]??p,"documentLabel");return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":r,"data-testid":"sekyro-identity-summary",children:[(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,z.jsx)("h2",{id:r,ref:a,tabIndex:-1,className:"sekyro-text-body",children:o("summary.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:o("summary.description")}),h!==void 0?(0,z.jsx)("p",{className:"sekyro-text-muted",children:o(`summary.source.${h}`)}):null]}),(0,z.jsxs)("div",{className:"sekyro-summary",children:[s!==null?(0,z.jsx)("img",{className:"sekyro-summary__portrait",src:s,alt:o("summary.portraitAlt")}):null,(0,z.jsx)("dl",{className:"sekyro-summary__list",children:Xl.map(([p,g,y])=>{let v=p==="idNumberMasked"?e.idNumberMasked??e.nniMasked:e[p];return v===void 0?null:(0,z.jsxs)("div",{className:"sekyro-summary__row",children:[(0,z.jsx)("dt",{className:"sekyro-text-muted",children:o(p==="fullName"&&f?"summary.name":g)}),(0,z.jsx)("dd",{children:y?(0,z.jsx)("bdi",{dir:"ltr",children:v}):p==="documentType"?u(v):v})]},p)})})]}),l!==null?(0,z.jsx)($,{tone:"danger",children:(0,z.jsx)("span",{children:l})}):null,(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--3",children:[(0,z.jsx)(T,{full:!0,disabled:c,"aria-busy":c||void 0,onClick:()=>d(()=>e.confirm()),children:o("summary.confirm")}),e.retakeAvailable?(0,z.jsx)(T,{kind:"ghost",full:!0,disabled:c,onClick:()=>d(()=>e.retake()),children:o(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):(0,z.jsx)("p",{className:"sekyro-text-muted",children:o("summary.noRetake",{org:m})})]})]})}function nu({step:e,i18n:t,livenessProps:n,sekyroIntro:o}){let r=tt(t),[a,s]=(0,ke.useState)(null);(0,ke.useEffect)(()=>e.onLivePhoto(p=>{let g=p.update?.coach;s(p.holding||g===void 0?null:t.t(`portrait.coach.${g}`))}),[e,t]);let c=e.instructions==="icao",l=e.icao?.profile==="selfie",d=(0,ke.useMemo)(()=>c?tu.filter(p=>!l||p!=="background").map(p=>({id:p,text:r(`capture.tipsIcao.${p}`)})):void 0,[c,l,t]),m=(0,ke.useMemo)(()=>c&&!l?{...n.strings,"capture.tips.title":r("capture.tipsIcao.title")}:n.strings,[c,l,n.strings,t]),h=l?void 0:r("capture.tipsIcao.title"),f=(0,ke.useMemo)(()=>o===!0&&d!==void 0?{...n.slots,intro:i((p,g)=>(0,z.jsx)(Ko,{start:p,context:g,tips:d,...h!==void 0?{tipsTitle:h}:{}}),"intro")}:n.slots,[o,d,h,n.slots,t]),u=l?`${(d??[]).map(p=>p.text).join(". ")}.`:r("capture.tipsIcao.summary");return(0,z.jsx)(qo,{...n,...f!==void 0?{slots:f}:{},...m!==void 0?{strings:m}:{},...d!==void 0?{tips:d,tipsSummary:u}:{},coach:a})}function ou({i18n:e}){let t=tt(e);return(0,z.jsxs)($,{tone:"info",children:[(0,z.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,z.jsx)("span",{children:t("portrait.keepCamera")})]})}function ru({i18n:e,provider:t}){let n=e.strings,o=i(r=>n[r]??As[e.locale][r]??"","pick");return(0,z.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?je(o("eid.continueHint"),{provider:t}):o("eid.continueHintGeneric")})}async function iu(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function Ms({url:e,i18n:t,label:n}){let o=tt(t),[r,a]=(0,ke.useState)("idle"),s=n.startsWith("inApp.")?"inApp":"handoff";return(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,z.jsx)(T,{kind:"ghost",onClick:()=>{iu(e).then(c=>a(c?"copied":"failed"))},children:o(n)}),(0,z.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:r==="idle"?"":o(`${s}.${r==="copied"?"copied":"copyFailed"}`)})]})}function Gr({url:e,i18n:t,refresh:n,footer:o}){let r=tt(t),a=(0,ke.useId)(),s=(0,ke.useMemo)(()=>{try{return Ts(Ls(e))}catch{return null}},[e]),c=(0,ke.useRef)(n);c.current=n;let l=_e();return(0,ke.useEffect)(()=>{let d=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&c.current?.().catch(()=>{})},5e3);return()=>clearInterval(d)},[]),(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":a,"data-testid":"sekyro-handoff",children:[(0,z.jsx)("h2",{id:a,ref:l,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("handoff.description")}),s!==null?(0,z.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${s.size} ${s.size}`,role:"img","aria-label":r("handoff.qrAlt"),shapeRendering:"crispEdges",children:[(0,z.jsx)("rect",{width:s.size,height:s.size,className:"sekyro-qr__bg"}),(0,z.jsx)("path",{d:s.d,className:"sekyro-qr__fg"})]}):null,(0,z.jsx)(Ms,{url:e,i18n:t,label:"handoff.copyLink"}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("handoff.waiting")}),o??null]})}function su({i18n:e}){let t=tt(e);return(0,z.jsx)(z.Fragment,{children:au.map(n=>(0,z.jsx)("p",{children:t(`consent.human.terms.${n}`)},n))})}function cu({url:e,i18n:t}){return(0,ke.useMemo)(()=>!(0,$r.detectIsMobile)(),[])?(0,z.jsx)(Gr,{url:e,i18n:t}):null}function lu({i18n:e,cause:t,onRetry:n,onContinue:o,handoffUrl:r}){let a=tt(e),s=(0,ke.useId)(),c=_e(),[l,d]=(0,ke.useState)("idle"),m=(0,ke.useMemo)(()=>r!==void 0&&!(0,$r.detectIsMobile)(),[r]),h=t==="denied",f=i(()=>{o!==void 0&&(d("busy"),o(t).then(()=>d("idle"),u=>d(u instanceof zs.HostedApiError&&u.code==="check_out_of_order"?"idle":"failed")))},"end");return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":s,"data-testid":"sekyro-no-camera","data-cause":t,children:[m&&r!==void 0?(0,z.jsx)(Gr,{url:r,i18n:e}):null,(0,z.jsx)("h2",{id:s,ref:c,tabIndex:-1,className:"sekyro-text-body",children:a(h?"capture.noCamera.deniedTitle":"capture.noCamera.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:a(h?"capture.noCamera.deniedBody":"capture.noCamera.body")}),l==="failed"?(0,z.jsx)($,{tone:"danger",children:(0,z.jsx)("span",{children:e.t("errors.network_error")})}):null,(0,z.jsx)(T,{kind:h?"primary":"ghost",onClick:n,children:e.t("common.retry")}),o!==void 0?(0,z.jsx)(T,{kind:"ghost",disabled:l==="busy","aria-busy":l==="busy"||void 0,onClick:f,children:a("capture.noCamera.continue")}):null]})}function uu({url:e,i18n:t,onContinue:n}){let o=tt(t),r=(0,ke.useId)(),a=_e();return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":r,"data-testid":"sekyro-in-app",children:[(0,z.jsx)("h2",{id:r,ref:a,tabIndex:-1,className:"sekyro-text-body",children:o("inApp.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:o("inApp.description")}),(0,z.jsx)(Ms,{url:e,i18n:t,label:"inApp.copyLink"}),(0,z.jsx)(T,{kind:"ghost",onClick:n,children:o("inApp.continueAnyway")})]})}var zs,$r,ke,z,Wl,As,Yl,jl,Xl,tu,au,Os=w(()=>{"use strict";zs=require("@sekyro/web"),$r=require("@sekyro/web/core"),ke=require("react");be();Lo();Or();Sr();_r();Cr();vs();ks();Ss();ft();Dr();zt();xr();Rs();Ee();Ze();z=require("react/jsx-runtime"),Wl={en:qn,fr:bs,ar:ys,es:qn,pt:qn,de:qn},As={en:yt,fr:xo,ar:No,es:yt,pt:yt,de:yt};i(tt,"flowT");i(Ps,"labelled");i(Es,"PlanChoiceView");Yl=Es,jl=Es;i(Zl,"LaneSwitch");i(Ql,"LaneChoiceView");Xl=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["idNumberMasked","summary.id_number",!0],["expiryDate","summary.expiryDate",!0]];i(Jl,"usePortraitUrl");i(eu,"IdentitySummaryView");tu=["glasses","headwear","expression","faceCamera","background","lighting","hair"];i(nu,"LivePhotoLiveness");i(ou,"PortraitRetakeNotice");i(ru,"EidContinueHint");i(iu,"copy");i(Ms,"CopyLink");i(Gr,"HandoffView");au=["intro","data","processing","sharing","retention"];i(su,"HumanConsentTerms");i(cu,"DesktopHandoffView");i(lu,"NoCameraView");i(uu,"InAppBrowserPrompt")});var qs,Ks=w(()=>{"use strict";qs={image:'<path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/><path d="M14 8A2 2 0 1 0 18 8A2 2 0 1 0 14 8Z" stroke="currentColor"/><path d="M2 12.5L3.75 10.97C4.66 10.17 6.04 10.22 6.89 11.07L11.18 15.36C11.87 16.05 12.95 16.14 13.75 15.58L14.04 15.37C15.19 14.57 16.74 14.66 17.78 15.6L21 18.5" stroke="currentColor" stroke-linecap="round"/>',flashlight:'<path d="M9 11.66V19C9 19.93 9 20.4 9.15 20.77C9.36 21.26 9.74 21.64 10.23 21.85C10.6 22 11.07 22 12 22C12.93 22 13.4 22 13.77 21.85C14.26 21.64 14.64 21.26 14.85 20.77C15 20.4 15 19.93 15 19V11.66C15 10.84 15 10.43 15.15 10.06C15.3 9.7 15.59 9.41 16.17 8.83L16.17 8.83L19.41 5.59C19.7 5.3 19.85 5.15 19.92 4.97C20 4.78 20 4.58 20 4.17V4C20 3.06 20 2.59 19.71 2.29C19.41 2 18.94 2 18 2H6C5.06 2 4.59 2 4.29 2.29C4 2.59 4 3.06 4 4V4.17C4 4.58 4 4.78 4.08 4.97C4.15 5.15 4.3 5.3 4.59 5.59L7.83 8.83C8.41 9.41 8.7 9.7 8.85 10.06C9 10.43 9 10.84 9 11.66Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 10H9" stroke="currentColor" stroke-linecap="round"/><path d="M12 13V15" stroke="currentColor" stroke-linecap="round"/><path d="M4.5 5H19.5" stroke="currentColor" stroke-linecap="round"/>'}});var $s,Gs=w(()=>{"use strict";$s={"dcv3.mrz.searching":"ضع صفحة جواز السفر كاملة داخل الإطار","dcv3.mrz.showMrzSide":"اعرض الوجه الذي يحتوي على سطرين أو ثلاثة أسطر من الحروف","dcv3.mrz.reading":"جارٍ قراءة الوثيقة… ثبّتها","dcv3.mrz.moveCloser":"اقترب حتى تملأ أسطر الحروف الإطار","dcv3.mrz.turnSideways":"أدر هاتفك أفقيًا لقراءة أسطر الحروف","dcv3.mrz.glare":"أمِل الوثيقة لإزالة الانعكاس","dcv3.mrz.holdStill":"لا تتحرك","dcv3.mrz.valid":"تمت قراءة الوثيقة. جارٍ التقاط الصورة","dcv3.mrz.looksLikePassport":"يبدو أن هذا جواز سفر","dcv3.mrz.looksLikeCard":"يبدو أن هذه بطاقة تعريف أو بطاقة إقامة"}});var Gn,Us=w(()=>{"use strict";Gn={"dcv3.mrz.searching":"Fit the whole passport page in the frame","dcv3.mrz.showMrzSide":"Show the side with the two or three lines of characters","dcv3.mrz.reading":"Reading the document… hold it steady","dcv3.mrz.moveCloser":"Move closer so the lines of characters fill the frame","dcv3.mrz.turnSideways":"Turn your phone sideways to read the lines of characters","dcv3.mrz.glare":"Tilt the document to remove the reflection","dcv3.mrz.holdStill":"Hold still","dcv3.mrz.valid":"Document read. Taking the photo","dcv3.mrz.looksLikePassport":"This looks like a passport","dcv3.mrz.looksLikeCard":"This looks like an identity card or residence permit"}});var Ws,Ys=w(()=>{"use strict";Ws={"dcv3.mrz.searching":"Cadrez toute la page du passeport","dcv3.mrz.showMrzSide":"Montrez la face avec les deux ou trois lignes de caractères","dcv3.mrz.reading":"Lecture du document… tenez-le immobile","dcv3.mrz.moveCloser":"Rapprochez-vous pour que les lignes de caractères remplissent le cadre","dcv3.mrz.turnSideways":"Tournez votre téléphone à l’horizontale pour lire les lignes de caractères","dcv3.mrz.glare":"Inclinez le document pour supprimer le reflet","dcv3.mrz.holdStill":"Ne bougez plus","dcv3.mrz.valid":"Document lu. Prise de la photo","dcv3.mrz.looksLikePassport":"Ceci ressemble à un passeport","dcv3.mrz.looksLikeCard":"Ceci ressemble à une carte d’identité ou un titre de séjour"}});var js,Zs=w(()=>{"use strict";js={"native.doc.introTitle":"سنلتقط صورة لوثيقتك","native.doc.introLead":"ستُفتح كاميرا هاتفك، وتُلتقط الصورة تلقائيًا بمجرد أن تكون الوثيقة داخل الإطار.","native.doc.tip.flat":"ضع الوثيقة مسطحة على سطح داكن.","native.doc.tip.glare":"تجنّب انعكاسات المصابيح أو الشمس.","native.doc.tip.frame":"أبقِ الوثيقة كاملة داخل الإطار.","native.doc.openCamera":"افتح الكاميرا","native.doc.changeDocument":"تغيير الوثيقة","native.scan.closer":"اقترب قليلًا","native.scan.farther":"ابتعد قليلًا","native.scan.glare":"أمِل البطاقة قليلًا","native.scan.dark":"الإضاءة ضعيفة. شغّل المصباح.","native.scan.blurry":"الصورة غير واضحة. ثبّت الهاتف.","native.scan.holdStill":"لا تتحرك","native.scan.reading":"جارٍ التحقق من وثيقتك…","native.scan.putDown":"يمكنك وضع وثيقتك جانبًا.","native.scan.retry":"لنحاول مرة أخرى"}});var Un,Qs=w(()=>{"use strict";Un={"native.doc.introTitle":"We'll photograph your document","native.doc.introLead":"Your phone's camera will open. The photo is taken by itself as soon as the document is well framed.","native.doc.tip.flat":"Lay the document flat on a dark surface.","native.doc.tip.glare":"Avoid glare from lamps or sunlight.","native.doc.tip.frame":"Keep the whole document in the frame.","native.doc.openCamera":"Open the camera","native.doc.changeDocument":"Change document","native.scan.closer":"Move a little closer","native.scan.farther":"Move back a little","native.scan.glare":"Tilt the card a little","native.scan.dark":"Too dark. Turn on the light.","native.scan.blurry":"Blurry image. Hold the phone still.","native.scan.holdStill":"Hold still","native.scan.reading":"Checking your document…","native.scan.putDown":"You can put your document down.","native.scan.retry":"Let's try that again"}});var Xs,Js=w(()=>{"use strict";Xs={"native.doc.introTitle":"Nous allons photographier votre pièce","native.doc.introLead":"La caméra de votre téléphone va s'ouvrir. La photo est prise automatiquement dès que la pièce est bien cadrée.","native.doc.tip.flat":"Posez la pièce à plat, sur une surface sombre.","native.doc.tip.glare":"Évitez les reflets de lampe ou de soleil.","native.doc.tip.frame":"Gardez toute la pièce dans le cadre.","native.doc.openCamera":"Ouvrir la caméra","native.doc.changeDocument":"Changer de document","native.scan.closer":"Approchez un peu","native.scan.farther":"Reculez un peu","native.scan.glare":"Inclinez un peu la carte","native.scan.dark":"Trop sombre. Allumez la lampe.","native.scan.blurry":"Image floue. Tenez le téléphone immobile.","native.scan.holdStill":"Ne bougez plus","native.scan.reading":"Vérification de votre document…","native.scan.putDown":"Vous pouvez poser votre pièce.","native.scan.retry":"Réessayons"}});var yu,Ur,Go,ec=w(()=>{"use strict";yu=["locking","capturing"],Ur=class Ur{constructor(){this.shown={hint:null,locking:!1,card:null,manualShutter:!1};this.candidate=null;this.candidateSince=0;this.hintShownAt=0;this.lockLostAt=null;this.detectedSince=null;this.lostSince=null;this.shutterSince=null}present(t,n){return this.presentHint(t,n),this.presentLock(t,n),this.presentCard(t,n),this.shutterSince=t.manualShutter?this.shutterSince??n:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&n-this.shutterSince>=1e3},this.shown}presentHint(t,n){let o=t.phase==="framing"&&!(t.hint==="blurry"&&t.card===null)?t.hint:null;if(t.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(o!==this.candidate&&(this.candidate=o,this.candidateSince=n),o===this.shown.hint)return;let r=n-this.candidateSince>=(o===null?0:350),a=this.shown.hint===null||n-this.hintShownAt>=1200;r&&a&&(this.shown={...this.shown,hint:o},this.hintShownAt=n)}presentLock(t,n){if(yu.includes(t.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(t.phase!=="framing"){this.shown={...this.shown,locking:!1},this.lockLostAt=null;return}this.lockLostAt??(this.lockLostAt=n),n-this.lockLostAt>=300&&(this.shown={...this.shown,locking:!1},this.lockLostAt=null)}}presentCard(t,n){let o=t.card;if(o===null||t.phase!=="framing"){if(t.phase!=="framing"){this.shown={...this.shown,card:null},this.detectedSince=null,this.lostSince=null;return}this.detectedSince=null,this.lostSince??(this.lostSince=n),n-this.lostSince>=300&&(this.shown={...this.shown,card:null});return}if(this.lostSince=null,this.detectedSince??(this.detectedSince=n),n-this.detectedSince<250)return;let r=this.shown.card;if(r===null){this.shown={...this.shown,card:{...o}};return}let a=.35;this.shown={...this.shown,card:{fill:r.fill+(o.fill-r.fill)*a,offsetX:r.offsetX+(o.offsetX-r.offsetX)*a,offsetY:r.offsetY+(o.offsetY-r.offsetY)*a}}}};i(Ur,"ScanPresenter");Go=Ur});var sc={};wt(sc,{DocumentCaptureView:()=>bu,LOCK_TRACE_MS:()=>tc,guideRect:()=>Wr,mrzInstruction:()=>rc,slotOf:()=>ac});function oc({name:e}){return(0,k.jsx)("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:qs[e]}})}function rc(e,t){return e===null||e.state==="fallback"||e.state==="mismatch"?null:e.state==="searching"?t?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":e.state==="valid"?"dcv3.mrz.valid":e.coach!==void 0?`dcv3.mrz.${e.coach}`:"dcv3.mrz.reading"}function ic(e){return e.reason==="unreadable"?"doc.reason_unreadable":e.reason!==void 0&&e.reason!=="side_missing"?un(e.reason):null}function bu({step:e,i18n:t,liveMrz:n,...o}){let[r,a]=(0,ce.useState)(!1);return r?(0,k.jsx)(xu,{step:e,i18n:t,...n!==void 0?{liveMrz:n}:{},onClose:()=>a(!1)}):(0,k.jsx)(Cu,{step:e,i18n:t,onOpen:()=>a(!0),...o})}function Su({passport:e}){let n=Math.round(228/(e?1.42:1.586));return(0,k.jsxs)("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${n+24}`,"aria-hidden":"true",focusable:"false",children:[(0,k.jsx)("defs",{children:(0,k.jsx)("clipPath",{id:"sekyro-card-clip",children:(0,k.jsx)("rect",{width:228,height:n,rx:"12.5"})})}),(0,k.jsx)("rect",{className:"sekyro-mark__card",width:228,height:n,rx:"12.5"}),(0,k.jsx)("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:n*.52,rx:"6"}),[0,1,2].map(o=>(0,k.jsx)("rect",{className:"sekyro-mark__text",x:"88",y:23+o*n*.12,width:100-o*20,height:"6",rx:"3"},o)),[0,1].map(o=>(0,k.jsx)("rect",{className:"sekyro-mark__text",x:"17",y:n*.74+o*9,width:194,height:"4",rx:"2"},o)),(0,k.jsx)("g",{clipPath:"url(#sekyro-card-clip)",children:(0,k.jsx)("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:(0,k.jsx)("rect",{x:"-1",width:"2",height:n,className:"sekyro-mark__beam"})})}),(0,k.jsx)("path",{className:"sekyro-mark__brackets",d:_u(-10,-10,248,n+20,16,30)})]})}function _u(e,t,n,o,r,a){let s=Math.min(r,a*.6);return[[e,t,1,1],[e+n,t,-1,1],[e,t+o,1,-1],[e+n,t+o,-1,-1]].map(([l,d,m,h])=>`M${l} ${d+h*a}V${d+h*s}Q${l} ${d} ${l+m*s} ${d}H${l+m*a}`).join("")}function Cu({step:e,i18n:t,onOpen:n,onChangeCountry:o,onChangeDocument:r}){let a=nc(t),s=e.documentType==="passport",c=ic(e);return(0,k.jsxs)("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[(0,k.jsx)(Su,{passport:s}),(0,k.jsx)(Be,{title:a("native.doc.introTitle"),lead:a("native.doc.introLead")}),c!==null?(0,k.jsxs)($,{tone:"warning",children:[(0,k.jsx)("span",{children:t.t(c)}),(0,k.jsx)("span",{children:st(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,(0,k.jsxs)("ul",{className:"sekyro-tiprows",children:[(0,k.jsxs)("li",{children:[(0,k.jsx)(ge,{name:s?"passport":"card"}),a("native.doc.tip.flat")]}),(0,k.jsxs)("li",{children:[(0,k.jsx)(ge,{name:"light"}),a("native.doc.tip.glare")]}),(0,k.jsxs)("li",{children:[(0,k.jsx)(oc,{name:"image"}),a("native.doc.tip.frame")]})]}),r!==void 0||o!==void 0?(0,k.jsxs)("div",{className:"sekyro-links",children:[r!==void 0?(0,k.jsx)("button",{type:"button",className:"sekyro-link",onClick:r,children:a("native.doc.changeDocument")}):null,o!==void 0?(0,k.jsx)("button",{type:"button",className:"sekyro-link",onClick:o,children:t.t("native.doc.changeCountry")}):null]}):null,(0,k.jsx)(Fe,{children:(0,k.jsxs)(T,{full:!0,onClick:n,children:[(0,k.jsx)(ge,{name:"camera"}),a("native.doc.openCamera")]})})]})}function Wr(e,t,n){let o=e*.88,r=o/n;return{x:(e-o)/2,y:t*.42-r/2,w:o,h:r}}function xu({step:e,i18n:t,liveMrz:n,onClose:o}){let r=nc(t),a=(0,ce.useRef)(null),s=(0,ce.useRef)(null),c=(0,ce.useRef)(null),[l,d]=(0,ce.useState)("idle"),[m,h]=(0,ce.useState)(null),[f,u]=(0,ce.useState)(null),[p,g]=(0,ce.useState)({w:0,h:0}),[y,v]=(0,ce.useState)({hint:null,locking:!1,card:null,manualShutter:!1}),[S,E]=(0,ce.useState)({}),[O,R]=(0,ce.useState)(null),[N,A]=(0,ce.useState)(null),[F,G]=(0,ce.useState)(0),[b,M]=(0,ce.useState)(null),[q,I]=(0,ce.useState)(null),B=e.documentType==="passport",L=B?1.42:1.586;bo(!0),(0,ce.useLayoutEffect)(()=>{let Q=a.current;if(Q===null)return;let te=i(()=>g({w:Q.clientWidth,h:Q.clientHeight}),"measure");if(te(),typeof ResizeObserver>"u")return;let C=new ResizeObserver(te);return C.observe(Q),()=>C.disconnect()},[]);let x=Wr(p.w,p.h,L);(0,ce.useEffect)(()=>{p.w===0||p.h===0||c.current?.setGuide?.({viewAspect:p.w/p.h,rect:{x:x.x/p.w,y:x.y/p.h,width:x.w/p.w,height:x.h/p.h}})},[p.w,p.h,x.x,x.y,x.w,x.h]),(0,ce.useEffect)(()=>{let Q=s.current;if(Q===null)return;let te=e.capture({video:Q,...n!==void 0?{liveMrz:n}:{}});c.current=te;let C=a.current;if(C!==null&&C.clientWidth>0&&C.clientHeight>0){let U=Wr(C.clientWidth,C.clientHeight,L);te.setGuide?.({viewAspect:C.clientWidth/C.clientHeight,rect:{x:U.x/C.clientWidth,y:U.y/C.clientHeight,width:U.w/C.clientWidth,height:U.h/C.clientHeight}})}let H=new Go,de={scan:null,feedback:null,gate:null},fe=i(U=>{de={...de,...U};let Re=de.gate?.guide,Pe={phase:de.scan?.phase??"framing",hint:de.feedback?.reticle==="coaching"?de.feedback.key:null,card:Re?.detected?{fill:Re.fill,offsetX:Re.offsetX,offsetY:Re.offsetY}:null,manualShutter:de.scan?.manualShutter??!1},We=H.present(Pe,performance.now());v(Ye=>Ye.hint===We.hint&&Ye.locking===We.locking&&Ye.manualShutter===We.manualShutter&&Ye.card?.fill===We.card?.fill&&Ye.card?.offsetX===We.card?.offsetX&&Ye.card?.offsetY===We.card?.offsetY?Ye:We)},"present"),ve=[te.on("state",d),te.on("feedback",U=>fe({feedback:U})),te.on("gate",U=>fe({gate:U})),te.on("scan",U=>{h(U),fe({scan:U})}),te.on("captured",U=>{E(Re=>({...Re,[ac(U.side,B,Re)]:U.previewDataUrl})),R(U.previewDataUrl),A(Lu(Q))}),te.on("error",u),te.on("mrz",U=>{U.state==="mismatch"?I(U.format??null):M(U)})];return te.start().catch(()=>{}),()=>{for(let U of ve)U();te.destroy(),c.current=null}},[e.issuer,e.documentType]);let P=m?.phase??"framing",Y=P==="reading"||P==="result",oe=P==="flipCue"||P==="reaskRecto",V=y.locking,me=m?.captured.length??0;(0,ce.useEffect)(()=>{V&&G(Q=>Q+1)},[V]),(0,ce.useEffect)(()=>{me>0&&G(Q=>Q+1)},[me]);let we=m?.expected??null;(0,ce.useEffect)(()=>{M(null)},[we]),(0,ce.useEffect)(()=>{if(q===null)return;let Q=setTimeout(()=>I(null),2e3);return()=>clearTimeout(Q)},[q]);let ue=oe||Y?null:rc(b,B),K=q!==null?q==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":ue,Ue=K===null?null:t.strings[K]??ku[t.locale][K],Te=ic(e),Pt=y.hint===null?null:wu[y.hint]??`dcv2.${y.hint}`,Wt=Pt??(P==="flipCue"?m?.notice==="same_face"?"doc.sameFace":"doc.flip":P==="reaskRecto"?"doc.reaskRecto":Y?"native.scan.reading":P==="locking"||P==="capturing"||V?"native.scan.holdStill":m?.notice==="reread"?"doc.reread":m?.notice==="technical"?"native.scan.retry":m?.notice==="blurry"?"native.scan.blurry":Te??(B?"doc.showPage":"doc.showSide")),dt=Ue??r(Wt),qe=y.card,Ne=x;if(!V&&qe!==null&&qe.fill>=.45&&qe.fill<=1.25&&!Nu()){let Q=x.w*qe.fill,te=Q/L,C=x.x+x.w/2+x.w*Math.max(-.25,Math.min(.25,qe.offsetX)),H=x.y+x.h/2+x.h*Math.max(-.25,Math.min(.25,qe.offsetY));Ne={x:C-Q/2,y:H-te/2,w:Q,h:te}}let Ve=x.w*.045,it=28,Ke=Math.min(Ve,it*.6),bt=[[Ne.x,Ne.y,1,1],[Ne.x+Ne.w,Ne.y,-1,1],[Ne.x,Ne.y+Ne.h,1,-1],[Ne.x+Ne.w,Ne.y+Ne.h,-1,-1]],Et=V?"is-locked":y.hint!==null?"is-coaching":"",Rn=B?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],Yt=x.y+x.h+48,St={insetInlineStart:x.x,insetBlockStart:x.y,inlineSize:x.w,blockSize:x.h,borderRadius:Ve};return(0,k.jsx)("section",{className:"sekyro-lm","aria-label":dt,"data-testid":"sekyro-document",children:(0,k.jsxs)("div",{ref:a,className:`sekyro-lm-stage${Y?" is-reading":""}${oe?" is-flip":""}`,style:{"--sekyro-guide-w":`${x.w}px`},children:[(0,k.jsx)("video",{ref:s,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:Q=>{let te=Q.currentTarget,C=te.getBoundingClientRect(),H=Math.max(C.width/(te.videoWidth||1),C.height/(te.videoHeight||1)),de=te.videoWidth*H,fe=te.videoHeight*H;de>0&&fe>0&&c.current?.focusAt((Q.clientX-C.left+(de-C.width)/2)/de,(Q.clientY-C.top+(fe-C.height)/2)/fe)}}),p.w>0?(0,k.jsxs)(k.Fragment,{children:[Y&&N!==null?(0,k.jsx)("img",{className:"sekyro-lm-scene",src:N,alt:""}):null,Y&&O!==null?(0,k.jsx)("img",{className:"sekyro-lm-frozen",src:O,alt:"",style:St}):null,(0,k.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${p.w} ${p.h}`,"aria-hidden":"true",focusable:"false",children:[(0,k.jsxs)("defs",{children:[(0,k.jsxs)("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,k.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),(0,k.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),(0,k.jsxs)("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,k.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),(0,k.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),(0,k.jsx)("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${p.w}V${p.h}H0Z${Iu(x,Ve)}`}),(0,k.jsx)("rect",{width:p.w,height:Math.max(0,x.y),fill:"url(#sekyro-lm-top)"}),(0,k.jsx)("rect",{y:x.y+x.h,width:p.w,height:Math.max(0,p.h-x.y-x.h),fill:"url(#sekyro-lm-bottom)"}),(0,k.jsx)("g",{className:`sekyro-lm-brackets ${Et}`,children:bt.map(([Q,te,C,H],de)=>(0,k.jsx)("path",{style:{transform:`translate(${Q}px, ${te}px) scale(${C}, ${H})`},d:`M0 ${it}V${Ke}Q0 0 ${Ke} 0H${it}`},de))}),V?(0,k.jsx)("rect",{className:"sekyro-lm-trace",x:x.x,y:x.y,width:x.w,height:x.h,rx:Ve,pathLength:"1",style:{animationDuration:`${tc}ms`}}):null]}),(0,k.jsx)("div",{className:"sekyro-lm-slot",style:St,"aria-hidden":"true",children:Y?(0,k.jsx)("span",{className:"sekyro-lm-read is-repeating"}):F>0?(0,k.jsx)("span",{className:"sekyro-lm-read"},F):null})]}):null,ue!==null?(0,k.jsx)("div",{className:"sekyro-lm-slot",style:St,"aria-hidden":"true",children:(0,k.jsx)("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${B?" is-page":""}${b?.state==="valid"?" is-valid":""}`})}):null,(0,k.jsxs)("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:x.y-64},children:[(0,k.jsx)("div",{role:"status","aria-live":"polite",children:(0,k.jsx)(Vn,{swapKey:dt,className:"sekyro-lm-line",children:dt})}),Te!==null&&P==="framing"&&Pt===null?(0,k.jsx)("p",{className:"sekyro-lm-attempts",children:st(t,e.attemptsRemaining,e.attemptsExhausted)}):null]}),Y?(0,k.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:Yt-12},children:[(0,k.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),r("native.scan.putDown")]}):oe?(0,k.jsx)("div",{className:`sekyro-lm-under sekyro-lm-flip${P==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:Yt-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:(0,k.jsxs)("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(L)},children:[(0,k.jsx)("span",{className:"sekyro-lm-flip-front"}),(0,k.jsx)("span",{className:"sekyro-lm-flip-back"})]})}):null,(0,k.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,k.jsxs)("div",{className:"sekyro-lm-bar",children:[(0,k.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":t.t("native.close"),onClick:o,children:(0,k.jsx)(ge,{name:"close"})}),m?.torchAvailable?(0,k.jsx)("button",{type:"button",className:`sekyro-glass${m.torch?" is-on":""}`,"aria-label":t.t("doc.torchOn"),"aria-pressed":m.torch,onClick:()=>c.current?.setTorch(!m.torch),children:(0,k.jsx)(oc,{name:"flashlight"})}):null]}),f!==null?(0,k.jsxs)("div",{className:"sekyro-lm-error",role:"alert",children:[(0,k.jsx)("p",{children:t.t("doc.cameraBlocked")}),(0,k.jsx)("p",{children:t.t(f.kind==="permission"?"doc.cameraBlockedHint":ln(f.kind))}),(0,k.jsx)(T,{onClick:()=>{u(null),c.current?.retry()},children:t.t("doc.retryCamera")})]}):null,y.manualShutter?(0,k.jsx)("button",{type:"button",className:"sekyro-shutter","aria-label":t.t("doc.shutter"),onClick:()=>c.current?.shutter()}):null,(0,k.jsx)("ol",{className:"sekyro-lm-tray",children:Rn.map(({side:Q,label:te})=>{let C=m?.captured.includes(Q)??!1;return(0,k.jsxs)("li",{className:C?"is-done":void 0,"aria-current":!C&&(B||m?.expected===Q)?"step":void 0,children:[C?(0,k.jsxs)("span",{className:"sekyro-lm-thumb",children:[S[Q]!==void 0?(0,k.jsx)("img",{src:S[Q],alt:""}):null,(0,k.jsx)("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:(0,k.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,r(te)]},Q)})})]}),l==="uploading"||l==="checking"?(0,k.jsx)("span",{className:"sekyro-visually-hidden",role:"status",children:l==="uploading"?t.t("doc.uploading"):r("native.scan.reading")}):null]})})}function ac(e,t,n){return t?"single":e==="recto"||e==="verso"?e:n.recto===void 0?"recto":"verso"}function Iu({x:e,y:t,w:n,h:o},r){return`M${e+r} ${t}H${e+n-r}Q${e+n} ${t} ${e+n} ${t+r}V${t+o-r}Q${e+n} ${t+o} ${e+n-r} ${t+o}H${e+r}Q${e} ${t+o} ${e} ${t+o-r}V${t+r}Q${e} ${t} ${e+r} ${t}Z`}function Lu(e){let t=Math.round(e.videoWidth/4),n=Math.round(e.videoHeight/4);if(t===0||n===0||typeof document>"u")return null;try{let o=document.createElement("canvas");o.width=t,o.height=n;let r=o.getContext("2d");return r===null?null:(r.drawImage(e,0,0,t,n),o.toDataURL("image/jpeg",.7))}catch{return null}}var ce,k,vu,tc,nc,ku,wu,Nu,cc=w(()=>{"use strict";ce=require("react");be();Ks();Vt();Gs();Us();Ys();Zs();Qs();Js();zt();ht();ec();Ee();Ze();k=require("react/jsx-runtime"),vu={en:Un,fr:Xs,ar:js,es:Un,pt:Un,de:Un},tc=450,nc=i(e=>t=>je(e.strings[t]??vu[e.locale][t]??""),"useScanCopy");i(oc,"ScanGlyph");ku={en:Gn,fr:Ws,ar:$s,es:Gn,pt:Gn,de:Gn};i(rc,"mrzInstruction");i(ic,"reasonOf");i(bu,"DocumentCaptureView");i(Su,"ScanMark");i(_u,"brackets");i(Cu,"DocumentIntro");i(Wr,"guideRect");wu={too_far:"native.scan.closer",too_close:"native.scan.farther",focus_far:"native.scan.farther",glare:"native.scan.glare",too_bright:"native.scan.glare",too_dark:"native.scan.dark",blurry:"native.scan.blurry"},Nu=i(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");i(xu,"LumiereScan");i(ac,"slotOf");i(Iu,"roundedRect");i(Lu,"sceneSnapshot")});function Ru(e,t){let n=e*.72,o=n*1.32;return{cx:e/2,cy:(t-o)/2.1+o/2,a:n/2,b:o/2}}function zu({cx:e,cy:t,a:n,b:o}){return Array.from({length:Wo},(r,a)=>{let s=-Math.PI/2+a/Wo*2*Math.PI,c=Math.cos(s),l=Math.sin(s),d=e+n*c,m=t+o*l,h=Math.hypot(o*c,n*l),f=o*c/h,u=n*l/h,p=i(g=>Math.round(g*10)/10,"r");return`M${p(d+f*16)} ${p(m+u*16)}L${p(d+f*28)} ${p(m+u*28)}`})}function Yo({video:e,instruction:t,note:n,busy:o,progress:r,still:a,overlay:s,ramp:c,onClose:l,closeLabel:d,end:m,live:h=!0,children:f,testId:u}){bo(h);let p=(0,Ln.useRef)(null),[g,y]=(0,Ln.useState)({w:0,h:0});(0,Ln.useLayoutEffect)(()=>{let A=p.current;if(A===null)return;let F=i(()=>y({w:A.clientWidth,h:A.clientHeight}),"measure");if(F(),typeof ResizeObserver>"u")return;let G=new ResizeObserver(F);return G.observe(A),()=>G.disconnect()},[]);let v=Ru(g.w,g.h),S=g.w>0?zu(v):[],E=Math.round(Math.min(1,Math.max(0,r))*Wo),O=v.cy-v.b,R=Math.max(v.a,v.b)+40,N=70*Math.PI/180;return(0,ie.jsx)("section",{className:"sekyro-lm sekyro-fc","aria-label":t,"data-testid":u,"data-ramp":c?"":void 0,children:(0,ie.jsxs)("div",{ref:p,className:"sekyro-lm-stage",children:[e,a?(0,ie.jsx)("img",{className:"sekyro-lm-video sekyro-fc-still",src:a,alt:""}):null,s,g.w>0?(0,ie.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${g.w} ${g.h}`,"aria-hidden":"true",focusable:"false",children:[(0,ie.jsxs)("defs",{children:[(0,ie.jsxs)("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:v.cx-R*Math.sin(N),y1:v.cy,x2:v.cx,y2:v.cy,children:[(0,ie.jsx)("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),(0,ie.jsx)("stop",{offset:"1",className:"sekyro-fc-fade"})]}),(0,ie.jsx)("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:g.w,height:g.h,children:(0,ie.jsx)("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${v.cx}px ${v.cy}px`},d:`M${v.cx} ${v.cy}L${v.cx-R*Math.sin(N)} ${v.cy-R*Math.cos(N)}A${R} ${R} 0 0 1 ${v.cx} ${v.cy-R}Z`,fill:"url(#sekyro-fc-fade)"})})]}),(0,ie.jsx)("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${g.w}V${g.h}H0Z M${v.cx-v.a} ${v.cy}a${v.a} ${v.b} 0 1 0 ${2*v.a} 0a${v.a} ${v.b} 0 1 0 ${-2*v.a} 0Z`}),(0,ie.jsx)("ellipse",{className:"sekyro-fc-rim",cx:v.cx,cy:v.cy,rx:v.a,ry:v.b}),(0,ie.jsx)("path",{className:"sekyro-fc-ticks",d:S.join("")}),E>0?(0,ie.jsx)("path",{className:"sekyro-fc-ticks is-done",d:S.slice(0,E).join("")}):null,E<Wo?(0,ie.jsx)("path",{className:"sekyro-fc-ticks is-light",d:S.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,(0,ie.jsx)(Ho,{colour:c??null}),(0,ie.jsx)("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:O-80},children:(0,ie.jsx)("div",{role:"status","aria-live":"polite",children:(0,ie.jsx)(Vn,{swapKey:t,className:"sekyro-lm-line",children:t})})}),n?(0,ie.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:O+2*v.b+48},children:[o?(0,ie.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,(0,ie.jsx)("span",{children:n})]}):null,(0,ie.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,ie.jsxs)("div",{className:"sekyro-lm-bar",children:[l!==void 0?(0,ie.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":d,onClick:l,children:(0,ie.jsx)(ge,{name:"close"})}):null,m]}),f]})]})})}var Ln,ie,Wo,Yr=w(()=>{"use strict";Ln=require("react");Ar();zt();ht();ie=require("react/jsx-runtime"),Wo=72;i(Ru,"faceOval");i(zu,"ticks");i(Yo,"FaceCamera")});var lc={};wt(lc,{PortraitCaptureView:()=>Au});function Au({step:e,i18n:t,assetBaseUrl:n}){let{t:o}=t,r=(0,ot.useRef)(null),a=(0,ot.useRef)(null),[s,c]=(0,ot.useState)("idle"),[l,d]=(0,ot.useState)(null),[m,h]=(0,ot.useState)(null),[f,u]=(0,ot.useState)({facing:"user",assisted:!1}),{canChooseFacing:p}=Do(),g=_e(),y=(0,ot.useContext)(mn);(0,ot.useEffect)(()=>{let I=r.current;if(I===null)return;let B=e.capture({video:I,...n!==void 0?{assetBaseUrl:n}:{}});a.current=B;let L=i(()=>u({facing:B.facingMode??"user",assisted:B.captureMode==="assisted"}),"readCamera");L();let x=[B.on("state",P=>{L(),c(P)}),B.on("gate",d),B.on("error",h)];return B.start().catch(()=>{}),()=>{for(let P of x)P();B.destroy(),a.current=null}},[]);let v=s==="uploading"||s==="checking",S=s==="done",E=S&&e.reason!==void 0&&!e.uploadFailed,O=s==="starting"||s==="idle"?"portrait.starting":s==="captured"?"portrait.taken":s==="uploading"?"portrait.uploading":s==="checking"?"portrait.checking":`portrait.coach.${l?.coach??"no_face"}`,R=(e.report??[]).filter(I=>!I.pass),N=e.reason!==void 0?`reasons.${e.reason}`:null,A=i(()=>{h(null),a.current?.retry()},"retake"),F=i(I=>{let B=l?.criteria.find(L=>L.criterion===I);return B!==void 0&&(B.held||B.waived)},"met"),G=l?.ready||s==="captured"||v?1:jr.filter(F).length/jr.length,b=N!==null&&(s==="gating"||E),M=f.assisted&&p&&(s==="starting"||s==="gating"||s==="error"),q=i(()=>{let I=a.current;I?.switchCamera()===!0&&(h(null),d(null),u({facing:I.facingMode??"user",assisted:!0}))},"switchCamera");return(0,le.jsxs)(Yo,{testId:"sekyro-portrait",video:(0,le.jsx)("video",{ref:r,className:`sekyro-lm-video sekyro-fc-video${f.facing==="environment"?" is-rear":""}`,playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true"}),instruction:o(O),progress:G,closeLabel:o("native.close"),...y!==void 0?{onClose:y}:{},...M?{end:(0,le.jsx)("button",{type:"button",className:"sekyro-glass",onClick:q,"aria-label":o("capture.switchCamera"),"data-testid":"sekyro-portrait-switch",children:(0,le.jsx)(Hn,{})})}:{},children:[(0,le.jsx)("h2",{ref:g,tabIndex:-1,className:"sekyro-visually-hidden",children:o(e.reason!==void 0?"portrait.retryTitle":"session.steps.portrait.title")}),b||m!==null||S&&(e.uploadFailed||!e.attemptsExhausted)?(0,le.jsxs)("div",{className:"sekyro-fc-panel",children:[b?(0,le.jsxs)($,{tone:"warning",children:[(0,le.jsx)("span",{children:t.strings[N]!==void 0?o(N):o("portrait.retryTitle")}),R.length>0?(0,le.jsxs)("span",{children:[o("portrait.reportTitle"),": ",R.map(I=>o(`portrait.report.${I.criterion}`)).join(", ")]}):null,(0,le.jsx)("span",{children:st(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,m!==null?(0,le.jsxs)($,{tone:"danger",children:[(0,le.jsx)("span",{children:o("portrait.cameraBlocked")}),(0,le.jsx)("span",{children:o("portrait.cameraBlockedHint")}),(0,le.jsx)(T,{kind:"ghost",onClick:A,children:o("portrait.retryCamera")})]}):null,e.uploadFailed&&S?(0,le.jsx)($,{tone:"danger",children:(0,le.jsx)("span",{children:o("portrait.uploadFailed")})}):null,S&&!e.attemptsExhausted?(0,le.jsx)(T,{full:!0,onClick:A,disabled:v,children:o("portrait.retake")}):null]}):null,(0,le.jsx)("ul",{className:"sekyro-fc-checks","aria-label":o("portrait.checksLabel"),children:jr.map(I=>(0,le.jsxs)("li",{className:F(I)?"is-met":void 0,children:[(0,le.jsx)("span",{className:"sekyro-fc-mark","aria-hidden":"true",children:(0,le.jsx)("svg",{viewBox:"0 0 18 18",children:(0,le.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})}),(0,le.jsx)("span",{children:o(`portrait.criteria.${I}`)}),(0,le.jsx)("span",{className:"sekyro-visually-hidden",children:o(F(I)?"portrait.met":"portrait.notMet")})]},I))})]})}var ot,le,jr,uc=w(()=>{"use strict";ot=require("react");be();Ro();zr();ft();Yr();ht();Ze();le=require("react/jsx-runtime"),jr=["pose","eyes","mouth","lighting","background","resolution"];i(Au,"PortraitCaptureView")});var cd={};wt(cd,{DocumentCapture:()=>Uo,EidStep:()=>Io,EmailOtpStep:()=>wo,IdNumberEntry:()=>$n,MethodChoice:()=>$o,NniEntry:()=>Hs,PhoneOtpStep:()=>Co,PortraitCapture:()=>jo,SekyroFlow:()=>Tc,SekyroVerification:()=>Jo,StepI18nProvider:()=>dn,VerificationResultScreen:()=>Xo,arSteps:()=>po,enSteps:()=>mo,formatTemplate:()=>je,frSteps:()=>fo,isInAppBrowser:()=>er,loadSekyroLocale:()=>ro,resolveSekyroStrings:()=>fr,retakeHintStringKey:()=>co,useStepI18n:()=>se,useVerificationStep:()=>yo});module.exports=Fc(cd);io();Vt();dr();pr();mr();Ee();var Mn=require("react");function yo(e){let[t,n]=(0,Mn.useState)(()=>e?.currentStep?.()??null),[o,r]=(0,Mn.useState)(null);return(0,Mn.useEffect)(()=>{if(e===void 0)return;if(typeof e.run!="function"){r(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let a=!0,s=e.on("step",c=>{a&&n(c)});return e.run().then(c=>{a&&n(l=>l??c)},c=>{a&&r(c)}),()=>{a=!1,s()}},[e]),{step:t,error:o}}i(yo,"useVerificationStep");var Ae=require("react");be();hr();var Wc="AC247 AD376 AE971/0 AF93/0 AG1/1 AI1/1 AL355/0 AM374/0 AO244 AR54/0 AS1/1 AT43/0 AU61/0 AW297 AX358/0 AZ994/0 BA387/0 BB1/1 BD880/0 BE32/0 BF226 BG359/0 BH973 BI257 BJ229 BL590/0 BM1/1 BN673 BO591/0 BQ599 BR55/0 BS1/1 BT975 BW267 BY375/8 BZ501 CA1/1 CC61/0 CD243/0 CF236 CG242 CH41/0 CI225 CK682 CL56 CM237 CN86/0 CO57/0 CR506 CU53/0 CV238 CW599 CX61/0 CY357 CZ420 DE49/0 DJ253 DK45 DM1/1 DO1/1 DZ213/0 EC593/0 EE372 EG20/0 EH212/0 ER291/0 ES34 ET251/0 FI358/0 FJ679 FK500 FM691 FO298 FR33/0 GA241 GB44/0 GD1/1 GE995/0 GF594/0 GG44/0 GH233/0 GI350 GL299 GM220 GN224 GP590/0 GQ240 GR30 GT502 GU1/1 GW245 GY592 HK852 HN504 HR385/0 HT509 HU36/06 ID62/0 IE353/0 IL972/0 IM44/0 IN91/0 IO246 IQ964/0 IR98/0 IS354 IT39 JE44/0 JM1/1 JO962/0 JP81/0 KE254/0 KG996/0 KH855/0 KI686/0 KM269 KN1/1 KP850/0 KR82/0 KW965 KY1/1 KZ7/8 LA856/0 LB961/0 LC1/1 LI423/0 LK94/0 LR231/0 LS266 LT370/0 LU352 LV371 LY218/0 MA212/0 MC377/0 MD373/0 ME382/0 MF590/0 MG261/0 MH692/1 MK389/0 ML223 MM95/0 MN976/0 MO853 MP1/1 MQ596/0 MR222 MS1/1 MT356 MU230 MV960 MW265/0 MX52 MY60/0 MZ258 NA264/0 NC687 NE227 NF672 NG234/0 NI505 NL31/0 NO47 NP977/0 NR674 NU683 NZ64/0 OM968 PA507 PE51/0 PF689 PG675 PH63/0 PK92/0 PL48 PM508/0 PR1/1 PS970/0 PT351 PW680 PY595/0 QA974 RE262/0 RO40/0 RS381/0 RU7/8 RW250/0 SA966/0 SB677 SC248 SD249/0 SE46/0 SG65 SH290 SI386/0 SJ47 SK421/0 SL232/0 SM378 SN221 SO252/0 SR597 SS211/0 ST239 SV503 SX1/1 SY963/0 SZ268 TA290 TC1/1 TD235 TG228 TH66/0 TJ992 TK690 TL670 TM993/8 TN216 TO676 TR90/0 TT1/1 TV688 TW886/0 TZ255/0 UA380/0 UG256/0 US1/1 UY598/0 UZ998 VA39 VC1/1 VE58/0 VG1/1 VI1/1 VN84/0 VU678 WF681 WS685 XK383/0 YE967/0 YT262/0 ZA27/0 ZM260/0 ZW263/0",Mi;function Vi(e){return Mi??(Mi=new Map(Wc.split(" ").map(t=>{let[n,o]=t.slice(2).split("/");return[t.slice(0,2),[n,o]]}))),Mi.get(e.toUpperCase())}i(Vi,"entryOf");function Oi(e){return Vi(e)?.[0]}i(Oi,"dialCodeOf");function Di(e){return Vi(e)?.[1]}i(Di,"nationalPrefixOf");var Hi=require("@sekyro/web");function ko(e){let t=(0,Hi.normalizeNni)(e).replace(/\D/g,"");return/^\D*\+/.test(e)?`+${t}`:t.startsWith("00")?`+${t.slice(2)}`:t}i(ko,"digitsOf");var gr=i((e,t)=>(t.trunk!==void 0&&e.startsWith(t.trunk)?e.slice(t.trunk.length):e).slice(0,Math.max(...t.lengths)),"fitDigits");function yr(e,t){let n="",o=0;for(let r of t?.formats?.find(a=>new RegExp(`^(?:${a.leading})`).test(e))?.groups??[])o<e.length&&(n+=(o>0?" ":"")+e.slice(o,o+r)),o+=r;return n+e.slice(o)}i(yr,"groupDigits");function Bi(e,t){let n=0;for(let o=t;o>0&&n<e.length;n+=1)e[n]!==" "&&(o-=1);return n}i(Bi,"caretAfter");var vr=i((e,t)=>t.find(n=>e.startsWith(n.dial)),"countryOfNumber"),Fi=i((e,t)=>e.lengths.join(", ").replace(/, (\d+)$/,` ${t} $1`),"lengthsLabel");Jt();ht();Ee();Ze();_o();var D=require("react/jsx-runtime"),Ui=i((e,t)=>{if(e===void 0)return 0;let n=Date.parse(e)-t;return Number.isFinite(n)?Math.max(0,Math.ceil(n/1e3)):0},"secondsUntil"),jc=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Zc=["whatsapp","sms"],Qc=new Set(["otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited","otp_number_invalid","otp_number_not_mobile"]);function Wi(e){let t=ko(e).replace("+","");return/^\d{8,15}$/.test(t)?`+${t}`:null}i(Wi,"normalizedPhone");var Xc=i(e=>String.fromCodePoint(...Array.from(e,t=>127397+t.charCodeAt(0))),"flagOf");function Jc(e){let t=[];for(let n of e.phoneCountries??["MR"]){let o=e.phoneRules?.find(a=>a.code===n),r=o?.dial??Oi(n);r!==void 0&&!t.some(a=>a.code===n)&&t.push({code:n,dial:`+${r}`,...o!==void 0?{rule:o}:{}})}return t}i(Jc,"phoneCountriesOf");function el(e,t){if(t===null||!e.startsWith(t.dial))return Wi(e);let n=e.slice(t.dial.length).replace(/\D/g,""),o=Di(t.code);return o!==void 0&&n.startsWith(o)&&(n=n.slice(o.length)),Wi(t.dial+n)}i(el,"e164Of");var Yi=i((e,t)=>(vr(e,t)??t[0])?.code??null,"countryFor");function tl(e){let t=null;try{t=new Intl.DisplayNames([e],{type:"region"})}catch{}return n=>`${t?.of(n.code)??n.code} (${n.dial})`}i(tl,"countryLabels");var ji="other";function Co({step:e,locale:t,strings:n,className:o,defaultPhone:r,onError:a}){let s=se(t,n),{t:c}=s,l=(0,Ae.useMemo)(()=>Jc(e),[e.phoneCountries,e.phoneRules]),d=r??l[0]?.dial??"",[m,h]=(0,Ae.useState)(()=>Yi(d,l)),f=l.map(C=>C.code).join(",");(0,Ae.useEffect)(()=>{if(m===null||!l.some(C=>C.code===m)){let C=Yi(d,l);h(C);let H=p.current,de=l.find(fe=>fe.code===C)?.dial;de!==void 0&&y(fe=>H!==null&&fe.startsWith(H.dial)?de+fe.slice(H.dial.length):fe.startsWith("+")?fe:de)}},[f,d]);let u=l.find(C=>C.code===m)??null,p=(0,Ae.useRef)(u);u!==null&&(p.current=u);let[g,y]=(0,Ae.useState)(d),[v,S]=(0,Ae.useState)(!1),[E,O]=(0,Ae.useState)(!1),[R,N]=(0,Ae.useState)(""),[A,F]=(0,Ae.useState)(!1),[G,b]=(0,Ae.useState)(null),M=e.phase==="verify",q=hn(M),I=(0,Ae.useId)(),B=(0,Ae.useRef)(null);(0,Ae.useEffect)(()=>{let C=setTimeout(()=>B.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(C)},[M]);let L=i(async C=>{F(!0),b(null);try{await C()}catch(H){b(Xe(H,s.strings)),a?.(H)}finally{F(!1)}},"run"),x=Zc.filter(C=>(e.channels??[]).includes(C)),P=e.phoneInternational===!0,Y=v||u===null,oe=Y||g.startsWith("+")&&!g.startsWith(u.dial),V=oe?void 0:u.rule,me=oe?g:g.replace(u.dial,"").replace(/\D/g,""),we=V?gr(me,V):me,ue=oe&&!Y&&!P&&e.phoneRules?.length&&!l.some(C=>C.dial.startsWith(g)),K=ue?null:V?V.lengths.includes(we.length)?u.dial+we:null:Y&&!g.startsWith("+")?null:el(g,v?null:u),Ue=!e.needsPhone||K!==null,Te=i((C,H=!1)=>{L(()=>e.send({...e.needsPhone&&(!H||g!==d)?{phone:K??g}:{},...C!==void 0?{channel:C}:{}}))},"send"),Pt=i(C=>{L(()=>e.verify(C))},"submitCode"),Wt=i(C=>{C.preventDefault(),M?Pt(R):x.length<=1&&Ue&&Te(x[0])},"onSubmit"),dt=i(C=>{let H=C.target,de=C.nativeEvent.inputType,fe=Math.max(0,H.value.lastIndexOf("+")),ve=ko(H.value.slice(fe)),U=vr(ve,l),Re=ko(H.value.slice(fe,H.selectionStart)).length,Pe=ve,We=ve;if(O(!1),!U&&(Y||ve.startsWith("+")))P&&S(!0);else{let _t=U??u,He=U?ve.slice(U.dial.length):ve;if(h(_t.code),S(!1),He===we&&de?.startsWith("delete")&&(de.endsWith("Forward")||(Re-=1),He=He.slice(0,Re)+He.slice(Re+1)),_t.rule){let an=gr(He,_t.rule),jt=He.length-an.length;Re-=jt,He=jt>0&&!U&&we.length===an.length?we:an}We=_t.dial+He,Pe=yr(He,_t.rule)}y(We),H.value=Pe;let Ye=Bi(Pe,Re);H.setSelectionRange(Ye,Ye)},"onNumber"),qe=ue?c("otp.reason_otp_destination_not_allowed"):E&&V?c("otp.phoneLengthError",{digits:Fi(V,c("otp.or"))}):"",Ne=l.length>1||P,Ve=`${I}-phone`,it=Ui(e.codeExpiresAt,q),Ke=Ui(e.resendAvailableAt,q),bt=M&&e.codeExpiresAt!==void 0&&it===0,Et=i(C=>c(C==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),[Rn,Yt]=c("otp.sentTo",{channel:Et(e.channel)}).split("{number}"),St=e.reason==="otp_mismatch"?(0,D.jsxs)($,{tone:"danger",children:[(0,D.jsx)("span",{children:c("otp.reason_otp_mismatch")}),(0,D.jsx)("span",{children:st(s,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Qc.has(e.reason)?(0,D.jsx)($,{tone:"warning",children:(0,D.jsx)("span",{children:c(`otp.reason_${e.reason}`)})}):null,Q=(0,D.jsxs)(D.Fragment,{children:[St,G!==null?(0,D.jsx)($,{tone:"danger",children:(0,D.jsx)("span",{children:c(G)})}):null]});if(M){let C=x.length===0;return(0,D.jsxs)("form",{className:`sekyro-step sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":I,onSubmit:Wt,noValidate:!0,children:[(0,D.jsx)(Be,{id:I,title:c("otp.verifyTitle"),lead:(0,D.jsxs)(D.Fragment,{children:[Rn,(0,D.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),Yt]})}),Q,(0,D.jsxs)("div",{className:"sekyro-field",children:[(0,D.jsx)("label",{className:"sekyro-label",htmlFor:`${I}-code`,children:c("otp.codeLabel")}),(0,D.jsx)(vo,{id:`${I}-code`,value:R,invalid:e.reason==="otp_mismatch",onChange:H=>{N(H),H.length===6&&R.length!==6&&!A&&!e.attemptsExhausted&&Pt(H)}}),(0,D.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${bt?" is-danger":""}`,"aria-hidden":!bt||void 0,children:bt?c("otp.expired"):c("otp.expiresIn",{time:jc(it)})})]}),(0,D.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:bt?c("otp.expired"):""}),(0,D.jsxs)(Fe,{children:[(0,D.jsx)(T,{type:"submit",full:!0,disabled:A||R.length!==6||e.attemptsExhausted,"aria-busy":A||void 0,children:c("otp.verify")}),C?(0,D.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:A||Ke>0,onClick:()=>Te(void 0,!0),children:Ke>0?c("otp.resendIn",{seconds:Ke}):c("otp.resend")}):Ke>0?(0,D.jsx)("p",{className:"sekyro-resend is-waiting",children:c("otp.resendIn",{seconds:Ke})}):(0,D.jsx)("div",{className:"sekyro-resend-row",children:x.map(H=>(0,D.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:A,onClick:()=>Te(H,!0),children:c("otp.resendBy",{channel:Et(H)})},H))})]})]})}let te=tl(s.locale);return(0,D.jsxs)("form",{className:`sekyro-step sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":I,onSubmit:Wt,noValidate:!0,children:[(0,D.jsx)(Be,{id:I,title:c("otp.sendTitle"),lead:c("otp.sendDescription")}),Q,e.needsPhone?(0,D.jsxs)("div",{className:"sekyro-field",children:[(0,D.jsx)("label",{className:"sekyro-label",htmlFor:Ve,children:c("otp.phoneLabel")}),(0,D.jsxs)("div",{className:"sekyro-phone",dir:"ltr",children:[u===null||oe&&!v?null:(0,D.jsxs)("div",{className:"sekyro-phone__lead",children:[Ne?(0,D.jsxs)("select",{className:"sekyro-phone__country",dir:s.locale==="ar"?"rtl":"ltr","aria-label":`${c("otp.countryLabel")}: ${v?c("otp.otherCountry"):te(u)}`,value:v?ji:u.code,onChange:C=>{O(!1);let H=l.find(de=>de.code===C.target.value);S(H===void 0),H!==void 0&&h(H.code),y(H===void 0?"":H.dial+(oe?"":we))},children:[l.map(C=>(0,D.jsx)("option",{value:C.code,children:te(C)},C.code)),P?(0,D.jsx)("option",{value:ji,children:c("otp.otherCountry")}):null]}):null,(0,D.jsxs)("span",{className:"sekyro-phone__dial",id:`${Ve}-dial`,"aria-hidden":Ne||void 0,children:[(0,D.jsx)("span",{className:"sekyro-phone__flag","aria-hidden":"true",children:v?"🌐":Xc(u.code)}),v?null:u.dial]})]}),(0,D.jsx)("input",{ref:B,id:Ve,className:"sekyro-phone__input",type:"tel",dir:"ltr",inputMode:"tel",autoComplete:"tel","aria-describedby":`${oe?"":`${Ve}-dial ${Ve}-hint `}${qe?`${Ve}-error`:""}`.trim()||void 0,"aria-invalid":!!qe||void 0,placeholder:Y?"+":void 0,value:oe?g:yr(we,V),onChange:dt,onKeyDown:C=>{C.key==="Enter"&&!Ue&&O(!0)},onBlur:C=>{C.relatedTarget?.tagName!=="SELECT"&&O(we!==""&&K===null)}})]}),oe?null:(0,D.jsx)("span",{className:"sekyro-help",id:`${Ve}-hint`,children:c("otp.phonePlaceholderGeneric")}),qe?(0,D.jsx)("span",{className:"sekyro-help is-danger",id:`${Ve}-error`,role:"alert",children:qe}):null]}):(0,D.jsx)("p",{className:"sekyro-text-muted",children:c("otp.prefilledNotice")}),(0,D.jsx)(Fe,{children:x.length>0?(0,D.jsxs)("div",{className:"sekyro-actions__group",role:"group","aria-label":c("otp.chooseChannel"),children:[(0,D.jsx)("p",{className:"sekyro-label","aria-hidden":"true",children:c("otp.chooseChannel")}),x.map((C,H)=>(0,D.jsx)(T,{kind:H===0?"primary":"ghost",full:!0,disabled:A||!Ue,"aria-busy":H===0&&A||void 0,onClick:()=>Te(C),children:c("otp.sendBy",{channel:Et(C)})},C))]}):(0,D.jsx)(T,{type:"submit",full:!0,disabled:A||!Ue,"aria-busy":A||void 0,children:c("otp.send")})})]})}i(Co,"PhoneOtpStep");var Bt=require("react");be();var Zi=require("react");var br=class br extends Zi.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};i(br,"LoadBoundary");var gt=br;Ee();Ze();var Nt=require("react/jsx-runtime"),al={load:i(()=>Promise.resolve().then(()=>(ia(),ra)),"load")};function wo({locale:e,strings:t,...n}){let o=se(e,t),[r,a]=(0,Bt.useState)(0),s=(0,Bt.useMemo)(()=>(0,Bt.lazy)(()=>al.load().then(l=>({default:l.EmailOtpView}))),[r]),c=(0,Nt.jsxs)($,{tone:"danger",children:[(0,Nt.jsx)("span",{children:o.t("errors.network_error")}),(0,Nt.jsx)(T,{kind:"ghost",onClick:()=>a(l=>l+1),children:o.t("common.retry")})]});return(0,Nt.jsx)(gt,{fallback:c,children:(0,Nt.jsx)(Bt.Suspense,{fallback:(0,Nt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:o.t("common.loading")}),children:(0,Nt.jsx)(s,{...n,i18n:o})})},r)}i(wo,"EmailOtpStep");var Ft=require("react");be();Ee();Ze();var xt=require("react/jsx-runtime"),ul={load:i(()=>Promise.resolve().then(()=>(la(),ca)),"load")};function Io({locale:e,strings:t,...n}){let o=se(e,t),[r,a]=(0,Ft.useState)(0),s=(0,Ft.useMemo)(()=>(0,Ft.lazy)(()=>ul.load().then(l=>({default:l.EidView}))),[r]),c=(0,xt.jsxs)($,{tone:"danger",children:[(0,xt.jsx)("span",{children:o.t("errors.network_error")}),(0,xt.jsx)(T,{kind:"ghost",onClick:()=>a(l=>l+1),children:o.t("common.retry")})]});return(0,xt.jsx)(gt,{fallback:c,children:(0,xt.jsx)(Ft.Suspense,{fallback:(0,xt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:o.t("common.loading")}),children:(0,xt.jsx)(s,{...n,i18n:o})})},r)}i(Io,"EidStep");var Ds=require("react");Lo();xr();var Gt=require("react");be();Ze();var At=require("react/jsx-runtime"),du={load:i(()=>Promise.resolve().then(()=>(Os(),Vs)),"load")};function Me({view:e,i18n:t,quiet:n,...o}){let[r,a]=(0,Gt.useState)(0),s=(0,Gt.useMemo)(()=>(0,Gt.lazy)(()=>du.load().then(l=>({default:l[e]}))),[e,r]),c=(0,At.jsxs)($,{tone:"danger",children:[(0,At.jsx)("span",{children:t.t("errors.network_error")}),(0,At.jsx)(T,{kind:"ghost",onClick:()=>a(l=>l+1),children:t.t("common.retry")})]});return(0,At.jsx)(gt,{fallback:c,children:(0,At.jsx)(Gt.Suspense,{fallback:n===!0?null:(0,At.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:t.t("common.loading")}),children:(0,At.jsx)(s,{...o,i18n:t})})},r)}i(Me,"Flow");zt();Ee();var wn=require("react/jsx-runtime");function $o({step:e,locale:t,strings:n,className:o,onError:r}){let a=se(t,n),{busy:s,error:c,run:l}=nn(a,r),d=(0,Ds.useMemo)(()=>e.choice.options.flatMap(h=>{let f=Dn(h,a),u=To[h.service];return f===null?[]:[{id:h.id,label:f,glyph:u&&(0,wn.jsx)(ge,{name:u})}]}),[e.choice.options,a]),m=e.choice.options.find(h=>h.service==="national_eid");return(0,wn.jsxs)("div",{className:o,children:[(0,wn.jsx)(tn,{title:a.t("method.title"),description:a.t("method.description"),options:d,busy:s,error:c,focus:!0,testId:"sekyro-method",onChoose:h=>l(()=>e.choose(h))}),m?.nationalEid?.afterPass==="continue"?(0,wn.jsx)(Me,{view:"EidContinueHint",i18n:a,provider:m.nationalEid.providerName,quiet:!0}):null]})}i($o,"MethodChoice");var Kn=require("@sekyro/web"),Nn=require("react");be();Jt();ht();Ee();Ze();var ae=require("react/jsx-runtime"),pu=new Set(["nni_not_found","registry_record_not_found"]),mu=new Set(["nni_invalid","id_number_invalid"]);function $n({step:e,locale:t,strings:n,className:o,onError:r}){let a=se(t,n),{t:s}=a,[c,l]=(0,Nn.useState)(""),[d,m]=(0,Nn.useState)(!1),[h,f]=(0,Nn.useState)(null),u=(0,Nn.useId)(),p=e.attemptsExhausted,g=i(async F=>{m(!0),f(null);try{await F()}catch(G){f(Xe(G,a.strings)),r?.(G)}finally{m(!1)}},"run"),y=i(F=>{if(F.preventDefault(),e.source!=="typed"){g(()=>e.confirm());return}let G=(0,Kn.normalizeNni)(c);if(!/^\d{10}$/.test(G))return f("population.invalid");if(!(0,Kn.isValidNni)(G))return f("population.reason_id_number_invalid");g(()=>typeof e.submitIdNumber=="function"?e.submitIdNumber(G):e.submitNni(G))},"onSubmit"),v=st(a,e.attemptsRemaining,p),S=e.reason!==void 0&&pu.has(e.reason),E=e.reason!==void 0&&mu.has(e.reason),O=(0,ae.jsxs)(ae.Fragment,{children:[e.reason==="registry_unavailable"?(0,ae.jsxs)($,{tone:"warning",children:[(0,ae.jsx)("span",{children:s("population.reason_registry_unavailable")}),(0,ae.jsx)("span",{children:v})]}):null,S&&e.canUseDocument?(0,ae.jsxs)($,{tone:"warning",children:[(0,ae.jsx)("span",{children:s("population.reason_registry_record_not_found_or_document")}),(0,ae.jsx)("span",{children:v}),(0,ae.jsx)(T,{kind:"ghost",disabled:d,onClick:()=>{g(()=>e.useDocument())},children:s("population.useDocument")})]}):null,S&&!e.canUseDocument||E?(0,ae.jsxs)($,{tone:"danger",children:[(0,ae.jsx)("span",{children:s(S?"population.reason_registry_record_not_found":"population.reason_id_number_invalid")}),(0,ae.jsx)("span",{children:v})]}):null,p&&e.reason===void 0?(0,ae.jsx)($,{tone:"danger",children:(0,ae.jsx)("span",{children:v})}):null,h!==null?(0,ae.jsx)($,{tone:"danger",children:(0,ae.jsx)("span",{children:s(h)})}):null]}),[R,N,A]=e.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:e.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:e.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return(0,ae.jsxs)("form",{className:`sekyro-step${o?` ${o}`:""}`,"aria-labelledby":u,onSubmit:y,noValidate:!0,children:[(0,ae.jsx)(Be,{id:u,title:s(R),lead:s(N)}),O,e.source==="typed"?(0,ae.jsxs)("div",{className:"sekyro-field",children:[(0,ae.jsx)("label",{className:"sekyro-label",htmlFor:`${u}-id-number`,children:s("population.label")}),(0,ae.jsx)("input",{id:`${u}-id-number`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:s("population.placeholder"),value:c,"aria-describedby":`${u}-id-number-help`,"aria-invalid":h==="population.invalid"||h==="population.reason_id_number_invalid"||void 0,onChange:F=>{f(null),l((0,Kn.normalizeNni)(F.target.value).replace(/\D/g,"").slice(0,10))}}),(0,ae.jsx)("span",{id:`${u}-id-number-help`,className:"sekyro-help",children:s("population.helper")})]}):null,(0,ae.jsx)(Fe,{children:p?null:(0,ae.jsx)(T,{type:"submit",full:!0,disabled:d,"aria-busy":d||void 0,children:s(A)})})]})}i($n,"IdNumberEntry");function Hs(e){return $n(e)}i(Hs,"NniEntry");var In=require("@sekyro/web"),ut=require("react");be();var xn=require("@sekyro/web"),nt=require("react");zt();ht();var ye=require("react/jsx-runtime"),Bs=i(e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),"fold"),fu=i(e=>String.fromCodePoint(...Array.from(e.toUpperCase(),t=>127397+t.charCodeAt(0))),"flag"),hu=220;function gu(e,t,n=[]){let o=null;try{o=new Intl.DisplayNames([e],{type:"region"})}catch{}let r=t.map(c=>({code:c,name:o?.of(c)??c})),a=new Intl.Collator(e),s=i(c=>{let l=n.indexOf(c);return l<0?n.length:l},"rank");return r.sort((c,l)=>s(c.code)-s(l.code)||a.compare(c.name,l.name))}i(gu,"countryNames");function Fs({step:e,i18n:t,issuer:n,onPicked:o}){let{t:r,locale:a}=t,s=(0,nt.useMemo)(()=>(0,xn.acceptedIssuers)(e.documents),[e.documents]),c=(0,nt.useMemo)(()=>gu(a,s,Object.keys(e.documents.byIssuer??{})),[a,s,e.documents]),l=s.length===1?s[0]:null,[d,m]=(0,nt.useState)(n??l),[h,f]=(0,nt.useState)(""),[u,p]=(0,nt.useState)(null),g=(0,nt.useId)(),y=l===null?[]:(0,xn.acceptedTypesFor)(e.documents,l),v=l!==null&&y.length===1?y[0]:null;(0,nt.useEffect)(()=>{l!==null&&v!==null&&e.selectDocument(l,v)},[l,v]);let S=i((R,N)=>{e.selectDocument(R,N),o?.()},"pick"),E=i(R=>{let N=(0,xn.acceptedTypesFor)(e.documents,R);N.length===1?S(R,N[0]):m(R)},"chooseIssuer");if((0,nt.useEffect)(()=>{if(u===null||d===null)return;let R=setTimeout(()=>S(d,u),hu);return()=>clearTimeout(R)},[u]),v!==null)return null;if(d===null){let R=Bs(h.trim()),N=R===""?c:c.filter(A=>Bs(A.name).includes(R)||A.code.toLowerCase()===R);return(0,ye.jsxs)("section",{className:"sekyro-step",children:[(0,ye.jsx)(Be,{title:r("doc.countryTitle"),lead:r("doc.pickDescription")}),(0,ye.jsxs)("div",{className:"sekyro-field",children:[(0,ye.jsx)("label",{className:"sekyro-label",htmlFor:g,children:r("doc.countryLabel")}),(0,ye.jsx)("input",{id:g,type:"search",className:"sekyro-input",placeholder:r("doc.countrySearch"),value:h,onChange:A=>f(A.target.value)})]}),N.length===0?(0,ye.jsx)("p",{className:"sekyro-text-muted",children:r("doc.noCountryMatch")}):(0,ye.jsx)("ul",{className:"sekyro-rows",children:N.map(A=>(0,ye.jsx)("li",{children:(0,ye.jsxs)("button",{type:"button",className:"sekyro-row-btn",onClick:()=>E(A.code),children:[(0,ye.jsx)("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:fu(A.code)}),A.name]})},A.code))}),(0,ye.jsx)(Fe,{children:null})]})}let O=(0,xn.acceptedTypesFor)(e.documents,d);return(0,ye.jsxs)("section",{className:"sekyro-step",children:[(0,ye.jsx)(Be,{title:r("doc.pickTitle"),lead:r("native.doc.holdIt")}),(0,ye.jsx)("div",{className:"sekyro-choices",children:O.map(R=>(0,ye.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":u===R,disabled:u!==null&&u!==R,onClick:()=>p(R),children:[(0,ye.jsx)(ge,{name:R==="passport"?"passport":"card"}),(0,ye.jsxs)("span",{className:"sekyro-card__body",children:[(0,ye.jsx)("span",{className:"sekyro-card__title",children:r(`doc.type.${R}`)}),(0,ye.jsx)("span",{className:"sekyro-card__sub",children:r(`doc.sub.${R}`)})]}),(0,ye.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},R))}),s.length>1?(0,ye.jsx)("button",{type:"button",className:"sekyro-link",onClick:()=>{m(null),p(null)},children:r("native.doc.changeCountry")}):null,(0,ye.jsx)(Fe,{children:null})]})}i(Fs,"DocumentPicker");Ee();Ze();var lt=require("react/jsx-runtime"),Tu={load:i(()=>Promise.resolve().then(()=>(cc(),sc)),"load")};function Uo({step:e,locale:t,strings:n,className:o,liveMrz:r}){let a=se(t,n),[s,c]=(0,ut.useState)(0),[l,d]=(0,ut.useState)(null),m=(0,In.acceptedIssuers)(e.documents).length>1,h=e.issuer!==null&&(0,In.acceptedTypesFor)(e.documents,e.issuer).length>1,f=(0,ut.useMemo)(()=>(0,ut.lazy)(()=>Tu.load().then(p=>({default:p.DocumentCaptureView}))),[s]);(0,ut.useEffect)(()=>{(0,In.warmDocumentCapture)()},[]);let u=(0,lt.jsxs)($,{tone:"danger",children:[(0,lt.jsx)("span",{children:a.t("errors.network_error")}),(0,lt.jsx)(T,{kind:"ghost",onClick:()=>c(p=>p+1),children:a.t("doc.retryCamera")})]});return(0,lt.jsx)("div",{className:o,children:e.documentType===null||e.issuer===null||l!==null?(0,lt.jsx)(Fs,{step:e,i18n:a,...l==="document"&&e.issuer!==null?{issuer:e.issuer}:{},onPicked:()=>d(null)}):(0,lt.jsx)(gt,{fallback:u,children:(0,lt.jsx)(ut.Suspense,{fallback:(0,lt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,lt.jsx)(f,{step:e,i18n:a,liveMrz:r,...m?{onChangeCountry:i(()=>d("country"),"onChangeCountry")}:{},...h?{onChangeDocument:i(()=>d("document"),"onChangeDocument")}:{}})})},s)})}i(Uo,"DocumentCapture");var dc=require("@sekyro/web"),rt=require("react");be();ft();Ee();Ze();var xe=require("react/jsx-runtime"),Pu={load:i(()=>Promise.resolve().then(()=>(uc(),lc)),"load")},Qr=class Qr extends rt.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};i(Qr,"LoadBoundary");var Zr=Qr;function Eu({step:e,i18n:t}){let{t:n}=t,o=_e();return(0,xe.jsxs)("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[(0,xe.jsx)("h2",{ref:o,tabIndex:-1,className:"sekyro-text-body",children:n(e.review?"portrait.reviewTitle":"session.steps.portrait.title")}),e.review?(0,xe.jsx)("p",{className:"sekyro-text-muted",children:n("portrait.reviewDescription")}):null,e.uploadFailed?(0,xe.jsxs)($,{tone:"danger",children:[(0,xe.jsx)("span",{children:n("portrait.uploadFailed")}),(0,xe.jsx)(T,{kind:"ghost",onClick:()=>{e.resubmit()},children:n("portrait.sendAgain")})]}):(0,xe.jsx)("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:n("portrait.matching")})]})}i(Eu,"MatchPhase");function jo({step:e,locale:t,strings:n,className:o,assetBaseUrl:r}){let a=se(t,n),[s,c]=(0,rt.useState)(0),l=(0,rt.useMemo)(()=>(0,rt.lazy)(()=>Pu.load().then(m=>({default:m.PortraitCaptureView}))),[s]);if((0,rt.useEffect)(()=>{e.phase==="capture"&&(0,dc.warmPortraitCapture)()},[e.phase]),e.phase==="match")return(0,xe.jsx)("div",{className:o,children:(0,xe.jsx)(Eu,{step:e,i18n:a})});let d=(0,xe.jsxs)($,{tone:"danger",children:[(0,xe.jsx)("span",{children:a.t("errors.network_error")}),(0,xe.jsx)(T,{kind:"ghost",onClick:()=>c(m=>m+1),children:a.t("portrait.retryCamera")})]});return(0,xe.jsx)("div",{className:o,children:(0,xe.jsx)(Zr,{fallback:d,children:(0,xe.jsx)(rt.Suspense,{fallback:(0,xe.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a.t("common.loading")}),children:(0,xe.jsx)(l,{step:e,i18n:a,...r!==void 0?{assetBaseUrl:r}:{}})})},s)})}i(jo,"PortraitCapture");var Lc=require("@sekyro/web"),Ce=require("react");be();Ro();Lr();var Ie={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};Or();Ir();fn();Vt();ft();var Wn={light:{danger:{base:"#ca0f07",soft:"#ffdada",fg:"#ca0f07",on:"#ffffff"},success:{base:"#007a5e",soft:"#d5f0e8",fg:"#005341",on:"#ffffff"},warning:{base:"#ffab00",soft:"#fff7e6",fg:"#735003",on:"#191a1b"},info:{base:"#0563d4",soft:"#d3e5ff",fg:"#064da5",on:"#ffffff"}},dark:{danger:{base:"#ff7c7c",soft:"#9c1008",fg:"#ffbbbb",on:"#030303"},success:{base:"#00c897",soft:"#002c23",fg:"#53ffd4",on:"#030303"},warning:{base:"#ffbb2e",soft:"#463102",fg:"#ffd98a",on:"#030303"},info:{base:"#5da9ff",soft:"#063778",fg:"#acd0ff",on:"#030303"}}},Mu=["danger","success","warning","info"];function Xr(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}i(Xr,"channel");function pc(e){let t=Xr(parseInt(e.slice(1,3),16)),n=Xr(parseInt(e.slice(3,5),16)),o=Xr(parseInt(e.slice(5,7),16));return .2126*t+.7152*n+.0722*o}i(pc,"luminance");function Vu(e,t){let n=pc(e),o=pc(t),r=Math.max(n,o),a=Math.min(n,o);return(r+.05)/(a+.05)}i(Vu,"contrastRatio");function mc(e,t){return Math.min(...Mu.map(n=>Vu(Wn[e][n].fg,t)))}i(mc,"worstAgainst");function fc(e,t,n){return Math.min(mc(e,t),mc(e,n))}i(fc,"worstStatusContrast");function hc(e,t){return fc("light",e,t)>=fc("dark",e,t)?"light":"dark"}i(hc,"statusSchemeFor");Ao();var ti=require("react/jsx-runtime"),Yn={colors:{...Ie.light},radius:Ie.radiusLg,fontFamily:Ie.font},gc={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function Ou(e={}){let t={};for(let n of Object.keys(gc))t[gc[n]]=e.colors?.[n]??Yn.colors[n];return t["--sekyro-radius"]=e.radius??Yn.radius,t["--sekyro-font"]=e.fontFamily??Yn.fontFamily,t}i(Ou,"themeToCssVars");var Du=/^#[0-9a-f]{6}$/i,Hu=["brand","brandFg","bg","surface","fg","fgMuted"],Bu=["danger","success","warning"],yc=!1;function Jr(e){let t=e?.colors;if(e===void 0||t===void 0||!Bu.some(s=>s in t))return e;!yc&&yn()&&(yc=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:n,success:o,warning:r,...a}=t;return{...e,colors:a}}i(Jr,"stripDeprecatedStatusColors");var Fu={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},qu={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function jn(e){let t={};if(!e)return t;let n={},o=e.colors??{};for(let s of Hu){let c=o[s];c!==void 0&&Du.test(c)&&(n[s]=c)}n.brand&&(n.ring=n.brand),Object.keys(n).length&&(t.colors=n);let r=Fu[e.radius];r&&(t.radius=r);let a=qu[e.fontFamily];return a!==void 0&&(t.fontFamily=a?`${a}, ${Yn.fontFamily}`:Yn.fontFamily),t}i(jn,"brandingToTheme");function Zo(...e){let t={};for(let n of e)n?.colors&&(t.colors={...t.colors,...n.colors}),n?.radius&&(t.radius=n.radius),n?.fontFamily&&(t.fontFamily=n.fontFamily);return t}i(Zo,"mergeThemes");function vc({theme:e,children:t,className:n}){return(0,ti.jsx)(ei,{theme:Jr(e),...n!==void 0?{className:n}:{},children:t})}i(vc,"SekyroThemeProvider");function ei({theme:e,children:t,className:n}){let o=Ou(e);return(0,ti.jsx)("div",{className:n===void 0?"sekyro-root":`sekyro-root ${n}`,style:o,children:t})}i(ei,"SekyroThemeRoot");var Qo=require("react");var Ut=require("react/jsx-runtime"),Ku=["intro","data","processing","sharing","retention"];function kc({i18n:e,purpose:t="identity"}){let{t:n}=e,[o,r]=(0,Qo.useState)(!1),a=(0,Qo.useId)(),[s,c=""]=n("consent.short").split("{terms}");return(0,Ut.jsxs)("section",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-consent",children:[(0,Ut.jsxs)("p",{className:"sekyro-text-muted",children:[s,(0,Ut.jsx)("button",{type:"button",className:"sekyro-link","aria-expanded":o,"aria-controls":a,onClick:()=>r(l=>!l),children:n("consent.termsLink")}),c]}),(0,Ut.jsx)("div",{id:a,hidden:!o,className:"sekyro-stack sekyro-stack--1 sekyro-text-muted","data-testid":"sekyro-consent-terms",children:t==="human"?(0,Ut.jsx)(Me,{view:"HumanConsentTerms",i18n:e,quiet:!0}):Ku.map(l=>(0,Ut.jsx)("p",{children:n(`consent.terms.${l}`)},l))})]})}i(kc,"ConsentNotice");Jt();Yr();Dr();zt();function bc(e){let t=e.trim().split(/\s+/).filter(o=>o!=="");return(t.length>=2?[t[0],t[1]].map(o=>Array.from(o??"")[0]??""):Array.from(t[0]??"").slice(0,2)).join("").toUpperCase()}i(bc,"initials");ht();var Cc=require("react");var wc=i(e=>({colors:{...e?Ie.dark:Ie.light},radius:Ie.radiusLg,fontFamily:Ie.font}),"brandTheme"),wy=wc(!1),Sc=/^#[0-9a-f]{6}$/i;function ni(e,t,n){if(t)return null;let o=jn(e).colors,r=n?.colors?.bg??o?.bg,a=n?.colors?.surface??o?.surface;return r===void 0&&a===void 0||r!==void 0&&!Sc.test(r)||a!==void 0&&!Sc.test(a)?null:hc(r??Ie.light.bg,a??Ie.light.surface)}i(ni,"partnerStatusScheme");function Nc(e,t,n){let o=jn(e);if(n&&o.colors!==void 0){let{brand:r,brandFg:a}=o.colors;r!==void 0&&Wu(r,Ie.dark.bg)>=3?o.colors={brand:r,ring:r,...a!==void 0?{brandFg:a}:{}}:delete o.colors}if(ni(e,n,t)==="dark"){let r=Wn.dark;o.colors={...o.colors,danger:r.danger.base,success:r.success.base,warning:r.warning.fg}}return Zo(wc(n),o,Jr(t))}i(Nc,"verificationTheme");function xc(e){let t=(0,Cc.useSyncExternalStore)(Uu,Gu,()=>!1);return e==="dark"||e==="system"&&t}i(xc,"useDarkScheme");var $u="(prefers-color-scheme: dark)",Ic=i(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia($u):null,"media"),Gu=i(()=>Ic()?.matches??!1,"prefersDark");function Uu(e){let t=Ic();return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}i(Uu,"subscribe");function Wu(e,t){let[n,o]=[_c(e),_c(t)];return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}i(Wu,"contrast");function _c(e){let t=[1,3,5].map(n=>{let o=Number.parseInt(e.slice(n,n+2),16)/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4});return .2126*(t[0]??0)+.7152*(t[1]??0)+.0722*(t[2]??0)}i(_c,"luminance");Ee();var Tn=require("react");Vt();En();ft();be();zt();Ee();var Le=require("react/jsx-runtime"),Yu=new Set(["document_id_number_mismatch","name_mismatch","birth_date_mismatch"]),ju={approved:"M6.5 12.5l3.6 3.6 7.4-8.2",review:"M12 7v5l3.2 2",expired:"M8 5h8M8 19h8M9 5c0 4 6 5 6 7s-6 3-6 7M15 5c0 4-6 5-6 7s6 3 6 7",rejected:"M8 8l8 8M16 8l-8 8"};function Zu({outcome:e}){return(0,Le.jsxs)("svg",{className:`sekyro-outcome sekyro-outcome--${e}`,viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[(0,Le.jsx)("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"57",pathLength:"1"}),(0,Le.jsx)("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),(0,Le.jsx)("path",{className:"sekyro-outcome__glyph",d:ju[e],pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]})}i(Zu,"OutcomeMark");function Qu({label:e,id:t,copied:n}){let[o,r]=(0,Tn.useState)(!1);return(0,Tn.useEffect)(()=>{if(!o)return;let a=setTimeout(()=>r(!1),1600);return()=>clearTimeout(a)},[o]),(0,Le.jsxs)("button",{type:"button",className:`sekyro-reference${o?" is-copied":""}`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>r(!0),()=>{})},children:[(0,Le.jsx)("span",{"aria-live":"polite",children:o?n:e}),(0,Le.jsx)("bdi",{dir:"ltr",children:t}),(0,Le.jsx)(ge,{name:"copy"})]})}i(Qu,"ReferenceLine");function Xo({step:e,locale:t,strings:n,className:o,onClose:r}){let a=se(t,n),{t:s}=a,c=(0,Tn.useId)(),l=_e(),d=e.context.orgName,m=e.display==="approved"?"approved":e.display==="review"?"review":e.display==="expired"?"expired":"rejected",h;switch(e.display){case"policy_stop":{let f=e.failureReason??"";if(Yu.has(ao(f)))h=s("session.result.detailsMismatch",{org:d});else if(f==="device_velocity_exceeded")h=s("session.result.deviceVelocity",{org:d});else if(f==="capture_tampered")h=s("session.result.deviceStop");else if(f==="camera_unavailable")h=s("reasons.camera_unavailable",{org:d});else{let u=un(f);h=u!==null?s(u,{org:d}):s("session.result.rejected.description")}break}case"cooldown":{let f=lo(a.locale,e.retryAfter);h=f!==null?s(f.key,{time:f.time}):s("reasons.device_cooldown");break}case"platform_unsupported":h=s("result.platform_unsupported");break;case"attempts_exhausted":h=s("common.noAttemptsLeft");break;default:h=d!==""?s(`native.result.${m}`,{org:d}):s(`session.result.${m}.description`)}return(0,Le.jsxs)("section",{className:`sekyro-result${o?` ${o}`:""}`,"aria-labelledby":c,"data-testid":"sekyro-result",children:[(0,Le.jsxs)("div",{className:"sekyro-result__body",children:[(0,Le.jsx)(Zu,{outcome:e.display==="cooldown"?"review":m}),(0,Le.jsxs)("div",{className:"sekyro-heading",children:[(0,Le.jsx)("h2",{id:c,ref:l,tabIndex:-1,className:"sekyro-text-body",children:s(`session.result.${m}.title`)}),(0,Le.jsx)("p",{className:"sekyro-text-muted",children:h})]}),(0,Le.jsx)(Qu,{label:s("result.referenceLabel"),id:e.context.sessionId,copied:s("native.result.copied")})]}),r!==void 0?(0,Le.jsx)("div",{className:"sekyro-actions",children:(0,Le.jsx)(T,{full:!0,onClick:r,children:d!==""?s("native.result.back",{org:d}):s("native.close")})}):null]})}i(Xo,"VerificationResultScreen");var _=require("react/jsx-runtime");function Xu(e,t,n){let o=t?Ie.dark:Ie.light,r=t?Ie.roles.dark:Ie.roles.light,a=e.colors??{},s={},c=a.fg===o.fg&&a.surface===o.surface;if(a.brand===o.brand&&a.surface===o.surface&&(s["--sekyro-color-brand-soft"]=r.brandSoft),c&&(s["--sekyro-color-line"]=r.line,s["--sekyro-color-line-subtle"]=r.lineSubtle,s["--sekyro-color-line-strong"]=r.lineStrong,s["--sekyro-color-sunken"]=r.sunken),a.fgMuted===o.fgMuted&&a.surface===o.surface&&(s["--sekyro-color-fg-subtle"]=r.fgSubtle),e.fontFamily===Ie.font&&(s["--sekyro-font-display"]=Ie.fontDisplay),n!==null){let l=Wn[n];s["--sekyro-color-danger-soft"]=l.danger.soft,s["--sekyro-color-success-soft"]=l.success.soft,s["--sekyro-color-warning-soft"]=l.warning.soft}return s}i(Xu,"flowRoles");function Jo(e){let{verification:t,locale:n,strings:o,onStep:r,onResult:a}=e,{step:s,error:c}=yo(t);(0,Ce.useEffect)(()=>{s!==null&&r?.(s)},[s,r]),(0,Ce.useEffect)(()=>a===void 0?void 0:t.on("result",a),[t,a]);let l=xc(e.colorScheme??"light"),d=s?.context.branding,m=Nc(d,e.theme,l),[h,f]=(0,Ce.useState)(!1),u=`sekyro-verification${l?" sekyro-verification--dark":""}${h?" is-immersive":""}${e.className!==void 0?` ${e.className}`:""}`,p=(0,Ce.useRef)(e.onClose);p.current=e.onClose;let g=(0,Ce.useRef)(s);g.current=s;let y=(0,Ce.useCallback)(()=>{let v=g.current;p.current?.(v?.kind==="result"?{reason:"finished",result:v.result}:{reason:"cancelled"})},[]);return(0,_.jsx)(ei,{theme:m,className:u,children:(0,_.jsx)(dn,{locale:n,...o!==void 0?{strings:o}:{},children:(0,_.jsx)("div",{dir:e.dir??(n==="ar"?"rtl":"ltr"),lang:n,className:"sekyro-flow",style:Xu(m,l,ni(d,l,e.theme)),children:(0,_.jsx)(kr.Provider,{value:f,children:(0,_.jsx)(mn.Provider,{value:e.onClose!==void 0?y:void 0,children:(0,_.jsx)(td,{...e,step:s,error:c,immersive:h})})})})})})}i(Jo,"SekyroVerification");function Ju(e,t){if(t===void 0)return null;let n=e,o=n[`session.processing.${t}.title`],r=n[`session.processing.${t}.description`];return typeof o=="string"&&o!==""&&typeof r=="string"&&r!==""?{title:o,description:r}:null}i(Ju,"processingCopyOf");function ed({error:e,retry:t}){let{t:n}=se(),o=_e();return(0,_.jsxs)(ze,{tone:"danger",testId:"sekyro-error-notice",children:[(0,_.jsx)("span",{children:n(ln(e.kind))}),e.retryable?(0,_.jsx)(T,{ref:o,kind:"ghost",className:"sekyro-btn--start",onClick:t,children:n("common.retry")}):null]})}i(ed,"CameraErrorNotice");function td(e){let{step:t,error:n,slots:o,immersive:r}=e,a=se(),{t:s}=a,[c,l]=(0,Ce.useState)(!1),[d,m]=(0,Ce.useState)(0),[h,f]=(0,Ce.useState)(null),u=t?.context.purpose??"identity",p=e.verification,g=u==="human"||t?.context.cameraUnavailableHandled===!0,y=p.reportCameraUnavailable!==void 0&&g?L=>p.reportCameraUnavailable?.(L)??Promise.resolve():void 0,v=t?.kind==="liveness"&&t.mode==="liveness"&&t.reason===void 0&&!t.attemptsExhausted,S=e.handoffUrl,E=(0,Ce.useCallback)((L,x)=>y===void 0?void 0:(0,_.jsx)(Me,{view:"NoCameraView",i18n:a,quiet:!0,cause:x,onRetry:L,...v?{onContinue:y}:{},...S!==void 0?{handoffUrl:S}:{}}),[a,p,g,v,S]),O=(0,Ce.useCallback)((L,x)=>(0,_.jsx)(Ko,{start:L,context:x,human:u==="human",extra:x.canChooseFacing&&(0,_.jsx)(Eo,{value:x.facing,onChange:x.setFacing}),notice:x.permissionSettled&&x.permission==="denied"?E(L,"denied"):void 0}),[u,E]),R=(0,Ce.useCallback)((L,x)=>{let P=(0,Lc.cameraUnavailableCauseOf)(L.kind);return(P!==void 0?E(x,P):void 0)??(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(ed,{error:L,retry:x}),P!==void 0&&S!==void 0?(0,_.jsx)(Me,{view:"DesktopHandoffView",i18n:a,quiet:!0,url:S}):null]})},[E,S,a]),N=(0,Ce.useRef)(""),A=e.livenessProps?.slots?.stageOverlay,F=(0,Ce.useCallback)(L=>(L.guidance!==""&&!L.coached&&(N.current=L.guidance),(0,_.jsx)(Yo,{testId:"sekyro-capture-stage",video:(0,_.jsx)("video",{ref:L.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:L.guidance!==""?L.guidance:N.current,note:L.note,busy:L.settled,progress:L.phase==="seeking"||L.phase==="aligning"?L.progress:1,still:L.still,live:L.live,closeLabel:s("native.close"),overlay:A?.(L.videoRef),ramp:L.ramp?.colour??null,...L.settled?{}:{onClose:i(()=>m(x=>x+1),"onClose")},end:L.switchCamera&&(0,_.jsx)("button",{type:"button",className:"sekyro-glass",onClick:L.switchCamera,"aria-label":s("capture.switchCamera"),children:(0,_.jsx)(Hn,{})})})),[s,A]),G=(0,Ce.useId)();if(n!==null)return(0,_.jsx)(ze,{tone:"danger",children:(0,_.jsx)("span",{children:s(Xe(n,a.strings))})});if(t===null)return(0,_.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:s("common.loading")});let{context:b}=t,M=i(L=>{l(!0),L().finally(()=>l(!1))},"refresh"),q=o?.header??(0,_.jsx)(od,{context:b,headerId:G,end:o?.headerEnd}),I,B=h===t.key&&t.context.switchable!==void 0;if(B)I=(0,_.jsx)(Me,{view:"LaneChoiceView",i18n:a,step:t,onClose:()=>f(null)});else switch(t.kind){case"phone_otp":I=(0,_.jsx)(Co,{step:t});break;case"email_otp":I=(0,_.jsx)(wo,{step:t});break;case"method":I=(0,_.jsx)($o,{step:t});break;case"registry":I=(0,_.jsx)($n,{step:t});break;case"document":I=(0,_.jsx)(Uo,{step:t,...e.documentLiveMrz!==void 0?{liveMrz:e.documentLiveMrz}:{}});break;case"liveness":{let L=e.livenessProps?.slots?.intro,x={...e.livenessProps??{},slots:{...e.livenessProps?.slots,intro:L??O,...L===void 0&&e.livenessProps?.slots?.errorPanel===void 0?{errorPanel:R}:{}},...d>0?{autoStart:!1}:{},verification:e.verification,locale:e.locale,dir:e.dir,strings:a.strings,assetBaseUrl:e.assetBaseUrl,voice:e.voice,onCaptured:e.onLivenessCaptured};I=(0,_.jsx)(Po.Provider,{value:F,children:t.instructions==="icao"||t.livePhoto?.icao===!0?(0,_.jsx)(Me,{view:"LivePhotoLiveness",i18n:a,step:t,livenessProps:x,sekyroIntro:L===void 0},d):(0,_.jsx)(qo,{...x},d)});break}case"portrait":I=(0,_.jsxs)(_.Fragment,{children:[t.retakeOnly?(0,_.jsx)(Me,{view:"PortraitRetakeNotice",i18n:a,quiet:!0}):null,(0,_.jsx)(jo,{step:t,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{}})]});break;case"contact_choice":I=(0,_.jsx)(Me,{view:"ContactChoiceView",i18n:a,step:t});break;case"choice":I=(0,_.jsx)(Me,{view:"GenericChoiceView",i18n:a,step:t});break;case"identity_summary":I=(0,_.jsx)(Me,{view:"IdentitySummaryView",i18n:a,step:t});break;case"mobile_required":I=e.handoffUrl!==void 0?(0,_.jsx)(Me,{view:"HandoffView",i18n:a,url:e.handoffUrl,refresh:t.refresh}):(0,_.jsxs)(ze,{tone:"info",children:[(0,_.jsx)("strong",{children:s("handoff.title")}),(0,_.jsx)("span",{children:s("reasons.mobile_required")}),(0,_.jsx)(T,{kind:"ghost",disabled:c,onClick:()=>M(t.refresh),children:s("common.refresh")})]});break;case"processing":{let L=Ju(a.strings,t.service);I=(0,_.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",role:"status","aria-live":"polite",children:[(0,_.jsx)("h2",{className:"sekyro-text-body",children:L?.title??s("session.processing.title")}),(0,_.jsx)("p",{className:"sekyro-text-muted",children:L?.description??s("session.processing.description")}),t.stalled?(0,_.jsx)(T,{kind:"ghost",disabled:c,onClick:()=>M(t.refresh),children:s("common.refresh")}):null]});break}case"eid":I=(0,_.jsx)(Io,{step:t});break;case"unsupported":{let L=t.reason==="platform_unsupported";I=(0,_.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",children:[(0,_.jsx)("h2",{className:"sekyro-text-body",children:s(L?"needsApp.title":"unsupported.title")}),(0,_.jsx)("p",{children:L?b.orgName!==""?s("needsApp.description",{org:b.orgName}):s("needsApp.descriptionNoOrg"):s("unsupported.description",{org:b.orgName})})]});break}case"result":I=o?.result?.(t)??(0,_.jsx)(nd,{step:t});break;default:{let L=t;I=null}}return(0,_.jsxs)(_.Fragment,{children:[r?null:q,!r&&t.kind!=="result"&&b.sections.length>1?(0,_.jsx)(rd,{context:b,current:t.section,i18n:a}):null,!r&&!b.consentRecorded&&t.kind!=="result"?(0,_.jsx)(kc,{i18n:a,purpose:b.purpose}):null,(0,_.jsx)(Ki,{pageKey:t.key,children:I}),!r&&!B&&t.kind!=="result"&&t.context.switchable!==void 0?(0,_.jsx)(Me,{view:"LaneSwitch",i18n:a,step:t,onOpen:()=>f(t.key),quiet:!0},t.key):null,r?null:o?.footer!==void 0?o.footer:b.branding?.hideAttribution===!0?null:(0,_.jsxs)("a",{className:"sekyro-footer",href:"https://sekyro.ai",target:"_blank",rel:"noopener noreferrer",children:[(0,_.jsx)(ge,{name:"lock"}),s("shell.verifiedBy")]})]})}i(td,"Body");function nd({step:e}){return(0,_.jsx)(mn.Consumer,{children:t=>(0,_.jsx)(Xo,{step:e,...t!==void 0?{onClose:t}:{}})})}i(nd,"ResultPage");function od({context:e,headerId:t,end:n}){let{t:o}=se(),[r,a]=(0,Ce.useState)(!1),s=r?void 0:e.branding?.logoUrl,c=e.orgName!==""?e.orgName:o(e.returning?"returning.title":"session.title");return(0,_.jsxs)("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":t,children:[(0,_.jsxs)("div",{className:"sekyro-org",children:[(0,_.jsx)("span",{className:"sekyro-org__tile","aria-hidden":"true",children:s!==void 0?(0,_.jsx)("img",{className:"sekyro-org__logo",src:s,alt:"",onError:()=>a(!0)}):bc(e.orgName)}),(0,_.jsxs)("div",{className:"sekyro-org__text",children:[(0,_.jsx)("h1",{id:t,className:"sekyro-org__name",children:c}),(0,_.jsx)("p",{className:"sekyro-org__sub",children:o(e.purpose==="human"?"shell.subtitleHuman":"shell.subtitle")})]}),n!=null?(0,_.jsx)("div",{className:"sekyro-org__end",children:n}):null,(0,_.jsx)(mn.Consumer,{children:l=>l!==void 0?(0,_.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":o("native.close"),onClick:l,children:(0,_.jsx)(ge,{name:"close"})}):null})]}),e.returning?(0,_.jsx)("p",{className:"sekyro-text-muted",children:o("returning.description")}):null]})}i(od,"OrgHeader");function rd({context:e,current:t,i18n:n}){let o=t===null?-1:e.sections.indexOf(t),r=e.progress,a=r!==void 0&&r.length===e.sections.length?r:e.sections.map((s,c)=>({id:s,state:c<o?"done":c===o?"current":"upcoming"}));return(0,_.jsx)("ol",{className:"sekyro-progress__bars","aria-label":n.t("session.progressLabel"),children:a.map(({id:s,state:c})=>(0,_.jsx)("li",{className:`sekyro-progress__bar${c==="done"?" is-done":c==="current"?" is-current":""}`,...c==="current"?{"aria-current":"step"}:{},children:(0,_.jsx)("span",{className:"sekyro-visually-hidden",children:n.strings[`section.${s}`]??s})},s))})}i(rd,"SectionProgress");var Zn=require("react");var id=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function er(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));return id.test(t)}i(er,"isInAppBrowser");Ee();var rn=require("react/jsx-runtime");function ad(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}i(ad,"pageUrl");function Tc({hostedUrl:e,inAppBrowser:t,...n}){let[o,r]=(0,Zn.useState)(t===!0);(0,Zn.useEffect)(()=>{t===void 0&&er()&&r(!0)},[t]);let[a,s]=(0,Zn.useState)(!1),c=n.handoffUrl??e??ad();return o&&!a?(0,rn.jsx)(vc,{theme:Zo(jn(void 0),n.theme),...n.className!==void 0?{className:n.className}:{},children:(0,rn.jsx)(dn,{locale:n.locale,...n.strings!==void 0?{strings:n.strings}:{},children:(0,rn.jsx)("div",{dir:n.dir??(n.locale==="ar"?"rtl":"ltr"),lang:n.locale,className:"sekyro-stack sekyro-stack--4",children:(0,rn.jsx)(sd,{url:c,onContinue:()=>s(!0)})})})}):(0,rn.jsx)(Jo,{...n,...c!==""?{handoffUrl:c}:{}})}i(Tc,"SekyroFlow");function sd({url:e,onContinue:t}){let n=se();return(0,rn.jsx)(Me,{view:"InAppBrowserPrompt",i18n:n,url:e,onContinue:t})}i(sd,"Prompt");
|