@regulaforensics/idv-capture-web 2.5.181-nightly → 2.5.183-nightly

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.
@@ -22,7 +22,7 @@ var oc = (e) => {
22
22
  throw s;
23
23
  }, "return" in t && o("return"), i;
24
24
  };
25
- import { B as Zs, r as H2, j as Dm } from "./index-BRsV1ir5.js";
25
+ import { B as Zs, r as H2, j as Dm } from "./index-BMHYHF3e.js";
26
26
  var AV = Object.defineProperty, OV = Object.defineProperties, xV = Object.getOwnPropertyDescriptors, Lm = Object.getOwnPropertySymbols, NV = Object.prototype.hasOwnProperty, IV = Object.prototype.propertyIsEnumerable, Si = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), DV = (e) => {
27
27
  throw TypeError(e);
28
28
  }, zm = (e, t, r) => t in e ? AV(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
package/dist/main.iife.js CHANGED
@@ -75,7 +75,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
75
75
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oje(e,r){if(e){if(typeof e=="string")return vK(e,r);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vK(e,r):void 0}}function vK(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=Array(r);n<r;n++)a[n]=e[n];return a}function uje(e,r){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,u,l,c,f=[],d=!0,g=!1;try{if(l=(n=n.call(e)).next,r!==0)for(;!(d=(a=l.call(n)).done)&&(f.push(a.value),f.length!==r);d=!0);}catch(p){g=!0,u=p}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(g)throw u}}return f}}function lje(e){if(Array.isArray(e))return e}var sje=function(r){var n=r.option,a=r.layout,u=r.dataSourceQuestion,l=r.register,c=r.watch,f=pr.useState(!1),d=ije(f,2),g=d[0],p=d[1],h=dK(),y=String(u.id),v=c(y),I=v===String(n.id),N=a.option,j=a.optionSelected,S={borderRadius:N.cornerRadius,background:Ur(N.backgroundColor),borderColor:Ur(N.borderColor),borderWidth:N.borderWidth},E={borderRadius:j.cornerRadius,background:Ur(j.backgroundColor),borderColor:Ur(j.borderColor),borderWidth:j.borderWidth},T=g&&h?{outline:"2px solid ".concat(f4)}:{};return te.jsx("div",{style:{display:"flex",flexGrow:1},children:te.jsxs("label",{style:hK(hK({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},I?E:S),T),children:[te.jsx("input",_n(yt({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},l(y,{required:!!u.required,validate:E3(u.validators,!!u.required)})),{value:n.id,type:"radio",onFocus:function(){return p(!0)},onBlur:function(){return p(!1)}})),te.jsx(Wa,_n(yt({},I?j.title:N.title),{text:n.text}))]})},n.id)},cje=function(r){var n=r.layout,a=r.watch,u=r.register,l=r.dataSourceQuestion;return te.jsx("div",{style:{boxSizing:"border-box"},children:te.jsxs("fieldset",{style:{margin:0,padding:0,border:"none"},children:[n.title&&te.jsx("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:te.jsx(Wa,_n(yt({},n.title),{text:l.text}))}),te.jsx("div",{style:{display:"flex",justifyContent:"center",gap:5},children:l.options.map(function(c){return te.jsx(sje,{register:u,watch:a,layout:n,option:c,dataSourceQuestion:l},c.id)})})]})})};function S4(e){"@babel/helpers - typeof";return S4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},S4(e)}function mK(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function A8(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?mK(Object(n),!0).forEach(function(a){fje(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mK(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function fje(e,r,n){return(r=dje(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function dje(e){var r=gje(e,"string");return S4(r)=="symbol"?r:r+""}function gje(e,r){if(S4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(S4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Mje=function(r){var n=r.children,a=r.backgroundColor,u=r.cornerRadius,l=u===void 0?0:u,c=r.isError,f=r.isRequired,d=r.validationBorderColor,g=r.validationBorderWidth,p=A8({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:Ur(a)||"transparent",borderRadius:l,padding:"16px",boxSizing:"border-box",height:"auto"},c&&A8(A8({},Ur(d)&&{borderColor:d,borderStyle:"solid"}),g&&{borderWidth:g}));return te.jsxs("div",{style:p,children:[f&&te.jsx("span",{style:{color:Ur(d),position:"absolute",left:"6px",top:"18px"},children:"*"}),n]})};function pje(e,r){return mje(e)||vje(e,r)||hje(e,r)||yje()}function yje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
76
76
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hje(e,r){if(e){if(typeof e=="string")return IK(e,r);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IK(e,r):void 0}}function IK(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=Array(r);n<r;n++)a[n]=e[n];return a}function vje(e,r){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,u,l,c,f=[],d=!0,g=!1;try{if(l=(n=n.call(e)).next,r!==0)for(;!(d=(a=l.call(n)).done)&&(f.push(a.value),f.length!==r);d=!0);}catch(p){g=!0,u=p}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(g)throw u}}return f}}function mje(e){if(Array.isArray(e))return e}var Ije=function(r){var n=r.validationErrorsTypes,a=r.title;return n?te.jsx("div",{style:{width:"100%",fontSize:12},children:Object.entries(n).map(function(u){var l=pje(u,2),c=l[0],f=l[1];return te.jsx(Wa,_n(yt({},a),{text:f}),c)})}):null},Nje=function(r){var n,a,u,l,c,f,d,g,p,h,y,v,I,N,j,S,E=r.layout,T=r.dataSourceQuestion,w=r.register,O=String(T.id),k=function($){return $?$===ay.EMAIL?"email":$===ay.FREE_TEXT?"text":$===ay.NUMBER?"number":$===ay.SECURE?"password":"text":"text"};return te.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[te.jsx(Wa,_n(yt({},E.title),{text:T.text,htmlFor:O})),te.jsx("input",_n(yt({},w(O,{required:!!T.required,validate:E3(T.validators,!!T.required)})),{id:O,type:k((n=E.textField)===null||n===void 0?void 0:n.inputType),style:{fontFamily:(a=E==null||(u=E.textField)===null||u===void 0?void 0:u.fontName)!==null&&a!==void 0?a:"sans-serif",fontSize:(l=E==null||(c=E.textField)===null||c===void 0?void 0:c.fontSize)!==null&&l!==void 0?l:15,color:(f=Ur(E==null||(d=E.textField)===null||d===void 0?void 0:d.fontColor))!==null&&f!==void 0?f:"#000000",height:"42px",borderWidth:(g=E==null||(p=E.textField)===null||p===void 0?void 0:p.borderWidth)!==null&&g!==void 0?g:1,borderColor:(h=Ur(E==null||(y=E.textField)===null||y===void 0?void 0:y.borderColor))!==null&&h!==void 0?h:"#d9d9d9",borderStyle:"solid",borderRadius:(v=E==null||(I=E.textField)===null||I===void 0?void 0:I.cornerRadius)!==null&&v!==void 0?v:8,padding:"11px",boxSizing:"border-box",backgroundColor:(N=Ur(E==null||(j=E.textField)===null||j===void 0?void 0:j.backgroundColor))!==null&&N!==void 0?N:"#FFFFFF",outlineColor:f4},placeholder:(S=T.placeholder)!==null&&S!==void 0?S:"","data-id":O}))]})},jje=function(r){var n,a,u,l,c,f,d,g,p,h,y,v,I,N=r.layout,j=r.dataSourceQuestion,S=r.register,E=String(j.id);return te.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[te.jsx(Wa,_n(yt({},N.title),{text:j.text,htmlFor:E})),te.jsx("textarea",_n(yt({},S(E,{required:!!j.required,validate:E3(j.validators,!!j.required)})),{id:E,placeholder:(n=j.placeholder)!==null&&n!==void 0?n:"",onChange:function(w){w.target.style.height="auto",w.target.style.height="".concat(w.target.scrollHeight-15,"px")},"data-id":E,style:{fontFamily:"sans-serif",fontSize:(a=N==null||(u=N.textField)===null||u===void 0?void 0:u.fontSize)!==null&&a!==void 0?a:15,color:(l=Ur(N==null||(c=N.textField)===null||c===void 0?void 0:c.fontColor))!==null&&l!==void 0?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(f=N==null||(d=N.textField)===null||d===void 0?void 0:d.borderWidth)!==null&&f!==void 0?f:1,borderColor:(g=Ur(N==null||(p=N.textField)===null||p===void 0?void 0:p.borderColor))!==null&&g!==void 0?g:"#d9d9d9",borderStyle:"solid",borderRadius:(h=N==null||(y=N.textField)===null||y===void 0?void 0:y.cornerRadius)!==null&&h!==void 0?h:8,padding:"11px",boxSizing:"border-box",backgroundColor:(v=Ur(N==null||(I=N.textField)===null||I===void 0?void 0:I.backgroundColor))!==null&&v!==void 0?v:"#FFFFFF",outlineColor:f4}}))]})},NK={},w8,jK;function DK(){if(jK)return w8;jK=1;var e=kn(),r=Mu(),n=eo(),a=sa(),u=Z5(),l=t4(),c=Function,f=e([].concat),d=e([].join),g={},p=function(y,v,I){if(!a(g,v)){for(var N=[],j=0;j<v;j++)N[j]="a["+j+"]";g[v]=c("C,a","return new C("+d(N,",")+")")}return g[v](y,I)};return w8=l?c.bind:function(h){var y=r(this),v=y.prototype,I=u(arguments,1),N=function(){var S=f(I,u(arguments));return this instanceof N?p(y,S.length,S):y.apply(h,S)};return n(v)&&(N.prototype=v),N},w8}var EK;function Dje(){if(EK)return NK;EK=1;var e=lr(),r=DK();return e({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r}),NK}Dje();var TK={},AK;function Eje(){if(AK)return TK;AK=1;var e=lr(),r=Un(),n=i0();return e({target:"Object",stat:!0,sham:!r},{create:n}),TK}Eje();var wK={},SK;function Tje(){if(SK)return wK;SK=1;var e=lr(),r=Xr(),n=kl(),a=u4(),u=jF(),l=r(function(){a(1)});return e({target:"Object",stat:!0,forced:l,sham:!u},{getPrototypeOf:function(f){return a(n(f))}}),wK}Tje();var CK={},xK;function Aje(){if(xK)return CK;xK=1;var e=Un(),r=C0(),n=eo(),a=OF(),u=kl(),l=r0(),c=Object.getPrototypeOf,f=Object.setPrototypeOf,d=Object.prototype,g="__proto__";if(e&&c&&f&&!(g in d))try{r(d,g,{configurable:!0,get:function(){return c(u(this))},set:function(h){var y=l(this);a(h)&&n(y)&&f(y,h)}})}catch(p){}return CK}Aje();var bK={},OK;function wje(){if(OK)return bK;OK=1;var e=lr(),r=Y5();return e({target:"Object",stat:!0},{setPrototypeOf:r}),bK}wje();var kK={},LK;function Sje(){if(LK)return kK;LK=1;var e=lr(),r=D2(),n=Q5(),a=DK(),u=$W(),l=ti(),c=eo(),f=i0(),d=Xr(),g=r("Reflect","construct"),p=Object.prototype,h=[].push,y=d(function(){function N(){}return!(g(function(){},[],N)instanceof N)}),v=!d(function(){g(function(){})}),I=y||v;return e({target:"Reflect",stat:!0,forced:I,sham:I},{construct:function(j,S){u(j),l(S);var E=arguments.length<3?j:u(arguments[2]);if(v&&!y)return g(j,S,E);if(j===E){switch(S.length){case 0:return new j;case 1:return new j(S[0]);case 2:return new j(S[0],S[1]);case 3:return new j(S[0],S[1],S[2]);case 4:return new j(S[0],S[1],S[2],S[3])}var T=[null];return n(h,T,S),new(n(a,j,T))}var w=E.prototype,O=f(c(w)?w:p),k=n(j,O,S);return c(k)?k:O}}),kK}Sje();function C4(e){"@babel/helpers - typeof";return C4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},C4(e)}function Cje(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function zK(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,_K(a.key),a)}}function xje(e,r,n){return r&&zK(e.prototype,r),n&&zK(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u0(e,r,n){return(r=_K(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function _K(e){var r=bje(e,"string");return C4(r)=="symbol"?r:r+""}function bje(e,r){if(C4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(C4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var RK=function(){function e(r){var n=r.errorCode,a=r.errorCodeKey,u=r.message,l=r.underlyingError,c=r.underlyingBaseError,f=r.domain,d=r.module,g=r.errorEnumName,p=r.shortDomainCode;Cje(this,e),u0(this,"errorCode",void 0),u0(this,"errorCodeKey",void 0),u0(this,"message",void 0),u0(this,"underlyingError",void 0),u0(this,"underlyingBaseError",void 0),u0(this,"domain",void 0),u0(this,"module",void 0),u0(this,"errorEnumName",void 0),u0(this,"shortDomainCode",void 0),this.errorCode=n,this.errorCodeKey=a,this.message=u,this.underlyingError=l,this.underlyingBaseError=c,this.module=d,this.domain=f,this.errorEnumName=g,this.shortDomainCode=p}return xje(e,[{key:"lastUnderlyingError",get:function(){for(var n,a=this.underlyingBaseError;((u=a)===null||u===void 0?void 0:u.underlyingBaseError)instanceof e;){var u;a=a.underlyingBaseError}return(n=a)===null||n===void 0?void 0:n.underlyingError}},{key:"toObject",value:function(){var n={errorCode:this.errorCode,errorCodeKey:this.errorCodeKey,errorEnumName:this.errorEnumName,message:this.message,module:this.module,underlyingError:this.underlyingError,lastUnderlineError:this.lastUnderlyingError};return this.underlyingBaseError&&this.underlyingBaseError instanceof e&&(n.underlyingBaseError=this.underlyingBaseError.toObject()),n}},{key:"shortChain",get:function(){var n="".concat(this.shortDomainCode,":").concat(this.errorCode).concat(this.underlyingError?"-"+this.underlyingError:"");return this.underlyingBaseError instanceof e&&(n+="-".concat(this.underlyingBaseError.shortChain)),n}},{key:"fullChain",get:function(){var n="".concat(this.module,".").concat(this.domain,":").concat(this.errorCodeKey).concat(this.underlyingError?"-"+this.underlyingError:"");return this.underlyingBaseError instanceof e&&(n+="-".concat(this.underlyingBaseError.fullChain)),n}}],[{key:"getErrorKey",value:function(n,a){var u=Object.keys(a).find(function(l){return a[l]===n});if(!u)throw new Error("Invalid errorCode: ".concat(n," in enum"));return u}}])}();function T3(e){"@babel/helpers - typeof";return T3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},T3(e)}function Oje(e,r,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function kje(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Lje(e,r,n){return r=py(r),zje(e,PK()?Reflect.construct(r,n||[],py(e).constructor):r.apply(e,n))}function zje(e,r){if(r&&(T3(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _je(e)}function _je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(PK=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},py(e)}function Rje(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&S8(e,r)}function S8(e,r){return S8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},S8(e,r)}function C8(e,r,n){return(r=Pje(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Pje(e){var r=Uje(e,"string");return T3(r)=="symbol"?r:r+""}function Uje(e,r){if(T3(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(T3(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var yy=function(e){function r(n){var a=n.errorCode,u=n.message,l=n.underlyingError,c=n.underlyingBaseError;kje(this,r);var f=RK.getErrorKey(a,IW);return Lje(this,r,[{errorCode:a,errorCodeKey:f,errorEnumName:r.ERROR_ENUM_NAME,module:r.MODULE,message:u,underlyingError:l,underlyingBaseError:c,domain:r.ERROR_ENUM_NAME,shortDomainCode:r.SHORT_CODE}])}return Rje(r,e),Oje(r)}(RK);C8(yy,"MODULE",t8),C8(yy,"ERROR_ENUM_NAME","GuiModuleError"),C8(yy,"SHORT_CODE","GM");var Hje=function(r){var n=r.header,a=r.title,u=r.buttons,l=r.footer,c=r.questions,f=r.dataSource,d=r.properties,g=r.backgroundColor,p=H7(),h=p.perform,y=d?Fve(f.questions,d):{},v=pr.useRef(null),I=pNe({criteriaMode:"all",defaultValues:y}),N=I.register,j=I.handleSubmit,S=I.formState.errors,E=I.reset,T=I.watch,w=I.control,O=function(U){h(Qve(U)),E()};return te.jsx(y4,{header:n,footer:l,backgroundColor:g,children:te.jsxs("form",{onSubmit:j(O),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[te.jsxs("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"flex-start",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"10px",height:"100%",width:"100%",overflow:"auto",position:"relative",backgroundColor:Ur(c.backgroundColor)||"transparent"},ref:v,children:[a&&te.jsx("div",{style:{lineHeight:"39.2px",width:"100%"},children:te.jsx(Wa,yt({},a))}),te.jsx("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:f.questions.map(function(k){var U,$=f.static,V=function(W,X){return X.find(function(L){var Y;if((Y=L.questionIds)!==null&&Y!==void 0&&Y.length)return L.questionIds.find(function(G){return W===G})})},C=function(W,X){return X.find(function(L){return!L.questionIds&&L.answerType===W})},A=$?V(String(k.id),c.itemTypes)||C(k.answerType,c.itemTypes):c.itemTypes.find(function(F){return F.answerType===k.answerType});if(!A){var x=new yy({errorCode:IW.DECODING_FAILED,message:"The question template has not been found"});h(x);return}var z=A==null?void 0:A.displayType,P=k.id in S&&((U=S[k.id])===null||U===void 0?void 0:U.types);return te.jsxs(pr.Fragment,{children:[te.jsxs(Mje,{backgroundColor:A==null?void 0:A.backgroundColor,cornerRadius:A==null?void 0:A.cornerRadius,isError:!!P,isRequired:k.required,validationBorderColor:A==null?void 0:A.validationBorderColor,validationBorderWidth:A==null?void 0:A.validationBorderWidth,children:[z===N3.TEXT_EXPANDABLE&&te.jsx(jje,{layout:A,dataSourceQuestion:k,register:N}),z===N3.TEXT_SINGLE_LINE&&te.jsx(Nje,{layout:A,dataSourceQuestion:k,register:N}),z===N3.SELECTOR_OPTIONS&&te.jsx(eje,{layout:A,dataSourceQuestion:k,watch:T,register:N}),z===N3.SELECTOR_BUTTONS&&te.jsx(cje,{layout:A,dataSourceQuestion:k,watch:T,register:N}),z===N3.SELECTOR_DROPDOWN&&te.jsx(_Ne,{control:w,layout:A,dataSourceQuestion:k,parentElementRef:v}),z===N3.MULTI_SELECTOR_DROPDOWN&&te.jsx(UNe,{control:w,layout:A,dataSourceQuestion:k,parentElementRef:v})]}),P&&te.jsx(Ije,{validationErrorsTypes:P,title:A.validationMessage})]},k.id)})})]}),!!(u!=null&&u.length)&&te.jsx("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:u.map(function(k,U){return te.jsx(uq,yt({dataTestId:"question-button"},k),U)})})]})})},UK=function(r){var n=r.templateId,a=r.templateLayout,u=r.dataSource,l=r.properties;if(!n||!a)return te.jsx(Mq,{});var c=l!=null&&l.length?JSON.stringify(l):"default-key";return n===b0.STATUS?te.jsx(TIe,{header:a==null?void 0:a.header,footer:a==null?void 0:a.footer,image:a==null?void 0:a.image,description:a==null?void 0:a.description,title:a==null?void 0:a.title,buttons:a==null?void 0:a.buttons,backgroundColor:a==null?void 0:a.backgroundColor}):n===b0.INFO?te.jsx(bIe,{header:a==null?void 0:a.header,footer:a==null?void 0:a.footer,image:a==null?void 0:a.image,title:a==null?void 0:a.title,description:a==null?void 0:a.description,buttons:a==null?void 0:a.buttons,backgroundColor:a==null?void 0:a.backgroundColor}):n===b0.PROGRESS?te.jsx(Mq,{header:a==null?void 0:a.header,footer:a==null?void 0:a.footer,progressView:a==null?void 0:a.progressView,backgroundColor:a==null?void 0:a.backgroundColor}):n===b0.INFO_DETAILS?te.jsx(BIe,{header:a==null?void 0:a.header,title:a==null?void 0:a.title,details:a==null?void 0:a.details,buttons:a==null?void 0:a.buttons,footer:a==null?void 0:a.footer,backgroundColor:a==null?void 0:a.backgroundColor}):u&&u!==null&&u!==void 0&&u.questions.length&&n===b0.QUESTIONS?te.jsx(Hje,{dataSource:u,properties:l,questions:a.questions,header:a==null?void 0:a.header,footer:a==null?void 0:a.footer,title:a==null?void 0:a.title,buttons:a==null?void 0:a.buttons,backgroundColor:a==null?void 0:a.backgroundColor},c):n===b0.QUESTIONS&&!u?te.jsx("div",{style:{width:"100%",height:"100%",fontFamily:"sans-serif",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},children:"IDV Gui :: No data for questions"}):te.jsx("div",{style:{width:"100%",height:"100%",fontFamily:"sans-serif",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},children:"IDV Gui :: Unsupported step template"})},x8=!1,C2=function(r){var n=r.moduleProps,a=r.perform,u=n,l=u.templateId,c=u.templateLayout,f=u.dataSource,d=u.properties,g=function(h){a&&a(h)};return l===b0.QUESTIONS?te.jsx(XF,{perform:g,children:te.jsx(UK,{properties:d,dataSource:f,templateId:l,templateLayout:c})}):te.jsx(XF,{perform:g,children:te.jsx(UK,{templateId:l,templateLayout:c})})};C2.getIdentifier=function(){return t8},C2.getSupportedTemplates=function(){return Object.values(b0)},C2.deinitialize=function(){x8=!1},C2.initialize=function(){x8=!0},C2.isReady=function(){return x8},C2.displayName=t8;var HK={},VK={},b8,$K;function QK(){if($K)return b8;$K=1;var e=nr(),r=In(),n=Vr(),a=Xa(),u=r("iterator");return b8=!e(function(){var l=new URL("b?a=1&b=2&c=3","https://a"),c=l.searchParams,f=new URLSearchParams("a=1&a=2&b=3"),d="";return l.pathname="c%20d",c.forEach(function(g,p){c.delete("b"),d+=p+g}),f.delete("a",2),f.delete("b",void 0),a&&(!l.toJSON||!f.has("a",1)||f.has("a",2)||!f.has("a",void 0)||f.has("b"))||!c.size&&(a||!n)||!c.sort||l.href!=="https://a/c%20d?a=1&c=3"||c.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!c[u]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||d!=="a1c3"||new URL("https://x",void 0).host!=="x"}),b8}var O8,YK;function Vje(){if(YK)return O8;YK=1;var e=Vr(),r=sr(),n=$r(),a=nr(),u=Tg(),l=h5(),c=g5(),f=Bo(),d=vg(),g=Object.assign,p=Object.defineProperty,h=r([].concat);return O8=!g||a(function(){if(e&&g({b:1},g(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var y={},v={},I=Symbol("assign detection"),N="abcdefghijklmnopqrst";return y[I]=7,N.split("").forEach(function(j){v[j]=j}),g({},y)[I]!==7||u(g({},v)).join("")!==N})?function(v,I){for(var N=f(v),j=arguments.length,S=1,E=l.f,T=c.f;j>S;)for(var w=d(arguments[S++]),O=E?h(u(w),E(w)):u(w),k=O.length,U=0,$;k>U;)$=O[U++],(!e||n(T,w,$))&&(N[$]=w[$]);return N}:g,O8}var k8,FK;function $je(){if(FK)return k8;FK=1;var e=sr(),r=2147483647,n=36,a=1,u=26,l=38,c=700,f=72,d=128,g="-",p=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,y="Overflow: input needs wider integers to process",v=n-a,I=RangeError,N=e(h.exec),j=Math.floor,S=String.fromCharCode,E=e("".charCodeAt),T=e([].join),w=e([].push),O=e("".replace),k=e("".split),U=e("".toLowerCase),$=function(x){for(var z=[],P=0,F=x.length;P<F;){var W=E(x,P++);if(W>=55296&&W<=56319&&P<F){var X=E(x,P++);(X&64512)===56320?w(z,((W&1023)<<10)+(X&1023)+65536):(w(z,W),P--)}else w(z,W)}return z},V=function(x){return x+22+75*(x<26)},C=function(x,z,P){var F=0;for(x=P?j(x/c):x>>1,x+=j(x/z);x>v*u>>1;)x=j(x/v),F+=n;return j(F+(v+1)*x/(x+l))},A=function(x){var z=[];x=$(x);var P=x.length,F=d,W=0,X=f,L,Y;for(L=0;L<x.length;L++)Y=x[L],Y<128&&w(z,S(Y));var G=z.length,b=G;for(G&&w(z,g);b<P;){var B=r;for(L=0;L<x.length;L++)Y=x[L],Y>=F&&Y<B&&(B=Y);var le=b+1;if(B-F>j((r-W)/le))throw new I(y);for(W+=(B-F)*le,F=B,L=0;L<x.length;L++){if(Y=x[L],Y<F&&++W>r)throw new I(y);if(Y===F){for(var se=W,ae=n;;){var De=ae<=X?a:ae>=X+u?u:ae-X;if(se<De)break;var be=se-De,Me=n-De;w(z,S(V(De+be%Me))),se=j(be/Me),ae+=n}w(z,S(V(se))),X=C(W,le,b===G),W=0,b++}}W++,F++}return T(z,"")};return k8=function(x){var z=[],P=k(O(U(x),h,"."),"."),F,W;for(F=0;F<P.length;F++)W=P[F],w(z,N(p,W)?"xn--"+A(W):W);return T(z,".")},k8}var ZK={},BK;function Qje(){if(BK)return ZK;BK=1;var e=Dt(),r=sr(),n=fm(),a=RangeError,u=String.fromCharCode,l=String.fromCodePoint,c=r([].join),f=!!l&&l.length!==1;return e({target:"String",stat:!0,arity:1,forced:f},{fromCodePoint:function(g){for(var p=[],h=arguments.length,y=0,v;h>y;){if(v=+arguments[y++],n(v,1114111)!==v)throw new a(v+" is not a valid code point");p[y]=v<65536?u(v):u(((v-=65536)>>10)+55296,v%1024+56320)}return c(p,"")}}),ZK}var L8,GK;function Yje(){if(GK)return L8;GK=1;var e=E0(),r=Math.floor,n=function(a,u){var l=a.length;if(l<8)for(var c=1,f,d;c<l;){for(d=c,f=a[c];d&&u(a[d-1],f)>0;)a[d]=a[--d];d!==c++&&(a[d]=f)}else for(var g=r(l/2),p=n(e(a,0,g),u),h=n(e(a,g),u),y=p.length,v=h.length,I=0,N=0;I<y||N<v;)a[I+N]=I<y&&N<v?u(p[I],h[N])<=0?p[I++]:h[N++]:I<y?p[I++]:h[N++];return a};return L8=n,L8}var z8,WK;function qK(){if(WK)return z8;WK=1,TI(),Qje();var e=Dt(),r=Cr(),n=FH(),a=eu(),u=$r(),l=sr(),c=Vr(),f=QK(),d=ua(),g=fu(),p=FI(),h=Fl(),y=II(),v=cu(),I=d3(),N=Ln(),j=ii(),S=q2(),E=Eg(),T=tn(),w=Kn(),O=ai(),k=Is(),U=ad(),$=RI(),V=xg(),C=f3(),A=g3(),x=In(),z=Yje(),P=x("iterator"),F="URLSearchParams",W=F+"Iterator",X=v.set,L=v.getterFor(F),Y=v.getterFor(W),G=n("fetch"),b=n("Request"),B=n("Headers"),le=b&&b.prototype,se=B&&B.prototype,ae=r.TypeError,De=r.encodeURIComponent,be=String.fromCharCode,Me=a("String","fromCodePoint"),Ce=parseInt,$e=l("".charAt),it=l([].join),Xe=l([].push),Be=l("".replace),at=l([].shift),lt=l([].splice),ft=l("".split),Qe=l("".slice),We=l(/./.exec),nt=/\+/g,Ze="�",Ee=/^[0-9a-f]+$/i,ke=function(ge,xe){var Le=Qe(ge,xe,xe+2);return We(Ee,Le)?Ce(Le,16):NaN},oe=function(ge){for(var xe=0,Le=128;Le>0&&(ge&Le)!==0;Le>>=1)xe++;return xe},we=function(ge){var xe=null;switch(ge.length){case 1:xe=ge[0];break;case 2:xe=(ge[0]&31)<<6|ge[1]&63;break;case 3:xe=(ge[0]&15)<<12|(ge[1]&63)<<6|ge[2]&63;break;case 4:xe=(ge[0]&7)<<18|(ge[1]&63)<<12|(ge[2]&63)<<6|ge[3]&63;break}return xe>1114111?null:xe},je=function(ge){ge=Be(ge,nt," ");for(var xe=ge.length,Le="",Se=0;Se<xe;){var tt=$e(ge,Se);if(tt==="%"){if($e(ge,Se+1)==="%"||Se+3>xe){Le+="%",Se++;continue}var dt=ke(ge,Se+1);if(dt!==dt){Le+=tt,Se++;continue}Se+=2;var mt=oe(dt);if(mt===0)tt=be(dt);else{if(mt===1||mt>4){Le+=Ze,Se++;continue}for(var ht=[dt],Lt=1;Lt<mt&&(Se++,!(Se+3>xe||$e(ge,Se)!=="%"));){var Wt=ke(ge,Se+1);if(Wt!==Wt){Se+=3;break}if(Wt>191||Wt<128)break;Xe(ht,Wt),Se+=2,Lt++}if(ht.length!==mt){Le+=Ze;continue}var ir=we(ht);ir===null?Le+=Ze:tt=Me(ir)}}Le+=tt,Se++}return Le},ce=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Te=function(ge){return fe[ge]},Ye=function(ge){return Be(De(ge),ce,Te)},qe=y(function(xe,Le){X(this,{type:W,target:L(xe).entries,index:0,kind:Le})},F,function(){var xe=Y(this),Le=xe.target,Se=xe.index++;if(!Le||Se>=Le.length)return xe.target=null,C(void 0,!0);var tt=Le[Se];switch(xe.kind){case"keys":return C(tt.key,!1);case"values":return C(tt.value,!1)}return C([tt.key,tt.value],!1)},!0),Ue=function(ge){this.entries=[],this.url=null,ge!==void 0&&(w(ge)?this.parseObject(ge):this.parseQuery(typeof ge=="string"?$e(ge,0)==="?"?Qe(ge,1):ge:O(ge)))};Ue.prototype={type:F,bindURL:function(ge){this.url=ge,this.update()},parseObject:function(ge){var xe=this.entries,Le=V(ge),Se,tt,dt,mt,ht,Lt,Wt;if(Le)for(Se=$(ge,Le),tt=Se.next;!(dt=u(tt,Se)).done;){if(mt=$(T(dt.value)),ht=mt.next,(Lt=u(ht,mt)).done||(Wt=u(ht,mt)).done||!u(ht,mt).done)throw new ae("Expected sequence with length 2");Xe(xe,{key:O(Lt.value),value:O(Wt.value)})}else for(var ir in ge)j(ge,ir)&&Xe(xe,{key:ir,value:O(ge[ir])})},parseQuery:function(ge){if(ge)for(var xe=this.entries,Le=ft(ge,"&"),Se=0,tt,dt;Se<Le.length;)tt=Le[Se++],tt.length&&(dt=ft(tt,"="),Xe(xe,{key:je(at(dt)),value:je(it(dt,"="))}))},serialize:function(){for(var ge=this.entries,xe=[],Le=0,Se;Le<ge.length;)Se=ge[Le++],Xe(xe,Ye(Se.key)+"="+Ye(Se.value));return it(xe,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ne=function(){I(this,he);var xe=arguments.length>0?arguments[0]:void 0,Le=X(this,new Ue(xe));c||(this.size=Le.entries.length)},he=Ne.prototype;if(p(he,{append:function(xe,Le){var Se=L(this);A(arguments.length,2),Xe(Se.entries,{key:O(xe),value:O(Le)}),c||this.length++,Se.updateURL()},delete:function(ge){for(var xe=L(this),Le=A(arguments.length,1),Se=xe.entries,tt=O(ge),dt=Le<2?void 0:arguments[1],mt=dt===void 0?dt:O(dt),ht=0;ht<Se.length;){var Lt=Se[ht];if(Lt.key===tt&&(mt===void 0||Lt.value===mt)){if(lt(Se,ht,1),mt!==void 0)break}else ht++}c||(this.size=Se.length),xe.updateURL()},get:function(xe){var Le=L(this).entries;A(arguments.length,1);for(var Se=O(xe),tt=0;tt<Le.length;tt++)if(Le[tt].key===Se)return Le[tt].value;return null},getAll:function(xe){var Le=L(this).entries;A(arguments.length,1);for(var Se=O(xe),tt=[],dt=0;dt<Le.length;dt++)Le[dt].key===Se&&Xe(tt,Le[dt].value);return tt},has:function(xe){for(var Le=L(this).entries,Se=A(arguments.length,1),tt=O(xe),dt=Se<2?void 0:arguments[1],mt=dt===void 0?dt:O(dt),ht=0;ht<Le.length;){var Lt=Le[ht++];if(Lt.key===tt&&(mt===void 0||Lt.value===mt))return!0}return!1},set:function(xe,Le){var Se=L(this);A(arguments.length,1);for(var tt=Se.entries,dt=!1,mt=O(xe),ht=O(Le),Lt=0,Wt;Lt<tt.length;Lt++)Wt=tt[Lt],Wt.key===mt&&(dt?lt(tt,Lt--,1):(dt=!0,Wt.value=ht));dt||Xe(tt,{key:mt,value:ht}),c||(this.size=tt.length),Se.updateURL()},sort:function(){var xe=L(this);z(xe.entries,function(Le,Se){return Le.key>Se.key?1:-1}),xe.updateURL()},forEach:function(xe){for(var Le=L(this).entries,Se=S(xe,arguments.length>1?arguments[1]:void 0),tt=0,dt;tt<Le.length;)dt=Le[tt++],Se(dt.value,dt.key,this)},keys:function(){return new qe(this,"keys")},values:function(){return new qe(this,"values")},entries:function(){return new qe(this,"entries")}},{enumerable:!0}),d(he,P,he.entries,{name:"entries"}),d(he,"toString",function(){return L(this).serialize()},{enumerable:!0}),c&&g(he,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),h(Ne,F),e({global:!0,constructor:!0,forced:!f},{URLSearchParams:Ne}),!f&&N(B)){var Pe=l(se.has),ct=l(se.set),et=function(ge){if(w(ge)){var xe=ge.body,Le;if(E(xe)===F)return Le=ge.headers?new B(ge.headers):new B,Pe(Le,"content-type")||ct(Le,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(ge,{body:U(0,O(xe)),headers:U(0,Le)})}return ge};if(N(G)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(xe){return G(xe,arguments.length>1?et(arguments[1]):{})}}),N(b)){var bt=function(xe){return I(this,le),new b(xe,arguments.length>1?et(arguments[1]):{})};le.constructor=bt,bt.prototype=le,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:bt})}}return z8={URLSearchParams:Ne,getState:L},z8}var KK;function Fje(){if(KK)return VK;KK=1,jP();var e=Dt(),r=Vr(),n=QK(),a=Cr(),u=q2(),l=sr(),c=ua(),f=fu(),d=d3(),g=ii(),p=Vje(),h=nU(),y=E0(),v=uN().codeAt,I=$je(),N=ai(),j=Fl(),S=g3(),E=qK(),T=cu(),w=T.set,O=T.getterFor("URL"),k=E.URLSearchParams,U=E.getState,$=a.URL,V=a.TypeError,C=a.parseInt,A=Math.floor,x=Math.pow,z=l("".charAt),P=l(/./.exec),F=l([].join),W=l(1 .toString),X=l([].pop),L=l([].push),Y=l("".replace),G=l([].shift),b=l("".split),B=l("".slice),le=l("".toLowerCase),se=l([].unshift),ae="Invalid authority",De="Invalid scheme",be="Invalid host",Me="Invalid port",Ce=/[a-z]/i,$e=/[\d+-.a-z]/i,it=/\d/,Xe=/^0x/i,Be=/^[0-7]+$/,at=/^\d+$/,lt=/^[\da-f]+$/i,ft=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Qe=/[\0\t\n\r #/:<>?@[\\\]^|]/,We=/^[\u0000-\u0020]+/,nt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Ze=/[\t\n\r]/g,Ee,ke=function(re){var de=b(re,"."),ie,q,me,rt,_e,Et,gt;if(de.length&&de[de.length-1]===""&&de.length--,ie=de.length,ie>4)return re;for(q=[],me=0;me<ie;me++){if(rt=de[me],rt==="")return re;if(_e=10,rt.length>1&&z(rt,0)==="0"&&(_e=P(Xe,rt)?16:8,rt=B(rt,_e===8?1:2)),rt==="")Et=0;else{if(!P(_e===10?at:_e===8?Be:lt,rt))return re;Et=C(rt,_e)}L(q,Et)}for(me=0;me<ie;me++)if(Et=q[me],me===ie-1){if(Et>=x(256,5-ie))return null}else if(Et>255)return null;for(gt=X(q),me=0;me<q.length;me++)gt+=q[me]*x(256,3-me);return gt},oe=function(re){var de=[0,0,0,0,0,0,0,0],ie=0,q=null,me=0,rt,_e,Et,gt,Yt,Xt,ve,Tt=function(){return z(re,me)};if(Tt()===":"){if(z(re,1)!==":")return;me+=2,ie++,q=ie}for(;Tt();){if(ie===8)return;if(Tt()===":"){if(q!==null)return;me++,ie++,q=ie;continue}for(rt=_e=0;_e<4&&P(lt,Tt());)rt=rt*16+C(Tt(),16),me++,_e++;if(Tt()==="."){if(_e===0||(me-=_e,ie>6))return;for(Et=0;Tt();){if(gt=null,Et>0)if(Tt()==="."&&Et<4)me++;else return;if(!P(it,Tt()))return;for(;P(it,Tt());){if(Yt=C(Tt(),10),gt===null)gt=Yt;else{if(gt===0)return;gt=gt*10+Yt}if(gt>255)return;me++}de[ie]=de[ie]*256+gt,Et++,(Et===2||Et===4)&&ie++}if(Et!==4)return;break}else if(Tt()===":"){if(me++,!Tt())return}else if(Tt())return;de[ie++]=rt}if(q!==null)for(Xt=ie-q,ie=7;ie!==0&&Xt>0;)ve=de[ie],de[ie--]=de[q+Xt-1],de[q+--Xt]=ve;else if(ie!==8)return;return de},we=function(re){for(var de=null,ie=1,q=null,me=0,rt=0;rt<8;rt++)re[rt]!==0?(me>ie&&(de=q,ie=me),q=null,me=0):(q===null&&(q=rt),++me);return me>ie?q:de},je=function(re){var de,ie,q,me;if(typeof re=="number"){for(de=[],ie=0;ie<4;ie++)se(de,re%256),re=A(re/256);return F(de,".")}if(typeof re=="object"){for(de="",q=we(re),ie=0;ie<8;ie++)me&&re[ie]===0||(me&&(me=!1),q===ie?(de+=ie?":":"::",me=!0):(de+=W(re[ie],16),ie<7&&(de+=":")));return"["+de+"]"}return re},ce={},fe=p({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),Te=p({},fe,{"#":1,"?":1,"{":1,"}":1}),Ye=p({},Te,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),qe=function(re,de){var ie=v(re,0);return ie>32&&ie<127&&!g(de,re)?re:encodeURIComponent(re)},Ue={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ne=function(re,de){var ie;return re.length===2&&P(Ce,z(re,0))&&((ie=z(re,1))===":"||!de&&ie==="|")},he=function(re){var de;return re.length>1&&Ne(B(re,0,2))&&(re.length===2||(de=z(re,2))==="/"||de==="\\"||de==="?"||de==="#")},Pe=function(re){return re==="."||le(re)==="%2e"},ct=function(re){return re=le(re),re===".."||re==="%2e."||re===".%2e"||re==="%2e%2e"},et={},bt={},ge={},xe={},Le={},Se={},tt={},dt={},mt={},ht={},Lt={},Wt={},ir={},Vn={},yr={},Dn={},zt={},hr={},sn={},vr={},ar={},En=function(re,de,ie){var q=N(re),me,rt,_e;if(de){if(rt=this.parse(q),rt)throw new V(rt);this.searchParams=null}else{if(ie!==void 0&&(me=new En(ie,!0)),rt=this.parse(q,null,me),rt)throw new V(rt);_e=U(new k),_e.bindURL(this),this.searchParams=_e}};En.prototype={type:"URL",parse:function(re,de,ie){var q=this,me=de||et,rt=0,_e="",Et=!1,gt=!1,Yt=!1,Xt,ve,Tt,kr;for(re=N(re),de||(q.scheme="",q.username="",q.password="",q.host=null,q.port=null,q.path=[],q.query=null,q.fragment=null,q.cannotBeABaseURL=!1,re=Y(re,We,""),re=Y(re,nt,"$1")),re=Y(re,Ze,""),Xt=h(re);rt<=Xt.length;){switch(ve=Xt[rt],me){case et:if(ve&&P(Ce,ve))_e+=le(ve),me=bt;else{if(de)return De;me=ge;continue}break;case bt:if(ve&&(P($e,ve)||ve==="+"||ve==="-"||ve==="."))_e+=le(ve);else if(ve===":"){if(de&&(q.isSpecial()!==g(Ue,_e)||_e==="file"&&(q.includesCredentials()||q.port!==null)||q.scheme==="file"&&!q.host))return;if(q.scheme=_e,de){q.isSpecial()&&Ue[q.scheme]===q.port&&(q.port=null);return}_e="",q.scheme==="file"?me=Vn:q.isSpecial()&&ie&&ie.scheme===q.scheme?me=xe:q.isSpecial()?me=dt:Xt[rt+1]==="/"?(me=Le,rt++):(q.cannotBeABaseURL=!0,L(q.path,""),me=sn)}else{if(de)return De;_e="",me=ge,rt=0;continue}break;case ge:if(!ie||ie.cannotBeABaseURL&&ve!=="#")return De;if(ie.cannotBeABaseURL&&ve==="#"){q.scheme=ie.scheme,q.path=y(ie.path),q.query=ie.query,q.fragment="",q.cannotBeABaseURL=!0,me=ar;break}me=ie.scheme==="file"?Vn:Se;continue;case xe:if(ve==="/"&&Xt[rt+1]==="/")me=mt,rt++;else{me=Se;continue}break;case Le:if(ve==="/"){me=ht;break}else{me=hr;continue}case Se:if(q.scheme=ie.scheme,ve===Ee)q.username=ie.username,q.password=ie.password,q.host=ie.host,q.port=ie.port,q.path=y(ie.path),q.query=ie.query;else if(ve==="/"||ve==="\\"&&q.isSpecial())me=tt;else if(ve==="?")q.username=ie.username,q.password=ie.password,q.host=ie.host,q.port=ie.port,q.path=y(ie.path),q.query="",me=vr;else if(ve==="#")q.username=ie.username,q.password=ie.password,q.host=ie.host,q.port=ie.port,q.path=y(ie.path),q.query=ie.query,q.fragment="",me=ar;else{q.username=ie.username,q.password=ie.password,q.host=ie.host,q.port=ie.port,q.path=y(ie.path),q.path.length--,me=hr;continue}break;case tt:if(q.isSpecial()&&(ve==="/"||ve==="\\"))me=mt;else if(ve==="/")me=ht;else{q.username=ie.username,q.password=ie.password,q.host=ie.host,q.port=ie.port,me=hr;continue}break;case dt:if(me=mt,ve!=="/"||z(_e,rt+1)!=="/")continue;rt++;break;case mt:if(ve!=="/"&&ve!=="\\"){me=ht;continue}break;case ht:if(ve==="@"){Et&&(_e="%40"+_e),Et=!0,Tt=h(_e);for(var li=0;li<Tt.length;li++){var $n=Tt[li];if($n===":"&&!Yt){Yt=!0;continue}var mr=qe($n,Ye);Yt?q.password+=mr:q.username+=mr}_e=""}else if(ve===Ee||ve==="/"||ve==="?"||ve==="#"||ve==="\\"&&q.isSpecial()){if(Et&&_e==="")return ae;rt-=h(_e).length+1,_e="",me=Lt}else _e+=ve;break;case Lt:case Wt:if(de&&q.scheme==="file"){me=Dn;continue}else if(ve===":"&&!gt){if(_e==="")return be;if(kr=q.parseHost(_e),kr)return kr;if(_e="",me=ir,de===Wt)return}else if(ve===Ee||ve==="/"||ve==="?"||ve==="#"||ve==="\\"&&q.isSpecial()){if(q.isSpecial()&&_e==="")return be;if(de&&_e===""&&(q.includesCredentials()||q.port!==null))return;if(kr=q.parseHost(_e),kr)return kr;if(_e="",me=zt,de)return;continue}else ve==="["?gt=!0:ve==="]"&&(gt=!1),_e+=ve;break;case ir:if(P(it,ve))_e+=ve;else if(ve===Ee||ve==="/"||ve==="?"||ve==="#"||ve==="\\"&&q.isSpecial()||de){if(_e!==""){var Pi=C(_e,10);if(Pi>65535)return Me;q.port=q.isSpecial()&&Pi===Ue[q.scheme]?null:Pi,_e=""}if(de)return;me=zt;continue}else return Me;break;case Vn:if(q.scheme="file",ve==="/"||ve==="\\")me=yr;else if(ie&&ie.scheme==="file")switch(ve){case Ee:q.host=ie.host,q.path=y(ie.path),q.query=ie.query;break;case"?":q.host=ie.host,q.path=y(ie.path),q.query="",me=vr;break;case"#":q.host=ie.host,q.path=y(ie.path),q.query=ie.query,q.fragment="",me=ar;break;default:he(F(y(Xt,rt),""))||(q.host=ie.host,q.path=y(ie.path),q.shortenPath()),me=hr;continue}else{me=hr;continue}break;case yr:if(ve==="/"||ve==="\\"){me=Dn;break}ie&&ie.scheme==="file"&&!he(F(y(Xt,rt),""))&&(Ne(ie.path[0],!0)?L(q.path,ie.path[0]):q.host=ie.host),me=hr;continue;case Dn:if(ve===Ee||ve==="/"||ve==="\\"||ve==="?"||ve==="#"){if(!de&&Ne(_e))me=hr;else if(_e===""){if(q.host="",de)return;me=zt}else{if(kr=q.parseHost(_e),kr)return kr;if(q.host==="localhost"&&(q.host=""),de)return;_e="",me=zt}continue}else _e+=ve;break;case zt:if(q.isSpecial()){if(me=hr,ve!=="/"&&ve!=="\\")continue}else if(!de&&ve==="?")q.query="",me=vr;else if(!de&&ve==="#")q.fragment="",me=ar;else if(ve!==Ee&&(me=hr,ve!=="/"))continue;break;case hr:if(ve===Ee||ve==="/"||ve==="\\"&&q.isSpecial()||!de&&(ve==="?"||ve==="#")){if(ct(_e)?(q.shortenPath(),ve!=="/"&&!(ve==="\\"&&q.isSpecial())&&L(q.path,"")):Pe(_e)?ve!=="/"&&!(ve==="\\"&&q.isSpecial())&&L(q.path,""):(q.scheme==="file"&&!q.path.length&&Ne(_e)&&(q.host&&(q.host=""),_e=z(_e,0)+":"),L(q.path,_e)),_e="",q.scheme==="file"&&(ve===Ee||ve==="?"||ve==="#"))for(;q.path.length>1&&q.path[0]==="";)G(q.path);ve==="?"?(q.query="",me=vr):ve==="#"&&(q.fragment="",me=ar)}else _e+=qe(ve,Te);break;case sn:ve==="?"?(q.query="",me=vr):ve==="#"?(q.fragment="",me=ar):ve!==Ee&&(q.path[0]+=qe(ve,ce));break;case vr:!de&&ve==="#"?(q.fragment="",me=ar):ve!==Ee&&(ve==="'"&&q.isSpecial()?q.query+="%27":ve==="#"?q.query+="%23":q.query+=qe(ve,ce));break;case ar:ve!==Ee&&(q.fragment+=qe(ve,fe));break}rt++}},parseHost:function(re){var de,ie,q;if(z(re,0)==="["){if(z(re,re.length-1)!=="]"||(de=oe(B(re,1,-1)),!de))return be;this.host=de}else if(this.isSpecial()){if(re=I(re),P(ft,re)||(de=ke(re),de===null))return be;this.host=de}else{if(P(Qe,re))return be;for(de="",ie=h(re),q=0;q<ie.length;q++)de+=qe(ie[q],ce);this.host=de}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return g(Ue,this.scheme)},shortenPath:function(){var re=this.path,de=re.length;de&&(this.scheme!=="file"||de!==1||!Ne(re[0],!0))&&re.length--},serialize:function(){var re=this,de=re.scheme,ie=re.username,q=re.password,me=re.host,rt=re.port,_e=re.path,Et=re.query,gt=re.fragment,Yt=de+":";return me!==null?(Yt+="//",re.includesCredentials()&&(Yt+=ie+(q?":"+q:"")+"@"),Yt+=je(me),rt!==null&&(Yt+=":"+rt)):de==="file"&&(Yt+="//"),Yt+=re.cannotBeABaseURL?_e[0]:_e.length?"/"+F(_e,"/"):"",Et!==null&&(Yt+="?"+Et),gt!==null&&(Yt+="#"+gt),Yt},setHref:function(re){var de=this.parse(re);if(de)throw new V(de);this.searchParams.update()},getOrigin:function(){var re=this.scheme,de=this.port;if(re==="blob")try{return new cn(re.path[0]).origin}catch(ie){return"null"}return re==="file"||!this.isSpecial()?"null":re+"://"+je(this.host)+(de!==null?":"+de:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(re){this.parse(N(re)+":",et)},getUsername:function(){return this.username},setUsername:function(re){var de=h(N(re));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var ie=0;ie<de.length;ie++)this.username+=qe(de[ie],Ye)}},getPassword:function(){return this.password},setPassword:function(re){var de=h(N(re));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var ie=0;ie<de.length;ie++)this.password+=qe(de[ie],Ye)}},getHost:function(){var re=this.host,de=this.port;return re===null?"":de===null?je(re):je(re)+":"+de},setHost:function(re){this.cannotBeABaseURL||this.parse(re,Lt)},getHostname:function(){var re=this.host;return re===null?"":je(re)},setHostname:function(re){this.cannotBeABaseURL||this.parse(re,Wt)},getPort:function(){var re=this.port;return re===null?"":N(re)},setPort:function(re){this.cannotHaveUsernamePasswordPort()||(re=N(re),re===""?this.port=null:this.parse(re,ir))},getPathname:function(){var re=this.path;return this.cannotBeABaseURL?re[0]:re.length?"/"+F(re,"/"):""},setPathname:function(re){this.cannotBeABaseURL||(this.path=[],this.parse(re,zt))},getSearch:function(){var re=this.query;return re?"?"+re:""},setSearch:function(re){re=N(re),re===""?this.query=null:(z(re,0)==="?"&&(re=B(re,1)),this.query="",this.parse(re,vr)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var re=this.fragment;return re?"#"+re:""},setHash:function(re){if(re=N(re),re===""){this.fragment=null;return}z(re,0)==="#"&&(re=B(re,1)),this.fragment="",this.parse(re,ar)},update:function(){this.query=this.searchParams.serialize()||null}};var cn=function(de){var ie=d(this,Bt),q=S(arguments.length,1)>1?arguments[1]:void 0,me=w(ie,new En(de,!1,q));r||(ie.href=me.serialize(),ie.origin=me.getOrigin(),ie.protocol=me.getProtocol(),ie.username=me.getUsername(),ie.password=me.getPassword(),ie.host=me.getHost(),ie.hostname=me.getHostname(),ie.port=me.getPort(),ie.pathname=me.getPathname(),ie.search=me.getSearch(),ie.searchParams=me.getSearchParams(),ie.hash=me.getHash())},Bt=cn.prototype,cr=function(re,de){return{get:function(){return O(this)[re]()},set:de&&function(ie){return O(this)[de](ie)},configurable:!0,enumerable:!0}};if(r&&(f(Bt,"href",cr("serialize","setHref")),f(Bt,"origin",cr("getOrigin")),f(Bt,"protocol",cr("getProtocol","setProtocol")),f(Bt,"username",cr("getUsername","setUsername")),f(Bt,"password",cr("getPassword","setPassword")),f(Bt,"host",cr("getHost","setHost")),f(Bt,"hostname",cr("getHostname","setHostname")),f(Bt,"port",cr("getPort","setPort")),f(Bt,"pathname",cr("getPathname","setPathname")),f(Bt,"search",cr("getSearch","setSearch")),f(Bt,"searchParams",cr("getSearchParams")),f(Bt,"hash",cr("getHash","setHash"))),c(Bt,"toJSON",function(){return O(this).serialize()},{enumerable:!0}),c(Bt,"toString",function(){return O(this).serialize()},{enumerable:!0}),$){var Zr=$.createObjectURL,Ri=$.revokeObjectURL;Zr&&c(cn,"createObjectURL",u(Zr,$)),Ri&&c(cn,"revokeObjectURL",u(Ri,$))}return j(cn,"URL"),e({global:!0,constructor:!0,forced:!n,sham:!r},{URL:cn}),VK}var JK;function Zje(){return JK||(JK=1,Fje()),HK}Zje();var XK={},eJ;function Bje(){if(eJ)return XK;eJ=1;var e=Dt(),r=$r();return e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}}),XK}Bje();var tJ={},rJ;function Gje(){return rJ||(rJ=1,qK()),tJ}Gje();var nJ={},iJ;function Wje(){if(iJ)return nJ;iJ=1;var e=ua(),r=sr(),n=ai(),a=g3(),u=URLSearchParams,l=u.prototype,c=r(l.append),f=r(l.delete),d=r(l.forEach),g=r([].push),p=new u("a=1&a=2&b=3");return p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&e(l,"delete",function(h){var y=arguments.length,v=y<2?void 0:arguments[1];if(y&&v===void 0)return f(this,h);var I=[];d(this,function(k,U){g(I,{key:U,value:k})}),a(y,1);for(var N=n(h),j=n(v),S=0,E=0,T=!1,w=I.length,O;S<w;)O=I[S++],T||O.key===N?(T=!0,f(this,O.key)):E++;for(;E<w;)O=I[E++],O.key===N&&O.value===j||c(this,O.key,O.value)},{enumerable:!0,unsafe:!0}),nJ}Wje();var aJ={},oJ;function qje(){if(oJ)return aJ;oJ=1;var e=ua(),r=sr(),n=ai(),a=g3(),u=URLSearchParams,l=u.prototype,c=r(l.getAll),f=r(l.has),d=new u("a=1");return(d.has("a",2)||!d.has("a",void 0))&&e(l,"has",function(p){var h=arguments.length,y=h<2?void 0:arguments[1];if(h&&y===void 0)return f(this,p);var v=c(this,p);a(h,1);for(var I=n(y),N=0;N<v.length;)if(v[N++]===I)return!0;return!1},{enumerable:!0,unsafe:!0}),aJ}qje();var uJ={},lJ;function Kje(){if(lJ)return uJ;lJ=1;var e=Vr(),r=sr(),n=fu(),a=URLSearchParams.prototype,u=r(a.forEach);return e&&!("size"in a)&&n(a,"size",{get:function(){var c=0;return u(this,function(){c++}),c},configurable:!0,enumerable:!0}),uJ}Kje();var sJ={},cJ;function Jje(){if(cJ)return sJ;cJ=1;var e=Dt(),r=sr(),n=Date,a=r(n.prototype.getTime);return e({target:"Date",stat:!0},{now:function(){return a(new n)}}),sJ}Jje();function x4(e){"@babel/helpers - typeof";return x4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},x4(e)}function Xje(e,r){return n6e(e)||r6e(e,r)||t6e(e,r)||e6e()}function e6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
77
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t6e(e,r){if(e){if(typeof e=="string")return fJ(e,r);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fJ(e,r):void 0}}function fJ(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=Array(r);n<r;n++)a[n]=e[n];return a}function r6e(e,r){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,u,l,c,f=[],d=!0,g=!1;try{if(l=(n=n.call(e)).next,r!==0)for(;!(d=(a=l.call(n)).done)&&(f.push(a.value),f.length!==r);d=!0);}catch(p){g=!0,u=p}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(g)throw u}}return f}}function n6e(e){if(Array.isArray(e))return e}function i6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a6e(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,dJ(a.key),a)}}function o6e(e,r,n){return r&&a6e(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hy(e,r,n){return(r=dJ(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function dJ(e){var r=u6e(e,"string");return x4(r)=="symbol"?r:r+""}function u6e(e,r){if(x4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(x4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var l6e=function(){function e(){i6e(this,e),hy(this,"_domains",[]),hy(this,"_transports",[]),hy(this,"_logs",[]),hy(this,"_prevTime",0);try{if(!window.localStorage)return;var r=window.localStorage.getItem("logger");if(!r)return;var n=r.split(">"),a=Xje(n,2),u=a[0],l=a[1];this._domains=u.split(","),l&&(this._transports=l.split(","))}catch(c){return}}return o6e(e,[{key:"create",value:function(n,a){var u=this;return function(l){var c=Date.now(),f=new Date(c).toISOString(),d=0;if(u._prevTime&&(d=c-u._prevTime),u._prevTime=c,u._domains.includes(n)&&u._transports.includes("console")){var g=(a==null?void 0:a.color)||"blue";console.log("%c%s: %c%s %c+%dms","color: ".concat(g,";"),"".concat(f," ").concat(n),"",l,"color: ".concat(g,";"),d)}u._logs.push("".concat(f," ").concat(n,": ").concat(l," +").concat(d,"ms"))}}},{key:"getLogs",value:function(){return this._logs}},{key:"clearLogs",value:function(){this._logs=[]}},{key:"saveLogsToFile",value:function(){if(!(!this._transports.includes("file")||!this._logs.length)){var n=this._logs.join(`
78
- `),a=new Blob([n],{type:"text/plain"}),u=window.URL.createObjectURL(a),l=document.createElement("a");l.download="log.txt",l.href=u,l.click(),window.URL.revokeObjectURL(u),this.clearLogs()}}}])}(),A3=new l6e;function Dd(e){"@babel/helpers - typeof";return Dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dd(e)}function an(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */an=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(C,A,x,z){return Object.defineProperty(C,A,{value:x,enumerable:!z,configurable:!z,writable:!z})}try{d({},"")}catch(C){d=function(x,z,P){return x[z]=P}}function g(C,A,x,z){var P=A&&A.prototype instanceof y?A:y,F=Object.create(P.prototype);return d(F,"_invoke",function(W,X,L){var Y=1;return function(G,b){if(Y===3)throw Error("Generator is already running");if(Y===4){if(G==="throw")throw b;return{value:e,done:!0}}for(L.method=G,L.arg=b;;){var B=L.delegate;if(B){var le=O(B,L);if(le){if(le===h)continue;return le}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y===1)throw Y=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y=3;var se=p(W,X,L);if(se.type==="normal"){if(Y=L.done?4:2,se.arg===h)continue;return{value:se.arg,done:L.done}}se.type==="throw"&&(Y=4,L.method="throw",L.arg=se.arg)}}}(C,x,new $(z||[])),!0),F}function p(C,A,x){try{return{type:"normal",arg:C.call(A,x)}}catch(z){return{type:"throw",arg:z}}}r.wrap=g;var h={};function y(){}function v(){}function I(){}var N={};d(N,l,function(){return this});var j=Object.getPrototypeOf,S=j&&j(j(V([])));S&&S!==n&&a.call(S,l)&&(N=S);var E=I.prototype=y.prototype=Object.create(N);function T(C){["next","throw","return"].forEach(function(A){d(C,A,function(x){return this._invoke(A,x)})})}function w(C,A){function x(P,F,W,X){var L=p(C[P],C,F);if(L.type!=="throw"){var Y=L.arg,G=Y.value;return G&&Dd(G)=="object"&&a.call(G,"__await")?A.resolve(G.__await).then(function(b){x("next",b,W,X)},function(b){x("throw",b,W,X)}):A.resolve(G).then(function(b){Y.value=b,W(Y)},function(b){return x("throw",b,W,X)})}X(L.arg)}var z;d(this,"_invoke",function(P,F){function W(){return new A(function(X,L){x(P,F,X,L)})}return z=z?z.then(W,W):W()},!0)}function O(C,A){var x=A.method,z=C.i[x];if(z===e)return A.delegate=null,x==="throw"&&C.i.return&&(A.method="return",A.arg=e,O(C,A),A.method==="throw")||x!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+x+"' method")),h;var P=p(z,C.i,A.arg);if(P.type==="throw")return A.method="throw",A.arg=P.arg,A.delegate=null,h;var F=P.arg;return F?F.done?(A[C.r]=F.value,A.next=C.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,h):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,h)}function k(C){this.tryEntries.push(C)}function U(C){var A=C[4]||{};A.type="normal",A.arg=e,C[4]=A}function $(C){this.tryEntries=[[-1]],C.forEach(k,this),this.reset(!0)}function V(C){if(C!=null){var A=C[l];if(A)return A.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var x=-1,z=function P(){for(;++x<C.length;)if(a.call(C,x))return P.value=C[x],P.done=!1,P;return P.value=e,P.done=!0,P};return z.next=z}}throw new TypeError(Dd(C)+" is not iterable")}return v.prototype=I,d(E,"constructor",I),d(I,"constructor",v),v.displayName=d(I,f,"GeneratorFunction"),r.isGeneratorFunction=function(C){var A=typeof C=="function"&&C.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,I):(C.__proto__=I,d(C,f,"GeneratorFunction")),C.prototype=Object.create(E),C},r.awrap=function(C){return{__await:C}},T(w.prototype),d(w.prototype,c,function(){return this}),r.AsyncIterator=w,r.async=function(C,A,x,z,P){P===void 0&&(P=Promise);var F=new w(g(C,A,x,z),P);return r.isGeneratorFunction(A)?F:F.next().then(function(W){return W.done?W.value:F.next()})},T(E),d(E,f,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(C){var A=Object(C),x=[];for(var z in A)x.unshift(z);return function P(){for(;x.length;)if((z=x.pop())in A)return P.value=z,P.done=!1,P;return P.done=!0,P}},r.values=V,$.prototype={constructor:$,reset:function(A){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!A)for(var x in this)x.charAt(0)==="t"&&a.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0][4];if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var x=this;function z(G){W.type="throw",W.arg=A,x.next=G}for(var P=x.tryEntries.length-1;P>=0;--P){var F=this.tryEntries[P],W=F[4],X=this.prev,L=F[1],Y=F[2];if(F[0]===-1)return z("end"),!1;if(!L&&!Y)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=X){if(X<L)return this.method="next",this.arg=e,z(L),!0;if(X<Y)return z(Y),!1}}},abrupt:function(A,x){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P[0]>-1&&P[0]<=this.prev&&this.prev<P[2]){var F=P;break}}F&&(A==="break"||A==="continue")&&F[0]<=x&&x<=F[2]&&(F=null);var W=F?F[4]:{};return W.type=A,W.arg=x,F?(this.method="next",this.next=F[2],h):this.complete(W)},complete:function(A,x){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&x&&(this.next=x),h},finish:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[2]===A)return this.complete(z[4],z[3]),U(z),h}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[0]===A){var P=z[4];if(P.type==="throw"){var F=P.arg;U(z)}return F}}throw Error("illegal catch attempt")},delegateYield:function(A,x,z){return this.delegate={i:V(A),r:x,n:z},this.method==="next"&&(this.arg=e),h}},r}function gJ(e,r,n,a,u,l,c){try{var f=e[l](c),d=f.value}catch(g){return void n(g)}f.done?r(d):Promise.resolve(d).then(a,u)}function uo(e){return function(){var r=this,n=arguments;return new Promise(function(a,u){var l=e.apply(r,n);function c(d){gJ(l,a,u,c,f,"next",d)}function f(d){gJ(l,a,u,c,f,"throw",d)}c(void 0)})}}function s6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function c6e(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,MJ(a.key),a)}}function f6e(e,r,n){return r&&c6e(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w3(e,r,n){return(r=MJ(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function MJ(e){var r=d6e(e,"string");return Dd(r)=="symbol"?r:r+""}function d6e(e,r){if(Dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(Dd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var S3=A3.create("session_log"),g6e=function(){function e(r){s6e(this,e),w3(this,"_worker",null),w3(this,"_initialized",!1),w3(this,"_connectedToIdv",!1),w3(this,"_serviceRunning",!1),w3(this,"_userId",P5e(QMe)),w3(this,"_setErrorScreen",null),r&&(this._setErrorScreen=r)}return f6e(e,[{key:"init",value:function(){var r=uo(an().mark(function a(){var u,l,c,f;return an().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=1,g.next=4,fetch("https://wasm-development.regulaforensics.com/idv/nightly/2.5/dbed351-00d10caa9//PlatformAdaptor.worker.js");case 4:return u=g.sent,g.next=7,u.blob();case 7:l=g.sent,c=URL.createObjectURL(l),this._worker=new Worker(c),g.next=15;break;case 12:g.prev=12,g.t0=g.catch(1),console.log("Creating worker error: ".concat(JSON.stringify(g.t0)));case 15:g.next=18;break;case 17:this._worker=new Worker("./PlatformAdaptor.worker.js");case 18:if(this._worker){g.next=20;break}return g.abrupt("return");case 20:return this._worker.postMessage({target:"gl",op:"setPrefetched",preMain:!0}),g.next=23,this.sendMessage({target:"worker-init",URL:document.URL,currentScriptUrl:"https://wasm-development.regulaforensics.com/idv/nightly/2.5/dbed351-00d10caa9/",preMain:!0});case 23:return f=g.sent,g.abrupt("return",f);case 25:case"end":return g.stop()}},a,this,[[1,12]])}));function n(){return r.apply(this,arguments)}return n}()},{key:"prepareAndConnect",value:function(){var r=uo(an().mark(function a(u){var l,c;return an().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,this.sendMessage({target:"custom",method:"connect_idv",connectionParams:{deviceDescriptor:{deviceId:this._userId,deviceType:vN.deviceType,serial:"1111111222211",macAddress:"00:00:00:00:00:00",heartbeatCadence:2},host:u.host,httpRetryCount:u.httpRetryCount||0,httpTimeoutMs:u.httpTimeoutMs||0,isSecure:(l=u.isSecure)!==null&&l!==void 0?l:!0,password:u.password,port:u.port?u.port:0,schema:u.schema?u.schema:"basic",userName:u.userName},preMain:!0});case 2:return c=d.sent,c.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),d.abrupt("return",c);case 5:case"end":return d.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"connectByUrl",value:function(){var r=uo(an().mark(function a(u){var l;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.sendMessage({target:"custom",method:"connect_by_url",connectByUrlParams:{deviceDescriptor:{deviceId:this._userId,deviceType:vN.deviceType,serial:"1111111222211",macAddress:"00:00:00:00:00:00",heartbeatCadence:2},httpRetryCount:5,httpTimeoutMs:1e3,url:u},preMain:!0});case 2:return l=f.sent,l.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),f.abrupt("return",l);case 5:case"end":return f.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"startSession",value:function(){var r=uo(an().mark(function a(u,l,c){var f,d;return an().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f={workflowId:u,locale:l},U5e(c)&&(f.metadata=c),p.next=4,this.sendMessage({target:"custom",method:"start_session",sessionParams:f,preMain:!0});case 4:return d=p.sent,d.code===0&&(A3.clearLogs(),S3("Command: 5. Result code: ".concat(d.code,". Session id: ").concat(d.data.id,". Cur step: ").concat(d.data.currentStep,"."))),p.abrupt("return",d);case 7:case"end":return p.stop()}},a,this)}));function n(a,u,l){return r.apply(this,arguments)}return n}()},{key:"continueSession",value:function(){var r=uo(an().mark(function a(u,l){var c,f;return an().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return c={sessionId:u,locale:l},g.next=3,this.sendMessage({continueParams:c,target:"custom",method:"continue_session",preMain:!0});case 3:return f=g.sent,f.code===0&&(A3.clearLogs(),S3("Command: 10. Result code: ".concat(f.code,". Session id: ").concat(f.data.id,". Cur step: ").concat(f.data.currentStep,"."))),g.abrupt("return",f);case 6:case"end":return g.stop()}},a,this)}));function n(a,u){return r.apply(this,arguments)}return n}()},{key:"listWorkflows",value:function(){var r=uo(an().mark(function a(){var u,l,c=arguments;return an().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return u=c.length>0&&c[0]!==void 0?c[0]:{limit:0,skip:0},d.next=3,this.sendMessage({workflowsParams:u,target:"custom",method:"list_workflows",preMain:!0});case 3:return l=d.sent,d.abrupt("return",l);case 5:case"end":return d.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getHealth",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"get_health",preMain:!0});case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getServiceToken",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"get_service_token",preMain:!0});case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"abandonSession",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"abandon_session",preMain:!0});case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getWorkflow",value:function(){var r=uo(an().mark(function a(u){var l;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.sendMessage({workflowIdParams:{workflowId:u},target:"custom",method:"get_workflow",preMain:!0});case 2:return l=f.sent,f.abrupt("return",l);case 4:case"end":return f.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"pushData",value:function(){var r=uo(an().mark(function a(u,l){var c;return an().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return S3("Command: 9. Request payload: ".concat(JSON.stringify(l))),d.next=3,this.sendMessage({target:"custom",method:"push_data",pushDataParams:{data:l,stage:0,step:u},preMain:!0});case 3:return c=d.sent,S3("Command: 9. Result code: ".concat(c.code)),d.abrupt("return",c);case 6:case"end":return d.stop()}},a,this)}));function n(a,u){return r.apply(this,arguments)}return n}()},{key:"getSessionState",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"get_session_state",preMain:!0});case 2:return u=c.sent,S3("Command: 7. Result code: ".concat(u.code,". Cur step: ").concat(u.data.currentStep,". Proc files: ").concat(u.data.isProcessingFiles)),c.abrupt("return",u);case 5:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"waitForSessionUpdate",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({waitingSessionParams:{periodMs:1e3},target:"custom",method:"wait_for_session_update",preMain:!0});case 2:return u=c.sent,S3("Command: 8. Result code: ".concat(u.code)),c.abrupt("return",u);case 5:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"pushSessionLogs",value:function(){var r=uo(an().mark(function a(u){var l;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.sendMessage({target:"custom",method:"push_session_logs",pushSessionLogsParams:u,preMain:!0});case 2:return l=f.sent,f.abrupt("return",l);case 4:case"end":return f.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"disconnect",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"disconnect",preMain:!0});case 2:return u=c.sent,this._connectedToIdv=!1,this._serviceRunning=!1,c.abrupt("return",u);case 6:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"sendMessage",value:function(){var r=uo(an().mark(function a(u){var l=this;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",new Promise(function(d,g){if(!l._worker)return g();l._worker.onmessage=function(p){var h=p.data.target;if(h!=="stdout"){if(h==="custom"){var y=p.data,v=y.method,I=y.data;v==="onRuntimeInitialized"&&(l._initialized=!0),d(I)}if(h==="stderr"){var N=p.data.content;l._setErrorScreen&&l._setErrorScreen(N)}}},l._worker.postMessage(u)}));case 1:case"end":return f.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"isServiceRunning",value:function(){return this._serviceRunning}},{key:"isServiceConnected",value:function(){return this._connectedToIdv}},{key:"terminateWorker",value:function(){if(this.isServiceRunning()){var n;(n=this._worker)===null||n===void 0||n.terminate(),this._serviceRunning=!1,this._initialized=!1,this._connectedToIdv=!1}}},{key:"shutdown",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this._worker){c.next=2;break}return c.abrupt("return",{code:0});case 2:if(this._connectedToIdv){c.next=5;break}return this.terminateWorker(),c.abrupt("return",{code:0});case 5:return c.next=7,this.disconnect();case 7:return u=c.sent,this.terminateWorker(),c.abrupt("return",u);case 10:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()}])}();function Ed(e){"@babel/helpers - typeof";return Ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ed(e)}function pJ(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function b4(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?pJ(Object(n),!0).forEach(function(a){_8(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pJ(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function _8(e,r,n){return(r=M6e(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function M6e(e){var r=p6e(e,"string");return Ed(r)=="symbol"?r:r+""}function p6e(e,r){if(Ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(Ed(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ei(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */Ei=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(C,A,x,z){return Object.defineProperty(C,A,{value:x,enumerable:!z,configurable:!z,writable:!z})}try{d({},"")}catch(C){d=function(x,z,P){return x[z]=P}}function g(C,A,x,z){var P=A&&A.prototype instanceof y?A:y,F=Object.create(P.prototype);return d(F,"_invoke",function(W,X,L){var Y=1;return function(G,b){if(Y===3)throw Error("Generator is already running");if(Y===4){if(G==="throw")throw b;return{value:e,done:!0}}for(L.method=G,L.arg=b;;){var B=L.delegate;if(B){var le=O(B,L);if(le){if(le===h)continue;return le}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y===1)throw Y=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y=3;var se=p(W,X,L);if(se.type==="normal"){if(Y=L.done?4:2,se.arg===h)continue;return{value:se.arg,done:L.done}}se.type==="throw"&&(Y=4,L.method="throw",L.arg=se.arg)}}}(C,x,new $(z||[])),!0),F}function p(C,A,x){try{return{type:"normal",arg:C.call(A,x)}}catch(z){return{type:"throw",arg:z}}}r.wrap=g;var h={};function y(){}function v(){}function I(){}var N={};d(N,l,function(){return this});var j=Object.getPrototypeOf,S=j&&j(j(V([])));S&&S!==n&&a.call(S,l)&&(N=S);var E=I.prototype=y.prototype=Object.create(N);function T(C){["next","throw","return"].forEach(function(A){d(C,A,function(x){return this._invoke(A,x)})})}function w(C,A){function x(P,F,W,X){var L=p(C[P],C,F);if(L.type!=="throw"){var Y=L.arg,G=Y.value;return G&&Ed(G)=="object"&&a.call(G,"__await")?A.resolve(G.__await).then(function(b){x("next",b,W,X)},function(b){x("throw",b,W,X)}):A.resolve(G).then(function(b){Y.value=b,W(Y)},function(b){return x("throw",b,W,X)})}X(L.arg)}var z;d(this,"_invoke",function(P,F){function W(){return new A(function(X,L){x(P,F,X,L)})}return z=z?z.then(W,W):W()},!0)}function O(C,A){var x=A.method,z=C.i[x];if(z===e)return A.delegate=null,x==="throw"&&C.i.return&&(A.method="return",A.arg=e,O(C,A),A.method==="throw")||x!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+x+"' method")),h;var P=p(z,C.i,A.arg);if(P.type==="throw")return A.method="throw",A.arg=P.arg,A.delegate=null,h;var F=P.arg;return F?F.done?(A[C.r]=F.value,A.next=C.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,h):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,h)}function k(C){this.tryEntries.push(C)}function U(C){var A=C[4]||{};A.type="normal",A.arg=e,C[4]=A}function $(C){this.tryEntries=[[-1]],C.forEach(k,this),this.reset(!0)}function V(C){if(C!=null){var A=C[l];if(A)return A.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var x=-1,z=function P(){for(;++x<C.length;)if(a.call(C,x))return P.value=C[x],P.done=!1,P;return P.value=e,P.done=!0,P};return z.next=z}}throw new TypeError(Ed(C)+" is not iterable")}return v.prototype=I,d(E,"constructor",I),d(I,"constructor",v),v.displayName=d(I,f,"GeneratorFunction"),r.isGeneratorFunction=function(C){var A=typeof C=="function"&&C.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,I):(C.__proto__=I,d(C,f,"GeneratorFunction")),C.prototype=Object.create(E),C},r.awrap=function(C){return{__await:C}},T(w.prototype),d(w.prototype,c,function(){return this}),r.AsyncIterator=w,r.async=function(C,A,x,z,P){P===void 0&&(P=Promise);var F=new w(g(C,A,x,z),P);return r.isGeneratorFunction(A)?F:F.next().then(function(W){return W.done?W.value:F.next()})},T(E),d(E,f,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(C){var A=Object(C),x=[];for(var z in A)x.unshift(z);return function P(){for(;x.length;)if((z=x.pop())in A)return P.value=z,P.done=!1,P;return P.done=!0,P}},r.values=V,$.prototype={constructor:$,reset:function(A){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!A)for(var x in this)x.charAt(0)==="t"&&a.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0][4];if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var x=this;function z(G){W.type="throw",W.arg=A,x.next=G}for(var P=x.tryEntries.length-1;P>=0;--P){var F=this.tryEntries[P],W=F[4],X=this.prev,L=F[1],Y=F[2];if(F[0]===-1)return z("end"),!1;if(!L&&!Y)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=X){if(X<L)return this.method="next",this.arg=e,z(L),!0;if(X<Y)return z(Y),!1}}},abrupt:function(A,x){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P[0]>-1&&P[0]<=this.prev&&this.prev<P[2]){var F=P;break}}F&&(A==="break"||A==="continue")&&F[0]<=x&&x<=F[2]&&(F=null);var W=F?F[4]:{};return W.type=A,W.arg=x,F?(this.method="next",this.next=F[2],h):this.complete(W)},complete:function(A,x){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&x&&(this.next=x),h},finish:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[2]===A)return this.complete(z[4],z[3]),U(z),h}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[0]===A){var P=z[4];if(P.type==="throw"){var F=P.arg;U(z)}return F}}throw Error("illegal catch attempt")},delegateYield:function(A,x,z){return this.delegate={i:V(A),r:x,n:z},this.method==="next"&&(this.arg=e),h}},r}function yJ(e,r,n,a,u,l,c){try{var f=e[l](c),d=f.value}catch(g){return void n(g)}f.done?r(d):Promise.resolve(d).then(a,u)}function Ts(e){return function(){var r=this,n=arguments;return new Promise(function(a,u){var l=e.apply(r,n);function c(d){yJ(l,a,u,c,f,"next",d)}function f(d){yJ(l,a,u,c,f,"throw",d)}c(void 0)})}}var y6e=function(r,n){return{wasmService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitWasmService:function(){var a=Ts(Ei().mark(function l(){var c;return Ei().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return c=new g6e,d.next=3,c.init();case 3:r({wasmService:c});case 4:case"end":return d.stop()}},l)}));function u(){return a.apply(this,arguments)}return u}(),setFinalWaitingUi:function(u){r({isFinalWaitingUi:u})},connectToIdv:function(u){return Ts(Ei().mark(function l(){var c,f,d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!((c=n().wasmService)!==null&&c!==void 0&&c.isServiceConnected())){y.next=3;break}return y.next=3,(f=n().wasmService)===null||f===void 0?void 0:f.disconnect();case 3:return y.next=5,n().wasmService.prepareAndConnect(u);case 5:if(d=y.sent,g=null,d.code===4&&(g=fd.HTTP_ISSUE),d.code!==0&&d.code!==4&&(g=fd.PROVIDER_ERROR),g===null){y.next=12;break}return p=new Gg({errorCode:g}),y.abrupt("return",{error:p});case 12:return y.abrupt("return",{});case 13:case"end":return y.stop()}},l)}))()},connectByUrl:function(u){return Ts(Ei().mark(function l(){var c,f,d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=n().wasmService,y.next=3,c.connectByUrl(u);case 3:if(f=y.sent,d=null,f.code===4&&(d=fd.HTTP_ISSUE),f.code!==0&&f.code!==4&&(d=fd.PROVIDER_ERROR),d===null){y.next=13;break}return g=new Gg({errorCode:d}),p=new O5({errorCode:NN.CONNECTION_ISSUE,underlyingBaseError:g}),y.abrupt("return",{workflows:[],error:p});case 13:return y.abrupt("return",{workflows:f.data});case 14:case"end":return y.stop()}},l)}))()},workflowSessionCompletion:function(){},setWorkflowSessionCompletion:function(u){var l=function(f){var d,g=(d=n().currentSessionData)===null||d===void 0?void 0:d.sessionId,p=b4(b4({},f.results),{},{sessionId:g}),h=b4({results:p},f.error&&{error:f.error});if(n().setCurrentSessionDataLsAndStore(null),u(h),f.error){var y=A3.getLogs(),v=y.join("; ");n().wasmService.pushSessionLogs({sessionId:g,body:{log:v,errorCode:f.error.shortChain,deviceInfo:{platform:"Web"}}})}A3.clearLogs()};r(function(){return{workflowSessionCompletion:l}})},loadModules:function(){var a=Ts(Ei().mark(function l(){var c,f,d,g;return Ei().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return c=n().externalModulesNames,h.prev=1,h.next=4,h6e(c);case 4:return f=h.sent,r(function(){return{externalModules:f}}),h.abrupt("return",{});case 9:return h.prev=9,h.t0=h.catch(1),(d=n().wasmService)===null||d===void 0||d.shutdown(),n().resetWasmService(),n().resetProps(),g=new Bg({errorCode:Lg.MODULES_INSTANTIATION_FAILURE}),h.abrupt("return",{error:g});case 16:case"end":return h.stop()}},l,null,[[1,9]])}));function u(){return a.apply(this,arguments)}return u}(),setProcessingTemplate:function(u){var l=Oj(u.find(function(c){return c.templateId===jN}));l.templateLayout=l$(l.templateLayout,n().layout),r({processingTransformedTemplate:l})},setIsProcessing:function(u){r({isProcessing:u})},_pushStep:function(){var a=Ts(Ei().mark(function l(c,f){var d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return d=null,g=function(){var v=Ts(Ei().mark(function I(){var N,j,S,E;return Ei().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,n().wasmService.pushData(c,f);case 2:if(N=w.sent,j=null,N.code===4&&(j=Zl.HTTP_ISSUE),N.code!==0&&N.code!==4&&(j=Zl.PROVIDER_ERROR),j!==null&&(S=new y3({errorCode:Zl.HTTP_ISSUE}),E=new ao({errorCode:io.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:S}),d=E),N.code!==0){w.next=12;break}return d=null,w.abrupt("return",N);case 12:return w.abrupt("return",null);case 13:case"end":return w.stop()}},I)}));return function(){return v.apply(this,arguments)}}(),p=function(){return null},y.next=5,Lj(g,p);case 5:return y.abrupt("return",d?{error:d}:{});case 6:case"end":return y.stop()}},l)}));function u(l,c){return a.apply(this,arguments)}return u}(),_findStepById:function(u){var l=n().workflow;if(!l||!u)return null;var c=l.steps.find(function(f){return f.id===u});return c!=null?c:null},_waitingForNextStep:function(){var a=Ts(Ei().mark(function l(){var c,f,d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=null,f=function(){var v=Ts(Ei().mark(function I(){var N,j,S,E,T,w,O,k,U,$,V,C,A,x;return Ei().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,n().wasmService.getSessionState();case 2:if(E=P.sent,T=(N=E.data)===null||N===void 0?void 0:N.currentStep,w=(j=E.data)===null||j===void 0?void 0:j.isProcessingFiles,O=(S=E.data)===null||S===void 0||(S=S.workflow)===null||S===void 0?void 0:S.steps,k=z5e(O,T),U=E.code===4,$=E.code!==0&&E.code!==4,V=E.code===0&&(!E.data.workflow||!E.data.currentStep),C=null,O&&!k&&(C=Zl.NOT_DATA_TYPE),U&&(C=Zl.HTTP_ISSUE),$&&(C=Zl.PROVIDER_ERROR),w&&(C=Zl.IS_PROCESSING),V&&(C=Zl.DECODING_FAILED),C!==null&&(A=new y3({errorCode:C}),x=new ao({errorCode:io.INTERNAL_ISSUE,underlyingBaseError:A}),c=x),!(k&&!w&&!U&&!$&&!V)){P.next=20;break}return c=null,P.abrupt("return",E.data);case 20:return P.abrupt("return",null);case 21:case"end":return P.stop()}},I)}));return function(){return v.apply(this,arguments)}}(),d=function(){return null},y.next=5,Lj(f,d);case 5:if(g=y.sent,!c){y.next=8;break}return y.abrupt("return",{error:c});case 8:if(!g){y.next=10;break}return y.abrupt("return",{sessionData:g});case 10:return c=new y3({errorCode:Zl.DECODING_FAILED}),p=new ao({errorCode:io.INTERNAL_ISSUE,underlyingBaseError:c}),y.abrupt("return",{error:p});case 13:case"end":return y.stop()}},l)}));function u(){return a.apply(this,arguments)}return u}(),setFinalStepAndStopProcess:function(u){var l=u||n().currentStepId;if(l){var c=n()._findStepById(l);c&&(n().workflowSessionCompletion({results:{finalStep:{id:c.id,name:c.name,final:c.final}}}),n().resetSession(),n().listener({eventType:Og.MESSAGE,message:kg.DID_END_SESSION,module:"IDV"}))}},pushStepWaitNextStepAndSet:function(){var a=Ts(Ei().mark(function l(c){var f,d,g,p,h,y,v,I,N;return Ei().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n().currentStepId,f){S.next=3;break}return S.abrupt("return");case 3:if(n().setIsProcessing(!0),!n().isFinalWaitingUi){S.next=7;break}return n().setFinalStepAndStopProcess(),S.abrupt("return");case 7:if(!(c instanceof Pn)){S.next=13;break}return d=c,g=new ao({errorCode:io.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:d}),n().workflowSessionCompletion({error:g}),n().resetSession(),S.abrupt("return");case 13:return S.next=15,n()._pushStep(f,c);case 15:if(p=S.sent,!p.error){S.next=20;break}return n().workflowSessionCompletion({error:p.error}),n().resetSession(),S.abrupt("return");case 20:return S.next=22,n()._waitingForNextStep();case 22:if(h=S.sent,!h.error){S.next=27;break}return n().workflowSessionCompletion({error:h.error}),n().resetSession(),S.abrupt("return");case 27:if(y=h.sessionData.workflow,v=h.sessionData.currentStep,n().setWorkflow(y),n().setLayout(y.client.layout),n().setProcessingTemplate(y.client.steps),n().setSessionProperties(h.sessionData.properties),I=n()._findStepById(v),N=function(T){return!!T&&Object.prototype.toString.call(T)==="[object Object]"&&T.templateId},!(I!=null&&I.final&&!N(I.client))){S.next=38;break}return n().setFinalStepAndStopProcess(I.id),S.abrupt("return");case 38:I!=null&&I.final&&N(I.client)&&n().setFinalWaitingUi(!0),n().onChangeScreen(v),n().setIsProcessing(!1);case 41:case"end":return S.stop()}},l)}));function u(l){return a.apply(this,arguments)}return u}(),onChangeScreen:function(u){if(!u)return r(function(){return{currentScreenConfig:null}});var l=n().workflow,c=n().sessionProperties,f=null;if(u===jN&&n().processingTransformedTemplate!==null){var d=n().processingTransformedTemplate;d&&(f={templateId:d.templateId,templateLayout:d.templateLayout,dataSource:null})}else{var g,p,h=n()._findStepById(u);if(typeof(h==null||(g=h.client)===null||g===void 0?void 0:g.templateId)=="string"){var y;f=b4(b4({},h==null?void 0:h.client),{},{templateId:h.client.templateId,dataSource:(y=h.dataSource)!==null&&y!==void 0?y:null,properties:c})}if(f){var v;f.sessionId=(v=n().currentSessionData)===null||v===void 0?void 0:v.sessionId,f.serviceToken=n().serviceToken}if(f&&H5e(h==null||(p=h.client)===null||p===void 0?void 0:p.templateLayout)){var I=l$(h.client.templateLayout,n().layout);I&&(f.templateLayout=I)}}var N=L5e(n().externalModules,l.steps,u);if(f===null||!N){var j=new ao({errorCode:io.UNKNOWN_STEP,message:"Unsupported step template"});n().workflowSessionCompletion({error:j}),r(function(){return{currentScreenConfig:null}}),n().resetSession();return}n().setCurrentStepId(u),r(function(){return{currentScreenConfig:f}})},deinitializationIdv:function(){var a=Ts(Ei().mark(function l(){var c,f;return Ei().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(c=n().wasmService)===null||c===void 0?void 0:c.shutdown();case 2:if(f=g.sent,n().resetWasmService(),n().externalModules.forEach(function(p){p.component.deinitialize&&p.component.isReady&&p.component.deinitialize()}),(f==null?void 0:f.code)!==0){g.next=7;break}return g.abrupt("return",{});case 7:return g.abrupt("return",{});case 8:case"end":return g.stop()}},l)}));function u(){return a.apply(this,arguments)}return u}(),resetSession:function(){return r(function(){return{isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0}})},resetWasmService:function(){return r(function(){return{wasmService:null}})}}};function h6e(e){return R8.apply(this,arguments)}function R8(){return R8=Ts(Ei().mark(function e(r){var n,a,u,l,c,f;return Ei().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:n=[{id:C2.getIdentifier(),supportedTemplates:C2.getSupportedTemplates(),component:C2}],a=_8(_8({},IN.LIVENESS,function(){return Promise.resolve().then(()=>Mrt)}),IN.DOC_READER,function(){return Promise.resolve().then(()=>TOt)}),u=Ei().mark(function p(){var h,y,v;return Ei().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(h=c[l],y=function(){return a[h]()},!y){N.next=7;break}return N.next=5,y();case 5:v=N.sent,n.push({id:v.default.getIdentifier(),supportedTemplates:v.default.getSupportedTemplates(),component:v.default});case 7:case"end":return N.stop()}},p)}),l=0,c=r;case 4:if(!(l<c.length)){g.next=9;break}return g.delegateYield(u(),"t0",6);case 6:l++,g.next=4;break;case 9:return f=n.filter(function(p){return p!==null}),g.abrupt("return",f);case 11:case"end":return g.stop()}},e)})),R8.apply(this,arguments)}function O4(e){"@babel/helpers - typeof";return O4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O4(e)}function hJ(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function P8(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?hJ(Object(n),!0).forEach(function(a){v6e(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hJ(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function v6e(e,r,n){return(r=m6e(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function m6e(e){var r=I6e(e,"string");return O4(r)=="symbol"?r:r+""}function I6e(e,r){if(O4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(O4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var pa=Lpe(function(){return P8(P8(P8({},B5e.apply(void 0,arguments)),sye.apply(void 0,arguments)),y6e.apply(void 0,arguments))}),vJ=function(r){var n=r.children;return Xn.jsx("div",{style:{position:"absolute",top:0,left:0,flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%",background:"white",zIndex:1e3},children:n})};function k4(e){"@babel/helpers - typeof";return k4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},k4(e)}function mJ(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function IJ(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?mJ(Object(n),!0).forEach(function(a){N6e(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mJ(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function N6e(e,r,n){return(r=j6e(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function j6e(e){var r=D6e(e,"string");return k4(r)=="symbol"?r:r+""}function D6e(e,r){if(k4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(k4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var E6e=function(){var r=pa(function(v){return v.currentScreenConfig}),n=pa(function(v){return v.pushStepWaitNextStepAndSet}),a=pa(function(v){return v.processingTransformedTemplate}),u=pa(function(v){return v.isProcessing}),l=pa(function(v){return v.setIsProcessing}),c=pa(function(v){return v.listener}),f=pa(function(v){return v.externalModules}),d=pa(function(v){return v.modulesConfig}),g=function(I,N){c({eventType:Og.MESSAGE,message:N,module:I})},p=function(I){l(I)},h=function(I){l(!1),n(I)},y=pr.useCallback(function(){if(!r)return null;var v=f.find(function(I){return I.supportedTemplates.includes(r.templateId)});if(v&&r)return Xn.jsx(v.component,{perform:h,moduleProps:r,modulesConfig:d,idvEventListener:g,isProcessing:p})},[r,f]);return!r&&!a?Xn.jsx(_N,{direction:T5.Ltr,children:Xn.jsx(vJ,{children:"Waiting for play... or process completed"})}):Xn.jsx(Xn.Fragment,{children:Xn.jsx(_N,{direction:T5.Ltr,children:Xn.jsxs(Xn.Fragment,{children:[u&&Xn.jsx(vJ,{children:a?Xn.jsx(C2,{perform:h,moduleProps:IJ(IJ({},a),{},{templateId:"PROGRESS"}),idvEventListener:g,isProcessing:p}):"Processing..."}),y()]})})})};function T6e(){return Xn.jsx(pr.StrictMode,{children:Xn.jsx(dpe,{children:Xn.jsx(E6e,{})})})}function C3(e){"@babel/helpers - typeof";return C3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},C3(e)}function A6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function NJ(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,DJ(a.key),a)}}function w6e(e,r,n){return r&&NJ(e.prototype,r),n&&NJ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S6e(e,r,n){return r=z4(r),C6e(e,H8()?Reflect.construct(r,[],z4(e).constructor):r.apply(e,n))}function C6e(e,r){if(r&&(C3(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x6e(e)}function x6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b6e(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&L4(e,r)}function U8(e){var r=typeof Map=="function"?new Map:void 0;return U8=function(a){if(a===null||!k6e(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(a))return r.get(a);r.set(a,u)}function u(){return O6e(a,arguments,z4(this).constructor)}return u.prototype=Object.create(a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),L4(u,a)},U8(e)}function O6e(e,r,n){if(H8())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,r);var u=new(e.bind.apply(e,a));return n&&L4(u,n.prototype),u}function H8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(H8=function(){return!!e})()}function k6e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(r){return typeof e=="function"}}function L4(e,r){return L4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},L4(e,r)}function z4(e){return z4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},z4(e)}function jJ(e,r,n){return(r=DJ(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function DJ(e){var r=L6e(e,"string");return C3(r)=="symbol"?r:r+""}function L6e(e,r){if(C3(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(C3(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var z6e="*,::after,::before{box-sizing:border-box}h1,h2,h3,h4,p,ul{padding:0;margin:0}li{list-style:none}:host{display:block;container-type:inline-size;container-name:host;width:100%;height:100%}",EJ=function(e){function r(){var n;return A6e(this,r),n=S6e(this,r),jJ(n,"_root",LMe.createRoot(n.attachShadow({mode:"open"}))),jJ(n,"_mounted",!1),n}return b6e(r,e),w6e(r,[{key:"connectedCallback",value:function(){this.render(),this._mounted=!0}},{key:"version",get:function(){return"".concat("2.5.181-nightly".trim())}},{key:"render",value:function(){this._root.render(Xn.jsxs("div",{part:"idv",className:"idv",style:{backgroundColor:"white",height:"100%"},children:[Xn.jsx("style",{nonce:pa.getState().getNonce(),children:z6e}),Xn.jsx(T6e,{})]}))}},{key:"disconnectedCallback",value:function(){var a=this;setTimeout(function(){a._mounted&&(a._mounted=!1,a._root.unmount(),A3.clearLogs())})}}],[{key:"observedAttributes",get:function(){return[]}}])}(U8(HTMLElement));function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Td(e)}function _l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_l=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(C,A,x,z){return Object.defineProperty(C,A,{value:x,enumerable:!z,configurable:!z,writable:!z})}try{d({},"")}catch(C){d=function(x,z,P){return x[z]=P}}function g(C,A,x,z){var P=A&&A.prototype instanceof y?A:y,F=Object.create(P.prototype);return d(F,"_invoke",function(W,X,L){var Y=1;return function(G,b){if(Y===3)throw Error("Generator is already running");if(Y===4){if(G==="throw")throw b;return{value:e,done:!0}}for(L.method=G,L.arg=b;;){var B=L.delegate;if(B){var le=O(B,L);if(le){if(le===h)continue;return le}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y===1)throw Y=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y=3;var se=p(W,X,L);if(se.type==="normal"){if(Y=L.done?4:2,se.arg===h)continue;return{value:se.arg,done:L.done}}se.type==="throw"&&(Y=4,L.method="throw",L.arg=se.arg)}}}(C,x,new $(z||[])),!0),F}function p(C,A,x){try{return{type:"normal",arg:C.call(A,x)}}catch(z){return{type:"throw",arg:z}}}r.wrap=g;var h={};function y(){}function v(){}function I(){}var N={};d(N,l,function(){return this});var j=Object.getPrototypeOf,S=j&&j(j(V([])));S&&S!==n&&a.call(S,l)&&(N=S);var E=I.prototype=y.prototype=Object.create(N);function T(C){["next","throw","return"].forEach(function(A){d(C,A,function(x){return this._invoke(A,x)})})}function w(C,A){function x(P,F,W,X){var L=p(C[P],C,F);if(L.type!=="throw"){var Y=L.arg,G=Y.value;return G&&Td(G)=="object"&&a.call(G,"__await")?A.resolve(G.__await).then(function(b){x("next",b,W,X)},function(b){x("throw",b,W,X)}):A.resolve(G).then(function(b){Y.value=b,W(Y)},function(b){return x("throw",b,W,X)})}X(L.arg)}var z;d(this,"_invoke",function(P,F){function W(){return new A(function(X,L){x(P,F,X,L)})}return z=z?z.then(W,W):W()},!0)}function O(C,A){var x=A.method,z=C.i[x];if(z===e)return A.delegate=null,x==="throw"&&C.i.return&&(A.method="return",A.arg=e,O(C,A),A.method==="throw")||x!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+x+"' method")),h;var P=p(z,C.i,A.arg);if(P.type==="throw")return A.method="throw",A.arg=P.arg,A.delegate=null,h;var F=P.arg;return F?F.done?(A[C.r]=F.value,A.next=C.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,h):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,h)}function k(C){this.tryEntries.push(C)}function U(C){var A=C[4]||{};A.type="normal",A.arg=e,C[4]=A}function $(C){this.tryEntries=[[-1]],C.forEach(k,this),this.reset(!0)}function V(C){if(C!=null){var A=C[l];if(A)return A.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var x=-1,z=function P(){for(;++x<C.length;)if(a.call(C,x))return P.value=C[x],P.done=!1,P;return P.value=e,P.done=!0,P};return z.next=z}}throw new TypeError(Td(C)+" is not iterable")}return v.prototype=I,d(E,"constructor",I),d(I,"constructor",v),v.displayName=d(I,f,"GeneratorFunction"),r.isGeneratorFunction=function(C){var A=typeof C=="function"&&C.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,I):(C.__proto__=I,d(C,f,"GeneratorFunction")),C.prototype=Object.create(E),C},r.awrap=function(C){return{__await:C}},T(w.prototype),d(w.prototype,c,function(){return this}),r.AsyncIterator=w,r.async=function(C,A,x,z,P){P===void 0&&(P=Promise);var F=new w(g(C,A,x,z),P);return r.isGeneratorFunction(A)?F:F.next().then(function(W){return W.done?W.value:F.next()})},T(E),d(E,f,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(C){var A=Object(C),x=[];for(var z in A)x.unshift(z);return function P(){for(;x.length;)if((z=x.pop())in A)return P.value=z,P.done=!1,P;return P.done=!0,P}},r.values=V,$.prototype={constructor:$,reset:function(A){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!A)for(var x in this)x.charAt(0)==="t"&&a.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0][4];if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var x=this;function z(G){W.type="throw",W.arg=A,x.next=G}for(var P=x.tryEntries.length-1;P>=0;--P){var F=this.tryEntries[P],W=F[4],X=this.prev,L=F[1],Y=F[2];if(F[0]===-1)return z("end"),!1;if(!L&&!Y)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=X){if(X<L)return this.method="next",this.arg=e,z(L),!0;if(X<Y)return z(Y),!1}}},abrupt:function(A,x){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P[0]>-1&&P[0]<=this.prev&&this.prev<P[2]){var F=P;break}}F&&(A==="break"||A==="continue")&&F[0]<=x&&x<=F[2]&&(F=null);var W=F?F[4]:{};return W.type=A,W.arg=x,F?(this.method="next",this.next=F[2],h):this.complete(W)},complete:function(A,x){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&x&&(this.next=x),h},finish:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[2]===A)return this.complete(z[4],z[3]),U(z),h}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[0]===A){var P=z[4];if(P.type==="throw"){var F=P.arg;U(z)}return F}}throw Error("illegal catch attempt")},delegateYield:function(A,x,z){return this.delegate={i:V(A),r:x,n:z},this.method==="next"&&(this.arg=e),h}},r}function TJ(e,r,n,a,u,l,c){try{var f=e[l](c),d=f.value}catch(g){return void n(g)}f.done?r(d):Promise.resolve(d).then(a,u)}function x3(e){return function(){var r=this,n=arguments;return new Promise(function(a,u){var l=e.apply(r,n);function c(d){TJ(l,a,u,c,f,"next",d)}function f(d){TJ(l,a,u,c,f,"throw",d)}c(void 0)})}}function _6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function R6e(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,U6e(a.key),a)}}function P6e(e,r,n){return r&&R6e(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function U6e(e){var r=H6e(e,"string");return Td(r)=="symbol"?r:r+""}function H6e(e,r){if(Td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(Td(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var V6e=function(){function e(){_6e(this,e)}return P6e(e,[{key:"initialize",value:function(){var r=x3(_l().mark(function a(u){var l;return _l().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l=pa.getState().initialize(u),f.abrupt("return",l);case 2:case"end":return f.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"configure",value:function(){var r=x3(_l().mark(function a(u){var l,c;return _l().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(typeof u=="string"){d.next=5;break}return d.next=3,pa.getState().configure(u);case 3:return l=d.sent,d.abrupt("return",l);case 5:return d.next=7,pa.getState().configureWithUrl(u);case 7:return c=d.sent,d.abrupt("return",c);case 9:case"end":return d.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"getWorkFlows",value:function(){var r=x3(_l().mark(function a(u){var l;return _l().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,pa.getState().getWorkflows(u);case 2:return l=f.sent,f.abrupt("return",l);case 4:case"end":return f.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"prepareWorkflow",value:function(){var r=x3(_l().mark(function a(u){var l,c;return _l().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return l=u.workflowId,d.next=3,pa.getState().prepareWorkflowAndPrepareUi(l);case 3:return c=d.sent,d.abrupt("return",c);case 5:case"end":return d.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"startWorkflow",value:function(){var r=x3(_l().mark(function a(u){var l,c,f,d;return _l().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return l=u==null?void 0:u.locale,c=u==null?void 0:u.metadata,f=Q5e(l),p.next=5,pa.getState().startNewSession(f,c);case 5:if(d=p.sent,!d.error){p.next=8;break}return p.abrupt("return",d);case 8:return p.abrupt("return",new Promise(function(h){var y=function(I){h(I)};pa.getState().playWorkflow(y)}));case 9:case"end":return p.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"deinitialize",value:function(){var r=x3(_l().mark(function a(){var u;return _l().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,pa.getState().deinitialize();case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a)}));function n(){return r.apply(this,arguments)}return n}()},{key:"version",get:function(){var n;return(n="2.5.181-nightly")!==null&&n!==void 0?n:"Version unavailable. Something went wrong"}},{key:"nonce",set:function(n){pa.getState().setNonce(n)}},{key:"eventListener",set:function(n){if(!n||typeof n!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}pa.getState().setListener(n)}},{key:"sessionRestoreMode",set:function(n){pa.getState().setSessionRestoreMode(n)}}])}(),$6e=window.customElements.get("idv-flow");$6e||window.customElements.define("idv-flow",EJ);var Q6e=Object.defineProperty,Y6e=Object.defineProperties,F6e=Object.getOwnPropertyDescriptors,AJ=Object.getOwnPropertySymbols,Z6e=Object.prototype.hasOwnProperty,B6e=Object.prototype.propertyIsEnumerable,wJ=(e,r,n)=>r in e?Q6e(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,V8=(e,r)=>{for(var n in r||(r={}))Z6e.call(r,n)&&wJ(e,n,r[n]);if(AJ)for(var n of AJ(r))B6e.call(r,n)&&wJ(e,n,r[n]);return e},SJ=(e,r)=>Y6e(e,F6e(r)),lo=(e,r,n)=>new Promise((a,u)=>{var l=d=>{try{f(n.next(d))}catch(g){u(g)}},c=d=>{try{f(n.throw(d))}catch(g){u(g)}},f=d=>d.done?a(d.value):Promise.resolve(d.value).then(l,c);f((n=n.apply(e,r)).next())}),CJ=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bJ={exports:{}},_4={},OJ={exports:{}},Qr={},kJ;function G6e(){if(kJ)return Qr;kJ=1;/**
78
+ `),a=new Blob([n],{type:"text/plain"}),u=window.URL.createObjectURL(a),l=document.createElement("a");l.download="log.txt",l.href=u,l.click(),window.URL.revokeObjectURL(u),this.clearLogs()}}}])}(),A3=new l6e;function Dd(e){"@babel/helpers - typeof";return Dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dd(e)}function an(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */an=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(C,A,x,z){return Object.defineProperty(C,A,{value:x,enumerable:!z,configurable:!z,writable:!z})}try{d({},"")}catch(C){d=function(x,z,P){return x[z]=P}}function g(C,A,x,z){var P=A&&A.prototype instanceof y?A:y,F=Object.create(P.prototype);return d(F,"_invoke",function(W,X,L){var Y=1;return function(G,b){if(Y===3)throw Error("Generator is already running");if(Y===4){if(G==="throw")throw b;return{value:e,done:!0}}for(L.method=G,L.arg=b;;){var B=L.delegate;if(B){var le=O(B,L);if(le){if(le===h)continue;return le}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y===1)throw Y=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y=3;var se=p(W,X,L);if(se.type==="normal"){if(Y=L.done?4:2,se.arg===h)continue;return{value:se.arg,done:L.done}}se.type==="throw"&&(Y=4,L.method="throw",L.arg=se.arg)}}}(C,x,new $(z||[])),!0),F}function p(C,A,x){try{return{type:"normal",arg:C.call(A,x)}}catch(z){return{type:"throw",arg:z}}}r.wrap=g;var h={};function y(){}function v(){}function I(){}var N={};d(N,l,function(){return this});var j=Object.getPrototypeOf,S=j&&j(j(V([])));S&&S!==n&&a.call(S,l)&&(N=S);var E=I.prototype=y.prototype=Object.create(N);function T(C){["next","throw","return"].forEach(function(A){d(C,A,function(x){return this._invoke(A,x)})})}function w(C,A){function x(P,F,W,X){var L=p(C[P],C,F);if(L.type!=="throw"){var Y=L.arg,G=Y.value;return G&&Dd(G)=="object"&&a.call(G,"__await")?A.resolve(G.__await).then(function(b){x("next",b,W,X)},function(b){x("throw",b,W,X)}):A.resolve(G).then(function(b){Y.value=b,W(Y)},function(b){return x("throw",b,W,X)})}X(L.arg)}var z;d(this,"_invoke",function(P,F){function W(){return new A(function(X,L){x(P,F,X,L)})}return z=z?z.then(W,W):W()},!0)}function O(C,A){var x=A.method,z=C.i[x];if(z===e)return A.delegate=null,x==="throw"&&C.i.return&&(A.method="return",A.arg=e,O(C,A),A.method==="throw")||x!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+x+"' method")),h;var P=p(z,C.i,A.arg);if(P.type==="throw")return A.method="throw",A.arg=P.arg,A.delegate=null,h;var F=P.arg;return F?F.done?(A[C.r]=F.value,A.next=C.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,h):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,h)}function k(C){this.tryEntries.push(C)}function U(C){var A=C[4]||{};A.type="normal",A.arg=e,C[4]=A}function $(C){this.tryEntries=[[-1]],C.forEach(k,this),this.reset(!0)}function V(C){if(C!=null){var A=C[l];if(A)return A.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var x=-1,z=function P(){for(;++x<C.length;)if(a.call(C,x))return P.value=C[x],P.done=!1,P;return P.value=e,P.done=!0,P};return z.next=z}}throw new TypeError(Dd(C)+" is not iterable")}return v.prototype=I,d(E,"constructor",I),d(I,"constructor",v),v.displayName=d(I,f,"GeneratorFunction"),r.isGeneratorFunction=function(C){var A=typeof C=="function"&&C.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,I):(C.__proto__=I,d(C,f,"GeneratorFunction")),C.prototype=Object.create(E),C},r.awrap=function(C){return{__await:C}},T(w.prototype),d(w.prototype,c,function(){return this}),r.AsyncIterator=w,r.async=function(C,A,x,z,P){P===void 0&&(P=Promise);var F=new w(g(C,A,x,z),P);return r.isGeneratorFunction(A)?F:F.next().then(function(W){return W.done?W.value:F.next()})},T(E),d(E,f,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(C){var A=Object(C),x=[];for(var z in A)x.unshift(z);return function P(){for(;x.length;)if((z=x.pop())in A)return P.value=z,P.done=!1,P;return P.done=!0,P}},r.values=V,$.prototype={constructor:$,reset:function(A){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!A)for(var x in this)x.charAt(0)==="t"&&a.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0][4];if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var x=this;function z(G){W.type="throw",W.arg=A,x.next=G}for(var P=x.tryEntries.length-1;P>=0;--P){var F=this.tryEntries[P],W=F[4],X=this.prev,L=F[1],Y=F[2];if(F[0]===-1)return z("end"),!1;if(!L&&!Y)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=X){if(X<L)return this.method="next",this.arg=e,z(L),!0;if(X<Y)return z(Y),!1}}},abrupt:function(A,x){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P[0]>-1&&P[0]<=this.prev&&this.prev<P[2]){var F=P;break}}F&&(A==="break"||A==="continue")&&F[0]<=x&&x<=F[2]&&(F=null);var W=F?F[4]:{};return W.type=A,W.arg=x,F?(this.method="next",this.next=F[2],h):this.complete(W)},complete:function(A,x){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&x&&(this.next=x),h},finish:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[2]===A)return this.complete(z[4],z[3]),U(z),h}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[0]===A){var P=z[4];if(P.type==="throw"){var F=P.arg;U(z)}return F}}throw Error("illegal catch attempt")},delegateYield:function(A,x,z){return this.delegate={i:V(A),r:x,n:z},this.method==="next"&&(this.arg=e),h}},r}function gJ(e,r,n,a,u,l,c){try{var f=e[l](c),d=f.value}catch(g){return void n(g)}f.done?r(d):Promise.resolve(d).then(a,u)}function uo(e){return function(){var r=this,n=arguments;return new Promise(function(a,u){var l=e.apply(r,n);function c(d){gJ(l,a,u,c,f,"next",d)}function f(d){gJ(l,a,u,c,f,"throw",d)}c(void 0)})}}function s6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function c6e(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,MJ(a.key),a)}}function f6e(e,r,n){return r&&c6e(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w3(e,r,n){return(r=MJ(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function MJ(e){var r=d6e(e,"string");return Dd(r)=="symbol"?r:r+""}function d6e(e,r){if(Dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(Dd(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var S3=A3.create("session_log"),g6e=function(){function e(r){s6e(this,e),w3(this,"_worker",null),w3(this,"_initialized",!1),w3(this,"_connectedToIdv",!1),w3(this,"_serviceRunning",!1),w3(this,"_userId",P5e(QMe)),w3(this,"_setErrorScreen",null),r&&(this._setErrorScreen=r)}return f6e(e,[{key:"init",value:function(){var r=uo(an().mark(function a(){var u,l,c,f;return an().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=1,g.next=4,fetch("https://wasm-development.regulaforensics.com/idv/nightly/2.5/d74f312-e24ea69ce//PlatformAdaptor.worker.js");case 4:return u=g.sent,g.next=7,u.blob();case 7:l=g.sent,c=URL.createObjectURL(l),this._worker=new Worker(c),g.next=15;break;case 12:g.prev=12,g.t0=g.catch(1),console.log("Creating worker error: ".concat(JSON.stringify(g.t0)));case 15:g.next=18;break;case 17:this._worker=new Worker("./PlatformAdaptor.worker.js");case 18:if(this._worker){g.next=20;break}return g.abrupt("return");case 20:return this._worker.postMessage({target:"gl",op:"setPrefetched",preMain:!0}),g.next=23,this.sendMessage({target:"worker-init",URL:document.URL,currentScriptUrl:"https://wasm-development.regulaforensics.com/idv/nightly/2.5/d74f312-e24ea69ce/",preMain:!0});case 23:return f=g.sent,g.abrupt("return",f);case 25:case"end":return g.stop()}},a,this,[[1,12]])}));function n(){return r.apply(this,arguments)}return n}()},{key:"prepareAndConnect",value:function(){var r=uo(an().mark(function a(u){var l,c;return an().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,this.sendMessage({target:"custom",method:"connect_idv",connectionParams:{deviceDescriptor:{deviceId:this._userId,deviceType:vN.deviceType,serial:"1111111222211",macAddress:"00:00:00:00:00:00",heartbeatCadence:2},host:u.host,httpRetryCount:u.httpRetryCount||0,httpTimeoutMs:u.httpTimeoutMs||0,isSecure:(l=u.isSecure)!==null&&l!==void 0?l:!0,password:u.password,port:u.port?u.port:0,schema:u.schema?u.schema:"basic",userName:u.userName},preMain:!0});case 2:return c=d.sent,c.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),d.abrupt("return",c);case 5:case"end":return d.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"connectByUrl",value:function(){var r=uo(an().mark(function a(u){var l;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.sendMessage({target:"custom",method:"connect_by_url",connectByUrlParams:{deviceDescriptor:{deviceId:this._userId,deviceType:vN.deviceType,serial:"1111111222211",macAddress:"00:00:00:00:00:00",heartbeatCadence:2},httpRetryCount:5,httpTimeoutMs:1e3,url:u},preMain:!0});case 2:return l=f.sent,l.code===0&&(this._serviceRunning=!0,this._connectedToIdv=!0),f.abrupt("return",l);case 5:case"end":return f.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"startSession",value:function(){var r=uo(an().mark(function a(u,l,c){var f,d;return an().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f={workflowId:u,locale:l},U5e(c)&&(f.metadata=c),p.next=4,this.sendMessage({target:"custom",method:"start_session",sessionParams:f,preMain:!0});case 4:return d=p.sent,d.code===0&&(A3.clearLogs(),S3("Command: 5. Result code: ".concat(d.code,". Session id: ").concat(d.data.id,". Cur step: ").concat(d.data.currentStep,"."))),p.abrupt("return",d);case 7:case"end":return p.stop()}},a,this)}));function n(a,u,l){return r.apply(this,arguments)}return n}()},{key:"continueSession",value:function(){var r=uo(an().mark(function a(u,l){var c,f;return an().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return c={sessionId:u,locale:l},g.next=3,this.sendMessage({continueParams:c,target:"custom",method:"continue_session",preMain:!0});case 3:return f=g.sent,f.code===0&&(A3.clearLogs(),S3("Command: 10. Result code: ".concat(f.code,". Session id: ").concat(f.data.id,". Cur step: ").concat(f.data.currentStep,"."))),g.abrupt("return",f);case 6:case"end":return g.stop()}},a,this)}));function n(a,u){return r.apply(this,arguments)}return n}()},{key:"listWorkflows",value:function(){var r=uo(an().mark(function a(){var u,l,c=arguments;return an().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return u=c.length>0&&c[0]!==void 0?c[0]:{limit:0,skip:0},d.next=3,this.sendMessage({workflowsParams:u,target:"custom",method:"list_workflows",preMain:!0});case 3:return l=d.sent,d.abrupt("return",l);case 5:case"end":return d.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getHealth",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"get_health",preMain:!0});case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getServiceToken",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"get_service_token",preMain:!0});case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"abandonSession",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"abandon_session",preMain:!0});case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"getWorkflow",value:function(){var r=uo(an().mark(function a(u){var l;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.sendMessage({workflowIdParams:{workflowId:u},target:"custom",method:"get_workflow",preMain:!0});case 2:return l=f.sent,f.abrupt("return",l);case 4:case"end":return f.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"pushData",value:function(){var r=uo(an().mark(function a(u,l){var c;return an().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return S3("Command: 9. Request payload: ".concat(JSON.stringify(l))),d.next=3,this.sendMessage({target:"custom",method:"push_data",pushDataParams:{data:l,stage:0,step:u},preMain:!0});case 3:return c=d.sent,S3("Command: 9. Result code: ".concat(c.code)),d.abrupt("return",c);case 6:case"end":return d.stop()}},a,this)}));function n(a,u){return r.apply(this,arguments)}return n}()},{key:"getSessionState",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"get_session_state",preMain:!0});case 2:return u=c.sent,S3("Command: 7. Result code: ".concat(u.code,". Cur step: ").concat(u.data.currentStep,". Proc files: ").concat(u.data.isProcessingFiles)),c.abrupt("return",u);case 5:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"waitForSessionUpdate",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({waitingSessionParams:{periodMs:1e3},target:"custom",method:"wait_for_session_update",preMain:!0});case 2:return u=c.sent,S3("Command: 8. Result code: ".concat(u.code)),c.abrupt("return",u);case 5:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"pushSessionLogs",value:function(){var r=uo(an().mark(function a(u){var l;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.sendMessage({target:"custom",method:"push_session_logs",pushSessionLogsParams:u,preMain:!0});case 2:return l=f.sent,f.abrupt("return",l);case 4:case"end":return f.stop()}},a,this)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"disconnect",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.sendMessage({target:"custom",method:"disconnect",preMain:!0});case 2:return u=c.sent,this._connectedToIdv=!1,this._serviceRunning=!1,c.abrupt("return",u);case 6:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()},{key:"sendMessage",value:function(){var r=uo(an().mark(function a(u){var l=this;return an().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",new Promise(function(d,g){if(!l._worker)return g();l._worker.onmessage=function(p){var h=p.data.target;if(h!=="stdout"){if(h==="custom"){var y=p.data,v=y.method,I=y.data;v==="onRuntimeInitialized"&&(l._initialized=!0),d(I)}if(h==="stderr"){var N=p.data.content;l._setErrorScreen&&l._setErrorScreen(N)}}},l._worker.postMessage(u)}));case 1:case"end":return f.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"isServiceRunning",value:function(){return this._serviceRunning}},{key:"isServiceConnected",value:function(){return this._connectedToIdv}},{key:"terminateWorker",value:function(){if(this.isServiceRunning()){var n;(n=this._worker)===null||n===void 0||n.terminate(),this._serviceRunning=!1,this._initialized=!1,this._connectedToIdv=!1}}},{key:"shutdown",value:function(){var r=uo(an().mark(function a(){var u;return an().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this._worker){c.next=2;break}return c.abrupt("return",{code:0});case 2:if(this._connectedToIdv){c.next=5;break}return this.terminateWorker(),c.abrupt("return",{code:0});case 5:return c.next=7,this.disconnect();case 7:return u=c.sent,this.terminateWorker(),c.abrupt("return",u);case 10:case"end":return c.stop()}},a,this)}));function n(){return r.apply(this,arguments)}return n}()}])}();function Ed(e){"@babel/helpers - typeof";return Ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ed(e)}function pJ(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function b4(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?pJ(Object(n),!0).forEach(function(a){_8(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pJ(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function _8(e,r,n){return(r=M6e(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function M6e(e){var r=p6e(e,"string");return Ed(r)=="symbol"?r:r+""}function p6e(e,r){if(Ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(Ed(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ei(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */Ei=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(C,A,x,z){return Object.defineProperty(C,A,{value:x,enumerable:!z,configurable:!z,writable:!z})}try{d({},"")}catch(C){d=function(x,z,P){return x[z]=P}}function g(C,A,x,z){var P=A&&A.prototype instanceof y?A:y,F=Object.create(P.prototype);return d(F,"_invoke",function(W,X,L){var Y=1;return function(G,b){if(Y===3)throw Error("Generator is already running");if(Y===4){if(G==="throw")throw b;return{value:e,done:!0}}for(L.method=G,L.arg=b;;){var B=L.delegate;if(B){var le=O(B,L);if(le){if(le===h)continue;return le}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y===1)throw Y=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y=3;var se=p(W,X,L);if(se.type==="normal"){if(Y=L.done?4:2,se.arg===h)continue;return{value:se.arg,done:L.done}}se.type==="throw"&&(Y=4,L.method="throw",L.arg=se.arg)}}}(C,x,new $(z||[])),!0),F}function p(C,A,x){try{return{type:"normal",arg:C.call(A,x)}}catch(z){return{type:"throw",arg:z}}}r.wrap=g;var h={};function y(){}function v(){}function I(){}var N={};d(N,l,function(){return this});var j=Object.getPrototypeOf,S=j&&j(j(V([])));S&&S!==n&&a.call(S,l)&&(N=S);var E=I.prototype=y.prototype=Object.create(N);function T(C){["next","throw","return"].forEach(function(A){d(C,A,function(x){return this._invoke(A,x)})})}function w(C,A){function x(P,F,W,X){var L=p(C[P],C,F);if(L.type!=="throw"){var Y=L.arg,G=Y.value;return G&&Ed(G)=="object"&&a.call(G,"__await")?A.resolve(G.__await).then(function(b){x("next",b,W,X)},function(b){x("throw",b,W,X)}):A.resolve(G).then(function(b){Y.value=b,W(Y)},function(b){return x("throw",b,W,X)})}X(L.arg)}var z;d(this,"_invoke",function(P,F){function W(){return new A(function(X,L){x(P,F,X,L)})}return z=z?z.then(W,W):W()},!0)}function O(C,A){var x=A.method,z=C.i[x];if(z===e)return A.delegate=null,x==="throw"&&C.i.return&&(A.method="return",A.arg=e,O(C,A),A.method==="throw")||x!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+x+"' method")),h;var P=p(z,C.i,A.arg);if(P.type==="throw")return A.method="throw",A.arg=P.arg,A.delegate=null,h;var F=P.arg;return F?F.done?(A[C.r]=F.value,A.next=C.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,h):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,h)}function k(C){this.tryEntries.push(C)}function U(C){var A=C[4]||{};A.type="normal",A.arg=e,C[4]=A}function $(C){this.tryEntries=[[-1]],C.forEach(k,this),this.reset(!0)}function V(C){if(C!=null){var A=C[l];if(A)return A.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var x=-1,z=function P(){for(;++x<C.length;)if(a.call(C,x))return P.value=C[x],P.done=!1,P;return P.value=e,P.done=!0,P};return z.next=z}}throw new TypeError(Ed(C)+" is not iterable")}return v.prototype=I,d(E,"constructor",I),d(I,"constructor",v),v.displayName=d(I,f,"GeneratorFunction"),r.isGeneratorFunction=function(C){var A=typeof C=="function"&&C.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,I):(C.__proto__=I,d(C,f,"GeneratorFunction")),C.prototype=Object.create(E),C},r.awrap=function(C){return{__await:C}},T(w.prototype),d(w.prototype,c,function(){return this}),r.AsyncIterator=w,r.async=function(C,A,x,z,P){P===void 0&&(P=Promise);var F=new w(g(C,A,x,z),P);return r.isGeneratorFunction(A)?F:F.next().then(function(W){return W.done?W.value:F.next()})},T(E),d(E,f,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(C){var A=Object(C),x=[];for(var z in A)x.unshift(z);return function P(){for(;x.length;)if((z=x.pop())in A)return P.value=z,P.done=!1,P;return P.done=!0,P}},r.values=V,$.prototype={constructor:$,reset:function(A){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!A)for(var x in this)x.charAt(0)==="t"&&a.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0][4];if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var x=this;function z(G){W.type="throw",W.arg=A,x.next=G}for(var P=x.tryEntries.length-1;P>=0;--P){var F=this.tryEntries[P],W=F[4],X=this.prev,L=F[1],Y=F[2];if(F[0]===-1)return z("end"),!1;if(!L&&!Y)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=X){if(X<L)return this.method="next",this.arg=e,z(L),!0;if(X<Y)return z(Y),!1}}},abrupt:function(A,x){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P[0]>-1&&P[0]<=this.prev&&this.prev<P[2]){var F=P;break}}F&&(A==="break"||A==="continue")&&F[0]<=x&&x<=F[2]&&(F=null);var W=F?F[4]:{};return W.type=A,W.arg=x,F?(this.method="next",this.next=F[2],h):this.complete(W)},complete:function(A,x){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&x&&(this.next=x),h},finish:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[2]===A)return this.complete(z[4],z[3]),U(z),h}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[0]===A){var P=z[4];if(P.type==="throw"){var F=P.arg;U(z)}return F}}throw Error("illegal catch attempt")},delegateYield:function(A,x,z){return this.delegate={i:V(A),r:x,n:z},this.method==="next"&&(this.arg=e),h}},r}function yJ(e,r,n,a,u,l,c){try{var f=e[l](c),d=f.value}catch(g){return void n(g)}f.done?r(d):Promise.resolve(d).then(a,u)}function Ts(e){return function(){var r=this,n=arguments;return new Promise(function(a,u){var l=e.apply(r,n);function c(d){yJ(l,a,u,c,f,"next",d)}function f(d){yJ(l,a,u,c,f,"throw",d)}c(void 0)})}}var y6e=function(r,n){return{wasmService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitWasmService:function(){var a=Ts(Ei().mark(function l(){var c;return Ei().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return c=new g6e,d.next=3,c.init();case 3:r({wasmService:c});case 4:case"end":return d.stop()}},l)}));function u(){return a.apply(this,arguments)}return u}(),setFinalWaitingUi:function(u){r({isFinalWaitingUi:u})},connectToIdv:function(u){return Ts(Ei().mark(function l(){var c,f,d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!((c=n().wasmService)!==null&&c!==void 0&&c.isServiceConnected())){y.next=3;break}return y.next=3,(f=n().wasmService)===null||f===void 0?void 0:f.disconnect();case 3:return y.next=5,n().wasmService.prepareAndConnect(u);case 5:if(d=y.sent,g=null,d.code===4&&(g=fd.HTTP_ISSUE),d.code!==0&&d.code!==4&&(g=fd.PROVIDER_ERROR),g===null){y.next=12;break}return p=new Gg({errorCode:g}),y.abrupt("return",{error:p});case 12:return y.abrupt("return",{});case 13:case"end":return y.stop()}},l)}))()},connectByUrl:function(u){return Ts(Ei().mark(function l(){var c,f,d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=n().wasmService,y.next=3,c.connectByUrl(u);case 3:if(f=y.sent,d=null,f.code===4&&(d=fd.HTTP_ISSUE),f.code!==0&&f.code!==4&&(d=fd.PROVIDER_ERROR),d===null){y.next=13;break}return g=new Gg({errorCode:d}),p=new O5({errorCode:NN.CONNECTION_ISSUE,underlyingBaseError:g}),y.abrupt("return",{workflows:[],error:p});case 13:return y.abrupt("return",{workflows:f.data});case 14:case"end":return y.stop()}},l)}))()},workflowSessionCompletion:function(){},setWorkflowSessionCompletion:function(u){var l=function(f){var d,g=(d=n().currentSessionData)===null||d===void 0?void 0:d.sessionId,p=b4(b4({},f.results),{},{sessionId:g}),h=b4({results:p},f.error&&{error:f.error});if(n().setCurrentSessionDataLsAndStore(null),u(h),f.error){var y=A3.getLogs(),v=y.join("; ");n().wasmService.pushSessionLogs({sessionId:g,body:{log:v,errorCode:f.error.shortChain,deviceInfo:{platform:"Web"}}})}A3.clearLogs()};r(function(){return{workflowSessionCompletion:l}})},loadModules:function(){var a=Ts(Ei().mark(function l(){var c,f,d,g;return Ei().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return c=n().externalModulesNames,h.prev=1,h.next=4,h6e(c);case 4:return f=h.sent,r(function(){return{externalModules:f}}),h.abrupt("return",{});case 9:return h.prev=9,h.t0=h.catch(1),(d=n().wasmService)===null||d===void 0||d.shutdown(),n().resetWasmService(),n().resetProps(),g=new Bg({errorCode:Lg.MODULES_INSTANTIATION_FAILURE}),h.abrupt("return",{error:g});case 16:case"end":return h.stop()}},l,null,[[1,9]])}));function u(){return a.apply(this,arguments)}return u}(),setProcessingTemplate:function(u){var l=Oj(u.find(function(c){return c.templateId===jN}));l.templateLayout=l$(l.templateLayout,n().layout),r({processingTransformedTemplate:l})},setIsProcessing:function(u){r({isProcessing:u})},_pushStep:function(){var a=Ts(Ei().mark(function l(c,f){var d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return d=null,g=function(){var v=Ts(Ei().mark(function I(){var N,j,S,E;return Ei().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,n().wasmService.pushData(c,f);case 2:if(N=w.sent,j=null,N.code===4&&(j=Zl.HTTP_ISSUE),N.code!==0&&N.code!==4&&(j=Zl.PROVIDER_ERROR),j!==null&&(S=new y3({errorCode:Zl.HTTP_ISSUE}),E=new ao({errorCode:io.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:S}),d=E),N.code!==0){w.next=12;break}return d=null,w.abrupt("return",N);case 12:return w.abrupt("return",null);case 13:case"end":return w.stop()}},I)}));return function(){return v.apply(this,arguments)}}(),p=function(){return null},y.next=5,Lj(g,p);case 5:return y.abrupt("return",d?{error:d}:{});case 6:case"end":return y.stop()}},l)}));function u(l,c){return a.apply(this,arguments)}return u}(),_findStepById:function(u){var l=n().workflow;if(!l||!u)return null;var c=l.steps.find(function(f){return f.id===u});return c!=null?c:null},_waitingForNextStep:function(){var a=Ts(Ei().mark(function l(){var c,f,d,g,p;return Ei().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=null,f=function(){var v=Ts(Ei().mark(function I(){var N,j,S,E,T,w,O,k,U,$,V,C,A,x;return Ei().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,n().wasmService.getSessionState();case 2:if(E=P.sent,T=(N=E.data)===null||N===void 0?void 0:N.currentStep,w=(j=E.data)===null||j===void 0?void 0:j.isProcessingFiles,O=(S=E.data)===null||S===void 0||(S=S.workflow)===null||S===void 0?void 0:S.steps,k=z5e(O,T),U=E.code===4,$=E.code!==0&&E.code!==4,V=E.code===0&&(!E.data.workflow||!E.data.currentStep),C=null,O&&!k&&(C=Zl.NOT_DATA_TYPE),U&&(C=Zl.HTTP_ISSUE),$&&(C=Zl.PROVIDER_ERROR),w&&(C=Zl.IS_PROCESSING),V&&(C=Zl.DECODING_FAILED),C!==null&&(A=new y3({errorCode:C}),x=new ao({errorCode:io.INTERNAL_ISSUE,underlyingBaseError:A}),c=x),!(k&&!w&&!U&&!$&&!V)){P.next=20;break}return c=null,P.abrupt("return",E.data);case 20:return P.abrupt("return",null);case 21:case"end":return P.stop()}},I)}));return function(){return v.apply(this,arguments)}}(),d=function(){return null},y.next=5,Lj(f,d);case 5:if(g=y.sent,!c){y.next=8;break}return y.abrupt("return",{error:c});case 8:if(!g){y.next=10;break}return y.abrupt("return",{sessionData:g});case 10:return c=new y3({errorCode:Zl.DECODING_FAILED}),p=new ao({errorCode:io.INTERNAL_ISSUE,underlyingBaseError:c}),y.abrupt("return",{error:p});case 13:case"end":return y.stop()}},l)}));function u(){return a.apply(this,arguments)}return u}(),setFinalStepAndStopProcess:function(u){var l=u||n().currentStepId;if(l){var c=n()._findStepById(l);c&&(n().workflowSessionCompletion({results:{finalStep:{id:c.id,name:c.name,final:c.final}}}),n().resetSession(),n().listener({eventType:Og.MESSAGE,message:kg.DID_END_SESSION,module:"IDV"}))}},pushStepWaitNextStepAndSet:function(){var a=Ts(Ei().mark(function l(c){var f,d,g,p,h,y,v,I,N;return Ei().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=n().currentStepId,f){S.next=3;break}return S.abrupt("return");case 3:if(n().setIsProcessing(!0),!n().isFinalWaitingUi){S.next=7;break}return n().setFinalStepAndStopProcess(),S.abrupt("return");case 7:if(!(c instanceof Pn)){S.next=13;break}return d=c,g=new ao({errorCode:io.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:d}),n().workflowSessionCompletion({error:g}),n().resetSession(),S.abrupt("return");case 13:return S.next=15,n()._pushStep(f,c);case 15:if(p=S.sent,!p.error){S.next=20;break}return n().workflowSessionCompletion({error:p.error}),n().resetSession(),S.abrupt("return");case 20:return S.next=22,n()._waitingForNextStep();case 22:if(h=S.sent,!h.error){S.next=27;break}return n().workflowSessionCompletion({error:h.error}),n().resetSession(),S.abrupt("return");case 27:if(y=h.sessionData.workflow,v=h.sessionData.currentStep,n().setWorkflow(y),n().setLayout(y.client.layout),n().setProcessingTemplate(y.client.steps),n().setSessionProperties(h.sessionData.properties),I=n()._findStepById(v),N=function(T){return!!T&&Object.prototype.toString.call(T)==="[object Object]"&&T.templateId},!(I!=null&&I.final&&!N(I.client))){S.next=38;break}return n().setFinalStepAndStopProcess(I.id),S.abrupt("return");case 38:I!=null&&I.final&&N(I.client)&&n().setFinalWaitingUi(!0),n().onChangeScreen(v),n().setIsProcessing(!1);case 41:case"end":return S.stop()}},l)}));function u(l){return a.apply(this,arguments)}return u}(),onChangeScreen:function(u){if(!u)return r(function(){return{currentScreenConfig:null}});var l=n().workflow,c=n().sessionProperties,f=null;if(u===jN&&n().processingTransformedTemplate!==null){var d=n().processingTransformedTemplate;d&&(f={templateId:d.templateId,templateLayout:d.templateLayout,dataSource:null})}else{var g,p,h=n()._findStepById(u);if(typeof(h==null||(g=h.client)===null||g===void 0?void 0:g.templateId)=="string"){var y;f=b4(b4({},h==null?void 0:h.client),{},{templateId:h.client.templateId,dataSource:(y=h.dataSource)!==null&&y!==void 0?y:null,properties:c})}if(f){var v;f.sessionId=(v=n().currentSessionData)===null||v===void 0?void 0:v.sessionId,f.serviceToken=n().serviceToken}if(f&&H5e(h==null||(p=h.client)===null||p===void 0?void 0:p.templateLayout)){var I=l$(h.client.templateLayout,n().layout);I&&(f.templateLayout=I)}}var N=L5e(n().externalModules,l.steps,u);if(f===null||!N){var j=new ao({errorCode:io.UNKNOWN_STEP,message:"Unsupported step template"});n().workflowSessionCompletion({error:j}),r(function(){return{currentScreenConfig:null}}),n().resetSession();return}n().setCurrentStepId(u),r(function(){return{currentScreenConfig:f}})},deinitializationIdv:function(){var a=Ts(Ei().mark(function l(){var c,f;return Ei().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(c=n().wasmService)===null||c===void 0?void 0:c.shutdown();case 2:if(f=g.sent,n().resetWasmService(),n().externalModules.forEach(function(p){p.component.deinitialize&&p.component.isReady&&p.component.deinitialize()}),(f==null?void 0:f.code)!==0){g.next=7;break}return g.abrupt("return",{});case 7:return g.abrupt("return",{});case 8:case"end":return g.stop()}},l)}));function u(){return a.apply(this,arguments)}return u}(),resetSession:function(){return r(function(){return{isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0}})},resetWasmService:function(){return r(function(){return{wasmService:null}})}}};function h6e(e){return R8.apply(this,arguments)}function R8(){return R8=Ts(Ei().mark(function e(r){var n,a,u,l,c,f;return Ei().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:n=[{id:C2.getIdentifier(),supportedTemplates:C2.getSupportedTemplates(),component:C2}],a=_8(_8({},IN.LIVENESS,function(){return Promise.resolve().then(()=>Mrt)}),IN.DOC_READER,function(){return Promise.resolve().then(()=>TOt)}),u=Ei().mark(function p(){var h,y,v;return Ei().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(h=c[l],y=function(){return a[h]()},!y){N.next=7;break}return N.next=5,y();case 5:v=N.sent,n.push({id:v.default.getIdentifier(),supportedTemplates:v.default.getSupportedTemplates(),component:v.default});case 7:case"end":return N.stop()}},p)}),l=0,c=r;case 4:if(!(l<c.length)){g.next=9;break}return g.delegateYield(u(),"t0",6);case 6:l++,g.next=4;break;case 9:return f=n.filter(function(p){return p!==null}),g.abrupt("return",f);case 11:case"end":return g.stop()}},e)})),R8.apply(this,arguments)}function O4(e){"@babel/helpers - typeof";return O4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},O4(e)}function hJ(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function P8(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?hJ(Object(n),!0).forEach(function(a){v6e(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hJ(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function v6e(e,r,n){return(r=m6e(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function m6e(e){var r=I6e(e,"string");return O4(r)=="symbol"?r:r+""}function I6e(e,r){if(O4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(O4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var pa=Lpe(function(){return P8(P8(P8({},B5e.apply(void 0,arguments)),sye.apply(void 0,arguments)),y6e.apply(void 0,arguments))}),vJ=function(r){var n=r.children;return Xn.jsx("div",{style:{position:"absolute",top:0,left:0,flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%",background:"white",zIndex:1e3},children:n})};function k4(e){"@babel/helpers - typeof";return k4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},k4(e)}function mJ(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,a)}return n}function IJ(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?mJ(Object(n),!0).forEach(function(a){N6e(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mJ(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function N6e(e,r,n){return(r=j6e(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function j6e(e){var r=D6e(e,"string");return k4(r)=="symbol"?r:r+""}function D6e(e,r){if(k4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(k4(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var E6e=function(){var r=pa(function(v){return v.currentScreenConfig}),n=pa(function(v){return v.pushStepWaitNextStepAndSet}),a=pa(function(v){return v.processingTransformedTemplate}),u=pa(function(v){return v.isProcessing}),l=pa(function(v){return v.setIsProcessing}),c=pa(function(v){return v.listener}),f=pa(function(v){return v.externalModules}),d=pa(function(v){return v.modulesConfig}),g=function(I,N){c({eventType:Og.MESSAGE,message:N,module:I})},p=function(I){l(I)},h=function(I){l(!1),n(I)},y=pr.useCallback(function(){if(!r)return null;var v=f.find(function(I){return I.supportedTemplates.includes(r.templateId)});if(v&&r)return Xn.jsx(v.component,{perform:h,moduleProps:r,modulesConfig:d,idvEventListener:g,isProcessing:p})},[r,f]);return!r&&!a?Xn.jsx(_N,{direction:T5.Ltr,children:Xn.jsx(vJ,{children:"Waiting for play... or process completed"})}):Xn.jsx(Xn.Fragment,{children:Xn.jsx(_N,{direction:T5.Ltr,children:Xn.jsxs(Xn.Fragment,{children:[u&&Xn.jsx(vJ,{children:a?Xn.jsx(C2,{perform:h,moduleProps:IJ(IJ({},a),{},{templateId:"PROGRESS"}),idvEventListener:g,isProcessing:p}):"Processing..."}),y()]})})})};function T6e(){return Xn.jsx(pr.StrictMode,{children:Xn.jsx(dpe,{children:Xn.jsx(E6e,{})})})}function C3(e){"@babel/helpers - typeof";return C3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},C3(e)}function A6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function NJ(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,DJ(a.key),a)}}function w6e(e,r,n){return r&&NJ(e.prototype,r),n&&NJ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S6e(e,r,n){return r=z4(r),C6e(e,H8()?Reflect.construct(r,[],z4(e).constructor):r.apply(e,n))}function C6e(e,r){if(r&&(C3(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x6e(e)}function x6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b6e(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&L4(e,r)}function U8(e){var r=typeof Map=="function"?new Map:void 0;return U8=function(a){if(a===null||!k6e(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(a))return r.get(a);r.set(a,u)}function u(){return O6e(a,arguments,z4(this).constructor)}return u.prototype=Object.create(a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),L4(u,a)},U8(e)}function O6e(e,r,n){if(H8())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,r);var u=new(e.bind.apply(e,a));return n&&L4(u,n.prototype),u}function H8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(H8=function(){return!!e})()}function k6e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(r){return typeof e=="function"}}function L4(e,r){return L4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},L4(e,r)}function z4(e){return z4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},z4(e)}function jJ(e,r,n){return(r=DJ(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function DJ(e){var r=L6e(e,"string");return C3(r)=="symbol"?r:r+""}function L6e(e,r){if(C3(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(C3(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var z6e="*,::after,::before{box-sizing:border-box}h1,h2,h3,h4,p,ul{padding:0;margin:0}li{list-style:none}:host{display:block;container-type:inline-size;container-name:host;width:100%;height:100%}",EJ=function(e){function r(){var n;return A6e(this,r),n=S6e(this,r),jJ(n,"_root",LMe.createRoot(n.attachShadow({mode:"open"}))),jJ(n,"_mounted",!1),n}return b6e(r,e),w6e(r,[{key:"connectedCallback",value:function(){this.render(),this._mounted=!0}},{key:"version",get:function(){return"".concat("2.5.183-nightly".trim())}},{key:"render",value:function(){this._root.render(Xn.jsxs("div",{part:"idv",className:"idv",style:{backgroundColor:"white",height:"100%"},children:[Xn.jsx("style",{nonce:pa.getState().getNonce(),children:z6e}),Xn.jsx(T6e,{})]}))}},{key:"disconnectedCallback",value:function(){var a=this;setTimeout(function(){a._mounted&&(a._mounted=!1,a._root.unmount(),A3.clearLogs())})}}],[{key:"observedAttributes",get:function(){return[]}}])}(U8(HTMLElement));function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Td(e)}function _l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_l=function(){return r};var e,r={},n=Object.prototype,a=n.hasOwnProperty,u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(C,A,x,z){return Object.defineProperty(C,A,{value:x,enumerable:!z,configurable:!z,writable:!z})}try{d({},"")}catch(C){d=function(x,z,P){return x[z]=P}}function g(C,A,x,z){var P=A&&A.prototype instanceof y?A:y,F=Object.create(P.prototype);return d(F,"_invoke",function(W,X,L){var Y=1;return function(G,b){if(Y===3)throw Error("Generator is already running");if(Y===4){if(G==="throw")throw b;return{value:e,done:!0}}for(L.method=G,L.arg=b;;){var B=L.delegate;if(B){var le=O(B,L);if(le){if(le===h)continue;return le}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(Y===1)throw Y=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);Y=3;var se=p(W,X,L);if(se.type==="normal"){if(Y=L.done?4:2,se.arg===h)continue;return{value:se.arg,done:L.done}}se.type==="throw"&&(Y=4,L.method="throw",L.arg=se.arg)}}}(C,x,new $(z||[])),!0),F}function p(C,A,x){try{return{type:"normal",arg:C.call(A,x)}}catch(z){return{type:"throw",arg:z}}}r.wrap=g;var h={};function y(){}function v(){}function I(){}var N={};d(N,l,function(){return this});var j=Object.getPrototypeOf,S=j&&j(j(V([])));S&&S!==n&&a.call(S,l)&&(N=S);var E=I.prototype=y.prototype=Object.create(N);function T(C){["next","throw","return"].forEach(function(A){d(C,A,function(x){return this._invoke(A,x)})})}function w(C,A){function x(P,F,W,X){var L=p(C[P],C,F);if(L.type!=="throw"){var Y=L.arg,G=Y.value;return G&&Td(G)=="object"&&a.call(G,"__await")?A.resolve(G.__await).then(function(b){x("next",b,W,X)},function(b){x("throw",b,W,X)}):A.resolve(G).then(function(b){Y.value=b,W(Y)},function(b){return x("throw",b,W,X)})}X(L.arg)}var z;d(this,"_invoke",function(P,F){function W(){return new A(function(X,L){x(P,F,X,L)})}return z=z?z.then(W,W):W()},!0)}function O(C,A){var x=A.method,z=C.i[x];if(z===e)return A.delegate=null,x==="throw"&&C.i.return&&(A.method="return",A.arg=e,O(C,A),A.method==="throw")||x!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+x+"' method")),h;var P=p(z,C.i,A.arg);if(P.type==="throw")return A.method="throw",A.arg=P.arg,A.delegate=null,h;var F=P.arg;return F?F.done?(A[C.r]=F.value,A.next=C.n,A.method!=="return"&&(A.method="next",A.arg=e),A.delegate=null,h):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,h)}function k(C){this.tryEntries.push(C)}function U(C){var A=C[4]||{};A.type="normal",A.arg=e,C[4]=A}function $(C){this.tryEntries=[[-1]],C.forEach(k,this),this.reset(!0)}function V(C){if(C!=null){var A=C[l];if(A)return A.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var x=-1,z=function P(){for(;++x<C.length;)if(a.call(C,x))return P.value=C[x],P.done=!1,P;return P.value=e,P.done=!0,P};return z.next=z}}throw new TypeError(Td(C)+" is not iterable")}return v.prototype=I,d(E,"constructor",I),d(I,"constructor",v),v.displayName=d(I,f,"GeneratorFunction"),r.isGeneratorFunction=function(C){var A=typeof C=="function"&&C.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},r.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,I):(C.__proto__=I,d(C,f,"GeneratorFunction")),C.prototype=Object.create(E),C},r.awrap=function(C){return{__await:C}},T(w.prototype),d(w.prototype,c,function(){return this}),r.AsyncIterator=w,r.async=function(C,A,x,z,P){P===void 0&&(P=Promise);var F=new w(g(C,A,x,z),P);return r.isGeneratorFunction(A)?F:F.next().then(function(W){return W.done?W.value:F.next()})},T(E),d(E,f,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"}),r.keys=function(C){var A=Object(C),x=[];for(var z in A)x.unshift(z);return function P(){for(;x.length;)if((z=x.pop())in A)return P.value=z,P.done=!1,P;return P.done=!0,P}},r.values=V,$.prototype={constructor:$,reset:function(A){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(U),!A)for(var x in this)x.charAt(0)==="t"&&a.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0][4];if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var x=this;function z(G){W.type="throw",W.arg=A,x.next=G}for(var P=x.tryEntries.length-1;P>=0;--P){var F=this.tryEntries[P],W=F[4],X=this.prev,L=F[1],Y=F[2];if(F[0]===-1)return z("end"),!1;if(!L&&!Y)throw Error("try statement without catch or finally");if(F[0]!=null&&F[0]<=X){if(X<L)return this.method="next",this.arg=e,z(L),!0;if(X<Y)return z(Y),!1}}},abrupt:function(A,x){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P[0]>-1&&P[0]<=this.prev&&this.prev<P[2]){var F=P;break}}F&&(A==="break"||A==="continue")&&F[0]<=x&&x<=F[2]&&(F=null);var W=F?F[4]:{};return W.type=A,W.arg=x,F?(this.method="next",this.next=F[2],h):this.complete(W)},complete:function(A,x){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&x&&(this.next=x),h},finish:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[2]===A)return this.complete(z[4],z[3]),U(z),h}},catch:function(A){for(var x=this.tryEntries.length-1;x>=0;--x){var z=this.tryEntries[x];if(z[0]===A){var P=z[4];if(P.type==="throw"){var F=P.arg;U(z)}return F}}throw Error("illegal catch attempt")},delegateYield:function(A,x,z){return this.delegate={i:V(A),r:x,n:z},this.method==="next"&&(this.arg=e),h}},r}function TJ(e,r,n,a,u,l,c){try{var f=e[l](c),d=f.value}catch(g){return void n(g)}f.done?r(d):Promise.resolve(d).then(a,u)}function x3(e){return function(){var r=this,n=arguments;return new Promise(function(a,u){var l=e.apply(r,n);function c(d){TJ(l,a,u,c,f,"next",d)}function f(d){TJ(l,a,u,c,f,"throw",d)}c(void 0)})}}function _6e(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function R6e(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,U6e(a.key),a)}}function P6e(e,r,n){return r&&R6e(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function U6e(e){var r=H6e(e,"string");return Td(r)=="symbol"?r:r+""}function H6e(e,r){if(Td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(Td(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var V6e=function(){function e(){_6e(this,e)}return P6e(e,[{key:"initialize",value:function(){var r=x3(_l().mark(function a(u){var l;return _l().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l=pa.getState().initialize(u),f.abrupt("return",l);case 2:case"end":return f.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"configure",value:function(){var r=x3(_l().mark(function a(u){var l,c;return _l().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(typeof u=="string"){d.next=5;break}return d.next=3,pa.getState().configure(u);case 3:return l=d.sent,d.abrupt("return",l);case 5:return d.next=7,pa.getState().configureWithUrl(u);case 7:return c=d.sent,d.abrupt("return",c);case 9:case"end":return d.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"getWorkFlows",value:function(){var r=x3(_l().mark(function a(u){var l;return _l().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,pa.getState().getWorkflows(u);case 2:return l=f.sent,f.abrupt("return",l);case 4:case"end":return f.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"prepareWorkflow",value:function(){var r=x3(_l().mark(function a(u){var l,c;return _l().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return l=u.workflowId,d.next=3,pa.getState().prepareWorkflowAndPrepareUi(l);case 3:return c=d.sent,d.abrupt("return",c);case 5:case"end":return d.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"startWorkflow",value:function(){var r=x3(_l().mark(function a(u){var l,c,f,d;return _l().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return l=u==null?void 0:u.locale,c=u==null?void 0:u.metadata,f=Q5e(l),p.next=5,pa.getState().startNewSession(f,c);case 5:if(d=p.sent,!d.error){p.next=8;break}return p.abrupt("return",d);case 8:return p.abrupt("return",new Promise(function(h){var y=function(I){h(I)};pa.getState().playWorkflow(y)}));case 9:case"end":return p.stop()}},a)}));function n(a){return r.apply(this,arguments)}return n}()},{key:"deinitialize",value:function(){var r=x3(_l().mark(function a(){var u;return _l().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,pa.getState().deinitialize();case 2:return u=c.sent,c.abrupt("return",u);case 4:case"end":return c.stop()}},a)}));function n(){return r.apply(this,arguments)}return n}()},{key:"version",get:function(){var n;return(n="2.5.183-nightly")!==null&&n!==void 0?n:"Version unavailable. Something went wrong"}},{key:"nonce",set:function(n){pa.getState().setNonce(n)}},{key:"eventListener",set:function(n){if(!n||typeof n!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}pa.getState().setListener(n)}},{key:"sessionRestoreMode",set:function(n){pa.getState().setSessionRestoreMode(n)}}])}(),$6e=window.customElements.get("idv-flow");$6e||window.customElements.define("idv-flow",EJ);var Q6e=Object.defineProperty,Y6e=Object.defineProperties,F6e=Object.getOwnPropertyDescriptors,AJ=Object.getOwnPropertySymbols,Z6e=Object.prototype.hasOwnProperty,B6e=Object.prototype.propertyIsEnumerable,wJ=(e,r,n)=>r in e?Q6e(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,V8=(e,r)=>{for(var n in r||(r={}))Z6e.call(r,n)&&wJ(e,n,r[n]);if(AJ)for(var n of AJ(r))B6e.call(r,n)&&wJ(e,n,r[n]);return e},SJ=(e,r)=>Y6e(e,F6e(r)),lo=(e,r,n)=>new Promise((a,u)=>{var l=d=>{try{f(n.next(d))}catch(g){u(g)}},c=d=>{try{f(n.throw(d))}catch(g){u(g)}},f=d=>d.done?a(d.value):Promise.resolve(d.value).then(l,c);f((n=n.apply(e,r)).next())}),CJ=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bJ={exports:{}},_4={},OJ={exports:{}},Qr={},kJ;function G6e(){if(kJ)return Qr;kJ=1;/**
79
79
  * @license React
80
80
  * react.production.min.js
81
81
  *
@@ -180,7 +180,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
180
180
  }
181
181
  </style>
182
182
  <slot />
183
- `}};const ort=window.customElements.get("face-capture"),urt=window.customElements.get("face-liveness"),lrt=window.customElements.get("fullscreen-container");ort||window.customElements.define("face-capture",Htt),urt||window.customElements.define("face-liveness",trt),lrt||window.customElements.define("fullscreen-container",art);var uoe={ERROR:0,OK:1},srt=["LANDSCAPE_MODE_RESTRICTED","TIMEOUT_ERROR","CHANGE_CAMERA","DEVICE_ROTATE","APP_INACTIVE"],loe=(e=>(e.LIVENESS="LIVENESS",e))(loe||{}),Vy="IDV_FACE",F9=(e=>(e[e.NO_INITIALIZED=0]="NO_INITIALIZED",e[e.UNKNOWN_STEP=1]="UNKNOWN_STEP",e[e.LIVENESS_ERROR=2]="LIVENESS_ERROR",e))(F9||{}),Z9=(e=>(e[e.CONFIGURATION_FAILED=0]="CONFIGURATION_FAILED",e[e.INTERNAL_ERROR=1]="INTERNAL_ERROR",e[e.PRESENTER_UNAVAILABLE=2]="PRESENTER_UNAVAILABLE",e))(Z9||{});function V3(e){"@babel/helpers - typeof";return V3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},V3(e)}function soe(e,r,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function coe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function foe(e,r,n){return r=$y(r),crt(e,doe()?Reflect.construct(r,n||[],$y(e).constructor):r.apply(e,n))}function crt(e,r){if(r&&(V3(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return frt(e)}function frt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function doe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(doe=function(){return!!e})()}function $y(e){return $y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$y(e)}function goe(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&B9(e,r)}function B9(e,r){return B9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},B9(e,r)}function $3(e,r,n){return(r=drt(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function drt(e){var r=grt(e,"string");return V3(r)=="symbol"?r:r+""}function grt(e,r){if(V3(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(V3(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Qy=function(e){function r(n){var a=n.errorCode,u=n.message,l=n.underlyingError,c=n.underlyingBaseError;coe(this,r);var f=Pn.getErrorKey(a,F9);return foe(this,r,[{errorCode:a,errorCodeKey:f,errorEnumName:r.ERROR_ENUM_NAME,module:r.MODULE,message:u,underlyingError:l,underlyingBaseError:c,domain:r.ERROR_ENUM_NAME,shortDomainCode:r.SHORT_CODE}])}return goe(r,e),soe(r)}(Pn);$3(Qy,"MODULE",Vy),$3(Qy,"ERROR_ENUM_NAME","FaceModuleError"),$3(Qy,"SHORT_CODE","FM");var Yy=function(e){function r(n){var a=n.errorCode,u=n.message,l=n.underlyingError,c=n.underlyingBaseError;coe(this,r);var f=Pn.getErrorKey(a,Z9);return foe(this,r,[{errorCode:a,errorCodeKey:f,errorEnumName:r.ERROR_ENUM_NAME,module:r.MODULE,message:u,underlyingError:l,underlyingBaseError:c,domain:r.ERROR_ENUM_NAME,shortDomainCode:r.SHORT_CODE}])}return goe(r,e),soe(r)}(Pn);$3(Yy,"MODULE",Vy),$3(Yy,"ERROR_ENUM_NAME","LivenessError"),$3(Yy,"SHORT_CODE","FML");var G9=!1,Pd=function(r){var n=r.moduleProps,a=r.perform,u=r.idvEventListener,l=r.isProcessing,c=n.config,f=n.serviceURL,d=n.templateId,g=n.sessionId,p=n.serviceToken,h=n.locale,y=n.copyright,v=pr.useRef(null),I=pr.useRef(null),N=pr.useRef(!1),j=c==null?void 0:c.recordingProcess,S=j&&j in Od?Od[j]:Od.SYNCHRONOUS_UPLOAD,E=function(w){var O,k=w.detail,U=(k==null||(O=k.data)===null||O===void 0?void 0:O.transactionId)||"";if(k.action==="PROCESS_FINISHED"){var $,V,C,A;if(N.current)return;if(($=w.detail.data)!==null&&$!==void 0&&$.reason&&((V=w.detail.data)===null||V===void 0?void 0:V.status)===uoe.ERROR&&!srt.includes(w.detail.data.reason)){var x=w.detail.data.reason,z=new Yy({errorCode:Z9.INTERNAL_ERROR,underlyingError:"ErrorTypes."+x}),P=new Qy({errorCode:F9.LIVENESS_ERROR,underlyingBaseError:z});a(P)}if(((C=k.data)===null||C===void 0?void 0:C.status)===uoe.OK&&(A=k.data)!==null&&A!==void 0&&A.response){var F=k.data.response.code===0;if(F){l&&l(!0);var W=k.data.response.transactionId;a({transactionId:W,cancel:!1}),N.current=!0;return}}}if(k.action==="RETRY_COUNTER_EXCEEDED"){l&&l(!0),a({transactionId:U,cancel:!1}),N.current=!0;return}(k==null?void 0:k.action)==="CLOSE"&&a({transactionId:U,cancel:!0})};return pr.useEffect(function(){u(d,{action:"Face Liveness is ready"});var T=v.current;return T&&T.addEventListener("face-liveness",E),function(){T&&T.removeEventListener("face-liveness",E)}},[]),pr.useEffect(function(){var T=I.current;T&&(console.info("%cFace Liveness web component version: %s","color: #6e56b0;",T.version),T.settings={url:f||"https://nightly-idv.regula.app/faceapi",locale:h&&typeof h=="string"?h.substring(0,2).toLowerCase():void 0,startScreen:!0,copyright:y,headers:{Authorization:"Connection ".concat(p)},tag:g,retryCount:c==null?void 0:c.attemptsCount,recordingProcess:S,customization:{}})},[]),Xn.jsx("div",{style:{height:"100%"},ref:v,children:Xn.jsx("face-liveness",{ref:I})})};Pd.getSupportedTemplates=function(){return[loe.LIVENESS]},Pd.getIdentifier=function(){return Vy},Pd.isReady=function(){return G9},Pd.deinitialize=function(){G9=!1},Pd.initialize=function(e){G9=!0},Pd.displayName=Vy;const Mrt=Object.freeze(Object.defineProperty({__proto__:null,default:Pd},Symbol.toStringTag,{value:"Module"}));var prt=Object.defineProperty,yrt=Object.defineProperties,hrt=Object.getOwnPropertyDescriptors,Moe=Object.getOwnPropertySymbols,vrt=Object.prototype.hasOwnProperty,mrt=Object.prototype.propertyIsEnumerable,Q3=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),Irt=e=>{throw TypeError(e)},poe=(e,r,n)=>r in e?prt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Zt=(e,r)=>{for(var n in r||(r={}))vrt.call(r,n)&&poe(e,n,r[n]);if(Moe)for(var n of Moe(r))mrt.call(r,n)&&poe(e,n,r[n]);return e},tM=(e,r)=>yrt(e,hrt(r)),Qt=(e,r,n)=>new Promise((a,u)=>{var l=d=>{try{f(n.next(d))}catch(g){u(g)}},c=d=>{try{f(n.throw(d))}catch(g){u(g)}},f=d=>d.done?a(d.value):Promise.resolve(d.value).then(l,c);f((n=n.apply(e,r)).next())}),Y3=function(e,r){this[0]=e,this[1]=r},yoe=(e,r,n)=>{var a=(c,f,d,g)=>{try{var p=n[c](f),h=(f=p.value)instanceof Y3,y=p.done;Promise.resolve(h?f[0]:f).then(v=>h?a(c==="return"?c:"next",f[1]?{done:v.done,value:v.value}:v,d,g):d({value:v,done:y})).catch(v=>a("throw",v,d,g))}catch(v){g(v)}},u=c=>l[c]=f=>new Promise((d,g)=>a(c,f,d,g)),l={};return n=n.apply(e,r),l[Q3("asyncIterator")]=()=>l,u("next"),u("throw"),u("return"),l},hoe=e=>{var r=e[Q3("asyncIterator")],n=!1,a,u={};return r==null?(r=e[Q3("iterator")](),a=l=>u[l]=c=>r[l](c)):(r=r.call(e),a=l=>u[l]=c=>{if(n){if(n=!1,l==="throw")throw c;return c}return n=!0,{done:!1,value:new Y3(new Promise(f=>{var d=r[l](c);d instanceof Object||Irt("Object expected"),f(d)}),1)}}),u[Q3("iterator")]=()=>u,a("next"),"throw"in r?a("throw"):u.throw=l=>{throw l},"return"in r&&a("return"),u},Nrt=(e,r,n)=>(r=e[Q3("asyncIterator")])?r.call(e):(e=e[Q3("iterator")](),r={},n=(a,u)=>(u=e[a])&&(r[a]=l=>new Promise((c,f,d)=>(l=u.call(e,l),d=l.done,Promise.resolve(l.value).then(g=>c({value:g,done:d}),f)))),n("next"),n("return"),r),F3=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var voe={},nM,moe;function nn(){if(moe)return nM;moe=1;var e=function(r){return r&&r.Math===Math&&r};return nM=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof F3=="object"&&F3)||e(typeof nM=="object"&&nM)||function(){return this}()||Function("return this")(),nM}var Ioe,Noe;function jrt(){return Noe||(Noe=1,Ioe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Ioe}var W9,joe;function _i(){if(joe)return W9;joe=1;var e=typeof document=="object"&&document.all;return W9=typeof e=="undefined"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},W9}var q9,Doe;function Wo(){if(Doe)return q9;Doe=1;var e=_i();return q9=function(r){return typeof r=="object"?r!==null:e(r)},q9}var K9,Eoe;function J9(){if(Eoe)return K9;Eoe=1;var e=nn(),r=Wo(),n=e.document,a=r(n)&&r(n.createElement);return K9=function(u){return a?n.createElement(u):{}},K9}var X9,Toe;function Drt(){if(Toe)return X9;Toe=1;var e=J9(),r=e("span").classList,n=r&&r.constructor&&r.constructor.prototype;return X9=n===Object.prototype?void 0:n,X9}var Aoe,woe;function vn(){return woe||(woe=1,Aoe=function(e){try{return!!e()}catch(r){return!0}}),Aoe}var ew,Soe;function Fy(){if(Soe)return ew;Soe=1;var e=vn();return ew=!e(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),ew}var tw,Coe;function ln(){if(Coe)return tw;Coe=1;var e=Fy(),r=Function.prototype,n=r.call,a=e&&r.bind.bind(n,n);return tw=e?a:function(u){return function(){return n.apply(u,arguments)}},tw}var rw,xoe;function z0(){if(xoe)return rw;xoe=1;var e=ln(),r=e({}.toString),n=e("".slice);return rw=function(a){return n(r(a),8,-1)},rw}var nw,boe;function Zy(){if(boe)return nw;boe=1;var e=ln(),r=vn(),n=z0(),a=Object,u=e("".split);return nw=r(function(){return!a("z").propertyIsEnumerable(0)})?function(l){return n(l)==="String"?u(l,""):a(l)}:a,nw}var Ooe,koe;function iw(){return koe||(koe=1,Ooe=function(e){return e==null}),Ooe}var aw,Loe;function Z3(){if(Loe)return aw;Loe=1;var e=iw(),r=TypeError;return aw=function(n){if(e(n))throw new r("Can't call method on "+n);return n},aw}var ow,zoe;function iM(){if(zoe)return ow;zoe=1;var e=Zy(),r=Z3();return ow=function(n){return e(r(n))},ow}var uw={exports:{}},_oe,Roe;function d0(){return Roe||(Roe=1,_oe=!1),_oe}var lw,Poe;function sw(){if(Poe)return lw;Poe=1;var e=nn(),r=Object.defineProperty;return lw=function(n,a){try{r(e,n,{value:a,configurable:!0,writable:!0})}catch(u){e[n]=a}return a},lw}var Uoe;function cw(){if(Uoe)return uw.exports;Uoe=1;var e=d0(),r=nn(),n=sw(),a="__core-js_shared__",u=uw.exports=r[a]||n(a,{});return(u.versions||(u.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),uw.exports}var fw,Hoe;function dw(){if(Hoe)return fw;Hoe=1;var e=cw();return fw=function(r,n){return e[r]||(e[r]=n||{})},fw}var gw,Voe;function as(){if(Voe)return gw;Voe=1;var e=Z3(),r=Object;return gw=function(n){return r(e(n))},gw}var Mw,$oe;function qo(){if($oe)return Mw;$oe=1;var e=ln(),r=as(),n=e({}.hasOwnProperty);return Mw=Object.hasOwn||function(a,u){return n(r(a),u)},Mw}var pw,Qoe;function yw(){if(Qoe)return pw;Qoe=1;var e=ln(),r=0,n=Math.random(),a=e(1.1.toString);return pw=function(u){return"Symbol("+(u===void 0?"":u)+")_"+a(++r+n,36)},pw}var hw,Yoe;function aM(){if(Yoe)return hw;Yoe=1;var e=nn(),r=e.navigator,n=r&&r.userAgent;return hw=n?String(n):"",hw}var vw,Foe;function By(){if(Foe)return vw;Foe=1;var e=nn(),r=aM(),n=e.process,a=e.Deno,u=n&&n.versions||a&&a.version,l=u&&u.v8,c,f;return l&&(c=l.split("."),f=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!f&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(f=+c[1]))),vw=f,vw}var mw,Zoe;function Iw(){if(Zoe)return mw;Zoe=1;var e=By(),r=vn(),n=nn(),a=n.String;return mw=!!Object.getOwnPropertySymbols&&!r(function(){var u=Symbol("symbol detection");return!a(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&e&&e<41}),mw}var Nw,Boe;function Goe(){if(Boe)return Nw;Boe=1;var e=Iw();return Nw=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Nw}var jw,Woe;function ya(){if(Woe)return jw;Woe=1;var e=nn(),r=dw(),n=qo(),a=yw(),u=Iw(),l=Goe(),c=e.Symbol,f=r("wks"),d=l?c.for||c:c&&c.withoutSetter||a;return jw=function(g){return n(f,g)||(f[g]=u&&n(c,g)?c[g]:d("Symbol."+g)),f[g]},jw}var Dw,qoe;function ga(){if(qoe)return Dw;qoe=1;var e=Wo(),r=String,n=TypeError;return Dw=function(a){if(e(a))return a;throw new n(r(a)+" is not an object")},Dw}var Ew={},Tw,Koe;function Ci(){if(Koe)return Tw;Koe=1;var e=vn();return Tw=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Tw}var Aw,Joe;function Xoe(){if(Joe)return Aw;Joe=1;var e=Ci(),r=vn();return Aw=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Aw}var ww={},Sw,eue;function tue(){if(eue)return Sw;eue=1;var e=Ci(),r=vn(),n=J9();return Sw=!e&&!r(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}),Sw}var Cw,rue;function Jn(){if(rue)return Cw;rue=1;var e=Fy(),r=Function.prototype.call;return Cw=e?r.bind(r):function(){return r.apply(r,arguments)},Cw}var xw,nue;function _0(){if(nue)return xw;nue=1;var e=nn(),r=_i(),n=function(a){return r(a)?a:void 0};return xw=function(a,u){return arguments.length<2?n(e[a]):e[a]&&e[a][u]},xw}var bw,iue;function Ud(){if(iue)return bw;iue=1;var e=ln();return bw=e({}.isPrototypeOf),bw}var Ow,aue;function Gy(){if(aue)return Ow;aue=1;var e=_0(),r=_i(),n=Ud(),a=Goe(),u=Object;return Ow=a?function(l){return typeof l=="symbol"}:function(l){var c=e("Symbol");return r(c)&&n(c.prototype,u(l))},Ow}var kw,oue;function B3(){if(oue)return kw;oue=1;var e=String;return kw=function(r){try{return e(r)}catch(n){return"Object"}},kw}var Lw,uue;function Iu(){if(uue)return Lw;uue=1;var e=_i(),r=B3(),n=TypeError;return Lw=function(a){if(e(a))return a;throw new n(r(a)+" is not a function")},Lw}var zw,lue;function oM(){if(lue)return zw;lue=1;var e=Iu(),r=iw();return zw=function(n,a){var u=n[a];return r(u)?void 0:e(u)},zw}var _w,sue;function Ert(){if(sue)return _w;sue=1;var e=Jn(),r=_i(),n=Wo(),a=TypeError;return _w=function(u,l){var c,f;if(l==="string"&&r(c=u.toString)&&!n(f=e(c,u))||r(c=u.valueOf)&&!n(f=e(c,u))||l!=="string"&&r(c=u.toString)&&!n(f=e(c,u)))return f;throw new a("Can't convert object to primitive value")},_w}var Rw,cue;function fue(){if(cue)return Rw;cue=1;var e=Jn(),r=Wo(),n=Gy(),a=oM(),u=Ert(),l=ya(),c=TypeError,f=l("toPrimitive");return Rw=function(d,g){if(!r(d)||n(d))return d;var p=a(d,f),h;if(p){if(g===void 0&&(g="default"),h=e(p,d,g),!r(h)||n(h))return h;throw new c("Can't convert object to primitive value")}return g===void 0&&(g="number"),u(d,g)},Rw}var Pw,due;function Uw(){if(due)return Pw;due=1;var e=fue(),r=Gy();return Pw=function(n){var a=e(n,"string");return r(a)?a:a+""},Pw}var gue;function xs(){if(gue)return ww;gue=1;var e=Ci(),r=tue(),n=Xoe(),a=ga(),u=Uw(),l=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",g="configurable",p="writable";return ww.f=e?n?function(h,y,v){if(a(h),y=u(y),a(v),typeof h=="function"&&y==="prototype"&&"value"in v&&p in v&&!v[p]){var I=f(h,y);I&&I[p]&&(h[y]=v.value,v={configurable:g in v?v[g]:I[g],enumerable:d in v?v[d]:I[d],writable:!1})}return c(h,y,v)}:c:function(h,y,v){if(a(h),y=u(y),a(v),r)try{return c(h,y,v)}catch(I){}if("get"in v||"set"in v)throw new l("Accessors not supported");return"value"in v&&(h[y]=v.value),h},ww}var Hw,Mue;function Trt(){if(Mue)return Hw;Mue=1;var e=Math.ceil,r=Math.floor;return Hw=Math.trunc||function(n){var a=+n;return(a>0?r:e)(a)},Hw}var Vw,pue;function z2(){if(pue)return Vw;pue=1;var e=Trt();return Vw=function(r){var n=+r;return n!==n||n===0?0:e(n)},Vw}var $w,yue;function Wy(){if(yue)return $w;yue=1;var e=z2(),r=Math.max,n=Math.min;return $w=function(a,u){var l=e(a);return l<0?r(l+u,0):n(l,u)},$w}var Qw,hue;function G3(){if(hue)return Qw;hue=1;var e=z2(),r=Math.min;return Qw=function(n){var a=e(n);return a>0?r(a,9007199254740991):0},Qw}var Yw,vue;function Nu(){if(vue)return Yw;vue=1;var e=G3();return Yw=function(r){return e(r.length)},Yw}var Fw,mue;function Art(){if(mue)return Fw;mue=1;var e=iM(),r=Wy(),n=Nu(),a=function(u){return function(l,c,f){var d=e(l),g=n(d);if(g===0)return!u&&-1;var p=r(f,g),h;if(u&&c!==c){for(;g>p;)if(h=d[p++],h!==h)return!0}else for(;g>p;p++)if((u||p in d)&&d[p]===c)return u||p||0;return!u&&-1}};return Fw={includes:a(!0),indexOf:a(!1)},Fw}var Iue,Nue;function Zw(){return Nue||(Nue=1,Iue={}),Iue}var Bw,jue;function Due(){if(jue)return Bw;jue=1;var e=ln(),r=qo(),n=iM(),a=Art().indexOf,u=Zw(),l=e([].push);return Bw=function(c,f){var d=n(c),g=0,p=[],h;for(h in d)!r(u,h)&&r(d,h)&&l(p,h);for(;f.length>g;)r(d,h=f[g++])&&(~a(p,h)||l(p,h));return p},Bw}var Eue,Tue;function Gw(){return Tue||(Tue=1,Eue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Eue}var Ww,Aue;function wue(){if(Aue)return Ww;Aue=1;var e=Due(),r=Gw();return Ww=Object.keys||function(n){return e(n,r)},Ww}var Sue;function wrt(){if(Sue)return Ew;Sue=1;var e=Ci(),r=Xoe(),n=xs(),a=ga(),u=iM(),l=wue();return Ew.f=e&&!r?Object.defineProperties:function(c,f){a(c);for(var d=u(f),g=l(f),p=g.length,h=0,y;p>h;)n.f(c,y=g[h++],d[y]);return c},Ew}var qw,Cue;function Srt(){if(Cue)return qw;Cue=1;var e=_0();return qw=e("document","documentElement"),qw}var Kw,xue;function Jw(){if(xue)return Kw;xue=1;var e=dw(),r=yw(),n=e("keys");return Kw=function(a){return n[a]||(n[a]=r(a))},Kw}var Xw,bue;function Hd(){if(bue)return Xw;bue=1;var e=ga(),r=wrt(),n=Gw(),a=Zw(),u=Srt(),l=J9(),c=Jw(),f=">",d="<",g="prototype",p="script",h=c("IE_PROTO"),y=function(){},v=function(E){return d+p+f+E+d+"/"+p+f},I=function(E){E.write(v("")),E.close();var T=E.parentWindow.Object;return E=null,T},N=function(){var E=l("iframe"),T="java"+p+":",w;return E.style.display="none",u.appendChild(E),E.src=String(T),w=E.contentWindow.document,w.open(),w.write(v("document.F=Object")),w.close(),w.F},j,S=function(){try{j=new ActiveXObject("htmlfile")}catch(T){}S=typeof document!="undefined"?document.domain&&j?I(j):N():I(j);for(var E=n.length;E--;)delete S[g][n[E]];return S()};return a[h]=!0,Xw=Object.create||function(E,T){var w;return E!==null?(y[g]=e(E),w=new y,y[g]=null,w[h]=E):w=S(),T===void 0?w:r.f(w,T)},Xw}var eS,Oue;function Crt(){if(Oue)return eS;Oue=1;var e=ya(),r=Hd(),n=xs().f,a=e("unscopables"),u=Array.prototype;return u[a]===void 0&&n(u,a,{configurable:!0,value:r(null)}),eS=function(l){u[a][l]=!0},eS}var kue,Lue;function uM(){return Lue||(Lue=1,kue={}),kue}var tS,zue;function xrt(){if(zue)return tS;zue=1;var e=nn(),r=_i(),n=e.WeakMap;return tS=r(n)&&/native code/.test(String(n)),tS}var _ue,Rue;function Vd(){return Rue||(Rue=1,_ue=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),_ue}var rS,Pue;function os(){if(Pue)return rS;Pue=1;var e=Ci(),r=xs(),n=Vd();return rS=e?function(a,u,l){return r.f(a,u,n(1,l))}:function(a,u,l){return a[u]=l,a},rS}var nS,Uue;function _2(){if(Uue)return nS;Uue=1;var e=xrt(),r=nn(),n=Wo(),a=os(),u=qo(),l=cw(),c=Jw(),f=Zw(),d="Object already initialized",g=r.TypeError,p=r.WeakMap,h,y,v,I=function(E){return v(E)?y(E):h(E,{})},N=function(E){return function(T){var w;if(!n(T)||(w=y(T)).type!==E)throw new g("Incompatible receiver, "+E+" required");return w}};if(e||l.state){var j=l.state||(l.state=new p);j.get=j.get,j.has=j.has,j.set=j.set,h=function(E,T){if(j.has(E))throw new g(d);return T.facade=E,j.set(E,T),T},y=function(E){return j.get(E)||{}},v=function(E){return j.has(E)}}else{var S=c("state");f[S]=!0,h=function(E,T){if(u(E,S))throw new g(d);return T.facade=E,a(E,S,T),T},y=function(E){return u(E,S)?E[S]:{}},v=function(E){return u(E,S)}}return nS={set:h,get:y,has:v,enforce:I,getterFor:N},nS}var iS={},aS={},Hue;function Vue(){if(Hue)return aS;Hue=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!e.call({1:2},1);return aS.f=n?function(a){var u=r(this,a);return!!u&&u.enumerable}:e,aS}var $ue;function oS(){if($ue)return iS;$ue=1;var e=Ci(),r=Jn(),n=Vue(),a=Vd(),u=iM(),l=Uw(),c=qo(),f=tue(),d=Object.getOwnPropertyDescriptor;return iS.f=e?d:function(g,p){if(g=u(g),p=l(p),f)try{return d(g,p)}catch(h){}if(c(g,p))return a(!r(n.f,g,p),g[p])},iS}var uS={exports:{}},lS,Que;function qy(){if(Que)return lS;Que=1;var e=Ci(),r=qo(),n=Function.prototype,a=e&&Object.getOwnPropertyDescriptor,u=r(n,"name"),l=u&&function(){}.name==="something",c=u&&(!e||e&&a(n,"name").configurable);return lS={EXISTS:u,PROPER:l,CONFIGURABLE:c},lS}var sS,Yue;function Fue(){if(Yue)return sS;Yue=1;var e=ln(),r=_i(),n=cw(),a=e(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(u){return a(u)}),sS=n.inspectSource,sS}var Zue;function Bue(){if(Zue)return uS.exports;Zue=1;var e=ln(),r=vn(),n=_i(),a=qo(),u=Ci(),l=qy().CONFIGURABLE,c=Fue(),f=_2(),d=f.enforce,g=f.get,p=String,h=Object.defineProperty,y=e("".slice),v=e("".replace),I=e([].join),N=u&&!r(function(){return h(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),S=uS.exports=function(E,T,w){y(p(T),0,7)==="Symbol("&&(T="["+v(p(T),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),w&&w.getter&&(T="get "+T),w&&w.setter&&(T="set "+T),(!a(E,"name")||l&&E.name!==T)&&(u?h(E,"name",{value:T,configurable:!0}):E.name=T),N&&w&&a(w,"arity")&&E.length!==w.arity&&h(E,"length",{value:w.arity});try{w&&a(w,"constructor")&&w.constructor?u&&h(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch(k){}var O=d(E);return a(O,"source")||(O.source=I(j,typeof T=="string"?T:"")),E};return Function.prototype.toString=S(function(){return n(this)&&g(this).source||c(this)},"toString"),uS.exports}var cS,Gue;function R2(){if(Gue)return cS;Gue=1;var e=_i(),r=xs(),n=Bue(),a=sw();return cS=function(u,l,c,f){f||(f={});var d=f.enumerable,g=f.name!==void 0?f.name:l;if(e(c)&&n(c,g,f),f.global)d?u[l]=c:a(l,c);else{try{f.unsafe?u[l]&&(d=!0):delete u[l]}catch(p){}d?u[l]=c:r.f(u,l,{value:c,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return u},cS}var fS={},Wue;function que(){if(Wue)return fS;Wue=1;var e=Due(),r=Gw(),n=r.concat("length","prototype");return fS.f=Object.getOwnPropertyNames||function(a){return e(a,n)},fS}var Kue={},Jue;function Xue(){return Jue||(Jue=1,Kue.f=Object.getOwnPropertySymbols),Kue}var dS,ele;function brt(){if(ele)return dS;ele=1;var e=_0(),r=ln(),n=que(),a=Xue(),u=ga(),l=r([].concat);return dS=e("Reflect","ownKeys")||function(c){var f=n.f(u(c)),d=a.f;return d?l(f,d(c)):f},dS}var gS,tle;function MS(){if(tle)return gS;tle=1;var e=qo(),r=brt(),n=oS(),a=xs();return gS=function(u,l,c){for(var f=r(l),d=a.f,g=n.f,p=0;p<f.length;p++){var h=f[p];!e(u,h)&&!(c&&e(c,h))&&d(u,h,g(l,h))}},gS}var pS,rle;function Ort(){if(rle)return pS;rle=1;var e=vn(),r=_i(),n=/#|\.prototype\./,a=function(d,g){var p=l[u(d)];return p===f?!0:p===c?!1:r(g)?e(g):!!g},u=a.normalize=function(d){return String(d).replace(n,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";return pS=a,pS}var yS,nle;function xi(){if(nle)return yS;nle=1;var e=nn(),r=oS().f,n=os(),a=R2(),u=sw(),l=MS(),c=Ort();return yS=function(f,d){var g=f.target,p=f.global,h=f.stat,y,v,I,N,j,S;if(p?v=e:h?v=e[g]||u(g,{}):v=e[g]&&e[g].prototype,v)for(I in d){if(j=d[I],f.dontCallGetSet?(S=r(v,I),N=S&&S.value):N=v[I],y=c(p?I:g+(h?".":"#")+I,f.forced),!y&&N!==void 0){if(typeof j==typeof N)continue;l(j,N)}(f.sham||N&&N.sham)&&n(j,"sham",!0),a(v,I,j,f)}},yS}var hS,ile;function krt(){if(ile)return hS;ile=1;var e=vn();return hS=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),hS}var vS,ale;function lM(){if(ale)return vS;ale=1;var e=qo(),r=_i(),n=as(),a=Jw(),u=krt(),l=a("IE_PROTO"),c=Object,f=c.prototype;return vS=u?c.getPrototypeOf:function(d){var g=n(d);if(e(g,l))return g[l];var p=g.constructor;return r(p)&&g instanceof p?p.prototype:g instanceof c?f:null},vS}var mS,ole;function Ky(){if(ole)return mS;ole=1;var e=vn(),r=_i(),n=Wo(),a=Hd(),u=lM(),l=R2(),c=ya(),f=d0(),d=c("iterator"),g=!1,p,h,y;[].keys&&(y=[].keys(),"next"in y?(h=u(u(y)),h!==Object.prototype&&(p=h)):g=!0);var v=!n(p)||e(function(){var I={};return p[d].call(I)!==I});return v?p={}:f&&(p=a(p)),r(p[d])||l(p,d,function(){return this}),mS={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:g},mS}var IS,ule;function W3(){if(ule)return IS;ule=1;var e=xs().f,r=qo(),n=ya(),a=n("toStringTag");return IS=function(u,l,c){u&&!c&&(u=u.prototype),u&&!r(u,a)&&e(u,a,{configurable:!0,value:l})},IS}var NS,lle;function sle(){if(lle)return NS;lle=1;var e=Ky().IteratorPrototype,r=Hd(),n=Vd(),a=W3(),u=uM(),l=function(){return this};return NS=function(c,f,d,g){var p=f+" Iterator";return c.prototype=r(e,{next:n(+!g,d)}),a(c,p,!1,!0),u[p]=l,c},NS}var jS,cle;function DS(){if(cle)return jS;cle=1;var e=ln(),r=Iu();return jS=function(n,a,u){try{return e(r(Object.getOwnPropertyDescriptor(n,a)[u]))}catch(l){}},jS}var ES,fle;function Lrt(){if(fle)return ES;fle=1;var e=Wo();return ES=function(r){return e(r)||r===null},ES}var TS,dle;function zrt(){if(dle)return TS;dle=1;var e=Lrt(),r=String,n=TypeError;return TS=function(a){if(e(a))return a;throw new n("Can't set "+r(a)+" as a prototype")},TS}var AS,gle;function q3(){if(gle)return AS;gle=1;var e=DS(),r=Wo(),n=Z3(),a=zrt();return AS=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,l={},c;try{c=e(Object.prototype,"__proto__","set"),c(l,[]),u=l instanceof Array}catch(f){}return function(f,d){return n(f),a(d),r(f)&&(u?c(f,d):f.__proto__=d),f}}():void 0),AS}var wS,Mle;function ple(){if(Mle)return wS;Mle=1;var e=xi(),r=Jn(),n=d0(),a=qy(),u=_i(),l=sle(),c=lM(),f=q3(),d=W3(),g=os(),p=R2(),h=ya(),y=uM(),v=Ky(),I=a.PROPER,N=a.CONFIGURABLE,j=v.IteratorPrototype,S=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),T="keys",w="values",O="entries",k=function(){return this};return wS=function(U,$,V,C,A,x,z){l(V,$,C);var P=function(se){if(se===A&&Y)return Y;if(!S&&se&&se in X)return X[se];switch(se){case T:return function(){return new V(this,se)};case w:return function(){return new V(this,se)};case O:return function(){return new V(this,se)}}return function(){return new V(this)}},F=$+" Iterator",W=!1,X=U.prototype,L=X[E]||X["@@iterator"]||A&&X[A],Y=!S&&L||P(A),G=$==="Array"&&X.entries||L,b,B,le;if(G&&(b=c(G.call(new U)),b!==Object.prototype&&b.next&&(!n&&c(b)!==j&&(f?f(b,j):u(b[E])||p(b,E,k)),d(b,F,!0,!0),n&&(y[F]=k))),I&&A===w&&L&&L.name!==w&&(!n&&N?g(X,"name",w):(W=!0,Y=function(){return r(L,this)})),A)if(B={values:P(w),keys:x?Y:P(T),entries:P(O)},z)for(le in B)(S||W||!(le in X))&&p(X,le,B[le]);else e({target:$,proto:!0,forced:S||W},B);return(!n||z)&&X[E]!==Y&&p(X,E,Y,{name:A}),y[$]=Y,B},wS}var yle,hle;function Jy(){return hle||(hle=1,yle=function(e,r){return{value:e,done:r}}),yle}var SS,vle;function mle(){if(vle)return SS;vle=1;var e=iM(),r=Crt(),n=uM(),a=_2(),u=xs().f,l=ple(),c=Jy(),f=d0(),d=Ci(),g="Array Iterator",p=a.set,h=a.getterFor(g);SS=l(Array,"Array",function(v,I){p(this,{type:g,target:e(v),index:0,kind:I})},function(){var v=h(this),I=v.target,N=v.index++;if(!I||N>=I.length)return v.target=null,c(void 0,!0);switch(v.kind){case"keys":return c(N,!1);case"values":return c(I[N],!1)}return c([N,I[N]],!1)},"values");var y=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!f&&d&&y.name!=="values")try{u(y,"name",{value:"values"})}catch(v){}return SS}var Ile;function _rt(){if(Ile)return voe;Ile=1;var e=nn(),r=jrt(),n=Drt(),a=mle(),u=os(),l=W3(),c=ya(),f=c("iterator"),d=a.values,g=function(h,y){if(h){if(h[f]!==d)try{u(h,f,d)}catch(I){h[f]=d}if(l(h,y,!0),r[y]){for(var v in a)if(h[v]!==a[v])try{u(h,v,a[v])}catch(I){h[v]=a[v]}}}};for(var p in r)g(e[p]&&e[p].prototype,p);return g(n,"DOMTokenList"),voe}_rt();var Nle={exports:{}},sM={},jle={exports:{}},Yr={},Dle;function Rrt(){if(Dle)return Yr;Dle=1;/**
183
+ `}};const ort=window.customElements.get("face-capture"),urt=window.customElements.get("face-liveness"),lrt=window.customElements.get("fullscreen-container");ort||window.customElements.define("face-capture",Htt),urt||window.customElements.define("face-liveness",trt),lrt||window.customElements.define("fullscreen-container",art);var uoe={ERROR:0,OK:1},srt=["LANDSCAPE_MODE_RESTRICTED","TIMEOUT_ERROR","CHANGE_CAMERA","DEVICE_ROTATE","APP_INACTIVE"],loe=(e=>(e.LIVENESS="LIVENESS",e))(loe||{}),Vy="IDV_FACE",F9=(e=>(e[e.NO_INITIALIZED=0]="NO_INITIALIZED",e[e.UNKNOWN_STEP=1]="UNKNOWN_STEP",e[e.LIVENESS_ERROR=2]="LIVENESS_ERROR",e))(F9||{}),Z9=(e=>(e[e.CONFIGURATION_FAILED=0]="CONFIGURATION_FAILED",e[e.INTERNAL_ERROR=1]="INTERNAL_ERROR",e[e.PRESENTER_UNAVAILABLE=2]="PRESENTER_UNAVAILABLE",e))(Z9||{});function V3(e){"@babel/helpers - typeof";return V3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},V3(e)}function soe(e,r,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function coe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function foe(e,r,n){return r=$y(r),crt(e,doe()?Reflect.construct(r,n||[],$y(e).constructor):r.apply(e,n))}function crt(e,r){if(r&&(V3(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return frt(e)}function frt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function doe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(doe=function(){return!!e})()}function $y(e){return $y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$y(e)}function goe(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&B9(e,r)}function B9(e,r){return B9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},B9(e,r)}function $3(e,r,n){return(r=drt(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function drt(e){var r=grt(e,"string");return V3(r)=="symbol"?r:r+""}function grt(e,r){if(V3(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,r);if(V3(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Qy=function(e){function r(n){var a=n.errorCode,u=n.message,l=n.underlyingError,c=n.underlyingBaseError;coe(this,r);var f=Pn.getErrorKey(a,F9);return foe(this,r,[{errorCode:a,errorCodeKey:f,errorEnumName:r.ERROR_ENUM_NAME,module:r.MODULE,message:u,underlyingError:l,underlyingBaseError:c,domain:r.ERROR_ENUM_NAME,shortDomainCode:r.SHORT_CODE}])}return goe(r,e),soe(r)}(Pn);$3(Qy,"MODULE",Vy),$3(Qy,"ERROR_ENUM_NAME","FaceModuleError"),$3(Qy,"SHORT_CODE","FM");var Yy=function(e){function r(n){var a=n.errorCode,u=n.message,l=n.underlyingError,c=n.underlyingBaseError;coe(this,r);var f=Pn.getErrorKey(a,Z9);return foe(this,r,[{errorCode:a,errorCodeKey:f,errorEnumName:r.ERROR_ENUM_NAME,module:r.MODULE,message:u,underlyingError:l,underlyingBaseError:c,domain:r.ERROR_ENUM_NAME,shortDomainCode:r.SHORT_CODE}])}return goe(r,e),soe(r)}(Pn);$3(Yy,"MODULE",Vy),$3(Yy,"ERROR_ENUM_NAME","LivenessError"),$3(Yy,"SHORT_CODE","FML");var G9=!1,Pd=function(r){var n=r.moduleProps,a=r.perform,u=r.idvEventListener,l=r.isProcessing,c=n.config,f=n.serviceURL,d=n.templateId,g=n.sessionId,p=n.serviceToken,h=n.locale,y=n.copyright,v=pr.useRef(null),I=pr.useRef(null),N=pr.useRef(!1),j=c==null?void 0:c.recordingProcess,S=j&&j in Od?Od[j]:Od.SYNCHRONOUS_UPLOAD,E=function(w){var O,k=w.detail,U=(k==null||(O=k.data)===null||O===void 0?void 0:O.transactionId)||"";if(k.action==="PROCESS_FINISHED"){var $,V,C,A;if(N.current)return;if(($=w.detail.data)!==null&&$!==void 0&&$.reason&&((V=w.detail.data)===null||V===void 0?void 0:V.status)===uoe.ERROR&&!srt.includes(w.detail.data.reason)){var x=w.detail.data.reason,z=new Yy({errorCode:Z9.INTERNAL_ERROR,underlyingError:"ErrorTypes."+x}),P=new Qy({errorCode:F9.LIVENESS_ERROR,underlyingBaseError:z});a(P)}if(((C=k.data)===null||C===void 0?void 0:C.status)===uoe.OK&&(A=k.data)!==null&&A!==void 0&&A.response){var F=k.data.response.code===0;if(F){l&&l(!0);var W=k.data.response.transactionId;a({transactionId:W,cancel:!1}),N.current=!0;return}}}if(k.action==="RETRY_COUNTER_EXCEEDED"){l&&l(!0),a({transactionId:U,cancel:!1}),N.current=!0;return}(k==null?void 0:k.action)==="CLOSE"&&a({transactionId:U,cancel:!0})};return pr.useEffect(function(){u(d,{action:"Face Liveness is ready"});var T=v.current;return T&&T.addEventListener("face-liveness",E),function(){T&&T.removeEventListener("face-liveness",E)}},[]),pr.useEffect(function(){var T,w,O=I.current;O&&(console.info("%cFace Liveness web component version: %s","color: #6e56b0;",O.version),O.settings={url:f||"https://nightly-idv.regula.app/faceapi",locale:h&&typeof h=="string"?h.substring(0,2).toLowerCase():void 0,startScreen:!0,copyright:(T=(w=c==null?void 0:c.copyright)!==null&&w!==void 0?w:y)!==null&&T!==void 0?T:!0,headers:{Authorization:"Connection ".concat(p)},tag:g,retryCount:c==null?void 0:c.attemptsCount,recordingProcess:S,customization:{}})},[]),Xn.jsx("div",{style:{height:"100%"},ref:v,children:Xn.jsx("face-liveness",{ref:I})})};Pd.getSupportedTemplates=function(){return[loe.LIVENESS]},Pd.getIdentifier=function(){return Vy},Pd.isReady=function(){return G9},Pd.deinitialize=function(){G9=!1},Pd.initialize=function(e){G9=!0},Pd.displayName=Vy;const Mrt=Object.freeze(Object.defineProperty({__proto__:null,default:Pd},Symbol.toStringTag,{value:"Module"}));var prt=Object.defineProperty,yrt=Object.defineProperties,hrt=Object.getOwnPropertyDescriptors,Moe=Object.getOwnPropertySymbols,vrt=Object.prototype.hasOwnProperty,mrt=Object.prototype.propertyIsEnumerable,Q3=(e,r)=>(r=Symbol[e])?r:Symbol.for("Symbol."+e),Irt=e=>{throw TypeError(e)},poe=(e,r,n)=>r in e?prt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Zt=(e,r)=>{for(var n in r||(r={}))vrt.call(r,n)&&poe(e,n,r[n]);if(Moe)for(var n of Moe(r))mrt.call(r,n)&&poe(e,n,r[n]);return e},tM=(e,r)=>yrt(e,hrt(r)),Qt=(e,r,n)=>new Promise((a,u)=>{var l=d=>{try{f(n.next(d))}catch(g){u(g)}},c=d=>{try{f(n.throw(d))}catch(g){u(g)}},f=d=>d.done?a(d.value):Promise.resolve(d.value).then(l,c);f((n=n.apply(e,r)).next())}),Y3=function(e,r){this[0]=e,this[1]=r},yoe=(e,r,n)=>{var a=(c,f,d,g)=>{try{var p=n[c](f),h=(f=p.value)instanceof Y3,y=p.done;Promise.resolve(h?f[0]:f).then(v=>h?a(c==="return"?c:"next",f[1]?{done:v.done,value:v.value}:v,d,g):d({value:v,done:y})).catch(v=>a("throw",v,d,g))}catch(v){g(v)}},u=c=>l[c]=f=>new Promise((d,g)=>a(c,f,d,g)),l={};return n=n.apply(e,r),l[Q3("asyncIterator")]=()=>l,u("next"),u("throw"),u("return"),l},hoe=e=>{var r=e[Q3("asyncIterator")],n=!1,a,u={};return r==null?(r=e[Q3("iterator")](),a=l=>u[l]=c=>r[l](c)):(r=r.call(e),a=l=>u[l]=c=>{if(n){if(n=!1,l==="throw")throw c;return c}return n=!0,{done:!1,value:new Y3(new Promise(f=>{var d=r[l](c);d instanceof Object||Irt("Object expected"),f(d)}),1)}}),u[Q3("iterator")]=()=>u,a("next"),"throw"in r?a("throw"):u.throw=l=>{throw l},"return"in r&&a("return"),u},Nrt=(e,r,n)=>(r=e[Q3("asyncIterator")])?r.call(e):(e=e[Q3("iterator")](),r={},n=(a,u)=>(u=e[a])&&(r[a]=l=>new Promise((c,f,d)=>(l=u.call(e,l),d=l.done,Promise.resolve(l.value).then(g=>c({value:g,done:d}),f)))),n("next"),n("return"),r),F3=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var voe={},nM,moe;function nn(){if(moe)return nM;moe=1;var e=function(r){return r&&r.Math===Math&&r};return nM=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof F3=="object"&&F3)||e(typeof nM=="object"&&nM)||function(){return this}()||Function("return this")(),nM}var Ioe,Noe;function jrt(){return Noe||(Noe=1,Ioe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Ioe}var W9,joe;function _i(){if(joe)return W9;joe=1;var e=typeof document=="object"&&document.all;return W9=typeof e=="undefined"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},W9}var q9,Doe;function Wo(){if(Doe)return q9;Doe=1;var e=_i();return q9=function(r){return typeof r=="object"?r!==null:e(r)},q9}var K9,Eoe;function J9(){if(Eoe)return K9;Eoe=1;var e=nn(),r=Wo(),n=e.document,a=r(n)&&r(n.createElement);return K9=function(u){return a?n.createElement(u):{}},K9}var X9,Toe;function Drt(){if(Toe)return X9;Toe=1;var e=J9(),r=e("span").classList,n=r&&r.constructor&&r.constructor.prototype;return X9=n===Object.prototype?void 0:n,X9}var Aoe,woe;function vn(){return woe||(woe=1,Aoe=function(e){try{return!!e()}catch(r){return!0}}),Aoe}var ew,Soe;function Fy(){if(Soe)return ew;Soe=1;var e=vn();return ew=!e(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),ew}var tw,Coe;function ln(){if(Coe)return tw;Coe=1;var e=Fy(),r=Function.prototype,n=r.call,a=e&&r.bind.bind(n,n);return tw=e?a:function(u){return function(){return n.apply(u,arguments)}},tw}var rw,xoe;function z0(){if(xoe)return rw;xoe=1;var e=ln(),r=e({}.toString),n=e("".slice);return rw=function(a){return n(r(a),8,-1)},rw}var nw,boe;function Zy(){if(boe)return nw;boe=1;var e=ln(),r=vn(),n=z0(),a=Object,u=e("".split);return nw=r(function(){return!a("z").propertyIsEnumerable(0)})?function(l){return n(l)==="String"?u(l,""):a(l)}:a,nw}var Ooe,koe;function iw(){return koe||(koe=1,Ooe=function(e){return e==null}),Ooe}var aw,Loe;function Z3(){if(Loe)return aw;Loe=1;var e=iw(),r=TypeError;return aw=function(n){if(e(n))throw new r("Can't call method on "+n);return n},aw}var ow,zoe;function iM(){if(zoe)return ow;zoe=1;var e=Zy(),r=Z3();return ow=function(n){return e(r(n))},ow}var uw={exports:{}},_oe,Roe;function d0(){return Roe||(Roe=1,_oe=!1),_oe}var lw,Poe;function sw(){if(Poe)return lw;Poe=1;var e=nn(),r=Object.defineProperty;return lw=function(n,a){try{r(e,n,{value:a,configurable:!0,writable:!0})}catch(u){e[n]=a}return a},lw}var Uoe;function cw(){if(Uoe)return uw.exports;Uoe=1;var e=d0(),r=nn(),n=sw(),a="__core-js_shared__",u=uw.exports=r[a]||n(a,{});return(u.versions||(u.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),uw.exports}var fw,Hoe;function dw(){if(Hoe)return fw;Hoe=1;var e=cw();return fw=function(r,n){return e[r]||(e[r]=n||{})},fw}var gw,Voe;function as(){if(Voe)return gw;Voe=1;var e=Z3(),r=Object;return gw=function(n){return r(e(n))},gw}var Mw,$oe;function qo(){if($oe)return Mw;$oe=1;var e=ln(),r=as(),n=e({}.hasOwnProperty);return Mw=Object.hasOwn||function(a,u){return n(r(a),u)},Mw}var pw,Qoe;function yw(){if(Qoe)return pw;Qoe=1;var e=ln(),r=0,n=Math.random(),a=e(1.1.toString);return pw=function(u){return"Symbol("+(u===void 0?"":u)+")_"+a(++r+n,36)},pw}var hw,Yoe;function aM(){if(Yoe)return hw;Yoe=1;var e=nn(),r=e.navigator,n=r&&r.userAgent;return hw=n?String(n):"",hw}var vw,Foe;function By(){if(Foe)return vw;Foe=1;var e=nn(),r=aM(),n=e.process,a=e.Deno,u=n&&n.versions||a&&a.version,l=u&&u.v8,c,f;return l&&(c=l.split("."),f=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!f&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(f=+c[1]))),vw=f,vw}var mw,Zoe;function Iw(){if(Zoe)return mw;Zoe=1;var e=By(),r=vn(),n=nn(),a=n.String;return mw=!!Object.getOwnPropertySymbols&&!r(function(){var u=Symbol("symbol detection");return!a(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&e&&e<41}),mw}var Nw,Boe;function Goe(){if(Boe)return Nw;Boe=1;var e=Iw();return Nw=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Nw}var jw,Woe;function ya(){if(Woe)return jw;Woe=1;var e=nn(),r=dw(),n=qo(),a=yw(),u=Iw(),l=Goe(),c=e.Symbol,f=r("wks"),d=l?c.for||c:c&&c.withoutSetter||a;return jw=function(g){return n(f,g)||(f[g]=u&&n(c,g)?c[g]:d("Symbol."+g)),f[g]},jw}var Dw,qoe;function ga(){if(qoe)return Dw;qoe=1;var e=Wo(),r=String,n=TypeError;return Dw=function(a){if(e(a))return a;throw new n(r(a)+" is not an object")},Dw}var Ew={},Tw,Koe;function Ci(){if(Koe)return Tw;Koe=1;var e=vn();return Tw=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Tw}var Aw,Joe;function Xoe(){if(Joe)return Aw;Joe=1;var e=Ci(),r=vn();return Aw=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Aw}var ww={},Sw,eue;function tue(){if(eue)return Sw;eue=1;var e=Ci(),r=vn(),n=J9();return Sw=!e&&!r(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}),Sw}var Cw,rue;function Jn(){if(rue)return Cw;rue=1;var e=Fy(),r=Function.prototype.call;return Cw=e?r.bind(r):function(){return r.apply(r,arguments)},Cw}var xw,nue;function _0(){if(nue)return xw;nue=1;var e=nn(),r=_i(),n=function(a){return r(a)?a:void 0};return xw=function(a,u){return arguments.length<2?n(e[a]):e[a]&&e[a][u]},xw}var bw,iue;function Ud(){if(iue)return bw;iue=1;var e=ln();return bw=e({}.isPrototypeOf),bw}var Ow,aue;function Gy(){if(aue)return Ow;aue=1;var e=_0(),r=_i(),n=Ud(),a=Goe(),u=Object;return Ow=a?function(l){return typeof l=="symbol"}:function(l){var c=e("Symbol");return r(c)&&n(c.prototype,u(l))},Ow}var kw,oue;function B3(){if(oue)return kw;oue=1;var e=String;return kw=function(r){try{return e(r)}catch(n){return"Object"}},kw}var Lw,uue;function Iu(){if(uue)return Lw;uue=1;var e=_i(),r=B3(),n=TypeError;return Lw=function(a){if(e(a))return a;throw new n(r(a)+" is not a function")},Lw}var zw,lue;function oM(){if(lue)return zw;lue=1;var e=Iu(),r=iw();return zw=function(n,a){var u=n[a];return r(u)?void 0:e(u)},zw}var _w,sue;function Ert(){if(sue)return _w;sue=1;var e=Jn(),r=_i(),n=Wo(),a=TypeError;return _w=function(u,l){var c,f;if(l==="string"&&r(c=u.toString)&&!n(f=e(c,u))||r(c=u.valueOf)&&!n(f=e(c,u))||l!=="string"&&r(c=u.toString)&&!n(f=e(c,u)))return f;throw new a("Can't convert object to primitive value")},_w}var Rw,cue;function fue(){if(cue)return Rw;cue=1;var e=Jn(),r=Wo(),n=Gy(),a=oM(),u=Ert(),l=ya(),c=TypeError,f=l("toPrimitive");return Rw=function(d,g){if(!r(d)||n(d))return d;var p=a(d,f),h;if(p){if(g===void 0&&(g="default"),h=e(p,d,g),!r(h)||n(h))return h;throw new c("Can't convert object to primitive value")}return g===void 0&&(g="number"),u(d,g)},Rw}var Pw,due;function Uw(){if(due)return Pw;due=1;var e=fue(),r=Gy();return Pw=function(n){var a=e(n,"string");return r(a)?a:a+""},Pw}var gue;function xs(){if(gue)return ww;gue=1;var e=Ci(),r=tue(),n=Xoe(),a=ga(),u=Uw(),l=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,d="enumerable",g="configurable",p="writable";return ww.f=e?n?function(h,y,v){if(a(h),y=u(y),a(v),typeof h=="function"&&y==="prototype"&&"value"in v&&p in v&&!v[p]){var I=f(h,y);I&&I[p]&&(h[y]=v.value,v={configurable:g in v?v[g]:I[g],enumerable:d in v?v[d]:I[d],writable:!1})}return c(h,y,v)}:c:function(h,y,v){if(a(h),y=u(y),a(v),r)try{return c(h,y,v)}catch(I){}if("get"in v||"set"in v)throw new l("Accessors not supported");return"value"in v&&(h[y]=v.value),h},ww}var Hw,Mue;function Trt(){if(Mue)return Hw;Mue=1;var e=Math.ceil,r=Math.floor;return Hw=Math.trunc||function(n){var a=+n;return(a>0?r:e)(a)},Hw}var Vw,pue;function z2(){if(pue)return Vw;pue=1;var e=Trt();return Vw=function(r){var n=+r;return n!==n||n===0?0:e(n)},Vw}var $w,yue;function Wy(){if(yue)return $w;yue=1;var e=z2(),r=Math.max,n=Math.min;return $w=function(a,u){var l=e(a);return l<0?r(l+u,0):n(l,u)},$w}var Qw,hue;function G3(){if(hue)return Qw;hue=1;var e=z2(),r=Math.min;return Qw=function(n){var a=e(n);return a>0?r(a,9007199254740991):0},Qw}var Yw,vue;function Nu(){if(vue)return Yw;vue=1;var e=G3();return Yw=function(r){return e(r.length)},Yw}var Fw,mue;function Art(){if(mue)return Fw;mue=1;var e=iM(),r=Wy(),n=Nu(),a=function(u){return function(l,c,f){var d=e(l),g=n(d);if(g===0)return!u&&-1;var p=r(f,g),h;if(u&&c!==c){for(;g>p;)if(h=d[p++],h!==h)return!0}else for(;g>p;p++)if((u||p in d)&&d[p]===c)return u||p||0;return!u&&-1}};return Fw={includes:a(!0),indexOf:a(!1)},Fw}var Iue,Nue;function Zw(){return Nue||(Nue=1,Iue={}),Iue}var Bw,jue;function Due(){if(jue)return Bw;jue=1;var e=ln(),r=qo(),n=iM(),a=Art().indexOf,u=Zw(),l=e([].push);return Bw=function(c,f){var d=n(c),g=0,p=[],h;for(h in d)!r(u,h)&&r(d,h)&&l(p,h);for(;f.length>g;)r(d,h=f[g++])&&(~a(p,h)||l(p,h));return p},Bw}var Eue,Tue;function Gw(){return Tue||(Tue=1,Eue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Eue}var Ww,Aue;function wue(){if(Aue)return Ww;Aue=1;var e=Due(),r=Gw();return Ww=Object.keys||function(n){return e(n,r)},Ww}var Sue;function wrt(){if(Sue)return Ew;Sue=1;var e=Ci(),r=Xoe(),n=xs(),a=ga(),u=iM(),l=wue();return Ew.f=e&&!r?Object.defineProperties:function(c,f){a(c);for(var d=u(f),g=l(f),p=g.length,h=0,y;p>h;)n.f(c,y=g[h++],d[y]);return c},Ew}var qw,Cue;function Srt(){if(Cue)return qw;Cue=1;var e=_0();return qw=e("document","documentElement"),qw}var Kw,xue;function Jw(){if(xue)return Kw;xue=1;var e=dw(),r=yw(),n=e("keys");return Kw=function(a){return n[a]||(n[a]=r(a))},Kw}var Xw,bue;function Hd(){if(bue)return Xw;bue=1;var e=ga(),r=wrt(),n=Gw(),a=Zw(),u=Srt(),l=J9(),c=Jw(),f=">",d="<",g="prototype",p="script",h=c("IE_PROTO"),y=function(){},v=function(E){return d+p+f+E+d+"/"+p+f},I=function(E){E.write(v("")),E.close();var T=E.parentWindow.Object;return E=null,T},N=function(){var E=l("iframe"),T="java"+p+":",w;return E.style.display="none",u.appendChild(E),E.src=String(T),w=E.contentWindow.document,w.open(),w.write(v("document.F=Object")),w.close(),w.F},j,S=function(){try{j=new ActiveXObject("htmlfile")}catch(T){}S=typeof document!="undefined"?document.domain&&j?I(j):N():I(j);for(var E=n.length;E--;)delete S[g][n[E]];return S()};return a[h]=!0,Xw=Object.create||function(E,T){var w;return E!==null?(y[g]=e(E),w=new y,y[g]=null,w[h]=E):w=S(),T===void 0?w:r.f(w,T)},Xw}var eS,Oue;function Crt(){if(Oue)return eS;Oue=1;var e=ya(),r=Hd(),n=xs().f,a=e("unscopables"),u=Array.prototype;return u[a]===void 0&&n(u,a,{configurable:!0,value:r(null)}),eS=function(l){u[a][l]=!0},eS}var kue,Lue;function uM(){return Lue||(Lue=1,kue={}),kue}var tS,zue;function xrt(){if(zue)return tS;zue=1;var e=nn(),r=_i(),n=e.WeakMap;return tS=r(n)&&/native code/.test(String(n)),tS}var _ue,Rue;function Vd(){return Rue||(Rue=1,_ue=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),_ue}var rS,Pue;function os(){if(Pue)return rS;Pue=1;var e=Ci(),r=xs(),n=Vd();return rS=e?function(a,u,l){return r.f(a,u,n(1,l))}:function(a,u,l){return a[u]=l,a},rS}var nS,Uue;function _2(){if(Uue)return nS;Uue=1;var e=xrt(),r=nn(),n=Wo(),a=os(),u=qo(),l=cw(),c=Jw(),f=Zw(),d="Object already initialized",g=r.TypeError,p=r.WeakMap,h,y,v,I=function(E){return v(E)?y(E):h(E,{})},N=function(E){return function(T){var w;if(!n(T)||(w=y(T)).type!==E)throw new g("Incompatible receiver, "+E+" required");return w}};if(e||l.state){var j=l.state||(l.state=new p);j.get=j.get,j.has=j.has,j.set=j.set,h=function(E,T){if(j.has(E))throw new g(d);return T.facade=E,j.set(E,T),T},y=function(E){return j.get(E)||{}},v=function(E){return j.has(E)}}else{var S=c("state");f[S]=!0,h=function(E,T){if(u(E,S))throw new g(d);return T.facade=E,a(E,S,T),T},y=function(E){return u(E,S)?E[S]:{}},v=function(E){return u(E,S)}}return nS={set:h,get:y,has:v,enforce:I,getterFor:N},nS}var iS={},aS={},Hue;function Vue(){if(Hue)return aS;Hue=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!e.call({1:2},1);return aS.f=n?function(a){var u=r(this,a);return!!u&&u.enumerable}:e,aS}var $ue;function oS(){if($ue)return iS;$ue=1;var e=Ci(),r=Jn(),n=Vue(),a=Vd(),u=iM(),l=Uw(),c=qo(),f=tue(),d=Object.getOwnPropertyDescriptor;return iS.f=e?d:function(g,p){if(g=u(g),p=l(p),f)try{return d(g,p)}catch(h){}if(c(g,p))return a(!r(n.f,g,p),g[p])},iS}var uS={exports:{}},lS,Que;function qy(){if(Que)return lS;Que=1;var e=Ci(),r=qo(),n=Function.prototype,a=e&&Object.getOwnPropertyDescriptor,u=r(n,"name"),l=u&&function(){}.name==="something",c=u&&(!e||e&&a(n,"name").configurable);return lS={EXISTS:u,PROPER:l,CONFIGURABLE:c},lS}var sS,Yue;function Fue(){if(Yue)return sS;Yue=1;var e=ln(),r=_i(),n=cw(),a=e(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(u){return a(u)}),sS=n.inspectSource,sS}var Zue;function Bue(){if(Zue)return uS.exports;Zue=1;var e=ln(),r=vn(),n=_i(),a=qo(),u=Ci(),l=qy().CONFIGURABLE,c=Fue(),f=_2(),d=f.enforce,g=f.get,p=String,h=Object.defineProperty,y=e("".slice),v=e("".replace),I=e([].join),N=u&&!r(function(){return h(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),S=uS.exports=function(E,T,w){y(p(T),0,7)==="Symbol("&&(T="["+v(p(T),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),w&&w.getter&&(T="get "+T),w&&w.setter&&(T="set "+T),(!a(E,"name")||l&&E.name!==T)&&(u?h(E,"name",{value:T,configurable:!0}):E.name=T),N&&w&&a(w,"arity")&&E.length!==w.arity&&h(E,"length",{value:w.arity});try{w&&a(w,"constructor")&&w.constructor?u&&h(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch(k){}var O=d(E);return a(O,"source")||(O.source=I(j,typeof T=="string"?T:"")),E};return Function.prototype.toString=S(function(){return n(this)&&g(this).source||c(this)},"toString"),uS.exports}var cS,Gue;function R2(){if(Gue)return cS;Gue=1;var e=_i(),r=xs(),n=Bue(),a=sw();return cS=function(u,l,c,f){f||(f={});var d=f.enumerable,g=f.name!==void 0?f.name:l;if(e(c)&&n(c,g,f),f.global)d?u[l]=c:a(l,c);else{try{f.unsafe?u[l]&&(d=!0):delete u[l]}catch(p){}d?u[l]=c:r.f(u,l,{value:c,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return u},cS}var fS={},Wue;function que(){if(Wue)return fS;Wue=1;var e=Due(),r=Gw(),n=r.concat("length","prototype");return fS.f=Object.getOwnPropertyNames||function(a){return e(a,n)},fS}var Kue={},Jue;function Xue(){return Jue||(Jue=1,Kue.f=Object.getOwnPropertySymbols),Kue}var dS,ele;function brt(){if(ele)return dS;ele=1;var e=_0(),r=ln(),n=que(),a=Xue(),u=ga(),l=r([].concat);return dS=e("Reflect","ownKeys")||function(c){var f=n.f(u(c)),d=a.f;return d?l(f,d(c)):f},dS}var gS,tle;function MS(){if(tle)return gS;tle=1;var e=qo(),r=brt(),n=oS(),a=xs();return gS=function(u,l,c){for(var f=r(l),d=a.f,g=n.f,p=0;p<f.length;p++){var h=f[p];!e(u,h)&&!(c&&e(c,h))&&d(u,h,g(l,h))}},gS}var pS,rle;function Ort(){if(rle)return pS;rle=1;var e=vn(),r=_i(),n=/#|\.prototype\./,a=function(d,g){var p=l[u(d)];return p===f?!0:p===c?!1:r(g)?e(g):!!g},u=a.normalize=function(d){return String(d).replace(n,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";return pS=a,pS}var yS,nle;function xi(){if(nle)return yS;nle=1;var e=nn(),r=oS().f,n=os(),a=R2(),u=sw(),l=MS(),c=Ort();return yS=function(f,d){var g=f.target,p=f.global,h=f.stat,y,v,I,N,j,S;if(p?v=e:h?v=e[g]||u(g,{}):v=e[g]&&e[g].prototype,v)for(I in d){if(j=d[I],f.dontCallGetSet?(S=r(v,I),N=S&&S.value):N=v[I],y=c(p?I:g+(h?".":"#")+I,f.forced),!y&&N!==void 0){if(typeof j==typeof N)continue;l(j,N)}(f.sham||N&&N.sham)&&n(j,"sham",!0),a(v,I,j,f)}},yS}var hS,ile;function krt(){if(ile)return hS;ile=1;var e=vn();return hS=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),hS}var vS,ale;function lM(){if(ale)return vS;ale=1;var e=qo(),r=_i(),n=as(),a=Jw(),u=krt(),l=a("IE_PROTO"),c=Object,f=c.prototype;return vS=u?c.getPrototypeOf:function(d){var g=n(d);if(e(g,l))return g[l];var p=g.constructor;return r(p)&&g instanceof p?p.prototype:g instanceof c?f:null},vS}var mS,ole;function Ky(){if(ole)return mS;ole=1;var e=vn(),r=_i(),n=Wo(),a=Hd(),u=lM(),l=R2(),c=ya(),f=d0(),d=c("iterator"),g=!1,p,h,y;[].keys&&(y=[].keys(),"next"in y?(h=u(u(y)),h!==Object.prototype&&(p=h)):g=!0);var v=!n(p)||e(function(){var I={};return p[d].call(I)!==I});return v?p={}:f&&(p=a(p)),r(p[d])||l(p,d,function(){return this}),mS={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:g},mS}var IS,ule;function W3(){if(ule)return IS;ule=1;var e=xs().f,r=qo(),n=ya(),a=n("toStringTag");return IS=function(u,l,c){u&&!c&&(u=u.prototype),u&&!r(u,a)&&e(u,a,{configurable:!0,value:l})},IS}var NS,lle;function sle(){if(lle)return NS;lle=1;var e=Ky().IteratorPrototype,r=Hd(),n=Vd(),a=W3(),u=uM(),l=function(){return this};return NS=function(c,f,d,g){var p=f+" Iterator";return c.prototype=r(e,{next:n(+!g,d)}),a(c,p,!1,!0),u[p]=l,c},NS}var jS,cle;function DS(){if(cle)return jS;cle=1;var e=ln(),r=Iu();return jS=function(n,a,u){try{return e(r(Object.getOwnPropertyDescriptor(n,a)[u]))}catch(l){}},jS}var ES,fle;function Lrt(){if(fle)return ES;fle=1;var e=Wo();return ES=function(r){return e(r)||r===null},ES}var TS,dle;function zrt(){if(dle)return TS;dle=1;var e=Lrt(),r=String,n=TypeError;return TS=function(a){if(e(a))return a;throw new n("Can't set "+r(a)+" as a prototype")},TS}var AS,gle;function q3(){if(gle)return AS;gle=1;var e=DS(),r=Wo(),n=Z3(),a=zrt();return AS=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,l={},c;try{c=e(Object.prototype,"__proto__","set"),c(l,[]),u=l instanceof Array}catch(f){}return function(f,d){return n(f),a(d),r(f)&&(u?c(f,d):f.__proto__=d),f}}():void 0),AS}var wS,Mle;function ple(){if(Mle)return wS;Mle=1;var e=xi(),r=Jn(),n=d0(),a=qy(),u=_i(),l=sle(),c=lM(),f=q3(),d=W3(),g=os(),p=R2(),h=ya(),y=uM(),v=Ky(),I=a.PROPER,N=a.CONFIGURABLE,j=v.IteratorPrototype,S=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),T="keys",w="values",O="entries",k=function(){return this};return wS=function(U,$,V,C,A,x,z){l(V,$,C);var P=function(se){if(se===A&&Y)return Y;if(!S&&se&&se in X)return X[se];switch(se){case T:return function(){return new V(this,se)};case w:return function(){return new V(this,se)};case O:return function(){return new V(this,se)}}return function(){return new V(this)}},F=$+" Iterator",W=!1,X=U.prototype,L=X[E]||X["@@iterator"]||A&&X[A],Y=!S&&L||P(A),G=$==="Array"&&X.entries||L,b,B,le;if(G&&(b=c(G.call(new U)),b!==Object.prototype&&b.next&&(!n&&c(b)!==j&&(f?f(b,j):u(b[E])||p(b,E,k)),d(b,F,!0,!0),n&&(y[F]=k))),I&&A===w&&L&&L.name!==w&&(!n&&N?g(X,"name",w):(W=!0,Y=function(){return r(L,this)})),A)if(B={values:P(w),keys:x?Y:P(T),entries:P(O)},z)for(le in B)(S||W||!(le in X))&&p(X,le,B[le]);else e({target:$,proto:!0,forced:S||W},B);return(!n||z)&&X[E]!==Y&&p(X,E,Y,{name:A}),y[$]=Y,B},wS}var yle,hle;function Jy(){return hle||(hle=1,yle=function(e,r){return{value:e,done:r}}),yle}var SS,vle;function mle(){if(vle)return SS;vle=1;var e=iM(),r=Crt(),n=uM(),a=_2(),u=xs().f,l=ple(),c=Jy(),f=d0(),d=Ci(),g="Array Iterator",p=a.set,h=a.getterFor(g);SS=l(Array,"Array",function(v,I){p(this,{type:g,target:e(v),index:0,kind:I})},function(){var v=h(this),I=v.target,N=v.index++;if(!I||N>=I.length)return v.target=null,c(void 0,!0);switch(v.kind){case"keys":return c(N,!1);case"values":return c(I[N],!1)}return c([N,I[N]],!1)},"values");var y=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!f&&d&&y.name!=="values")try{u(y,"name",{value:"values"})}catch(v){}return SS}var Ile;function _rt(){if(Ile)return voe;Ile=1;var e=nn(),r=jrt(),n=Drt(),a=mle(),u=os(),l=W3(),c=ya(),f=c("iterator"),d=a.values,g=function(h,y){if(h){if(h[f]!==d)try{u(h,f,d)}catch(I){h[f]=d}if(l(h,y,!0),r[y]){for(var v in a)if(h[v]!==a[v])try{u(h,v,a[v])}catch(I){h[v]=a[v]}}}};for(var p in r)g(e[p]&&e[p].prototype,p);return g(n,"DOMTokenList"),voe}_rt();var Nle={exports:{}},sM={},jle={exports:{}},Yr={},Dle;function Rrt(){if(Dle)return Yr;Dle=1;/**
184
184
  * @license React
185
185
  * react.production.min.js
186
186
  *