@sekyro/elements 0.1.0-rc.18 → 0.1.0-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cdn/chunks/{capture-session-doc-J4MIDQOS-DYA3TI2D.js → capture-session-doc-DFLSX6BB-3ULMTYJH.js} +1 -1
  3. package/dist/cdn/chunks/{chunk-QWBHA4YX.js → chunk-3PBU4237.js} +2 -2
  4. package/dist/cdn/chunks/{chunk-CH3JN7FV.js → chunk-4VHWJD57.js} +1 -1
  5. package/dist/cdn/chunks/{chunk-4QPD5ZMB.js → chunk-6H2SLOEK.js} +1 -1
  6. package/dist/cdn/chunks/{chunk-NPEJKEWK.js → chunk-AC45ZP53.js} +1 -1
  7. package/dist/cdn/chunks/{chunk-WVDCPIC3.js → chunk-CGOCWIXM.js} +1 -1
  8. package/dist/cdn/chunks/chunk-D7YINY2U.js +3 -0
  9. package/dist/cdn/chunks/{chunk-ZF7TAXXU.js → chunk-EPMGZQHF.js} +1 -1
  10. package/dist/cdn/chunks/{chunk-ECAWI75T.js → chunk-EXMVZUHU.js} +1 -1
  11. package/dist/cdn/chunks/{chunk-TODKCK6A.js → chunk-HXD7VO3F.js} +1 -1
  12. package/dist/cdn/chunks/{chunk-Y6VKSYVY.js → chunk-IXRKOBFA.js} +1 -1
  13. package/dist/cdn/chunks/{chunk-KOTLQOUY.js → chunk-JR4AQLJ2.js} +1 -1
  14. package/dist/cdn/chunks/{chunk-C5LJ5ZHE.js → chunk-K2JDLIFO.js} +1 -1
  15. package/dist/cdn/chunks/{chunk-EHIN4Z6H.js → chunk-L66SWMJ5.js} +1 -1
  16. package/dist/cdn/chunks/{chunk-YZE7YZVV.js → chunk-LUO3AZFS.js} +1 -1
  17. package/dist/cdn/chunks/{chunk-3XCA56FW.js → chunk-PAU2BFT7.js} +1 -1
  18. package/dist/cdn/chunks/{chunk-VYFRJNC5.js → chunk-PLWGAXYM.js} +1 -1
  19. package/dist/cdn/chunks/{chunk-UE6IZTZA.js → chunk-RTCZJKYC.js} +1 -1
  20. package/dist/cdn/chunks/{chunk-WZFFQZE2.js → chunk-WANVL25H.js} +1 -1
  21. package/dist/cdn/chunks/{chunk-SYZUFSPK.js → chunk-WCEIXBIS.js} +1 -1
  22. package/dist/cdn/chunks/{chunk-MK5WGJZO.js → chunk-YULJCSQ3.js} +1 -1
  23. package/dist/cdn/chunks/{chunk-62FWEZDF.js → chunk-ZWP6MDIC.js} +1 -1
  24. package/dist/cdn/chunks/{create-document-capture-SMEKDBGF-DISVYLXM.js → create-document-capture-4ZOSBL3Y-KLZDMWOQ.js} +1 -1
  25. package/dist/cdn/chunks/{document-capture-view-TV2VKLPV-6ZFRPTO3.js → document-capture-view-25EASYV7-EUEYS55L.js} +1 -1
  26. package/dist/cdn/chunks/{eid-view-VC3DHQWV-IBAI3YPF.js → eid-view-6DXZ5ELB-ZX35JGDS.js} +1 -1
  27. package/dist/cdn/chunks/{email-otp-view-QCELBL7U-XSYVFDW7.js → email-otp-view-3UJPJOQ6-MIOPWSME.js} +1 -1
  28. package/dist/cdn/chunks/flow-views-ZVDXJZWH-C5ZVKCB6.js +1 -0
  29. package/dist/cdn/chunks/{form-view-P2GVOYAC-ZWBQXCK3.js → form-view-4NKEHYNF-I25LMP47.js} +1 -1
  30. package/dist/cdn/chunks/{overlay-de-EMTSLK3M-LA7EI7SW.js → overlay-de-64ABPD3N-KIBBQI36.js} +1 -1
  31. package/dist/cdn/chunks/{overlay-es-6WMAHH33-66DPI2L6.js → overlay-es-VIMXYK2Q-KTLONTNF.js} +1 -1
  32. package/dist/cdn/chunks/{overlay-pt-WBGMJQTQ-IOBB3HFB.js → overlay-pt-3IBDZBAW-DQTJHDLG.js} +1 -1
  33. package/dist/cdn/chunks/{plan-runner-ZVYJ3UI3-PDRZPFOE.js → plan-runner-3BLEJWHF-3K3RBXJU.js} +1 -1
  34. package/dist/cdn/chunks/{portrait-capture-view-QYEEV2D6-XMKA6YZR.js → portrait-capture-view-QDUJ36UH-GRTZTYTJ.js} +1 -1
  35. package/dist/cdn/chunks/{portrait-review-view-E3SBOU4F-QVDIDUCS.js → portrait-review-view-LW5DBF3L-K7WAOPAG.js} +1 -1
  36. package/dist/cdn/chunks/{proof-of-address-view-NIAKWB6B-43ZQX5T6.js → proof-of-address-view-E6WJTTIV-7ISFWEEZ.js} +1 -1
  37. package/dist/cdn/define.js +1 -1
  38. package/dist/cdn/index.js +1 -1
  39. package/dist/{chunk-SBLFJ2MR.js → chunk-57MVUXQ6.js} +1 -1
  40. package/dist/{chunk-46JFMIK7.js → chunk-5QJOJLKJ.js} +1 -1
  41. package/dist/{chunk-JKDI3DQD.js → chunk-6FAODASF.js} +1 -1
  42. package/dist/{chunk-IBMR3ZXU.js → chunk-7XJHQ3NM.js} +1 -1
  43. package/dist/{chunk-77AEILD6.js → chunk-BRS7YLGB.js} +1 -1
  44. package/dist/{chunk-ELSYMAAW.js → chunk-CY66YE6F.js} +1 -1
  45. package/dist/{chunk-FKGVTX2Y.js → chunk-KYDIB6KR.js} +1 -1
  46. package/dist/{chunk-C3WB5BAA.js → chunk-M7HNWDQD.js} +1 -1
  47. package/dist/{chunk-5S5OC2EE.js → chunk-PKK72TVJ.js} +1 -1
  48. package/dist/{chunk-N5JOXWJJ.js → chunk-QNK7OBIW.js} +1 -1
  49. package/dist/{chunk-BMRETLHG.js → chunk-RPA5QQVH.js} +2 -2
  50. package/dist/{chunk-ENXYUW3S.js → chunk-SVGBNMXK.js} +1 -1
  51. package/dist/{chunk-VFLMBXU5.js → chunk-VBJ4CJHE.js} +1 -1
  52. package/dist/{chunk-X2RZOTUB.js → chunk-XQPY6G2B.js} +1 -1
  53. package/dist/define.cjs +5 -5
  54. package/dist/define.js +1 -1
  55. package/dist/{document-capture-view-TV2VKLPV-7EOLXSFW.js → document-capture-view-25EASYV7-MOFQVGV6.js} +1 -1
  56. package/dist/{eid-view-VC3DHQWV-IB3JCWRI.js → eid-view-6DXZ5ELB-XDQVFDXS.js} +1 -1
  57. package/dist/{email-otp-view-QCELBL7U-K6OU6CWG.js → email-otp-view-3UJPJOQ6-5PQM7LNW.js} +1 -1
  58. package/dist/flow-views-ZVDXJZWH-LOGNCRIA.js +1 -0
  59. package/dist/{form-view-P2GVOYAC-R5HGNTAJ.js → form-view-4NKEHYNF-VFMN6QFW.js} +1 -1
  60. package/dist/index.cjs +5 -5
  61. package/dist/index.d.cts +4 -0
  62. package/dist/index.d.ts +4 -0
  63. package/dist/index.js +1 -1
  64. package/dist/{overlay-de-EMTSLK3M-KNNEJ2DR.js → overlay-de-64ABPD3N-ARJE63WR.js} +1 -1
  65. package/dist/{overlay-es-6WMAHH33-YZN2JC7A.js → overlay-es-VIMXYK2Q-JRHIX3OT.js} +1 -1
  66. package/dist/{overlay-pt-WBGMJQTQ-Y6AG6QUZ.js → overlay-pt-3IBDZBAW-JXQE6BVY.js} +1 -1
  67. package/dist/{portrait-capture-view-QYEEV2D6-OD3VHIKE.js → portrait-capture-view-QDUJ36UH-QZR4O3YW.js} +1 -1
  68. package/dist/{portrait-review-view-E3SBOU4F-DJAWJV6V.js → portrait-review-view-LW5DBF3L-QVERJXKH.js} +1 -1
  69. package/dist/{proof-of-address-view-NIAKWB6B-4ZP6SD46.js → proof-of-address-view-E6WJTTIV-4SHZIQ3O.js} +1 -1
  70. package/package.json +2 -2
  71. package/sbom.cdx.json +4 -4
  72. package/dist/cdn/chunks/chunk-PP4PZVFR.js +0 -3
  73. package/dist/cdn/chunks/flow-views-VCE6CEBN-Y6VVTJPN.js +0 -1
  74. package/dist/flow-views-VCE6CEBN-EYXMVPZI.js +0 -1
@@ -1,3 +0,0 @@
1
- import{A as Xe,F as me,G as ee,H as et,I as tt,J as nt,a as D,b as je,c as Be,f as Ke,g as Ve,h as $e,i as He,j as pe,k as ze,m as U,o as R,p as q,q as H,r as X,s as L,t as fe,v as We,w as Ze,x as Ye,y as Je,z as Qe}from"./chunk-Y6VKSYVY.js";import{g as it}from"./chunk-WZFFQZE2.js";import{b as Ge}from"./chunk-TODKCK6A.js";import{b as qe,c as de,e as rt}from"./chunk-6MYG4HWP.js";import{a as t}from"./chunk-4FHWXBOB.js";function Et(n){let i=n.now??(()=>Date.now()),p=n.setTimer??((w,c)=>setTimeout(w,c)),f=n.clearTimer??(w=>clearTimeout(w)),g=null,_=!1,d=!1,C=!1,j=0,N=null,A=t(()=>{N!==null&&f(N),N=null},"_"),M=t(()=>{let w=n.armRamp;w===void 0||_||d||C||i()<j||(_=!0,w().catch(()=>{}).then(c=>{if(_=!1,!C){if(c===void 0){j=i()+2e3;return}if(c.challenge===void 0){d=!0;return}g={challenge:c.challenge,expiresAt:c.expiresAt},A(),N=p(()=>{N=null,!C&&g!==null&&n.waiting()&&M()},Math.max(1e3,c.expiresAt-i()-2e4))}}))},"A");return{arm(){g!==null&&g.expiresAt-i()>2e4||M()},take(){let w=g;return g=null,A(),w!==null&&w.expiresAt-i()>=12e3?w.challenge:void 0},stop(){C=!0,g=null,A()}}}t(Et,"gt");function Rt(n){return n.idNumberBound??n.nniBound}t(Rt,"ue");function at(n){return n===void 0?void 0:n.idNumberFromDocument??n.nniFromDocument}t(at,"ee");var lt="https://api.sekyro.ai",Nt=5e3,Pt=24e4,Ot=9e4,Dt=25*6e4,Lt=20*6e4,Ft=3,Ut=3e3,qt=1500,Gt=10;function ot(n){return n instanceof Error&&n.name==="ChallengeError"&&n.code||"challenge_failed"}t(ot,"_t");var st=new Set(["aborted","embedder_opaque","site_key_rejected"]);function jt(n){return new Promise(i=>setTimeout(i,n))}t(jt,"cn");function Bt(){let n=globalThis.crypto;if(n!==void 0&&typeof n.randomUUID=="function")return n.randomUUID();let i=new Uint8Array(16);if(n!==void 0&&typeof n.getRandomValues=="function")n.getRandomValues(i);else for(let f=0;f<16;f+=1)i[f]=Math.floor(Math.random()*256);i[6]=(i[6]??0)&15|64,i[8]=(i[8]??0)&63|128;let p=[...i].map(f=>f.toString(16).padStart(2,"0")).join("");return`${p.slice(0,8)}-${p.slice(8,12)}-${p.slice(12,16)}-${p.slice(16,20)}-${p.slice(20)}`}t(Bt,"dn");function Kt(n){return Vt(n,{})}t(Kt,"Po");function Vt(n,i){let p=n.apiOrigin??lt,f=n.autoRetry??!0,g=n.rearm??"auto",_=i.client??new Be({apiOrigin:p,sessionToken:n.clientToken,fetch:n.fetch,locale:n.locale}),d=new Proxy(_,{get(e,r){if(r==="submitCheck")return gt;let a=Reflect.get(e,r,e);return typeof a=="function"?a.bind(e):a}}),C=i.sleep??jt,j=i.uuid??Bt,N=i.getChallengeToken??((e,r)=>import("./challenge-frame-YBTLAQ5G-NN763UU5.js").then(a=>a.executeChallenge({frameUrl:e.url,siteKey:e.siteKey,action:"liveness",subject:r.subject,signal:r.signal}))),A=rt(),M=null,w=null,c=!1,ve=new AbortController,h=null,z=null,W=null,Z=t(()=>W??et(h),"ne"),Y=t(()=>tt(ee(h),Z()),"oe"),S=t(e=>{h=e,!R(e)&&(Ee(Lt)||yt(e))&&ue(e),A.emit("view",e),M?.onView(e)},"E"),b=t(()=>h!==null?Promise.resolve(h):(z??(z=d.getSession().then(e=>(S(e),e)).finally(()=>{z=null})),z),"x"),T=t(async()=>{let e=await d.getSession();return S(e),e},"I"),te=t(async(e,r)=>{e.plan!==void 0?S(e):await T()},"le"),J=null,ge=t(async e=>{let r=await b();if(e||!r.consentRecorded){let a=await d.recordConsent(n.locale);a.plan!==void 0?S(a):h!==null&&S({...h,consentRecorded:!0})}Q()&&ue(r)},"Me"),I=t(e=>e?.force===!0?ge(!0):(J??(J=ge(!1).finally(()=>{J=null})),J),"F"),ne={client:d,ensureConsent:t(e=>I(e),"ensureConsent"),sleep:C,uuid:j,...i.random!==void 0?{random:i.random}:{},onBusy:t(e=>{c||A.emit("busy",e)},"onBusy")},_e=!1,be=null,re=t(e=>{if(e.status==="verified"||e.status==="not_verified"||e.status==="review"){if(_e)return;_e=!0}be=JSON.stringify(e),A.emit("result",e)},"me"),ft=t(e=>{be!==JSON.stringify(e)&&re(e)},"Nt"),ke=t(async e=>{let r=h;e&&(r=await T().catch(()=>h));let a=r===null?null:U(r);return a!==null&&!c&&A.emit("method",a),a!==null},"Ie"),ie=null,we=!1,Ae=!1,Ce=t(()=>Je(ne,(e,r)=>e.submitCheck("population_registry",{},{idempotencyKey:r})),"Fe"),Me=t(e=>Rt(e)===!0||at(H(e,"population_registry"))===!0,"Ne"),mt=t(async()=>{try{let e=await b();if(R(e)||U(e)!==null||q(e)?.checkType!=="population_registry")return;if(!Me(e)&&at(H(e,"population_registry"))===void 0&&(e=await T()),!Me(e)){Ae=!0;return}await I(),await te(await Ce(),"population_registry");let r=h===null?void 0:H(h,"population_registry");if(r?.state==="input_required"&&r.reason==="registry_unavailable"&&ze(r)>0){if(await C(Nt),c)return;await te(await Ce(),"population_registry")}}catch(e){if(e instanceof D&&(e.code==="check_not_active"||e.code==="step_not_on_path")){await T().catch(()=>{});return}we=!0;return}h!==null&&R(h)&&re(fe(h,{autoRetry:f}))},"Ht"),Se=t(()=>(ie??(ie=mt()),ie),"He"),x=i.now??Date.now,F=null,B,ae,ht=0,oe=t((e,r)=>`${e.url}
2
- ${e.siteKey}
3
- ${r}`,"ye"),Te=0,se,le=t((e,r)=>{Te+=1;let a=x(),l=N(e,{signal:ve.signal,subject:r}),s={key:oe(e,r),at:a,token:l};return l.then(()=>{s.issuedAt=x(),ae=void 0},m=>{let u=ot(m);if(s.failed=u,c||u==="aborted")return;ae=u;let{detail:y,readyMs:o}=m;K({check:"attestation",kind:"unavailable",engineKind:u,attempt:ht++,challengeMs:x()-a,readyMs:o,detail:y,inApp:Ge()})}),l.catch(()=>{}),s},"Se"),xe=t((e,r)=>e!==null&&e.key===r&&(e.issuedAt===void 0||x()-e.issuedAt<Pt),"De"),ue=t((e,r={})=>{let a=e?.challenge??null;if(e===null||a===null||c)return;let l=X(e.sessionId),s=F;(r.replaceFailed===!0&&s?.failed!==void 0&&!st.has(s.failed)||!xe(s,oe(a,l)))&&(F=le(a,l))},"_e"),Ie=t(async(e,r)=>{let a=oe(e,r),l=F;F=null;let s=xe(l,a)?l:le(e,r),m=s===l?0:1,u,y=new Promise(o=>{u=setTimeout(()=>o("late"),Ot)});try{for(;;){let o=await Promise.race([s.token.then(k=>({token:k}),k=>({error:ot(k)})),y]);if(o==="late")return!c&&F===null&&(F=s),{error:ae??"timeout"};if("token"in o)return se=Math.max(0,Math.round((s.issuedAt??x())-s.at)),o;if(c||st.has(o.error)||m>=Ft||m>0&&await Promise.race([C(Ut*m),y])==="late")return o;if(c)return{error:"aborted"};m+=1,s=le(e,r)}}finally{clearTimeout(u)}},"Ue"),P=null,yt=t(e=>pe(e).some(r=>(r.checkType==="phone_otp"||r.checkType==="email_otp")&&r.state!=="passed"&&r.state!=="skipped"),"Dt"),Ee=t(e=>P===null||x()-P>=e,"Be"),Q=t(()=>Ee(Dt),"re"),vt=t(e=>{let r=e.attestation;return typeof r?.turnstileToken=="string"&&r.turnstileToken.length>0},"Ut"),Re=new Map,Ne=t(async()=>{let e=await b(),r=e.challenge;if(r==null||e.simulation!==void 0)return;let a=await Ie(r,X(e.sessionId));if(!("token"in a))throw new D({status:400,code:"attestation_invalid",message:`browser check: ${a.error}`});return a.token},"Ge"),gt=t(async(e,r,a={})=>{let l=r;if("attestation"in l)try{let o=await _.submitCheck(e,r,a);return vt(l)&&(P=x()),o}catch(o){throw o instanceof D&&o.code==="attestation_invalid"&&(P=null),o}let s=(e==="phone_otp"||e==="email_otp")&&l.action!=="verify",m=a.idempotencyKey,u=m!==void 0?Re.get(m):void 0;u===void 0&&(s||Q())&&(u=await Ne(),m!==void 0&&u!==void 0&&Re.set(m,u));let y=t((o,k)=>o!==void 0?{...k,browserCheckToken:o}:k,"b");try{let o=await _.submitCheck(e,r,y(u,a));return u!==void 0&&(P=x()),o}catch(o){if(!(o instanceof D)||o.code!=="attestation_invalid"||(P=null,u!==void 0))throw o;let k=await Ne(),O=m!==void 0?{...a,idempotencyKey:j()}:a,E=await _.submitCheck(e,r,y(k,O));return k!==void 0&&(P=x()),E}},"Bt"),Pe=t(async(e={})=>{if(B=void 0,e.always!==!0&&!Q())return{};let r=await b(),a=r.challenge;if(a==null)return{};let l=await Ie(a,X(r.sessionId));if("token"in l)return{channel:"hosted_web",turnstileToken:l.token};if(B=l.error,r.simulation!==void 0)return{channel:"hosted_web"};throw new Ye(l.error)},"Ke"),_t=t(()=>B,"qt"),bt=t(()=>({checks:Math.min(50,Te),...se!==void 0?{challengeMs:Math.min(6e5,se)}:{}}),"Gt"),K=t(e=>{if(c)return;let r=d.reportCaptureIssue;if(r===void 0)return;let a=e.formFactor;try{a??(a=qe())}catch{}try{Promise.resolve(r.call(d,{...e,...a!==void 0?{formFactor:a}:{}})).catch(()=>{})}catch{}},"W"),v=null,V=null,Oe=new WeakMap,De=Promise.resolve(),$=0,kt=t(async()=>{let e=await b();for(let r=0;r<Gt&&!c&&!R(e)&&q(e)===void 0&&pe(e).some(a=>a.state==="processing")&&(await C(qt),!c);r+=1)e=await T();return e},"Kt"),wt=t(async(e,r,a)=>{let{capture:l}=e,s=t(()=>c,"m"),m=t(()=>e.alive&&e.attempt===a,"C"),u=t(o=>{m()&&l.setFlowState(o)},"g"),y=t(o=>{if(!s()&&(o.status==="unavailable"&&o.reasonCode!==void 0&&!Ke(o.reasonCode)&&K({check:"liveness",kind:"unavailable",phase:"upload",engineKind:o.reasonCode,attempt:Math.max(0,e.issues.value)}),re(o),!!m())){if(o.status==="retry"&&g==="auto"){l.handle.retry();return}l.setFlowState("done")}},"b");if(r.degraded==="NO_RECORDER"){let o=h?.sessionId??(await b().catch(()=>null))?.sessionId??"";y(L(o,"no_recorder"));return}u("uploading");try{if(await Se(),s())return;let o=await b(),k;if(!R(o)&&U(o)!==null){await ke(!1),y(L(o.sessionId,"method_required"));return}if(!R(o)){if(q(o)?.checkType==="population_registry"){y(L(o.sessionId,Ae?"nni_unbound":we?"network":"registry_unavailable"));return}if(await I(),s())return;k=h??o;let O=await Qe({...ne,artifacts:r,getAttestation:Pe,attestationError:_t,attestationFacts:bt,clipKeys:{get:t(()=>Oe.get(r)??null,"get"),set:t(E=>{Oe.set(r,E)},"set")},getView:t(()=>h??o,"getView"),refreshView:T,applySubmit:te,onPhase:u,isCancelled:s,onKeyframePromoted:t(E=>{w=E},"onKeyframePromoted")});if(s())return;if(O.kind==="unavailable"){O.reason==="attestation"&&(V={bound:e,artifacts:r});let E=L(o.sessionId,O.reason),Ue=O.reason==="attestation"?B:void 0;y(Ue!==void 0?{...E,attestationError:Ue}:E);return}if(O.kind==="resync"&&await T(),h!==null&&U(h)!==null){await ke(!1),y(L(o.sessionId,"method_required"));return}o=await kt()}y(fe(o,{autoRetry:f,previous:k}))}catch{if(s())return;y(L(h?.sessionId??"","network"))}},"jt"),Le=t((e,r)=>{let a=e.attempt;$>0&&e.alive&&e.capture.setFlowState("uploading"),$+=1,De=De.then(()=>wt(e,r,a)).finally(()=>{$-=1,$===0&&M?.onChainIdle()}).catch(()=>{})},"We"),Fe=t(e=>{v?.capture.handle.destroy(),v!==null&&(v.alive=!1,v.ramp.stop());let r=Et({armRamp:typeof d.armRamp=="function"?()=>d.armRamp():void 0,waiting:t(()=>s.alive&&Y()==="self"&&(l.handle.state==="starting"||l.handle.state==="gating"),"waiting")}),a=Promise.resolve(),l=it(e,M?.captureInternals?.(e)??i.capture,()=>h?.capture?.liveness?.keyframe?.rank===!0,Y,()=>r.take()??h?.capture?.liveness?.screenRamp,{session:t(()=>ee(h),"session"),onModeChange:t(u=>{W=u},"onModeChange")}),s={capture:l,alive:!0,ramp:r,attempt:0,issues:$e()};v=s,l.handle.on("error",u=>{K(Ve("liveness",u,s.issues.value))}),l.handle.on("state",u=>{if(s.issues.note(u),u==="starting"){s.attempt+=1,V?.bound===s&&(V=null),Q()&&ue(h,{replaceFailed:!0});let y=h===null?void 0:q(h)?.checkType;a=y==="liveness"||y==="face_match"?I().catch(()=>{}):Promise.resolve()}(u==="starting"||u==="gating")&&Y()==="self"&&a.then(()=>{s.alive&&r.arm()})}),l.handle.on("captured",u=>{Promise.resolve().then(()=>Le(s,u))});let m=l.handle;return{get state(){return m.state},get captureMode(){return m.captureMode},get facingMode(){return m.facingMode},on:t((u,y)=>m.on(u,y),"on"),start:t(async u=>{if(h===null&&await b().catch(()=>{}),!!s.alive)return m.start(u)},"start"),retry:t(()=>{let u=V;if(u!==null&&u.bound===s&&s.alive){V=null,Le(s,u.artifacts);return}m.retry()},"retry"),switchCamera:t(()=>m.switchCamera(),"switchCamera"),canSwitchCaptureMode:t(()=>m.canSwitchCaptureMode(),"canSwitchCaptureMode"),setCaptureMode:t(u=>m.setCaptureMode(u),"setCaptureMode"),destroy:t(()=>{s.alive=!1,r.stop(),v===s&&(v=null),m.destroy()},"destroy")}},"$e"),At=t(async()=>{if(c)return null;try{let e=await b();return c?null:U(e)}catch{return null}},"Yt"),Ct=t(async()=>{if(c)return"self";try{let e=await b();if(c)return"self";let r=ee(e);return r==="choice"?Z()??r:r}catch{return"self"}},"Wt"),Mt=t(async()=>{if(c)return!1;try{let e=await b();return c||R(e)||de()?!1:me(e,q(e))==="phone"||me(e,H(e,"liveness"))==="phone"}catch{return!1}},"$t"),St=t(async()=>{if(c)return!1;try{let e=await b();return!c&&e.returning===!0}catch{return!1}},"Qt"),Tt=t(async e=>{let r=(await b()).plan?.choice,a=r?.options.find(s=>He[s.service]===e);if(!a)throw new RangeError(`method ${String(e)} is not offered`);let l=await d.choose(r.nodeId,a.id);c||S(l)},"Zt"),ce=null,xt=t(()=>(ce??(ce=import("./plan-runner-ZVYJ3UI3-PDRZPFOE.js").then(e=>{let r=e.createPlanRunner({runtime:ne,currentView:t(()=>h,"currentView"),cameraMode:Y,captureModeSwitch:{pick:Z,choose:t(a=>{W=a},"choose")},ensureView:b,refreshView:T,ensureConsent:t(()=>I(),"ensureConsent"),liveness:Fe,stopLiveness:t(()=>{v!==null&&(v.alive=!1,v.ramp.stop(),v.capture.handle.destroy(),v=null)},"stopLiveness"),chainBusy:t(()=>$>0,"chainBusy"),destroyed:t(()=>c,"destroyed"),sleep:C,isMobile:de,now:i.now??Date.now,keptFaceKey:t(()=>w,"keptFaceKey"),setView:S,baseCapture:i.capture,emitStep:t(a=>{c||A.emit("step",a)},"emitStep"),emitResult:ft,reportCaptureIssue:K,documentInternals:i.document,documentFacts:i.documentFacts,portraitInternals:i.portrait,livePhotoInternals:i.livePhoto,uploadInternals:i.upload,pageCameraInternals:i.pageCamera});return M=r,r})),ce),"Jt");return{consent:t(()=>I(),"consent"),startRegistry:Se,methodChoice:At,selectMethod:Tt,reportCameraUnavailable:t(async e=>{await I();let r=d.reportCameraUnavailable;if(r===void 0)throw new TypeError("this client cannot report a missing camera");let a=await r.call(d,e).catch(l=>{if(l instanceof D&&l.code==="check_out_of_order")return d.getSession();throw l});c||S(a)},"reportCameraUnavailable"),reportCaptureIssue:K,testerGate:t(async e=>{let r=d.testerGate;if(r===void 0)throw new TypeError("this client cannot run the tester gate");let a=e.clip,l=je(e.clipMime??"");if(a===void 0||!Ze.includes(l))throw new TypeError("the capture has no clip");await I();let s=await We(d,"clip",l,a.size,{engine:e.engine,durationMs:e.clipMs});await d.uploadToSpaces(s.uploadUrl,a,l);let{key:m}=await d.completeMedia(s.key),u=await Pe({always:!0}),y=await r.call(d,{clipKey:m,attestation:u,captureChannel:e.captureChannel,capture:{...Xe(e),attestationError:B}}),{bound:o,...k}=y;return c||(k.plan!==void 0?S(k):await T()),{bound:o===!0}},"testerGate"),mobileRequired:Mt,captureMode:Ct,chooseCaptureMode:t(e=>{W=e},"chooseCaptureMode"),get captureChoice(){return Z()},returning:St,liveness:Fe,run:t(async()=>{if(c)throw new Error("verification destroyed");return(await xt()).run()},"run"),currentStep:t(()=>M?.current()??null,"currentStep"),voiceClips:t(async()=>{if(c)return null;try{let e=await b();return c?null:e.voice??null}catch{return null}},"voiceClips"),on:t((e,r)=>A.on(e,r),"on"),destroy:t(()=>{c=!0,ve.abort(),M?.destroy(),v!==null&&(v.alive=!1,v.capture.handle.destroy(),v=null),A.clear()},"destroy")}}t(Vt,"ln");var ut=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],ct=["carte_identite","passport","residence_permit","drivers_license"],$t=["carte_identite","passport","residence_permit"];function he(n,i){let p=n.byIssuer?.[i]??n.default;return ct.filter(f=>p==="*"?$t.includes(f):p.includes(f))}t(he,"mn");function dt(n,i=ut){return[...new Set([...i,...Object.keys(n.byIssuer??{})])].filter(p=>he(n,p).length>0).sort()}t(dt,"Io");var G={fullNameMin:2,fullName:200,email:254,occupation:120,shortText:120,longText:1e3,addressLine:120,addressLines:4,city:80,postcode:16,number:1e12,dateMin:"1900-01-01",dateMax:"2100-12-31"};var bn={full_name:G.fullName,occupation:G.occupation,email:G.email,short_text:G.shortText,long_text:G.longText},pt=Object.freeze({nni_invalid:"id_number_invalid",nni_not_found:"registry_record_not_found",nni_recheck:"id_number_recheck",document_nni_mismatch:"document_id_number_mismatch",nni_locked:"id_number_locked",nni_unbound:"id_number_unbound",missing_nni:"missing_id_number",registry_needs_nni_source:"registry_needs_id_number_source"}),kn=new Map(Object.entries(pt)),wn=new Map(Object.entries(pt).map(([n,i])=>[i,n]));function Ht(n,i){let p=n.options.filter(d=>d.id!==n.current);if(i===void 0)return{switchTo:p,methods:[]};let f=t(d=>d.countries!==void 0&&d.countries.length>0,"i");if(i===null)return{switchTo:p.filter(d=>!f(d)),methods:[]};let g=i.toUpperCase(),_=t(d=>!f(d)||d.countries.includes(g),"u");return{switchTo:p.filter(_),methods:p.filter(d=>f(d)&&_(d))}}t(Ht,"Wo");function zt(n,i,p){let f=n.names?.[i.toUpperCase()],g=f?.[p]??f?.en;if(g!==void 0&&g!=="")return g;let _=n.nationalEid?.providerName;return _!==void 0&&_!==""?_:void 0}t(zt,"$o");function Wt(n){return n===void 0?[]:[...new Set(n.options.filter(i=>i.id!==n.current).flatMap(i=>i.countries??[]).map(i=>i.toUpperCase()))]}t(Wt,"Qo");var An=10*1024*1024;function lr(n){if(n==="permission")return"denied";if(n==="notfound"||n==="insecure"||n==="unsupported")return"no_camera"}t(lr,"Ce");var Zt=/^[A-Z0-9][A-Z0-9 -]{0,39}$/,Yt=Object.freeze({normalize:t(n=>n.trim().toUpperCase().replace(/\s+/g," "),"normalize"),check:t(n=>Zt.test(n),"check"),registrySources:Object.freeze([]),describe:"number must be 1 to 40 letters, digits, spaces or hyphens"}),Jt=/^[A-Z0-9]{4,20}$/,ye=t(n=>n.trim().toUpperCase().replace(/[\s-]+/g,""),"m"),Qt=Object.freeze({normalize:ye,check:t(n=>Jt.test(ye(n)),"check"),registrySources:Object.freeze([]),describe:"number must be 4 to 20 letters or digits"});function Xt(n){return typeof n=="string"&&/^\d{10}$/.test(n)&&Number(n)%97===1}t(Xt,"he");var en={trim:t(n=>n.trim(),"trim"),upper_single_space:t(n=>n.trim().toUpperCase().replace(/\s+/g," "),"upper_single_space"),upper_no_space_or_hyphen:ye},tn={mr_nni_mod97:t(n=>Xt(n),"mr_nni_mod97")};function nn(n){let i=new RegExp(n.pattern,"u"),p=n.check===null?void 0:tn[n.check];return Object.freeze({normalize:en[n.normalize],check:t(f=>i.test(f.trim())&&(p===void 0||p(f)),"check"),registrySources:Object.freeze([...n.registrySources]),describe:n.describe})}t(nn,"ge");var rn=Object.freeze(Object.fromEntries(Object.entries(nt).map(([n,i])=>[n,nn(i)])));function an(n,i){return rn[`${n.toUpperCase()}:${i}`]??(i==="drivers_license"?Qt:Yt)}t(an,"C");var ur=Object.freeze({JPN:"JP",MRT:"MR"});function cr(n){return an("MR","national_id").check(n)}t(cr,"Ae");function on(n){let i="";for(let p of n){let f=p.codePointAt(0)??0;f>=1632&&f<=1641?i+=String(f-1632):f>=1776&&f<=1785?i+=String(f-1776):p!==" "&&p!=="-"&&p!==" "&&(i+=p)}return i}t(on,"H");function dr(n){return on(n)}t(dr,"De");var pr=he,fr=dt;var sn=t(()=>import("./create-document-capture-SMEKDBGF-DISVYLXM.js"),"E");function ln(){sn().then(n=>n.warmDocumentCapture()).catch(()=>{})}t(ln,"D");function mr(){ln()}t(mr,"rt");var un=t(()=>import("./create-portrait-capture-5VGYZUOK-KTCFCHTN.js"),"O");function cn(){un().then(n=>n.warmPortraitCapture()).catch(()=>{})}t(cn,"I");function hr(){cn()}t(hr,"dt");export{Kt as a,Ht as b,zt as c,Wt as d,lr as e,cr as f,dr as g,pr as h,fr as i,mr as j,hr as k};
@@ -1 +0,0 @@
1
- "use client";import{a as Se,b as R,c as Ie}from"./chunk-YVQ6LFN4.js";import{a as W,e as j,f as Ae,h as Q,i as G,j as be,k as Ce,l as we,m as K}from"./chunk-KOTLQOUY.js";import{a as ve}from"./chunk-MK5WGJZO.js";import{a as Z}from"./chunk-CH3JN7FV.js";import"./chunk-ZF7TAXXU.js";import"./chunk-ECAWI75T.js";import{b as Y}from"./chunk-PP4PZVFR.js";import"./chunk-UE6IZTZA.js";import{a as _}from"./chunk-C5LJ5ZHE.js";import{L as x,a as fe,b as je,c as S,t as D,v as O,w as ge,y as P,z as ke}from"./chunk-VYFRJNC5.js";import{a as U}from"./chunk-Y6VKSYVY.js";import"./chunk-WZFFQZE2.js";import"./chunk-TODKCK6A.js";import"./chunk-P7K7ELYZ.js";import{a as m}from"./chunk-5QL6W6FW.js";import{c as T,f as ye}from"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as y,c as F}from"./chunk-4FHWXBOB.js";var v=F(fe(),1),qe=F(fe(),1),o=F(je(),1);var Ze={"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":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","capture.noCamera.stepsChrome":"في Chrome، اضغط على الرمز الموجود بجانب العنوان، ثم الأذونات، وفعّل الكاميرا.","capture.noCamera.stepsSamsung":"في Samsung Internet، افتح القائمة، ثم الإعدادات، المواقع والتنزيلات، أذونات المواقع، الكاميرا، واسمح لهذا الموقع.","capture.noCamera.stepsSafari":"في Safari، اضغط على زر aA في شريط العنوان، ثم إعدادات موقع الويب، واضبط الكاميرا على السماح.","capture.noCamera.stepsDesktop":"انقر على الرمز الموجود بجانب العنوان واسمح بالكاميرا لهذا الموقع.","capture.noCamera.stepsSystem":"ما زالت محظورة؟ تحقق في إعدادات هاتفك من أن متصفحك مسموح له باستخدام الكاميرا.","capture.noCamera.stillBlocked":"ما زالت الكاميرا محظورة. اتبع الخطوات أعلاه ثم أعد المحاولة.","capture.noCamera.inAppTitle":"افتح هذه الصفحة في متصفحك","capture.noCamera.inAppBody":"لا يمكن لمتصفح هذا التطبيق استخدام الكاميرا. افتح الصفحة في Chrome أو Safari للمتابعة.","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":"المتابعة هنا على أي حال","needsApp.capture.title":"تابع في التطبيق","needsApp.capture.description":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org}.","needsApp.capture.descriptionSekyro":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org} أو في تطبيق Sekyro AI.","needsApp.capture.descriptionNoOrg":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في التطبيق الذي أُعطي لك.","needsApp.capture.descriptionNoOrgSekyro":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في تطبيق Sekyro AI.","needsApp.capture.openSekyro":"افتح في تطبيق Sekyro AI","needsApp.capture.getApp":"احصل على تطبيق Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"امسح الرمز بهاتفك لفتح هذا التحقق في التطبيق.","needsApp.capture.qrAlt":"رمز QR يفتح هذا التحقق في التطبيق","needsApp.capture.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة في التطبيق","inApp.openBrowser":"افتح في المتصفح","testerGate.action":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.title":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.body":"انظر إلى الكاميرا. إذا تطابق وجهك مع أحد المختبِرين المسجَّلين لدى المؤسسة، فستُجري هذه الجلسة فحوصات حقيقية. وإلا فلن يُحتفظ بأي شيء وستتابع باستخدام بيانات الاختبار.","testerGate.start":"ابدأ","testerGate.checking":"جارٍ التحقق من وجهك","testerGate.boundTitle":"الفحوصات الحقيقية مفعّلة","testerGate.boundBody":"تم التعرّف عليك كمختبِر مسجَّل. ستُجري الخطوات التالية فحوصات حقيقية.","testerGate.missTitle":"لا يوجد مختبِر مسجَّل مطابق","testerGate.missBody":"لم يُحتفظ بأي شيء. يمكنك إعادة المحاولة أو المتابعة باستخدام بيانات الاختبار.","testerGate.retry":"أعد المحاولة","testerGate.continueTest":"المتابعة باستخدام بيانات الاختبار","testerGate.continue":"متابعة","testerGate.limitBody":"تم بلوغ الحد اليومي للفحوصات الحقيقية للمختبِرين. تابع باستخدام بيانات الاختبار، أو أعد المحاولة غدًا.","testerGate.exhaustedBody":"لم تتبقَّ أي محاولة في هذه الجلسة. تابع باستخدام بيانات الاختبار، أو ابدأ جلسة جديدة.","testerGate.closedBody":"لا يمكن بدء الفحوصات الحقيقية إلا قبل أول التقاط. تابع باستخدام بيانات الاختبار، أو ابدأ جلسة جديدة."},B={"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","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","capture.noCamera.stepsChrome":"In Chrome, tap the icon to the left of the address, then Permissions, and turn on Camera.","capture.noCamera.stepsSamsung":"In Samsung Internet, open the menu, then Settings, Sites and downloads, Site permissions, Camera, and allow this site.","capture.noCamera.stepsSafari":"In Safari, tap the aA button in the address bar, then Website Settings, and set Camera to Allow.","capture.noCamera.stepsDesktop":"Click the icon to the left of the address and allow the camera for this site.","capture.noCamera.stepsSystem":"Still blocked? In your phone's settings, check that your browser may use the camera.","capture.noCamera.stillBlocked":"The camera is still blocked. Follow the steps above, then try again.","capture.noCamera.inAppTitle":"Open this page in your browser","capture.noCamera.inAppBody":"This app's browser can't use your camera. Open the page in Chrome or Safari to continue.","choice.title":"Choose how to continue","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"Where to send 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 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","needsApp.capture.title":"Continue in the app","needsApp.capture.description":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app.","needsApp.capture.descriptionSekyro":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app or in the Sekyro AI app.","needsApp.capture.descriptionNoOrg":"This verification takes the photos in a mobile app. Open it in the app you were given.","needsApp.capture.descriptionNoOrgSekyro":"This verification takes the photos in a mobile app. Open it in the Sekyro AI app.","needsApp.capture.openSekyro":"Open in the Sekyro AI app","needsApp.capture.getApp":"Get the Sekyro AI app","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scan with your phone to open this verification in the app.","needsApp.capture.qrAlt":"QR code that opens this verification in the app","needsApp.capture.waiting":"This page moves on when you finish in the app","inApp.openBrowser":"Open in browser","testerGate.action":"Run real checks as a tester","testerGate.title":"Run real checks as a tester","testerGate.body":"Look at the camera. If your face matches one of the organization's enrolled testers, this session runs real checks. If not, nothing is kept and you continue with test data.","testerGate.start":"Start","testerGate.checking":"Checking your face","testerGate.boundTitle":"Real checks are on","testerGate.boundBody":"You were recognised as an enrolled tester. The next steps run real checks.","testerGate.missTitle":"No enrolled tester matched","testerGate.missBody":"Nothing was kept. You can try again or continue with test data.","testerGate.retry":"Try again","testerGate.continueTest":"Continue with test data","testerGate.continue":"Continue","testerGate.limitBody":"Today's limit of real checks for testers is reached. Continue with test data, or try again tomorrow.","testerGate.exhaustedBody":"No tries are left on this session. Continue with test data, or start a new session.","testerGate.closedBody":"Real checks can start only before the first capture. Continue with test data, or start a new session."},Qe={"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":"Une caméra est nécessaire","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 la caméra","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","capture.noCamera.stepsChrome":"Dans Chrome, touchez l'icône à gauche de l'adresse, puis Autorisations, et activez Caméra.","capture.noCamera.stepsSamsung":"Dans Samsung Internet, ouvrez le menu, puis Paramètres, Sites et téléchargements, Autorisations des sites, Appareil photo, et autorisez ce site.","capture.noCamera.stepsSafari":"Dans Safari, touchez le bouton aA de la barre d'adresse, puis Réglages du site web, et réglez Caméra sur Autoriser.","capture.noCamera.stepsDesktop":"Cliquez sur l'icône à gauche de l'adresse et autorisez la caméra pour ce site.","capture.noCamera.stepsSystem":"Toujours bloquée ? Dans les réglages du téléphone, vérifiez que votre navigateur peut utiliser la caméra.","capture.noCamera.stillBlocked":"La caméra est toujours bloquée. Suivez les étapes ci-dessus, puis réessayez.","capture.noCamera.inAppTitle":"Ouvrez cette page dans votre navigateur","capture.noCamera.inAppBody":"Le navigateur de cette application ne peut pas utiliser votre caméra. Ouvrez la page dans Chrome ou Safari pour continuer.","choice.title":"Comment continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Où envoyer 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 dans le 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","needsApp.capture.title":"Continuez dans l’application","needsApp.capture.description":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org}.","needsApp.capture.descriptionSekyro":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org} ou dans l’application Sekyro AI.","needsApp.capture.descriptionNoOrg":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application que l’on vous a indiquée.","needsApp.capture.descriptionNoOrgSekyro":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application Sekyro AI.","needsApp.capture.openSekyro":"Ouvrir dans l’application Sekyro AI","needsApp.capture.getApp":"Obtenir l’application Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scannez avec votre téléphone pour ouvrir cette vérification dans l’application.","needsApp.capture.qrAlt":"QR code qui ouvre cette vérification dans l’application","needsApp.capture.waiting":"Cette page avancera d’elle-même une fois l’étape terminée dans l’application","inApp.openBrowser":"Ouvrir dans le navigateur","testerGate.action":"Lancer de vrais contrôles en tant que testeur","testerGate.title":"Lancer de vrais contrôles en tant que testeur","testerGate.body":"Regardez la caméra. Si votre visage correspond à l'un des testeurs inscrits de l'organisation, cette session lance de vrais contrôles. Sinon, rien n'est conservé et vous continuez avec des données de test.","testerGate.start":"Commencer","testerGate.checking":"Vérification de votre visage","testerGate.boundTitle":"Les vrais contrôles sont activés","testerGate.boundBody":"Vous avez été reconnu comme testeur inscrit. Les étapes suivantes lancent de vrais contrôles.","testerGate.missTitle":"Aucun testeur inscrit ne correspond","testerGate.missBody":"Rien n'a été conservé. Vous pouvez réessayer ou continuer avec des données de test.","testerGate.retry":"Réessayer","testerGate.continueTest":"Continuer avec des données de test","testerGate.continue":"Continuer","testerGate.limitBody":"La limite de vrais contrôles pour les testeurs est atteinte pour aujourd'hui. Continuez avec des données de test, ou réessayez demain.","testerGate.exhaustedBody":"Il ne reste plus d'essai sur cette session. Continuez avec des données de test, ou lancez une nouvelle session.","testerGate.closedBody":"Les vrais contrôles ne peuvent commencer qu'avant la première capture. Continuez avec des données de test, ou lancez une nouvelle session."},xe={M:{perBlock:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26],blocks:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16],formatBits:0},H:{perBlock:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28],blocks:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25],formatBits:2}},_e=20;function ze(e){let t=(16*e+128)*e+64;if(e>=2){let r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return t}y(ze,"Fe");m(ze,"rawDataModules");function J(e,t){let{perBlock:r,blocks:a}=xe[t],s=r[e-1],c=a[e-1],l=Math.floor(ze(e)/8),i=c-l%c,n=Math.floor(l/c)-s;return[s,i===c?[[c,n]]:[[i,n],[c-i,n+1]]]}y(J,"xe");m(J,"blockLayout");var X=m((e,t)=>J(e,t)[1].reduce((r,[a,s])=>r+a*s,0),"dataCapacity");function q(e,t){let r=0;for(let a=7;a>=0;a-=1)r=r<<1^(r>>>7)*285,r^=(t>>>a&1)*e;return r&255}y(q,"j");m(q,"gfMul");function Ee(e){let t=new Array(e).fill(0);t[e-1]=1;let r=1;for(let a=0;a<e;a+=1){for(let s=0;s<e;s+=1)t[s]=q(t[s],r),s+1<e&&(t[s]=t[s]^t[s+1]);r=q(r,2)}return t}y(Ee,"Ve");m(Ee,"rsDivisor");function Te(e,t){let r=t.map(()=>0);for(let a of e){let s=a^r.shift();r.push(0),t.forEach((c,l)=>{r[l]=r[l]^q(c,s)})}return r}y(Te,"De");m(Te,"rsRemainder");function Ge(e,t,r){let a=[],s=m((u,p)=>{for(let k=p-1;k>=0;k-=1)a.push(u>>>k&1)},"put");s(4,4),s(e.length,t<10?8:16);for(let u of e)s(u,8);let c=X(t,r)*8;s(0,Math.min(4,c-a.length)),s(0,(8-a.length%8)%8);let l=[];for(let u=0;u<a.length;u+=8)l.push(a.slice(u,u+8).reduce((p,k)=>p<<1|k,0));for(let u=236;l.length<X(t,r);u^=253)l.push(u);let[i,n]=J(t,r),d=Ee(i),h=[],g=0;for(let[u,p]of n)for(let k=0;k<u;k+=1){let A=l.slice(g,g+p);g+=p,h.push({data:A,ec:Te(A,d)})}let f=[],b=Math.max(...h.map(u=>u.data.length));for(let u=0;u<b;u+=1)for(let p of h)u<p.data.length&&f.push(p.data[u]);for(let u=0;u<i;u+=1)for(let p of h)f.push(p.ec[u]);return f}y(Ge,"He");m(Ge,"codewords");function ee(e){if(e===1)return[];let t=Math.floor(e/7)+2,r=Math.ceil((e*4+4)/(t*2-2))*2,a=[6];for(let s=e*4+10;a.length<t;s-=r)a.splice(1,0,s);return a}y(ee,"Ne");m(ee,"alignmentPositions");var Ke=[(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],z,Re=(z=class{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,r,a){this.dark[t*this.size+r]=a,this.fixed[t*this.size+r]=!0}get(t,r){return this.dark[t*this.size+r]===!0}},y(z,"re"),z);m(Re,"Grid");var Xe=Re;function Me(e,t){let r=e.size;for(let c=0;c<r;c+=1)e.set(6,c,c%2===0),e.set(c,6,c%2===0);for(let[c,l]of[[3,3],[3,r-4],[r-4,3]])for(let i=-4;i<=4;i+=1)for(let n=-4;n<=4;n+=1){let d=c+i,h=l+n;if(d<0||d>=r||h<0||h>=r)continue;let g=Math.max(Math.abs(i),Math.abs(n));e.set(d,h,g!==2&&g!==4)}let a=ee(t),s=a.length-1;if(a.forEach((c,l)=>a.forEach((i,n)=>{if(!(l===0&&n===0||l===0&&n===s||l===s&&n===0))for(let d=-2;d<=2;d+=1)for(let h=-2;h<=2;h+=1)e.set(c+d,i+h,Math.max(Math.abs(d),Math.abs(h))!==1)})),te(e,0),t>=7){let c=t;for(let i=0;i<12;i+=1)c=c<<1^(c>>>11)*7973;let l=t<<12|c;for(let i=0;i<18;i+=1){let n=(l>>>i&1)===1,d=r-11+i%3,h=Math.floor(i/3);e.set(d,h,n),e.set(h,d,n)}}}y(Me,"qe");m(Me,"drawFunctionPatterns");function te(e,t,r=0){let a=e.size,s=r<<3|t,c=s;for(let n=0;n<10;n+=1)c=c<<1^(c>>>9)*1335;let l=(s<<10|c)^21522,i=m(n=>(l>>>n&1)===1,"bit");for(let n=0;n<=5;n+=1)e.set(n,8,i(n));e.set(7,8,i(6)),e.set(8,8,i(7)),e.set(8,7,i(8));for(let n=9;n<15;n+=1)e.set(8,14-n,i(n));for(let n=0;n<8;n+=1)e.set(8,a-1-n,i(n));for(let n=8;n<15;n+=1)e.set(a-15+n,8,i(n));e.set(a-8,8,!0)}y(te,"ze");m(te,"drawFormat");function Le(e,t){let r=e.size,a=0;for(let s=r-1;s>=1;s-=2){s===6&&(s=5);for(let c=0;c<r;c+=1)for(let l=0;l<2;l+=1){let i=s-l,n=(s+1&2)===0?r-1-c:c;e.fixed[n*r+i]!==!0&&(a<t.length*8&&(e.dark[n*r+i]=(t[a>>>3]>>>7-(a&7)&1)===1),a+=1)}}}y(Le,"Ee");m(Le,"placeData");function De(e,t){let r=Ke[t];for(let a=0;a<e.size;a+=1)for(let s=0;s<e.size;s+=1)e.fixed[a*e.size+s]!==!0&&r(a,s)&&(e.dark[a*e.size+s]=!e.dark[a*e.size+s])}y(De,"Ue");m(De,"applyMask");function Oe(e){let t=e.size,r=0,a=m(c=>{let l=1;for(let i=1;i<=t;i+=1)i<t&&c(i)===c(i-1)?l+=1:(l>=5&&(r+=3+(l-5)),l=1);for(let i=0;i+10<t;i+=1){let n=[!0,!1,!0,!0,!0,!1,!0];if(!(n.every((g,f)=>c(i+f)===g)||n.every((g,f)=>c(i+4+f)===g)))continue;let d=[0,1,2,3].every(g=>!c(i+g))&&n.every((g,f)=>c(i+4+f)===g),h=n.every((g,f)=>c(i+f)===g)&&[7,8,9,10].every(g=>!c(i+g));d&&(r+=40),h&&(r+=40)}},"line");for(let c=0;c<t;c+=1)a(l=>e.get(c,l));for(let c=0;c<t;c+=1)a(l=>e.get(l,c));for(let c=0;c+1<t;c+=1)for(let l=0;l+1<t;l+=1){let i=e.get(c,l);i===e.get(c,l+1)&&i===e.get(c+1,l)&&i===e.get(c+1,l+1)&&(r+=3)}let s=e.dark.filter(Boolean).length;return r+=Math.floor(Math.abs(s*20-t*t*10)/(t*t))*10,r}y(Oe,"Qe");m(Oe,"penalty");function ae(e,t={}){let r=t.ecl??"M",a=new TextEncoder().encode(e),s=1;for(;s<=_e&&!(4+(s<10?8:16)+a.length*8<=X(s,r)*8);s+=1);if(s>_e)throw new RangeError("text too long for a QR code");let c=Ge(a,s,r),l=m(d=>{let h=new Xe(s*4+17);return Me(h,s),Le(h,c),De(h,d),te(h,d,xe[r].formatBits),h},"build"),i=null;if(t.mask!==void 0)i=l(t.mask);else{let d=Number.POSITIVE_INFINITY;for(let h=0;h<8;h+=1){let g=l(h),f=Oe(g);f<d&&(d=f,i=g)}}let n=i;return{size:n.size,get:m((d,h)=>n.get(d,h),"get")}}y(ae,"J");m(ae,"encodeQr");var Pe={viewBox:"0 0 100 100",d:"M22.37,0H77.63A22.37,22.37 0 0 1 100,22.37V77.63A22.37,22.37 0 0 1 77.63,100H22.37A22.37,22.37 0 0 1 0,77.63V22.37A22.37,22.37 0 0 1 22.37,0ZM48.067,21H38.308A17.308,17.308 0 0 0 21,38.308V42.543A19.886,19.886 0 0 0 40.886,62.429H60.219V57.641A4.419,4.419 0 0 0 55.8,53.222H43.463A11.416,11.416 0 0 1 32.048,41.806V38.308A8.102,8.102 0 0 1 40.149,30.206H43.648A4.419,4.419 0 0 0 48.067,25.787ZM38.676,79H59.114A19.886,19.886 0 0 0 79,59.114V57.457A19.886,19.886 0 0 0 59.114,37.571H38.676V42.359A4.419,4.419 0 0 0 43.095,46.778H56.537A11.416,11.416 0 0 1 67.952,58.194V58.378A11.416,11.416 0 0 1 56.537,69.794H43.095A4.419,4.419 0 0 0 38.676,74.213ZM51.933,21H79V37.571H69.794V30.206H51.933ZM21,71.543A7.457,7.457 0 1 0 35.914,71.543A7.457,7.457 0 1 0 21,71.543Z"},M=.42,Je=.2,C=m(e=>{let t=Math.round(e*1e3)/1e3;return String(t===0?0:t)},"num");function N(e,t,r,a){let s=`A${C(a)} ${C(a)} 0 0 1 `;return`M${C(e+a)} ${C(t)}H${C(e+r-a)}${s}${C(e+r)} ${C(t+a)}V${C(t+r-a)}${s}${C(e+r-a)} ${C(t+r)}H${C(e+a)}${s}${C(e)} ${C(t+r-a)}V${C(t+a)}${s}${C(e+a)} ${C(t)}Z`}y(N,"G");m(N,"roundedSquare");function Be(e){let t=(e-17)/4,r=ee(t),a=r.length-1,s=[];return r.forEach((c,l)=>r.forEach((i,n)=>{l===0&&n===0||l===0&&n===a||l===a&&n===0||s.push([c,i])})),s}y(Be,"Ye");m(Be,"alignmentCentres");function re(e,{quiet:t=4,logo:r=!1}={}){let a=e.size,s=m((u,p)=>u<7&&p<7||u<7&&p>=a-7||u>=a-7&&p<7,"isFinder"),c=Math.floor(a*Je),l=r?c%2===0?c-1:c:0,i=(a-l)/2,n=m((u,p)=>l>0&&u>=i&&u<i+l&&p>=i&&p<i+l,"inZone"),d=Be(a).filter(([u,p])=>!n(u,p)),h=m((u,p)=>d.some(([k,A])=>Math.abs(u-k)<=2&&Math.abs(p-A)<=2),"isAlign"),g=`a${C(M)} ${C(M)} 0 1 0 `,f="";for(let u=0;u<a;u+=1)for(let p=0;p<a;p+=1)!e.get(u,p)||s(u,p)||h(u,p)||n(u,p)||(f+=`M${C(p+t+.5-M)} ${C(u+t+.5)}${g}${C(2*M)} 0${g}${C(-2*M)} 0Z`);let b="";for(let[u,p]of[[0,0],[0,a-7],[a-7,0]]){let k=p+t,A=u+t;b+=N(k,A,7,1.6)+N(k+1,A+1,5,.6)+N(k+2,A+2,3,.6)}for(let[u,p]of d){let k=p-2+t,A=u-2+t;b+=N(k,A,5,1.2)+N(k+1,A+1,3,.5)+N(k+2,A+2,1,.5)}return{size:a+t*2,dots:f,finders:b,logo:l>0?{x:i+t+.5,y:i+t+.5,size:l-1}:null}}y(re,"te");m(re,"styledQr");function oe(e){let t=Math.round(e.size/100*1e5)/1e5;return`translate(${C(e.x)} ${C(e.y)}) scale(${t})`}y(oe,"ne");m(oe,"qrLogoTransform");function ne(e){let t=(0,qe.useContext)(ke);return e.kind!=="document"?{issuer:void 0,listed:[]}:{issuer:e.issuer??t.issuer,listed:t.listed}}y(ne,"oe");m(ne,"useLaneIssuer");var et={en:B,fr:Qe,ar:Ze,es:B,pt:B,de:B},Ve={en:R,fr:Ie,ar:Se,es:R,pt:R,de:R};function w(e){let t=e.strings;return(r,a)=>Z(t[r]??et[e.locale][r]??"",a)}y(w,"A");m(w,"flowT");function se(e,t){let r=w(t);return e.flatMap(a=>{let s=a.service==="phone_otp"?r("contact.phone"):a.service==="email_otp"?r("contact.email"):Q(a,t),c=Ae[a.service];return s===null?[]:[{id:a.id,label:s,...c!==void 0?{glyph:(0,o.jsx)(O,{name:c})}:{}}]})}y(se,"Te");m(se,"labelled");function ie({step:e,i18n:t,onError:r}){let a=w(t),{busy:s,error:c,run:l}=G(t,r),i=e.kind==="contact_choice";return(0,o.jsx)(W,{title:a(i?"contact.title":"choice.title"),description:a(i?"contact.description":"choice.description"),options:se(e.choice.options,t),busy:s,error:c,focus:!0,testId:i?"sekyro-contact-choice":"sekyro-choice",onChoose:y(n=>l(()=>e.choose(n)),"onChoose")})}y(ie,"Re");m(ie,"PlanChoiceView");var qt=ie,Vt=ie;function tt({step:e,i18n:t,onError:r,onOpen:a}){let s=w(t),{busy:c,error:l,run:i}=G(t,r),n=e,d=e.context.switchable,{issuer:h,listed:g}=ne(e),f=d===void 0?[]:Y(d,h).switchTo.filter(I=>!g.includes(I.id)),b=n.kind==="registry"&&(n.reason==="nni_not_found"||n.reason==="registry_record_not_found")&&n.canUseDocument||n.kind==="eid"&&n.reason?.startsWith("eid_")&&n.canUseCamera,u=f.length===1?f[0]:void 0,p=u!==void 0&&(u.service==="phone_otp"||u.service==="email_otp"),k=p&&n.canSwitch&&n.switchTo!==void 0?()=>n.switchTo.call(e):n.chooseOption===void 0||u===void 0?void 0:()=>n.chooseOption.call(e,u.id);if(f.length===0||b||u!==void 0&&(k===void 0||A()===null)||u===void 0&&n.chooseOption===void 0)return null;function A(){return u===void 0?s("choice.switch"):u.service==="phone_otp"||u.service==="email_otp"?s("contact.switch"):n.kind==="registry"&&u.service==="document"?t.t("population.useDocument"):n.kind==="eid"?t.strings["eid.useCamera"]??Ve[t.locale]["eid.useCamera"]:Q(u,t)}return y(A,"v"),m(A,"labelOf"),(0,o.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[l!==null?(0,o.jsx)(x,{tone:"danger",children:(0,o.jsx)("span",{children:l})}):null,(0,o.jsx)(S,{kind:"secondary",disabled:c,"aria-busy":c||void 0,onClick:y(()=>k===void 0?a():i(k),"onClick"),"data-testid":p?"sekyro-contact-switch":"sekyro-lane-switch",children:A()})]})}y(tt,"qt");m(tt,"LaneSwitch");function at({step:e,i18n:t,onError:r,onClose:a}){let s=w(t),{busy:c,error:l,run:i}=G(t,r),n=e.context.switchable,d=e.chooseOption,{issuer:h}=ne(e);if(n===void 0||d===void 0)return null;let g=new Set(Y(n,h).switchTo.map(f=>f.id));return(0,o.jsx)(W,{title:s("choice.title"),description:s("choice.description"),options:se(n.options.filter(f=>f.id===n.current||g.has(f.id)),t),...n.current!==null?{marked:n.current}:{},busy:c,error:l,focus:!0,testId:"sekyro-lane-choice",onChoose:y(f=>f===n.current?a():i(()=>d.call(e,f)),"onChoose")})}y(at,"Et");m(at,"LaneChoiceView");var rt=[["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]];function $e(e){let[t,r]=(0,v.useState)(null);return(0,v.useEffect)(()=>{if(!e.portraitAvailable)return;let a=!0,s=null;return e.portrait().then(c=>{!a||c===null||!c.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(s=URL.createObjectURL(c),r(s))}),()=>{a=!1,s!==null&&URL.revokeObjectURL(s)}},[e.portraitAvailable]),t}y($e,"Je");m($e,"usePortraitUrl");var ot=m(e=>/^\d{4}-\d{2}-\d{2}$/.test(e),"isoDate");function He(e,t){try{return new Intl.DateTimeFormat(t==="ar"?"ar-u-nu-latn":t,{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`))}catch{return e}}y(He,"tt");m(He,"formatDate");function nt({step:e,i18n:t,onError:r}){let a=w(t),s=(0,v.useId)(),c=D(),l=$e(e),{busy:i,error:n,run:d}=G(t,r),h=e.context.orgName,g=["registry","document","chip"].find(u=>u===e.source),f=e.summaryKind==="partial",b=m(u=>t.strings[`doc.type.${u}`]??u,"documentLabel");return(0,o.jsxs)("section",{className:"sekyro-step","aria-labelledby":s,"data-testid":"sekyro-identity-summary",children:[(0,o.jsxs)("div",{className:"sekyro-heading",children:[(0,o.jsx)("h2",{id:s,ref:c,tabIndex:-1,className:"sekyro-text-body",children:a("summary.title")}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:a("summary.description")})]}),g!==void 0?(0,o.jsx)("p",{className:"sekyro-summary__source",children:a(`summary.source.${g}`)}):null,(0,o.jsxs)("div",{className:"sekyro-summary",children:[l!==null?(0,o.jsx)("img",{className:"sekyro-summary__portrait",src:l,alt:a("summary.portraitAlt")}):null,(0,o.jsx)("dl",{className:"sekyro-summary__list",children:rt.map(([u,p,k])=>{let A=u==="idNumberMasked"?e.idNumberMasked??e.nniMasked:e[u];return A===void 0?null:(0,o.jsxs)("div",{className:"sekyro-summary__row",children:[(0,o.jsx)("dt",{className:"sekyro-text-muted",children:a(u==="fullName"&&f?"summary.name":p)}),(0,o.jsx)("dd",{children:ot(A)?He(A,t.locale):k?(0,o.jsx)("bdi",{dir:"ltr",children:A}):u==="documentType"?b(A):A})]},u)})})]}),n!==null?(0,o.jsx)(x,{tone:"danger",children:(0,o.jsx)("span",{children:n})}):null,e.retakeAvailable?null:(0,o.jsx)("p",{className:"sekyro-text-muted",children:a("summary.noRetake",{org:h})}),(0,o.jsxs)(P,{children:[(0,o.jsx)(S,{full:!0,disabled:i,"aria-busy":i||void 0,onClick:y(()=>d(()=>e.confirm()),"onClick"),children:a("summary.confirm")}),e.retakeAvailable?(0,o.jsx)(S,{kind:"secondary",full:!0,disabled:i,onClick:y(()=>d(()=>e.retake()),"onClick"),children:a(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):null]})]})}y(nt,"Ut");m(nt,"IdentitySummaryView");var st=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function it({step:e,i18n:t,livenessProps:r,sekyroIntro:a}){let s=w(t),[c,l]=(0,v.useState)(null);(0,v.useEffect)(()=>e.onLivePhoto(p=>{let k=p.update?.coach;l(p.holding||k===void 0?null:t.t(`portrait.coach.${k}`))}),[e,t]);let i=e.instructions==="icao",n=(0,v.useMemo)(()=>be(e),[e]),d=e.icao?.profile==="selfie",h=(0,v.useMemo)(()=>i?st.filter(p=>!d||p!=="background").map(p=>({id:p,text:s(`capture.tipsIcao.${p}`)})):void 0,[i,d,t]),g=(0,v.useMemo)(()=>i&&!d?{...r.strings,"capture.tips.title":s("capture.tipsIcao.title")}:r.strings,[i,d,r.strings,t]),f=d?void 0:s("capture.tipsIcao.title"),b=(0,v.useMemo)(()=>a===!0&&h!==void 0?{...r.slots,intro:m((p,k)=>(0,o.jsx)(Ce,{start:p,context:k,tips:h,...f!==void 0?{tipsTitle:f}:{},...n!==void 0?{retry:n}:{}}),"intro")}:r.slots,[a,h,f,n,r.slots,t]),u=d?`${(h??[]).map(p=>p.text).join(". ")}.`:s("capture.tipsIcao.summary");return(0,o.jsx)(j,{...r,...b!==void 0?{slots:b}:{},...g!==void 0?{strings:g}:{},...h!==void 0?{tips:h,tipsSummary:u}:{},coach:c})}y(it,"Qt");m(it,"LivePhotoLiveness");function ct({i18n:e}){let t=w(e);return(0,o.jsxs)(x,{tone:"info",children:[(0,o.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,o.jsx)("span",{children:t("portrait.keepCamera")})]})}y(ct,"Kt");m(ct,"PortraitRetakeNotice");function lt({i18n:e,provider:t}){let r=e.strings,a=m(s=>r[s]??Ve[e.locale][s]??"","pick");return(0,o.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?Z(a("eid.continueHint"),{provider:t}):a("eid.continueHintGeneric")})}y(lt,"Yt");m(lt,"EidContinueHint");async function Fe(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}y(Fe,"rt");m(Fe,"copy");function V({url:e,i18n:t,label:r,primary:a}){let s=w(t),[c,l]=(0,v.useState)("idle"),i=r.startsWith("inApp.")?"inApp":"handoff";return(0,o.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,o.jsx)(S,{kind:a?"primary":"secondary",full:!0,onClick:y(()=>{Fe(e).then(n=>l(n?"copied":"failed"))},"onClick"),children:s(r)}),(0,o.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:c==="idle"?"":s(`${i}.${c==="copied"?"copied":"copyFailed"}`)})]})}y(V,"se");m(V,"CopyLink");function ce({url:e,i18n:t,refresh:r,footer:a,lead:s}){let c=w(t),l=(0,v.useId)(),i=(0,v.useMemo)(()=>{try{return re(ae(e,{ecl:"H"}),{logo:!0})}catch{return null}},[e]),n=(0,v.useRef)(r);n.current=r;let d=D();return(0,v.useEffect)(()=>{let h=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&n.current?.().catch(()=>{})},5e3);return()=>clearInterval(h)},[]),(0,o.jsxs)("section",{className:"sekyro-step sekyro-handoff","aria-labelledby":l,"data-testid":"sekyro-handoff",children:[(0,o.jsxs)("div",{className:"sekyro-heading",children:[(0,o.jsx)("h2",{id:l,ref:d,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),s!==void 0?(0,o.jsx)("p",{children:s}):null,(0,o.jsx)("p",{className:"sekyro-text-muted",children:c("handoff.description")})]}),i!==null?(0,o.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${i.size} ${i.size}`,role:"img","aria-label":c("handoff.qrAlt"),children:[(0,o.jsx)("rect",{width:i.size,height:i.size,className:"sekyro-qr__bg"}),(0,o.jsx)("path",{d:i.dots,className:"sekyro-qr__fg"}),(0,o.jsx)("path",{d:i.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),i.logo!==null?(0,o.jsx)("path",{d:Pe.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:oe(i.logo),"data-qr-mark":""}):null]}):null,(0,o.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,o.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),c("handoff.waiting")]}),(0,o.jsxs)(P,{children:[(0,o.jsx)(V,{url:e,i18n:t,label:"handoff.copyLink"}),a??null]})]})}y(ce,"Oe");m(ce,"HandoffView");var Ne={appStore:"https://apps.apple.com/app/id6826858033",googlePlay:"https://play.google.com/store/apps/details?id=ai.sekyro.app"};function ut({i18n:e,org:t,nativeApp:r,fallbackUrl:a,refresh:s,footer:c}){let l=w(e),i=(0,v.useMemo)(()=>!T(),[]),n=r.link??a,d=(0,v.useMemo)(()=>{if(!i||n===void 0||n==="")return null;try{return re(ae(n,{ecl:"H"}),{logo:!0})}catch{return null}},[i,n]),h=(0,v.useRef)(s);h.current=s,(0,v.useEffect)(()=>{let k=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&h.current?.().catch(()=>{})},5e3);return()=>clearInterval(k)},[]);let[g,f]=(0,v.useState)(!1),b=m(()=>{s!==void 0&&(f(!0),s().catch(()=>{}).finally(()=>f(!1)))},"again"),u=r.sekyroApp,p=t!==""?l(u?"needsApp.capture.descriptionSekyro":"needsApp.capture.description",{org:t}):l(u?"needsApp.capture.descriptionNoOrgSekyro":"needsApp.capture.descriptionNoOrg");return(0,o.jsxs)(_,{tone:"brand",icon:"smartphone",title:l("needsApp.capture.title"),testId:"sekyro-native-app",actions:(0,o.jsxs)(o.Fragment,{children:[!i&&u&&r.sekyroAppLink!==void 0?(0,o.jsx)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:r.sekyroAppLink,"data-testid":"sekyro-open-sekyro-app",children:l("needsApp.capture.openSekyro")}):null,s!==void 0?(0,o.jsx)(S,{kind:"secondary",full:!0,disabled:g,onClick:b,children:e.t("common.refresh")}):null,c??null]}),children:[(0,o.jsx)("p",{children:p}),d!==null?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${d.size} ${d.size}`,role:"img","aria-label":l("needsApp.capture.qrAlt"),children:[(0,o.jsx)("rect",{width:d.size,height:d.size,className:"sekyro-qr__bg"}),(0,o.jsx)("path",{d:d.dots,className:"sekyro-qr__fg"}),(0,o.jsx)("path",{d:d.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),d.logo!==null?(0,o.jsx)("path",{d:Pe.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:oe(d.logo),"data-qr-mark":""}):null]}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:l("needsApp.capture.scan")})]}):null,u?(0,o.jsxs)("p",{className:"sekyro-text-muted","data-testid":"sekyro-app-stores",children:[l("needsApp.capture.getApp")," ",(0,o.jsx)("a",{href:Ne.appStore,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.appStore")})," · ",(0,o.jsx)("a",{href:Ne.googlePlay,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.googlePlay")})]}):null,(0,o.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,o.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),l("needsApp.capture.waiting")]})]})}y(ut,"Wt");m(ut,"NativeAppView");var pt=["intro","data","processing","sharing","retention"];function dt({i18n:e}){let t=w(e);return(0,o.jsx)(o.Fragment,{children:pt.map(r=>(0,o.jsx)("p",{children:t(`consent.human.terms.${r}`)},r))})}y(dt,"Zt");m(dt,"HumanConsentTerms");function mt({url:e,i18n:t}){return(0,v.useMemo)(()=>!T(),[])?(0,o.jsx)(ce,{url:e,i18n:t}):null}y(mt,"jt");m(mt,"DesktopHandoffView");function Ue(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(we(t))return"in_app";if(/SamsungBrowser/i.test(t))return"samsung";let r=typeof navigator<"u"&&/Macintosh/.test(t)&&(navigator.maxTouchPoints??0)>1;return/iPhone|iPad|iPod/i.test(t)||r?"ios":/Android/i.test(t)?"chrome_android":"desktop"}y(Ue,"at");m(Ue,"cameraHelpPlatform");var ht={samsung:"capture.noCamera.stepsSamsung",chrome_android:"capture.noCamera.stepsChrome",ios:"capture.noCamera.stepsSafari",desktop:"capture.noCamera.stepsDesktop"};function yt({i18n:e,cause:t,onRetry:r,onContinue:a,handoffUrl:s,repeated:c=!1,platform:l}){let i=w(e),n=(0,v.useId)(),d=D(),[h,g]=(0,v.useState)("idle"),f=(0,v.useMemo)(()=>s!==void 0&&!T(),[s]),b=t==="denied",u=(0,v.useMemo)(()=>l??Ue(),[l]),p=b&&u==="in_app",[k,A]=(0,v.useState)(!1),I=(0,v.useRef)(!1),$=(0,v.useRef)(!0);(0,v.useEffect)(()=>($.current=!0,()=>{$.current=!1}),[]);let Ye=m(()=>{if(!b){r();return}I.current||(I.current=!0,ye().catch(()=>"unknown").then(L=>{I.current=!1,$.current&&(L==="denied"&&!k&&!c?A(!0):r())}))},"retry"),We=m(()=>{a!==void 0&&(g("busy"),a(t).then(()=>g("idle"),L=>g(L instanceof U&&L.code==="check_out_of_order"?"idle":"failed")))},"end"),E=typeof window>"u"?"":window.location.href.split("#")[0]??"",H=(0,v.useMemo)(()=>p&&E!==""?K(E):null,[p,E]),le=(0,o.jsxs)(o.Fragment,{children:[p&&H!==null?(0,o.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:H,"data-testid":"sekyro-open-browser",children:[(0,o.jsx)(O,{name:"external"}),i("inApp.openBrowser")]}):null,p&&E!==""?(0,o.jsx)(V,{url:E,i18n:e,label:"inApp.copyLink",primary:H===null}):null,(0,o.jsx)(S,{full:!0,kind:!p&&(b||a===void 0)?"primary":"secondary",onClick:Ye,children:e.t("common.retry")}),a!==void 0?(0,o.jsx)(S,{full:!0,kind:b?"secondary":"primary",disabled:h==="busy","aria-busy":h==="busy"||void 0,onClick:We,children:i("capture.noCamera.continue")}):null]}),ue=h==="failed"?(0,o.jsx)(x,{tone:"danger",children:(0,o.jsx)("span",{children:e.t("errors.network_error")})}):null,pe=i(p?"capture.noCamera.inAppTitle":b?"capture.noCamera.deniedTitle":"capture.noCamera.title"),de=i(p?"capture.noCamera.inAppBody":b?"capture.noCamera.deniedBody":"capture.noCamera.body"),me=b&&!p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{"data-testid":"sekyro-camera-steps","data-platform":u,children:i(ht[u])}),u!=="desktop"?(0,o.jsx)("p",{className:"sekyro-text-muted",children:i("capture.noCamera.stepsSystem")}):null]}):null,he=b&&(k||c)?(0,o.jsx)(x,{tone:"warning",children:(0,o.jsx)("span",{role:"status","data-testid":"sekyro-camera-still-blocked",children:i("capture.noCamera.stillBlocked")})}):null;return f&&s!==void 0?(0,o.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":n,"data-testid":"sekyro-no-camera","data-cause":t,children:[(0,o.jsx)(ce,{url:s,i18n:e}),(0,o.jsx)("h2",{id:n,ref:d,tabIndex:-1,className:"sekyro-text-body",children:pe}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:de}),me,he,ue,(0,o.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:le})]}):(0,o.jsxs)(_,{tone:b?"warning":"neutral",icon:"camera",titleId:n,title:pe,testId:"sekyro-no-camera",actions:le,children:[(0,o.jsx)("p",{children:de}),me,he,ue]})}y(yt,"Xt");m(yt,"NoCameraView");function ft({url:e,i18n:t,onContinue:r}){let a=w(t),s=(0,v.useId)(),c=(0,v.useMemo)(()=>K(e),[e]);return(0,o.jsx)(_,{tone:"brand",icon:"external",titleId:s,title:a("inApp.title"),testId:"sekyro-in-app",actions:(0,o.jsxs)(o.Fragment,{children:[c!==null?(0,o.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:c,"data-testid":"sekyro-open-browser",children:[(0,o.jsx)(O,{name:"external"}),a("inApp.openBrowser")]}):null,(0,o.jsx)(V,{url:e,i18n:t,label:"inApp.copyLink",primary:c===null}),(0,o.jsx)(S,{kind:"ghost",full:!0,onClick:r,children:a("inApp.continueAnyway")})]}),children:(0,o.jsx)("p",{children:a("inApp.description")})})}y(ft,"Jt");m(ft,"InAppBrowserPrompt");var gt={tester_limit_reached:"testerGate.limitBody",gate_attempts_exhausted:"testerGate.exhaustedBody",tester_gate_closed:"testerGate.closedBody"};function kt({i18n:e,onOpen:t}){let r=w(e);return(0,o.jsx)(S,{kind:"ghost",full:!0,onClick:t,"data-testid":"sekyro-tester-gate-action",children:r("testerGate.action")})}y(kt,"en");m(kt,"TesterGateAction");function vt({i18n:e,verification:t,attemptsLeft:r,livenessProps:a,onBound:s,onDone:c}){let l=w(e),i=(0,v.useId)(),[n,d]=(0,v.useState)("intro"),[h,g]=(0,v.useState)(null),f=t.testerGate,b=m(p=>{f!==void 0&&(d("checking"),f.call(t,p).then(({bound:k})=>{k&&s(),d(k?"bound":"miss")},k=>{let A=k instanceof U?k.code:"",I=gt[A];g(I!==void 0?l(I):e.t(ve(k,e.strings))),d("failed")}))},"captured"),u=(0,o.jsx)(S,{full:!0,kind:n==="intro"?"secondary":"primary",onClick:y(()=>c(!0),"onClick"),"data-testid":"sekyro-tester-gate-continue",children:l("testerGate.continueTest")});return n==="capture"?(0,o.jsx)(j,{...a,onCaptured:b}):n==="checking"?(0,o.jsx)(_,{tone:"brand",icon:"face",busy:!0,live:!0,title:l("testerGate.checking"),testId:"sekyro-tester-gate-checking"}):n==="bound"?(0,o.jsx)(_,{tone:"success",icon:"success",title:l("testerGate.boundTitle"),testId:"sekyro-tester-gate-bound",actions:(0,o.jsx)(S,{full:!0,onClick:y(()=>c(!1),"onClick"),children:l("testerGate.continue")}),children:(0,o.jsx)("p",{children:l("testerGate.boundBody")})}):n==="miss"||n==="failed"?(0,o.jsx)(_,{tone:"warning",icon:"info",title:l(n==="miss"?"testerGate.missTitle":"testerGate.title"),testId:"sekyro-tester-gate-miss",actions:(0,o.jsxs)(o.Fragment,{children:[u,r>0&&n==="miss"?(0,o.jsx)(S,{full:!0,kind:"secondary",onClick:y(()=>d("capture"),"onClick"),children:l("testerGate.retry")}):null]}),children:(0,o.jsx)("p",{children:n==="miss"?l("testerGate.missBody"):h})}):(0,o.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":i,"data-testid":"sekyro-tester-gate",children:[(0,o.jsx)(ge,{id:i,title:l("testerGate.title"),lead:l("testerGate.body")}),(0,o.jsxs)(P,{children:[(0,o.jsx)(S,{full:!0,onClick:y(()=>d("capture"),"onClick"),disabled:f===void 0,"data-testid":"sekyro-tester-gate-start",children:l("testerGate.start")}),u]})]})}y(vt,"tn");m(vt,"TesterGateView");export{qt as ContactChoiceView,mt as DesktopHandoffView,lt as EidContinueHint,Vt as GenericChoiceView,ce as HandoffView,dt as HumanConsentTerms,nt as IdentitySummaryView,ft as InAppBrowserPrompt,at as LaneChoiceView,tt as LaneSwitch,it as LivePhotoLiveness,ut as NativeAppView,yt as NoCameraView,ct as PortraitRetakeNotice,kt as TesterGateAction,vt as TesterGateView,Ue as cameraHelpPlatform};
@@ -1 +0,0 @@
1
- "use client";import{a as U,e as F,f as ge,h as j,i as T,j as ke,k as ve,l as be,m as Z}from"./chunk-X2RZOTUB.js";import"./chunk-ELSYMAAW.js";import"./chunk-46JFMIK7.js";import{a as I}from"./chunk-5S5OC2EE.js";import{a as Ae,b as B,c as Ce}from"./chunk-N2DNXUEA.js";import{a as fe}from"./chunk-YZ6YGLNN.js";import{a as Y}from"./chunk-C3WB5BAA.js";import"./chunk-JKDI3DQD.js";import{L as x,a as me,b as je,c as S,t as M,v as O,w as he,y as $,z as ye}from"./chunk-SBLFJ2MR.js";import{a as y,c as E,i as m}from"./chunk-SSU37LFQ.js";var v=E(me(),1),Re=E(me(),1),o=E(je(),1);import{HostedApiError as Ne,laneOptionsFor as Ie,queryCameraPermission as Ze}from"@sekyro/web";import{detectIsMobile as W}from"@sekyro/web/core";var Qe={"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":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","capture.noCamera.stepsChrome":"في Chrome، اضغط على الرمز الموجود بجانب العنوان، ثم الأذونات، وفعّل الكاميرا.","capture.noCamera.stepsSamsung":"في Samsung Internet، افتح القائمة، ثم الإعدادات، المواقع والتنزيلات، أذونات المواقع، الكاميرا، واسمح لهذا الموقع.","capture.noCamera.stepsSafari":"في Safari، اضغط على زر aA في شريط العنوان، ثم إعدادات موقع الويب، واضبط الكاميرا على السماح.","capture.noCamera.stepsDesktop":"انقر على الرمز الموجود بجانب العنوان واسمح بالكاميرا لهذا الموقع.","capture.noCamera.stepsSystem":"ما زالت محظورة؟ تحقق في إعدادات هاتفك من أن متصفحك مسموح له باستخدام الكاميرا.","capture.noCamera.stillBlocked":"ما زالت الكاميرا محظورة. اتبع الخطوات أعلاه ثم أعد المحاولة.","capture.noCamera.inAppTitle":"افتح هذه الصفحة في متصفحك","capture.noCamera.inAppBody":"لا يمكن لمتصفح هذا التطبيق استخدام الكاميرا. افتح الصفحة في Chrome أو Safari للمتابعة.","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":"المتابعة هنا على أي حال","needsApp.capture.title":"تابع في التطبيق","needsApp.capture.description":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org}.","needsApp.capture.descriptionSekyro":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org} أو في تطبيق Sekyro AI.","needsApp.capture.descriptionNoOrg":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في التطبيق الذي أُعطي لك.","needsApp.capture.descriptionNoOrgSekyro":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في تطبيق Sekyro AI.","needsApp.capture.openSekyro":"افتح في تطبيق Sekyro AI","needsApp.capture.getApp":"احصل على تطبيق Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"امسح الرمز بهاتفك لفتح هذا التحقق في التطبيق.","needsApp.capture.qrAlt":"رمز QR يفتح هذا التحقق في التطبيق","needsApp.capture.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة في التطبيق","inApp.openBrowser":"افتح في المتصفح","testerGate.action":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.title":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.body":"انظر إلى الكاميرا. إذا تطابق وجهك مع أحد المختبِرين المسجَّلين لدى المؤسسة، فستُجري هذه الجلسة فحوصات حقيقية. وإلا فلن يُحتفظ بأي شيء وستتابع باستخدام بيانات الاختبار.","testerGate.start":"ابدأ","testerGate.checking":"جارٍ التحقق من وجهك","testerGate.boundTitle":"الفحوصات الحقيقية مفعّلة","testerGate.boundBody":"تم التعرّف عليك كمختبِر مسجَّل. ستُجري الخطوات التالية فحوصات حقيقية.","testerGate.missTitle":"لا يوجد مختبِر مسجَّل مطابق","testerGate.missBody":"لم يُحتفظ بأي شيء. يمكنك إعادة المحاولة أو المتابعة باستخدام بيانات الاختبار.","testerGate.retry":"أعد المحاولة","testerGate.continueTest":"المتابعة باستخدام بيانات الاختبار","testerGate.continue":"متابعة","testerGate.limitBody":"تم بلوغ الحد اليومي للفحوصات الحقيقية للمختبِرين. تابع باستخدام بيانات الاختبار، أو أعد المحاولة غدًا.","testerGate.exhaustedBody":"لم تتبقَّ أي محاولة في هذه الجلسة. تابع باستخدام بيانات الاختبار، أو ابدأ جلسة جديدة.","testerGate.closedBody":"لا يمكن بدء الفحوصات الحقيقية إلا قبل أول التقاط. تابع باستخدام بيانات الاختبار، أو ابدأ جلسة جديدة."},D={"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","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","capture.noCamera.stepsChrome":"In Chrome, tap the icon to the left of the address, then Permissions, and turn on Camera.","capture.noCamera.stepsSamsung":"In Samsung Internet, open the menu, then Settings, Sites and downloads, Site permissions, Camera, and allow this site.","capture.noCamera.stepsSafari":"In Safari, tap the aA button in the address bar, then Website Settings, and set Camera to Allow.","capture.noCamera.stepsDesktop":"Click the icon to the left of the address and allow the camera for this site.","capture.noCamera.stepsSystem":"Still blocked? In your phone's settings, check that your browser may use the camera.","capture.noCamera.stillBlocked":"The camera is still blocked. Follow the steps above, then try again.","capture.noCamera.inAppTitle":"Open this page in your browser","capture.noCamera.inAppBody":"This app's browser can't use your camera. Open the page in Chrome or Safari to continue.","choice.title":"Choose how to continue","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"Where to send 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 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","needsApp.capture.title":"Continue in the app","needsApp.capture.description":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app.","needsApp.capture.descriptionSekyro":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app or in the Sekyro AI app.","needsApp.capture.descriptionNoOrg":"This verification takes the photos in a mobile app. Open it in the app you were given.","needsApp.capture.descriptionNoOrgSekyro":"This verification takes the photos in a mobile app. Open it in the Sekyro AI app.","needsApp.capture.openSekyro":"Open in the Sekyro AI app","needsApp.capture.getApp":"Get the Sekyro AI app","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scan with your phone to open this verification in the app.","needsApp.capture.qrAlt":"QR code that opens this verification in the app","needsApp.capture.waiting":"This page moves on when you finish in the app","inApp.openBrowser":"Open in browser","testerGate.action":"Run real checks as a tester","testerGate.title":"Run real checks as a tester","testerGate.body":"Look at the camera. If your face matches one of the organization's enrolled testers, this session runs real checks. If not, nothing is kept and you continue with test data.","testerGate.start":"Start","testerGate.checking":"Checking your face","testerGate.boundTitle":"Real checks are on","testerGate.boundBody":"You were recognised as an enrolled tester. The next steps run real checks.","testerGate.missTitle":"No enrolled tester matched","testerGate.missBody":"Nothing was kept. You can try again or continue with test data.","testerGate.retry":"Try again","testerGate.continueTest":"Continue with test data","testerGate.continue":"Continue","testerGate.limitBody":"Today's limit of real checks for testers is reached. Continue with test data, or try again tomorrow.","testerGate.exhaustedBody":"No tries are left on this session. Continue with test data, or start a new session.","testerGate.closedBody":"Real checks can start only before the first capture. Continue with test data, or start a new session."},We={"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":"Une caméra est nécessaire","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 la caméra","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","capture.noCamera.stepsChrome":"Dans Chrome, touchez l'icône à gauche de l'adresse, puis Autorisations, et activez Caméra.","capture.noCamera.stepsSamsung":"Dans Samsung Internet, ouvrez le menu, puis Paramètres, Sites et téléchargements, Autorisations des sites, Appareil photo, et autorisez ce site.","capture.noCamera.stepsSafari":"Dans Safari, touchez le bouton aA de la barre d'adresse, puis Réglages du site web, et réglez Caméra sur Autoriser.","capture.noCamera.stepsDesktop":"Cliquez sur l'icône à gauche de l'adresse et autorisez la caméra pour ce site.","capture.noCamera.stepsSystem":"Toujours bloquée ? Dans les réglages du téléphone, vérifiez que votre navigateur peut utiliser la caméra.","capture.noCamera.stillBlocked":"La caméra est toujours bloquée. Suivez les étapes ci-dessus, puis réessayez.","capture.noCamera.inAppTitle":"Ouvrez cette page dans votre navigateur","capture.noCamera.inAppBody":"Le navigateur de cette application ne peut pas utiliser votre caméra. Ouvrez la page dans Chrome ou Safari pour continuer.","choice.title":"Comment continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Où envoyer 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 dans le 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","needsApp.capture.title":"Continuez dans l’application","needsApp.capture.description":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org}.","needsApp.capture.descriptionSekyro":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org} ou dans l’application Sekyro AI.","needsApp.capture.descriptionNoOrg":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application que l’on vous a indiquée.","needsApp.capture.descriptionNoOrgSekyro":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application Sekyro AI.","needsApp.capture.openSekyro":"Ouvrir dans l’application Sekyro AI","needsApp.capture.getApp":"Obtenir l’application Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scannez avec votre téléphone pour ouvrir cette vérification dans l’application.","needsApp.capture.qrAlt":"QR code qui ouvre cette vérification dans l’application","needsApp.capture.waiting":"Cette page avancera d’elle-même une fois l’étape terminée dans l’application","inApp.openBrowser":"Ouvrir dans le navigateur","testerGate.action":"Lancer de vrais contrôles en tant que testeur","testerGate.title":"Lancer de vrais contrôles en tant que testeur","testerGate.body":"Regardez la caméra. Si votre visage correspond à l'un des testeurs inscrits de l'organisation, cette session lance de vrais contrôles. Sinon, rien n'est conservé et vous continuez avec des données de test.","testerGate.start":"Commencer","testerGate.checking":"Vérification de votre visage","testerGate.boundTitle":"Les vrais contrôles sont activés","testerGate.boundBody":"Vous avez été reconnu comme testeur inscrit. Les étapes suivantes lancent de vrais contrôles.","testerGate.missTitle":"Aucun testeur inscrit ne correspond","testerGate.missBody":"Rien n'a été conservé. Vous pouvez réessayer ou continuer avec des données de test.","testerGate.retry":"Réessayer","testerGate.continueTest":"Continuer avec des données de test","testerGate.continue":"Continuer","testerGate.limitBody":"La limite de vrais contrôles pour les testeurs est atteinte pour aujourd'hui. Continuez avec des données de test, ou réessayez demain.","testerGate.exhaustedBody":"Il ne reste plus d'essai sur cette session. Continuez avec des données de test, ou lancez une nouvelle session.","testerGate.closedBody":"Les vrais contrôles ne peuvent commencer qu'avant la première capture. Continuez avec des données de test, ou lancez une nouvelle session."},ze={M:{perBlock:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26],blocks:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16],formatBits:0},H:{perBlock:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28],blocks:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25],formatBits:2}},we=20;function xe(e){let t=(16*e+128)*e+64;if(e>=2){let a=Math.floor(e/7)+2;t-=(25*a-10)*a-55,e>=7&&(t-=36)}return t}y(xe,"Fe");m(xe,"rawDataModules");function K(e,t){let{perBlock:a,blocks:r}=ze[t],i=a[e-1],c=r[e-1],l=Math.floor(xe(e)/8),s=c-l%c,n=Math.floor(l/c)-i;return[i,s===c?[[c,n]]:[[s,n],[c-s,n+1]]]}y(K,"xe");m(K,"blockLayout");var Q=m((e,t)=>K(e,t)[1].reduce((a,[r,i])=>a+r*i,0),"dataCapacity");function R(e,t){let a=0;for(let r=7;r>=0;r-=1)a=a<<1^(a>>>7)*285,a^=(t>>>r&1)*e;return a&255}y(R,"j");m(R,"gfMul");function Ge(e){let t=new Array(e).fill(0);t[e-1]=1;let a=1;for(let r=0;r<e;r+=1){for(let i=0;i<e;i+=1)t[i]=R(t[i],a),i+1<e&&(t[i]=t[i]^t[i+1]);a=R(a,2)}return t}y(Ge,"Ve");m(Ge,"rsDivisor");function _e(e,t){let a=t.map(()=>0);for(let r of e){let i=r^a.shift();a.push(0),t.forEach((c,l)=>{a[l]=a[l]^R(c,i)})}return a}y(_e,"De");m(_e,"rsRemainder");function Te(e,t,a){let r=[],i=m((u,p)=>{for(let k=p-1;k>=0;k-=1)r.push(u>>>k&1)},"put");i(4,4),i(e.length,t<10?8:16);for(let u of e)i(u,8);let c=Q(t,a)*8;i(0,Math.min(4,c-r.length)),i(0,(8-r.length%8)%8);let l=[];for(let u=0;u<r.length;u+=8)l.push(r.slice(u,u+8).reduce((p,k)=>p<<1|k,0));for(let u=236;l.length<Q(t,a);u^=253)l.push(u);let[s,n]=K(t,a),d=Ge(s),h=[],g=0;for(let[u,p]of n)for(let k=0;k<u;k+=1){let b=l.slice(g,g+p);g+=p,h.push({data:b,ec:_e(b,d)})}let f=[],A=Math.max(...h.map(u=>u.data.length));for(let u=0;u<A;u+=1)for(let p of h)u<p.data.length&&f.push(p.data[u]);for(let u=0;u<s;u+=1)for(let p of h)f.push(p.ec[u]);return f}y(Te,"He");m(Te,"codewords");function J(e){if(e===1)return[];let t=Math.floor(e/7)+2,a=Math.ceil((e*4+4)/(t*2-2))*2,r=[6];for(let i=e*4+10;r.length<t;i-=a)r.splice(1,0,i);return r}y(J,"Ne");m(J,"alignmentPositions");var Ke=[(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],G,Be=(G=class{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,a,r){this.dark[t*this.size+a]=r,this.fixed[t*this.size+a]=!0}get(t,a){return this.dark[t*this.size+a]===!0}},y(G,"re"),G);m(Be,"Grid");var Je=Be;function qe(e,t){let a=e.size;for(let c=0;c<a;c+=1)e.set(6,c,c%2===0),e.set(c,6,c%2===0);for(let[c,l]of[[3,3],[3,a-4],[a-4,3]])for(let s=-4;s<=4;s+=1)for(let n=-4;n<=4;n+=1){let d=c+s,h=l+n;if(d<0||d>=a||h<0||h>=a)continue;let g=Math.max(Math.abs(s),Math.abs(n));e.set(d,h,g!==2&&g!==4)}let r=J(t),i=r.length-1;if(r.forEach((c,l)=>r.forEach((s,n)=>{if(!(l===0&&n===0||l===0&&n===i||l===i&&n===0))for(let d=-2;d<=2;d+=1)for(let h=-2;h<=2;h+=1)e.set(c+d,s+h,Math.max(Math.abs(d),Math.abs(h))!==1)})),X(e,0),t>=7){let c=t;for(let s=0;s<12;s+=1)c=c<<1^(c>>>11)*7973;let l=t<<12|c;for(let s=0;s<18;s+=1){let n=(l>>>s&1)===1,d=a-11+s%3,h=Math.floor(s/3);e.set(d,h,n),e.set(h,d,n)}}}y(qe,"qe");m(qe,"drawFunctionPatterns");function X(e,t,a=0){let r=e.size,i=a<<3|t,c=i;for(let n=0;n<10;n+=1)c=c<<1^(c>>>9)*1335;let l=(i<<10|c)^21522,s=m(n=>(l>>>n&1)===1,"bit");for(let n=0;n<=5;n+=1)e.set(n,8,s(n));e.set(7,8,s(6)),e.set(8,8,s(7)),e.set(8,7,s(8));for(let n=9;n<15;n+=1)e.set(8,14-n,s(n));for(let n=0;n<8;n+=1)e.set(8,r-1-n,s(n));for(let n=8;n<15;n+=1)e.set(r-15+n,8,s(n));e.set(r-8,8,!0)}y(X,"ze");m(X,"drawFormat");function Le(e,t){let a=e.size,r=0;for(let i=a-1;i>=1;i-=2){i===6&&(i=5);for(let c=0;c<a;c+=1)for(let l=0;l<2;l+=1){let s=i-l,n=(i+1&2)===0?a-1-c:c;e.fixed[n*a+s]!==!0&&(r<t.length*8&&(e.dark[n*a+s]=(t[r>>>3]>>>7-(r&7)&1)===1),r+=1)}}}y(Le,"Ee");m(Le,"placeData");function Me(e,t){let a=Ke[t];for(let r=0;r<e.size;r+=1)for(let i=0;i<e.size;i+=1)e.fixed[r*e.size+i]!==!0&&a(r,i)&&(e.dark[r*e.size+i]=!e.dark[r*e.size+i])}y(Me,"Ue");m(Me,"applyMask");function Oe(e){let t=e.size,a=0,r=m(c=>{let l=1;for(let s=1;s<=t;s+=1)s<t&&c(s)===c(s-1)?l+=1:(l>=5&&(a+=3+(l-5)),l=1);for(let s=0;s+10<t;s+=1){let n=[!0,!1,!0,!0,!0,!1,!0];if(!(n.every((g,f)=>c(s+f)===g)||n.every((g,f)=>c(s+4+f)===g)))continue;let d=[0,1,2,3].every(g=>!c(s+g))&&n.every((g,f)=>c(s+4+f)===g),h=n.every((g,f)=>c(s+f)===g)&&[7,8,9,10].every(g=>!c(s+g));d&&(a+=40),h&&(a+=40)}},"line");for(let c=0;c<t;c+=1)r(l=>e.get(c,l));for(let c=0;c<t;c+=1)r(l=>e.get(l,c));for(let c=0;c+1<t;c+=1)for(let l=0;l+1<t;l+=1){let s=e.get(c,l);s===e.get(c,l+1)&&s===e.get(c+1,l)&&s===e.get(c+1,l+1)&&(a+=3)}let i=e.dark.filter(Boolean).length;return a+=Math.floor(Math.abs(i*20-t*t*10)/(t*t))*10,a}y(Oe,"Qe");m(Oe,"penalty");function ee(e,t={}){let a=t.ecl??"M",r=new TextEncoder().encode(e),i=1;for(;i<=we&&!(4+(i<10?8:16)+r.length*8<=Q(i,a)*8);i+=1);if(i>we)throw new RangeError("text too long for a QR code");let c=Te(r,i,a),l=m(d=>{let h=new Je(i*4+17);return qe(h,i),Le(h,c),Me(h,d),X(h,d,ze[a].formatBits),h},"build"),s=null;if(t.mask!==void 0)s=l(t.mask);else{let d=Number.POSITIVE_INFINITY;for(let h=0;h<8;h+=1){let g=l(h),f=Oe(g);f<d&&(d=f,s=g)}}let n=s;return{size:n.size,get:m((d,h)=>n.get(d,h),"get")}}y(ee,"J");m(ee,"encodeQr");var $e={viewBox:"0 0 100 100",d:"M22.37,0H77.63A22.37,22.37 0 0 1 100,22.37V77.63A22.37,22.37 0 0 1 77.63,100H22.37A22.37,22.37 0 0 1 0,77.63V22.37A22.37,22.37 0 0 1 22.37,0ZM48.067,21H38.308A17.308,17.308 0 0 0 21,38.308V42.543A19.886,19.886 0 0 0 40.886,62.429H60.219V57.641A4.419,4.419 0 0 0 55.8,53.222H43.463A11.416,11.416 0 0 1 32.048,41.806V38.308A8.102,8.102 0 0 1 40.149,30.206H43.648A4.419,4.419 0 0 0 48.067,25.787ZM38.676,79H59.114A19.886,19.886 0 0 0 79,59.114V57.457A19.886,19.886 0 0 0 59.114,37.571H38.676V42.359A4.419,4.419 0 0 0 43.095,46.778H56.537A11.416,11.416 0 0 1 67.952,58.194V58.378A11.416,11.416 0 0 1 56.537,69.794H43.095A4.419,4.419 0 0 0 38.676,74.213ZM51.933,21H79V37.571H69.794V30.206H51.933ZM21,71.543A7.457,7.457 0 1 0 35.914,71.543A7.457,7.457 0 1 0 21,71.543Z"},q=.42,Xe=.2,C=m(e=>{let t=Math.round(e*1e3)/1e3;return String(t===0?0:t)},"num");function z(e,t,a,r){let i=`A${C(r)} ${C(r)} 0 0 1 `;return`M${C(e+r)} ${C(t)}H${C(e+a-r)}${i}${C(e+a)} ${C(t+r)}V${C(t+a-r)}${i}${C(e+a-r)} ${C(t+a)}H${C(e+r)}${i}${C(e)} ${C(t+a-r)}V${C(t+r)}${i}${C(e+r)} ${C(t)}Z`}y(z,"G");m(z,"roundedSquare");function De(e){let t=(e-17)/4,a=J(t),r=a.length-1,i=[];return a.forEach((c,l)=>a.forEach((s,n)=>{l===0&&n===0||l===0&&n===r||l===r&&n===0||i.push([c,s])})),i}y(De,"Ye");m(De,"alignmentCentres");function te(e,{quiet:t=4,logo:a=!1}={}){let r=e.size,i=m((u,p)=>u<7&&p<7||u<7&&p>=r-7||u>=r-7&&p<7,"isFinder"),c=Math.floor(r*Xe),l=a?c%2===0?c-1:c:0,s=(r-l)/2,n=m((u,p)=>l>0&&u>=s&&u<s+l&&p>=s&&p<s+l,"inZone"),d=De(r).filter(([u,p])=>!n(u,p)),h=m((u,p)=>d.some(([k,b])=>Math.abs(u-k)<=2&&Math.abs(p-b)<=2),"isAlign"),g=`a${C(q)} ${C(q)} 0 1 0 `,f="";for(let u=0;u<r;u+=1)for(let p=0;p<r;p+=1)!e.get(u,p)||i(u,p)||h(u,p)||n(u,p)||(f+=`M${C(p+t+.5-q)} ${C(u+t+.5)}${g}${C(2*q)} 0${g}${C(-2*q)} 0Z`);let A="";for(let[u,p]of[[0,0],[0,r-7],[r-7,0]]){let k=p+t,b=u+t;A+=z(k,b,7,1.6)+z(k+1,b+1,5,.6)+z(k+2,b+2,3,.6)}for(let[u,p]of d){let k=p-2+t,b=u-2+t;A+=z(k,b,5,1.2)+z(k+1,b+1,3,.5)+z(k+2,b+2,1,.5)}return{size:r+t*2,dots:f,finders:A,logo:l>0?{x:s+t+.5,y:s+t+.5,size:l-1}:null}}y(te,"te");m(te,"styledQr");function re(e){let t=Math.round(e.size/100*1e5)/1e5;return`translate(${C(e.x)} ${C(e.y)}) scale(${t})`}y(re,"ne");m(re,"qrLogoTransform");function ae(e){let t=(0,Re.useContext)(ye);return e.kind!=="document"?{issuer:void 0,listed:[]}:{issuer:e.issuer??t.issuer,listed:t.listed}}y(ae,"oe");m(ae,"useLaneIssuer");var et={en:D,fr:We,ar:Qe,es:D,pt:D,de:D},Pe={en:B,fr:Ce,ar:Ae,es:B,pt:B,de:B};function w(e){let t=e.strings;return(a,r)=>Y(t[a]??et[e.locale][a]??"",r)}y(w,"A");m(w,"flowT");function oe(e,t){let a=w(t);return e.flatMap(r=>{let i=r.service==="phone_otp"?a("contact.phone"):r.service==="email_otp"?a("contact.email"):j(r,t),c=ge[r.service];return i===null?[]:[{id:r.id,label:i,...c!==void 0?{glyph:(0,o.jsx)(O,{name:c})}:{}}]})}y(oe,"Te");m(oe,"labelled");function ne({step:e,i18n:t,onError:a}){let r=w(t),{busy:i,error:c,run:l}=T(t,a),s=e.kind==="contact_choice";return(0,o.jsx)(U,{title:r(s?"contact.title":"choice.title"),description:r(s?"contact.description":"choice.description"),options:oe(e.choice.options,t),busy:i,error:c,focus:!0,testId:s?"sekyro-contact-choice":"sekyro-choice",onChoose:y(n=>l(()=>e.choose(n)),"onChoose")})}y(ne,"Re");m(ne,"PlanChoiceView");var Tt=ne,Bt=ne;function tt({step:e,i18n:t,onError:a,onOpen:r}){let i=w(t),{busy:c,error:l,run:s}=T(t,a),n=e,d=e.context.switchable,{issuer:h,listed:g}=ae(e),f=d===void 0?[]:Ie(d,h).switchTo.filter(N=>!g.includes(N.id)),A=n.kind==="registry"&&(n.reason==="nni_not_found"||n.reason==="registry_record_not_found")&&n.canUseDocument||n.kind==="eid"&&n.reason?.startsWith("eid_")&&n.canUseCamera,u=f.length===1?f[0]:void 0,p=u!==void 0&&(u.service==="phone_otp"||u.service==="email_otp"),k=p&&n.canSwitch&&n.switchTo!==void 0?()=>n.switchTo.call(e):n.chooseOption===void 0||u===void 0?void 0:()=>n.chooseOption.call(e,u.id);if(f.length===0||A||u!==void 0&&(k===void 0||b()===null)||u===void 0&&n.chooseOption===void 0)return null;function b(){return u===void 0?i("choice.switch"):u.service==="phone_otp"||u.service==="email_otp"?i("contact.switch"):n.kind==="registry"&&u.service==="document"?t.t("population.useDocument"):n.kind==="eid"?t.strings["eid.useCamera"]??Pe[t.locale]["eid.useCamera"]:j(u,t)}return y(b,"v"),m(b,"labelOf"),(0,o.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[l!==null?(0,o.jsx)(x,{tone:"danger",children:(0,o.jsx)("span",{children:l})}):null,(0,o.jsx)(S,{kind:"secondary",disabled:c,"aria-busy":c||void 0,onClick:y(()=>k===void 0?r():s(k),"onClick"),"data-testid":p?"sekyro-contact-switch":"sekyro-lane-switch",children:b()})]})}y(tt,"qt");m(tt,"LaneSwitch");function rt({step:e,i18n:t,onError:a,onClose:r}){let i=w(t),{busy:c,error:l,run:s}=T(t,a),n=e.context.switchable,d=e.chooseOption,{issuer:h}=ae(e);if(n===void 0||d===void 0)return null;let g=new Set(Ie(n,h).switchTo.map(f=>f.id));return(0,o.jsx)(U,{title:i("choice.title"),description:i("choice.description"),options:oe(n.options.filter(f=>f.id===n.current||g.has(f.id)),t),...n.current!==null?{marked:n.current}:{},busy:c,error:l,focus:!0,testId:"sekyro-lane-choice",onChoose:y(f=>f===n.current?r():s(()=>d.call(e,f)),"onChoose")})}y(rt,"Et");m(rt,"LaneChoiceView");var at=[["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]];function Ve(e){let[t,a]=(0,v.useState)(null);return(0,v.useEffect)(()=>{if(!e.portraitAvailable)return;let r=!0,i=null;return e.portrait().then(c=>{!r||c===null||!c.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(i=URL.createObjectURL(c),a(i))}),()=>{r=!1,i!==null&&URL.revokeObjectURL(i)}},[e.portraitAvailable]),t}y(Ve,"Je");m(Ve,"usePortraitUrl");var ot=m(e=>/^\d{4}-\d{2}-\d{2}$/.test(e),"isoDate");function He(e,t){try{return new Intl.DateTimeFormat(t==="ar"?"ar-u-nu-latn":t,{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`))}catch{return e}}y(He,"tt");m(He,"formatDate");function nt({step:e,i18n:t,onError:a}){let r=w(t),i=(0,v.useId)(),c=M(),l=Ve(e),{busy:s,error:n,run:d}=T(t,a),h=e.context.orgName,g=["registry","document","chip"].find(u=>u===e.source),f=e.summaryKind==="partial",A=m(u=>t.strings[`doc.type.${u}`]??u,"documentLabel");return(0,o.jsxs)("section",{className:"sekyro-step","aria-labelledby":i,"data-testid":"sekyro-identity-summary",children:[(0,o.jsxs)("div",{className:"sekyro-heading",children:[(0,o.jsx)("h2",{id:i,ref:c,tabIndex:-1,className:"sekyro-text-body",children:r("summary.title")}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:r("summary.description")})]}),g!==void 0?(0,o.jsx)("p",{className:"sekyro-summary__source",children:r(`summary.source.${g}`)}):null,(0,o.jsxs)("div",{className:"sekyro-summary",children:[l!==null?(0,o.jsx)("img",{className:"sekyro-summary__portrait",src:l,alt:r("summary.portraitAlt")}):null,(0,o.jsx)("dl",{className:"sekyro-summary__list",children:at.map(([u,p,k])=>{let b=u==="idNumberMasked"?e.idNumberMasked??e.nniMasked:e[u];return b===void 0?null:(0,o.jsxs)("div",{className:"sekyro-summary__row",children:[(0,o.jsx)("dt",{className:"sekyro-text-muted",children:r(u==="fullName"&&f?"summary.name":p)}),(0,o.jsx)("dd",{children:ot(b)?He(b,t.locale):k?(0,o.jsx)("bdi",{dir:"ltr",children:b}):u==="documentType"?A(b):b})]},u)})})]}),n!==null?(0,o.jsx)(x,{tone:"danger",children:(0,o.jsx)("span",{children:n})}):null,e.retakeAvailable?null:(0,o.jsx)("p",{className:"sekyro-text-muted",children:r("summary.noRetake",{org:h})}),(0,o.jsxs)($,{children:[(0,o.jsx)(S,{full:!0,disabled:s,"aria-busy":s||void 0,onClick:y(()=>d(()=>e.confirm()),"onClick"),children:r("summary.confirm")}),e.retakeAvailable?(0,o.jsx)(S,{kind:"secondary",full:!0,disabled:s,onClick:y(()=>d(()=>e.retake()),"onClick"),children:r(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):null]})]})}y(nt,"Ut");m(nt,"IdentitySummaryView");var it=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function st({step:e,i18n:t,livenessProps:a,sekyroIntro:r}){let i=w(t),[c,l]=(0,v.useState)(null);(0,v.useEffect)(()=>e.onLivePhoto(p=>{let k=p.update?.coach;l(p.holding||k===void 0?null:t.t(`portrait.coach.${k}`))}),[e,t]);let s=e.instructions==="icao",n=(0,v.useMemo)(()=>ke(e),[e]),d=e.icao?.profile==="selfie",h=(0,v.useMemo)(()=>s?it.filter(p=>!d||p!=="background").map(p=>({id:p,text:i(`capture.tipsIcao.${p}`)})):void 0,[s,d,t]),g=(0,v.useMemo)(()=>s&&!d?{...a.strings,"capture.tips.title":i("capture.tipsIcao.title")}:a.strings,[s,d,a.strings,t]),f=d?void 0:i("capture.tipsIcao.title"),A=(0,v.useMemo)(()=>r===!0&&h!==void 0?{...a.slots,intro:m((p,k)=>(0,o.jsx)(ve,{start:p,context:k,tips:h,...f!==void 0?{tipsTitle:f}:{},...n!==void 0?{retry:n}:{}}),"intro")}:a.slots,[r,h,f,n,a.slots,t]),u=d?`${(h??[]).map(p=>p.text).join(". ")}.`:i("capture.tipsIcao.summary");return(0,o.jsx)(F,{...a,...A!==void 0?{slots:A}:{},...g!==void 0?{strings:g}:{},...h!==void 0?{tips:h,tipsSummary:u}:{},coach:c})}y(st,"Qt");m(st,"LivePhotoLiveness");function ct({i18n:e}){let t=w(e);return(0,o.jsxs)(x,{tone:"info",children:[(0,o.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,o.jsx)("span",{children:t("portrait.keepCamera")})]})}y(ct,"Kt");m(ct,"PortraitRetakeNotice");function lt({i18n:e,provider:t}){let a=e.strings,r=m(i=>a[i]??Pe[e.locale][i]??"","pick");return(0,o.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?Y(r("eid.continueHint"),{provider:t}):r("eid.continueHintGeneric")})}y(lt,"Yt");m(lt,"EidContinueHint");async function Ee(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}y(Ee,"rt");m(Ee,"copy");function P({url:e,i18n:t,label:a,primary:r}){let i=w(t),[c,l]=(0,v.useState)("idle"),s=a.startsWith("inApp.")?"inApp":"handoff";return(0,o.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,o.jsx)(S,{kind:r?"primary":"secondary",full:!0,onClick:y(()=>{Ee(e).then(n=>l(n?"copied":"failed"))},"onClick"),children:i(a)}),(0,o.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:c==="idle"?"":i(`${s}.${c==="copied"?"copied":"copyFailed"}`)})]})}y(P,"se");m(P,"CopyLink");function ie({url:e,i18n:t,refresh:a,footer:r,lead:i}){let c=w(t),l=(0,v.useId)(),s=(0,v.useMemo)(()=>{try{return te(ee(e,{ecl:"H"}),{logo:!0})}catch{return null}},[e]),n=(0,v.useRef)(a);n.current=a;let d=M();return(0,v.useEffect)(()=>{let h=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&n.current?.().catch(()=>{})},5e3);return()=>clearInterval(h)},[]),(0,o.jsxs)("section",{className:"sekyro-step sekyro-handoff","aria-labelledby":l,"data-testid":"sekyro-handoff",children:[(0,o.jsxs)("div",{className:"sekyro-heading",children:[(0,o.jsx)("h2",{id:l,ref:d,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),i!==void 0?(0,o.jsx)("p",{children:i}):null,(0,o.jsx)("p",{className:"sekyro-text-muted",children:c("handoff.description")})]}),s!==null?(0,o.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${s.size} ${s.size}`,role:"img","aria-label":c("handoff.qrAlt"),children:[(0,o.jsx)("rect",{width:s.size,height:s.size,className:"sekyro-qr__bg"}),(0,o.jsx)("path",{d:s.dots,className:"sekyro-qr__fg"}),(0,o.jsx)("path",{d:s.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),s.logo!==null?(0,o.jsx)("path",{d:$e.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:re(s.logo),"data-qr-mark":""}):null]}):null,(0,o.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,o.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),c("handoff.waiting")]}),(0,o.jsxs)($,{children:[(0,o.jsx)(P,{url:e,i18n:t,label:"handoff.copyLink"}),r??null]})]})}y(ie,"Oe");m(ie,"HandoffView");var Se={appStore:"https://apps.apple.com/app/id6826858033",googlePlay:"https://play.google.com/store/apps/details?id=ai.sekyro.app"};function ut({i18n:e,org:t,nativeApp:a,fallbackUrl:r,refresh:i,footer:c}){let l=w(e),s=(0,v.useMemo)(()=>!W(),[]),n=a.link??r,d=(0,v.useMemo)(()=>{if(!s||n===void 0||n==="")return null;try{return te(ee(n,{ecl:"H"}),{logo:!0})}catch{return null}},[s,n]),h=(0,v.useRef)(i);h.current=i,(0,v.useEffect)(()=>{let k=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&h.current?.().catch(()=>{})},5e3);return()=>clearInterval(k)},[]);let[g,f]=(0,v.useState)(!1),A=m(()=>{i!==void 0&&(f(!0),i().catch(()=>{}).finally(()=>f(!1)))},"again"),u=a.sekyroApp,p=t!==""?l(u?"needsApp.capture.descriptionSekyro":"needsApp.capture.description",{org:t}):l(u?"needsApp.capture.descriptionNoOrgSekyro":"needsApp.capture.descriptionNoOrg");return(0,o.jsxs)(I,{tone:"brand",icon:"smartphone",title:l("needsApp.capture.title"),testId:"sekyro-native-app",actions:(0,o.jsxs)(o.Fragment,{children:[!s&&u&&a.sekyroAppLink!==void 0?(0,o.jsx)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:a.sekyroAppLink,"data-testid":"sekyro-open-sekyro-app",children:l("needsApp.capture.openSekyro")}):null,i!==void 0?(0,o.jsx)(S,{kind:"secondary",full:!0,disabled:g,onClick:A,children:e.t("common.refresh")}):null,c??null]}),children:[(0,o.jsx)("p",{children:p}),d!==null?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${d.size} ${d.size}`,role:"img","aria-label":l("needsApp.capture.qrAlt"),children:[(0,o.jsx)("rect",{width:d.size,height:d.size,className:"sekyro-qr__bg"}),(0,o.jsx)("path",{d:d.dots,className:"sekyro-qr__fg"}),(0,o.jsx)("path",{d:d.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),d.logo!==null?(0,o.jsx)("path",{d:$e.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:re(d.logo),"data-qr-mark":""}):null]}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:l("needsApp.capture.scan")})]}):null,u?(0,o.jsxs)("p",{className:"sekyro-text-muted","data-testid":"sekyro-app-stores",children:[l("needsApp.capture.getApp")," ",(0,o.jsx)("a",{href:Se.appStore,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.appStore")})," · ",(0,o.jsx)("a",{href:Se.googlePlay,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.googlePlay")})]}):null,(0,o.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,o.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),l("needsApp.capture.waiting")]})]})}y(ut,"Wt");m(ut,"NativeAppView");var pt=["intro","data","processing","sharing","retention"];function dt({i18n:e}){let t=w(e);return(0,o.jsx)(o.Fragment,{children:pt.map(a=>(0,o.jsx)("p",{children:t(`consent.human.terms.${a}`)},a))})}y(dt,"Zt");m(dt,"HumanConsentTerms");function mt({url:e,i18n:t}){return(0,v.useMemo)(()=>!W(),[])?(0,o.jsx)(ie,{url:e,i18n:t}):null}y(mt,"jt");m(mt,"DesktopHandoffView");function Ue(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(be(t))return"in_app";if(/SamsungBrowser/i.test(t))return"samsung";let a=typeof navigator<"u"&&/Macintosh/.test(t)&&(navigator.maxTouchPoints??0)>1;return/iPhone|iPad|iPod/i.test(t)||a?"ios":/Android/i.test(t)?"chrome_android":"desktop"}y(Ue,"at");m(Ue,"cameraHelpPlatform");var ht={samsung:"capture.noCamera.stepsSamsung",chrome_android:"capture.noCamera.stepsChrome",ios:"capture.noCamera.stepsSafari",desktop:"capture.noCamera.stepsDesktop"};function yt({i18n:e,cause:t,onRetry:a,onContinue:r,handoffUrl:i,repeated:c=!1,platform:l}){let s=w(e),n=(0,v.useId)(),d=M(),[h,g]=(0,v.useState)("idle"),f=(0,v.useMemo)(()=>i!==void 0&&!W(),[i]),A=t==="denied",u=(0,v.useMemo)(()=>l??Ue(),[l]),p=A&&u==="in_app",[k,b]=(0,v.useState)(!1),N=(0,v.useRef)(!1),V=(0,v.useRef)(!0);(0,v.useEffect)(()=>(V.current=!0,()=>{V.current=!1}),[]);let Fe=m(()=>{if(!A){a();return}N.current||(N.current=!0,Ze().catch(()=>"unknown").then(L=>{N.current=!1,V.current&&(L==="denied"&&!k&&!c?b(!0):a())}))},"retry"),Ye=m(()=>{r!==void 0&&(g("busy"),r(t).then(()=>g("idle"),L=>g(L instanceof Ne&&L.code==="check_out_of_order"?"idle":"failed")))},"end"),_=typeof window>"u"?"":window.location.href.split("#")[0]??"",H=(0,v.useMemo)(()=>p&&_!==""?Z(_):null,[p,_]),se=(0,o.jsxs)(o.Fragment,{children:[p&&H!==null?(0,o.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:H,"data-testid":"sekyro-open-browser",children:[(0,o.jsx)(O,{name:"external"}),s("inApp.openBrowser")]}):null,p&&_!==""?(0,o.jsx)(P,{url:_,i18n:e,label:"inApp.copyLink",primary:H===null}):null,(0,o.jsx)(S,{full:!0,kind:!p&&(A||r===void 0)?"primary":"secondary",onClick:Fe,children:e.t("common.retry")}),r!==void 0?(0,o.jsx)(S,{full:!0,kind:A?"secondary":"primary",disabled:h==="busy","aria-busy":h==="busy"||void 0,onClick:Ye,children:s("capture.noCamera.continue")}):null]}),ce=h==="failed"?(0,o.jsx)(x,{tone:"danger",children:(0,o.jsx)("span",{children:e.t("errors.network_error")})}):null,le=s(p?"capture.noCamera.inAppTitle":A?"capture.noCamera.deniedTitle":"capture.noCamera.title"),ue=s(p?"capture.noCamera.inAppBody":A?"capture.noCamera.deniedBody":"capture.noCamera.body"),pe=A&&!p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{"data-testid":"sekyro-camera-steps","data-platform":u,children:s(ht[u])}),u!=="desktop"?(0,o.jsx)("p",{className:"sekyro-text-muted",children:s("capture.noCamera.stepsSystem")}):null]}):null,de=A&&(k||c)?(0,o.jsx)(x,{tone:"warning",children:(0,o.jsx)("span",{role:"status","data-testid":"sekyro-camera-still-blocked",children:s("capture.noCamera.stillBlocked")})}):null;return f&&i!==void 0?(0,o.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":n,"data-testid":"sekyro-no-camera","data-cause":t,children:[(0,o.jsx)(ie,{url:i,i18n:e}),(0,o.jsx)("h2",{id:n,ref:d,tabIndex:-1,className:"sekyro-text-body",children:le}),(0,o.jsx)("p",{className:"sekyro-text-muted",children:ue}),pe,de,ce,(0,o.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:se})]}):(0,o.jsxs)(I,{tone:A?"warning":"neutral",icon:"camera",titleId:n,title:le,testId:"sekyro-no-camera",actions:se,children:[(0,o.jsx)("p",{children:ue}),pe,de,ce]})}y(yt,"Xt");m(yt,"NoCameraView");function ft({url:e,i18n:t,onContinue:a}){let r=w(t),i=(0,v.useId)(),c=(0,v.useMemo)(()=>Z(e),[e]);return(0,o.jsx)(I,{tone:"brand",icon:"external",titleId:i,title:r("inApp.title"),testId:"sekyro-in-app",actions:(0,o.jsxs)(o.Fragment,{children:[c!==null?(0,o.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:c,"data-testid":"sekyro-open-browser",children:[(0,o.jsx)(O,{name:"external"}),r("inApp.openBrowser")]}):null,(0,o.jsx)(P,{url:e,i18n:t,label:"inApp.copyLink",primary:c===null}),(0,o.jsx)(S,{kind:"ghost",full:!0,onClick:a,children:r("inApp.continueAnyway")})]}),children:(0,o.jsx)("p",{children:r("inApp.description")})})}y(ft,"Jt");m(ft,"InAppBrowserPrompt");var gt={tester_limit_reached:"testerGate.limitBody",gate_attempts_exhausted:"testerGate.exhaustedBody",tester_gate_closed:"testerGate.closedBody"};function kt({i18n:e,onOpen:t}){let a=w(e);return(0,o.jsx)(S,{kind:"ghost",full:!0,onClick:t,"data-testid":"sekyro-tester-gate-action",children:a("testerGate.action")})}y(kt,"en");m(kt,"TesterGateAction");function vt({i18n:e,verification:t,attemptsLeft:a,livenessProps:r,onBound:i,onDone:c}){let l=w(e),s=(0,v.useId)(),[n,d]=(0,v.useState)("intro"),[h,g]=(0,v.useState)(null),f=t.testerGate,A=m(p=>{f!==void 0&&(d("checking"),f.call(t,p).then(({bound:k})=>{k&&i(),d(k?"bound":"miss")},k=>{let b=k instanceof Ne?k.code:"",N=gt[b];g(N!==void 0?l(N):e.t(fe(k,e.strings))),d("failed")}))},"captured"),u=(0,o.jsx)(S,{full:!0,kind:n==="intro"?"secondary":"primary",onClick:y(()=>c(!0),"onClick"),"data-testid":"sekyro-tester-gate-continue",children:l("testerGate.continueTest")});return n==="capture"?(0,o.jsx)(F,{...r,onCaptured:A}):n==="checking"?(0,o.jsx)(I,{tone:"brand",icon:"face",busy:!0,live:!0,title:l("testerGate.checking"),testId:"sekyro-tester-gate-checking"}):n==="bound"?(0,o.jsx)(I,{tone:"success",icon:"success",title:l("testerGate.boundTitle"),testId:"sekyro-tester-gate-bound",actions:(0,o.jsx)(S,{full:!0,onClick:y(()=>c(!1),"onClick"),children:l("testerGate.continue")}),children:(0,o.jsx)("p",{children:l("testerGate.boundBody")})}):n==="miss"||n==="failed"?(0,o.jsx)(I,{tone:"warning",icon:"info",title:l(n==="miss"?"testerGate.missTitle":"testerGate.title"),testId:"sekyro-tester-gate-miss",actions:(0,o.jsxs)(o.Fragment,{children:[u,a>0&&n==="miss"?(0,o.jsx)(S,{full:!0,kind:"secondary",onClick:y(()=>d("capture"),"onClick"),children:l("testerGate.retry")}):null]}),children:(0,o.jsx)("p",{children:n==="miss"?l("testerGate.missBody"):h})}):(0,o.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":s,"data-testid":"sekyro-tester-gate",children:[(0,o.jsx)(he,{id:s,title:l("testerGate.title"),lead:l("testerGate.body")}),(0,o.jsxs)($,{children:[(0,o.jsx)(S,{full:!0,onClick:y(()=>d("capture"),"onClick"),disabled:f===void 0,"data-testid":"sekyro-tester-gate-start",children:l("testerGate.start")}),u]})]})}y(vt,"tn");m(vt,"TesterGateView");export{Tt as ContactChoiceView,mt as DesktopHandoffView,lt as EidContinueHint,Bt as GenericChoiceView,ie as HandoffView,dt as HumanConsentTerms,nt as IdentitySummaryView,ft as InAppBrowserPrompt,rt as LaneChoiceView,tt as LaneSwitch,st as LivePhotoLiveness,ut as NativeAppView,yt as NoCameraView,ct as PortraitRetakeNotice,kt as TesterGateAction,vt as TesterGateView,Ue as cameraHelpPlatform};