gbc-kyc-kit 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -121,6 +121,7 @@ If you use this components with TypeScript, you should create a customType.d.ts
121
121
  | mode | string | dark, light | Isn't required, the default value is "light". |
122
122
  | clientId | string | Global Bridge Connections send you for email | This value is unique for each client and will be sent for email. |
123
123
  | authorize | promise | () => Promise() | This Function verify clientId vs TOKEN and return accessToken. |
124
+ | dual | boolean | false | Isn't required and the default value is false. Just would used to enable dual upload of ID Document in Document Reader component (Two sides) |
124
125
 
125
126
  ## Document Reader Component
126
127
 
@@ -20403,7 +20403,6 @@ function DocumentReader({
20403
20403
  message,
20404
20404
  clearState
20405
20405
  } = DocumentReaderController(dataDocument, clientId, authorize, inProduction);
20406
- console.log(docImage.firstImage, "container");
20407
20406
  return /* @__PURE__ */ jsxs("div", {
20408
20407
  className: `kit-gbc ${mode}`,
20409
20408
  children: [/* @__PURE__ */ jsx(k$1, {
@@ -1228,7 +1228,7 @@ attempted value: ${y}
1228
1228
  box-sizing: border-box; }
1229
1229
  .ReactFlagsSelect-module_filterBox__3m8EU input:focus {
1230
1230
  outline: none; }
1231
- `,O3={flagsSelect:"ReactFlagsSelect-module_flagsSelect__2pfa2",flagsSelectInline:"ReactFlagsSelect-module_flagsSelectInline__cUnnz",selectBtn:"ReactFlagsSelect-module_selectBtn__19wW7",disabledBtn:"ReactFlagsSelect-module_disabledBtn__3A4GF",label:"ReactFlagsSelect-module_label__27pw9",secondaryLabel:"ReactFlagsSelect-module_secondaryLabel__37t1D",selectValue:"ReactFlagsSelect-module_selectValue__152eS",selectOption:"ReactFlagsSelect-module_selectOption__3pcgW",selectFlag:"ReactFlagsSelect-module_selectFlag__2q5gC",selectOptionValue:"ReactFlagsSelect-module_selectOptionValue__vS99-",selectOptionWithlabel:"ReactFlagsSelect-module_selectOptionWithlabel__2GpmM",selectOptions:"ReactFlagsSelect-module_selectOptions__3LNBJ",selectOptionsWithSearch:"ReactFlagsSelect-module_selectOptionsWithSearch__1W03w",fullWidthOptions:"ReactFlagsSelect-module_fullWidthOptions__1XeR6",alignOptionsToRight:"ReactFlagsSelect-module_alignOptionsToRight__3Qvq2",filterBox:"ReactFlagsSelect-module_filterBox__3m8EU"};PC(BC);var VC="Select a country",HC="Search",jC=function(t){var i,l,c,u=t.className,y=t.selected,S=t.onSelect,C=t.selectButtonClassName,T=t.showSelectedLabel,j=T===void 0?!0:T,k=t.showSecondarySelectedLabel,Z=k===void 0?!0:k,P=t.showOptionLabel,q=P===void 0?!0:P,I=t.showSecondaryOptionLabel,N=I===void 0?!0:I,V=t.selectedSize,$=V===void 0?16:V,i1=t.optionsSize,z1=i1===void 0?16:i1,S1=t.customLabels,h1=S1===void 0?{}:S1,E1=t.placeholder,X1=t.searchable,ae=X1===void 0?!1:X1,ze=t.searchPlaceholder,Y1=t.alignOptionsToRight,ne=Y1===void 0?!1:Y1,N1=t.countries,T1=t.blacklistCountries,P1=T1===void 0?!1:T1,pe=t.fullWidth,G1=pe===void 0?!0:pe,le=t.disabled,he=le===void 0?!1:le,Ce=t.id,b1=t.rfsKey,l1=b1===void 0?"rfs":b1,_1=a6(e.useState(!1),2),t1=_1[0],r1=_1[1],x1=a6(e.useState([]),2),o1=x1[0],y1=x1[1],_=a6(e.useState([]),2),$1=_[0],J1=_[1],Ae=a6(e.useState(""),2),me=Ae[0],ce=Ae[1],Ue=e.useRef(null),X=e.useRef(null),v1=e.useRef(null),u1=o1.includes(y)?y:"",F1=me?$1:o1,k1=function(R1){return NC[R1]},C1=function(){var R1=_l(u1),Z1=k1(R1);return Q1(Z1,{})},te=function(R1){return h1[R1]||Xn[R1]},A1=function(){return r1(!t1)},Le=function(R1){ce(""),S(R1)},f2=function(R1){var Z1=R1.target.value||"";if(ce(Z1),!Z1){J1([]);return}var n3=o1.filter(function(T2){var _2,i2,V2=te(T2);return i6(V2)?Rn((_2=V2)===null||_2===void 0?void 0:_2.primary,Z1)||Rn((i2=V2)===null||i2===void 0?void 0:i2.secondary,Z1):Rn(V2,Z1)});J1(n3)},ge=function(R1){R1.target!==Ue.current&&R1.target!==X.current&&R1.target!==v1.current&&r1(!1)},Ge=function(R1){R1.preventDefault(),R1.keyCode===27&&r1(!1)},Fe=function(R1,Z1){R1.preventDefault(),R1.keyCode===13?(Le(Z1),r1(!1)):R1.keyCode===27&&r1(!1)};e.useEffect(function(){y1(xw(N1,P1))},[N1,P1]),e.useEffect(function(){return window.addEventListener("click",ge),function(){window.removeEventListener("click",ge)}},[]);var Ze=te(u1),g2=l1+"-btn";return z2("div",{className:v7(O3.flagsSelect,u,(i={},i[O3.flagsSelectInline]=!G1,i)),id:Ce,"data-testid":l1,children:[Q1("button",{ref:Ue,id:g2,type:"button",className:v7(O3.selectBtn,C,(l={},l[O3.disabledBtn]=he,l)),style:{fontSize:$},onClick:A1,onKeyUp:function(R1){return Ge(R1)},disabled:he,"aria-labelledby":g2,"aria-haspopup":"listbox","aria-expanded":t1,"data-testid":g2,children:Q1("span",{className:O3.selectValue,children:u1?z2(a4,{children:[Q1("span",{className:O3.selectFlag,"data-testid":l1+"-selected-flag",children:C1()}),j&&Q1("span",{className:O3.label,children:i6(Ze)?Ze.primary:Ze}),Z&&i6(Ze)&&Q1("span",{className:O3.secondaryLabel,children:Ze.secondary})]}):Q1(a4,{children:E1||VC})})}),!he&&t1&&z2("ul",{tabIndex:-1,role:"listbox",ref:X,style:{fontSize:z1},className:v7(O3.selectOptions,(c={},c[O3.selectOptionsWithSearch]=ae,c[O3.alignOptionsToRight]=ne,c[O3.fullWidthOptions]=G1,c)),children:[ae&&Q1("div",{className:O3.filterBox,children:Q1("input",{type:"text",name:l1+"-q",autoComplete:"off",value:me,placeholder:ze||HC,ref:v1,onChange:f2})}),F1.map(function(R1){var Z1,n3=_l(R1),T2=k1(n3),_2=te(R1);return Q1("li",{id:l1+"-"+R1,role:"option",tabIndex:0,className:v7(O3.selectOption,(Z1={},Z1[O3.selectOptionWithlabel]=q,Z1)),onClick:function(){return Le(R1)},onKeyUp:function(i2){return Fe(i2,R1)},children:z2("span",{className:O3.selectOptionValue,children:[Q1("span",{className:O3.selectFlag,children:Q1(T2,{})}),q&&Q1("span",{className:O3.label,children:i6(_2)?_2.primary:_2}),N&&i6(_2)&&Q1("span",{className:O3.secondaryLabel,children:_2.secondary})]})},R1)})]})]})};function $n({type:t,name:i,id:l,icon:c,error:u,label:y,...S}){let C="";const{options:T,placeholder:j,value:k,onChange:Z}=S;return t==="select"?C=z2("div",{className:`custom-input-container ${u?"error":""}`,children:[z2("label",{className:`input-container ${c?"icon":""}`,children:[c&&c,z2("select",{name:i,id:l,...S,className:"custom-input",children:[Q1("option",{hidden:!0,children:"Pa\xEDs"},"default"),T.map((P,q)=>Q1("option",{value:P,children:P},q))]})]}),u&&Q1("p",{className:"error",children:u.message})]}):t==="country"?C=Q1("div",{className:`custom-input-container ${u?"error":""}`,children:Q1(jC,{showOptionLabel:!0,className:"country-select",name:i,id:l,...S,fullWidth:!0,placeholder:"Pa\xEDs de nacimiento"})}):C=z2("div",{className:`custom-input-container ${u?"error":""}`,children:[z2("label",{className:`input-container ${c?"icon":""}`,children:[c&&c,Q1("input",{type:t,name:i,id:l,value:k,onChange:Z}),Q1("div",{className:"filled-input active",children:j&&j})]}),u&&Q1("p",{className:"error",children:u.message})]}),C}$n.defautProps={type:"text",name:"",id:""},$n.propTypes={type:k2.exports.PropTypes.string,name:k2.exports.PropTypes.string,id:k2.exports.PropTypes.string,icon:k2.exports.PropTypes.func};function g9({name:t,control:i,...l}){return Q1(yc,{control:i,name:t,render:({field:{onChange:c,value:u}})=>Q1($n,{onChange:c,value:u,...l})})}function er(){return Q1("div",{id:"cover-spin"})}function UC({message:t}){return z2("div",{className:"success-container",children:[Q1("div",{className:"success-checkmark",children:z2("div",{className:"check-icon",children:[Q1("span",{className:"icon-line line-tip"}),Q1("span",{className:"icon-line line-long"}),Q1("div",{className:"icon-circle"}),Q1("div",{className:"icon-fix"})]})}),Q1("h5",{className:"",children:t})]})}function WC({message:t,status:i}){return z2("div",{className:"warning-container",children:[Q1("div",{className:"sa",children:z2("div",{className:"sa-warning",children:[Q1("div",{className:"sa-warning-body"}),Q1("div",{className:"sa-warning-dot"})]})}),Q1("h5",{className:"",children:t})]})}function qC({lists:t,handleReport:i}){function l(y){let S=y.replace(/[\[\]']+/g,"");return S=S.replace(/\w\S*/g,C=>C.charAt(0).toUpperCase()+C.substr(1).toLowerCase())}function c(y){let S="";const C=y.split(":");return C.length>1&&C.includes(" Address")&&(S=C[C.length-1]),S}const u=y=>{let S="";return y.map(C=>{let T=c(C);r4(T)||(S=T)}),S.replace(/[\[\]']+/g,"")};return Q1("div",{className:"accordion",id:"accordionList",children:t.map((y,S)=>{const[C,T]=y[1].split(":");let j=u(y);return z2("div",{className:"accordion-item",children:[Q1("h2",{className:"accordion-header",id:`heading-${S}`,children:Q1("div",{className:"accordion-button collapsed",type:"","data-bs-toggle":"collapse","data-bs-target":`#collapse-${S}`,"aria-expanded":"false","aria-controls":`collapse-${S}`,children:z2("div",{className:"w-100",children:[Q1("div",{children:l(T)}),z2("div",{className:"description",children:[z2("div",{children:[Q1("b",{children:"Lista: "}),y[0]]}),!r4(j)&&z2("div",{className:"me-3",children:[Q1("b",{children:"Pa\xEDs: "})," ",j]})]})]})})}),Q1("div",{id:`collapse-${S}`,className:"accordion-collapse collapse","aria-labelledby":`heading-${S}`,"data-bs-parent":"#accordionList",children:Q1("div",{className:"accordion-body",children:Q1("code",{children:y.map((k,Z)=>k)})})})]},S)})})}function tr({title:t,status:i,message:l,lists:c,complementarySearch:u,clearState:y,dataReq:S}){const C=["TOKEN","CLIENTID","MATCH","NOT_VERIFY","0",400,404,0,429,500],T=["ACCEPT","Success","FACER_OK"],[j,k]=e.useState({}),Z=P=>{k(P)};return Q1(a4,{children:r4(j)?z2(a4,{children:[C.includes(i)?Q1(WC,{message:l}):T.includes(i)?Q1(UC,{message:l}):null,!r4(c)&&Q1(qC,{lists:c,handleReport:Z}),u&&Q1(v9,{className:"my-2 col-6",onClick:u,children:"Ampliar criterios de consulta"}),Q1(v9,{className:"my-2 col-6",onClick:()=>y(),children:"Verificar nuevamente"})]}):Q1(a4,{children:z2("div",{style:{width:"100%"},children:[Q1("h4",{children:"Lista de sanciones"}),Q1("p",{children:j[0]}),Q1("div",{children:Q1("ul",{style:{listStyleType:"none"},children:j.map((P,q)=>Q1("li",{style:{textAlign:"left"},children:P},q))})})]})})})}function nr({mode:t,loader:i,icon:l,clientId:c,authorize:u,inProduction:y,...S}){const{onSendSubmitDocument:C,simpleHandleSubmit:T,isLoading:j,controlDoc:k,errorsDoc:Z,status:P,message:q,listMatch:I,select:N,setSelect:V,clearState:$,complementarySearch:i1,dataReq:z1}=ww(c,u,y);return z2("div",{className:`kit-gbc ${t}`,children:[Q1(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),j&&Q1(er,{}),Q1("form",{onSubmit:T(C),id:"blacklist",children:z2("div",{className:"sub",children:[Q1("h4",{children:"Lista de sanciones y PEP's"}),r4(P)?z2(a4,{children:[Q1("p",{children:"Ingrese al menos el primer nombre y apellido de la persona a consultar."}),Q1(g9,{type:"text",name:"fname",placeholder:"Primer nombre",icon:l&&l,control:k,error:Z.fname}),Q1(g9,{type:"text",name:"sname",label:"Segundo nombre",placeholder:"Segundo nombre",icon:l&&l,control:k,error:Z.sname}),Q1(g9,{type:"text",name:"lname",label:"Primer apellido",placeholder:"Primer apellido",icon:l&&l,control:k,error:Z.lname}),Q1(g9,{type:"text",name:"slname",label:"Segundo apellido",placeholder:"Segundo apellido",icon:l&&l,control:k,error:Z.slname}),Q1(g9,{type:"date",name:"birthdate",label:"Fecha de nacimiento",placeholder:"Fecha de nacimiento",icon:l&&l,control:k,error:Z.birthdate}),Q1(g9,{type:"country",name:"country",customLabel:"Pa\xEDs de nacimiento",searchable:!0,searchPlaceholder:"Filtrar por pa\xEDs",onSelect:S1=>V(S1),selected:N,icon:l&&l,control:k,error:Z.country}),Q1(v9,{type:"submit",children:"Procesar"})]}):Q1(tr,{status:P,message:q.message?q.message:q,lists:I,complementarySearch:i1,clearState:$,dataReq:z1})]})})]})}nr.defaultProps={mode:"light",loader:!1,inProduction:"prd"},nr.propTypes={mode:k2.exports.PropTypes.string,loader:k2.exports.PropTypes.bool,icon:k2.exports.PropTypes.func,clientId:k2.exports.PropTypes.string.isRequired,authorize:k2.exports.PropTypes.func.isRequired,inProduction:k2.exports.PropTypes.string};const GC=(t,i,l,c)=>{const[u,y]=e.useState({}),[S,C]=e.useState({}),[T,j]=e.useState(""),[k,Z]=e.useState(!1),[P,q]=e.useState(i===void 0?"CLIENTID":l===void 0?"TOKEN":""),I=()=>{y({}),C({}),q("")},{handleSubmit:N}=_a();return{handleChangeDocument:(i1,z1)=>{const S1=i1.target.files[0],{id:h1}=i1.target,E1=new FileReader;E1.addEventListener("load",()=>{const{result:X1}=E1;X1!=null&&(C({...S,[h1]:X1}),y({...u,[h1]:S1.name}))}),E1.readAsDataURL(S1)},onSendSubmitDocument:async()=>{var i1;Z(!0);try{const z1=await l(),h1={method:"POST",path:"api/v1/kyc-kit/document/recognition",inProduction:c,customHeaders:{client_id:i,access_token:z1},bodyParams:S};try{const E1=await rn(h1);E1.data&&await t(E1.data);const{message:X1}=E1.data;X1&&q(X1),j("Documento verificado con \xE9xito")}catch(E1){let X1="";const{status:ae}=E1.response;(i1=E1.response.data)!=null&&i1.message?X1=E1.response.data.message:ae===500&&(X1="Limite de consultas - Verificar con el proveedor"),Z(null),j(X1),q(ae),Jn(E1)}}catch{B2.error("Error - Verificar host con el proveedor")}finally{Z(!1)}},simpleHandleSubmit:N,isLoading:k,docImage:u,status:P,message:T,clearState:I}},zl=()=>z2("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 486.3 486.3",children:[Q1("path",{d:"M395.5,135.8c-5.2-30.9-20.5-59.1-43.9-80.5c-26-23.8-59.8-36.9-95-36.9c-27.2,0-53.7,7.8-76.4,22.5\r c-18.9,12.2-34.6,28.7-45.7,48.1c-4.8-0.9-9.8-1.4-14.8-1.4c-42.5,0-77.1,34.6-77.1,77.1c0,5.5,0.6,10.8,1.6,16\r C16.7,200.7,0,232.9,0,267.2c0,27.7,10.3,54.6,29.1,75.9c19.3,21.8,44.8,34.7,72,36.2c0.3,0,0.5,0,0.8,0h86\r c7.5,0,13.5-6,13.5-13.5s-6-13.5-13.5-13.5h-85.6C61.4,349.8,27,310.9,27,267.1c0-28.3,15.2-54.7,39.7-69\r c5.7-3.3,8.1-10.2,5.9-16.4c-2-5.4-3-11.1-3-17.2c0-27.6,22.5-50.1,50.1-50.1c5.9,0,11.7,1,17.1,3c6.6,2.4,13.9-0.6,16.9-6.9\r c18.7-39.7,59.1-65.3,103-65.3c59,0,107.7,44.2,113.3,102.8c0.6,6.1,5.2,11,11.2,12c44.5,7.6,78.1,48.7,78.1,95.6\r c0,49.7-39.1,92.9-87.3,96.6h-73.7c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5h74.2c0.3,0,0.6,0,1,0c30.5-2.2,59-16.2,80.2-39.6\r c21.1-23.2,32.6-53,32.6-84C486.2,199.5,447.9,149.6,395.5,135.8z"}),Q1("path",{d:"M324.2,280c5.3-5.3,5.3-13.8,0-19.1l-71.5-71.5c-2.5-2.5-6-4-9.5-4s-7,1.4-9.5,4l-71.5,71.5c-5.3,5.3-5.3,13.8,0,19.1\r c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l48.5-48.5v222.9c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5V231.5l48.5,48.5\r C310.4,285.3,318.9,285.3,324.2,280z"})]});function rr({mode:t,dataDocument:i,clientId:l,authorize:c,inProduction:u,dual:y}){const{onSendSubmitDocument:S,handleChangeDocument:C,simpleHandleSubmit:T,isLoading:j,docImage:k,status:Z,message:P,clearState:q}=GC(i,l,c,u);return console.log(k.firstImage,"container"),z2("div",{className:`kit-gbc ${t}`,children:[Q1(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),j&&Q1(er,{}),Q1("form",{onSubmit:T(S),children:z2("div",{className:"sub",children:[Q1("h4",{children:"Lectura del documento"}),r4(Z)?z2(a4,{children:[Q1("p",{children:"Utilice la c\xE1mara de su dispositivo para capturar una foto de su documento de identidad."}),z2("label",{className:"upload-document",children:[Q1(zl,{}),k.firstImage?Q1("p",{children:k.firstImage}):Q1("p",{children:"Carga Frontal"}),Q1("input",{type:"file",hidden:!0,accept:"image/*",capture:"camera",id:"firstImage",onChange:I=>{C(I)}})]}),y&&z2(a4,{children:[Q1("hr",{}),z2("label",{className:"upload-document",children:[Q1(zl,{}),k.secondImage?Q1("p",{children:k.secondImage}):Q1("p",{children:"Cargar del Reverso"}),Q1("input",{type:"file",hidden:!0,accept:"image/*",capture:"camera",id:"secondImage",onChange:I=>{C(I)}})]})]}),Q1(v9,{type:"submit",children:"Procesar"})]}):Q1(tr,{status:Z,message:P,clearState:q})]})})]})}rr.defaultProps={mode:"light",loader:!1,inProduction:"prd",dual:!1},rr.propTypes={mode:k2.exports.PropTypes.string,loader:k2.exports.PropTypes.bool,data:k2.exports.PropTypes.func,clientId:k2.exports.PropTypes.string.isRequired,authorize:k2.exports.PropTypes.func.isRequired,dataDocument:k2.exports.PropTypes.func.isRequired,inProduction:k2.exports.PropTypes.string,dual:k2.exports.PropTypes.bool};const ZC=(t,i,l)=>{const[c,u]=e.useState(!1),[y,S]=e.useState(t===void 0?"CLIENTID":i===void 0?"TOKEN":""),[C,T]=e.useState(""),j=P=>{if(console.log(P.detail),P.detail&&P.detail.action==="PROCESS_FINISHED"){const{response:q}=P.detail.data,{code:I}=q;I===-1&&(S("NOT_VERIFY"),T("Error interno de aplicaci\xF3n, contactar con soporte!")),Z()}},k=()=>{S(""),T("")},Z=async P=>{u(!0);try{const q=await i(),N={method:"POST",path:"api/v1/kyc-kit/liveness/check",inProduction:l,customHeaders:{client_id:t,access_token:q}};try{const V=await rn(N)}catch(V){let $="";console.log(V);const{status:i1}=V.response;i1===500&&($="Limite de consultas - Verificar con el proveedor"),u(null),T($),S(i1),Jn(V)}}catch{B2.error("Error - Verificar host con el proveedor")}finally{u(!1)}};return{status:y,isLoading:c,listener:j,onSendSubmitLiveness:Z,clearState:k,message:C}};var _e={},ar={exports:{}};(function(t,i){(function(l,c){var u="1.0.34",y="",S="?",C="function",T="undefined",j="object",k="string",Z="major",P="model",q="name",I="type",N="vendor",V="version",$="architecture",i1="console",z1="mobile",S1="tablet",h1="smarttv",E1="wearable",X1="embedded",ae=350,ze="Amazon",Y1="Apple",ne="ASUS",N1="BlackBerry",T1="Browser",P1="Chrome",pe="Edge",G1="Firefox",le="Google",he="Huawei",Ce="LG",b1="Microsoft",l1="Motorola",_1="Opera",t1="Samsung",r1="Sharp",x1="Sony",o1="Xiaomi",y1="Zebra",_="Facebook",$1="Chromium OS",J1="Mac OS",Ae=function(ge,Ge){var Fe={};for(var Ze in ge)Ge[Ze]&&Ge[Ze].length%2===0?Fe[Ze]=Ge[Ze].concat(ge[Ze]):Fe[Ze]=ge[Ze];return Fe},me=function(ge){for(var Ge={},Fe=0;Fe<ge.length;Fe++)Ge[ge[Fe].toUpperCase()]=ge[Fe];return Ge},ce=function(ge,Ge){return typeof ge===k?Ue(Ge).indexOf(Ue(ge))!==-1:!1},Ue=function(ge){return ge.toLowerCase()},X=function(ge){return typeof ge===k?ge.replace(/[^\d\.]/g,y).split(".")[0]:c},v1=function(ge,Ge){if(typeof ge===k)return ge=ge.replace(/^\s\s*/,y),typeof Ge===T?ge:ge.substring(0,ae)},u1=function(ge,Ge){for(var Fe=0,Ze,g2,R1,Z1,n3,T2;Fe<Ge.length&&!n3;){var _2=Ge[Fe],i2=Ge[Fe+1];for(Ze=g2=0;Ze<_2.length&&!n3&&_2[Ze];)if(n3=_2[Ze++].exec(ge),n3)for(R1=0;R1<i2.length;R1++)T2=n3[++g2],Z1=i2[R1],typeof Z1===j&&Z1.length>0?Z1.length===2?typeof Z1[1]==C?this[Z1[0]]=Z1[1].call(this,T2):this[Z1[0]]=Z1[1]:Z1.length===3?typeof Z1[1]===C&&!(Z1[1].exec&&Z1[1].test)?this[Z1[0]]=T2?Z1[1].call(this,T2,Z1[2]):c:this[Z1[0]]=T2?T2.replace(Z1[1],Z1[2]):c:Z1.length===4&&(this[Z1[0]]=T2?Z1[3].call(this,T2.replace(Z1[1],Z1[2])):c):this[Z1]=T2||c;Fe+=2}},F1=function(ge,Ge){for(var Fe in Ge)if(typeof Ge[Fe]===j&&Ge[Fe].length>0){for(var Ze=0;Ze<Ge[Fe].length;Ze++)if(ce(Ge[Fe][Ze],ge))return Fe===S?c:Fe}else if(ce(Ge[Fe],ge))return Fe===S?c:Fe;return ge},k1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},C1={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[V,[q,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[V,[q,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[q,V],[/opios[\/ ]+([\w\.]+)/i],[V,[q,_1+" Mini"]],[/\bopr\/([\w\.]+)/i],[V,[q,_1]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[q,V],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[V,[q,"UC"+T1]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[V,[q,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[V,[q,"WeChat"]],[/konqueror\/([\w\.]+)/i],[V,[q,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[V,[q,"IE"]],[/yabrowser\/([\w\.]+)/i],[V,[q,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[q,/(.+)/,"$1 Secure "+T1],V],[/\bfocus\/([\w\.]+)/i],[V,[q,G1+" Focus"]],[/\bopt\/([\w\.]+)/i],[V,[q,_1+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[V,[q,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[V,[q,"Dolphin"]],[/coast\/([\w\.]+)/i],[V,[q,_1+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[V,[q,"MIUI "+T1]],[/fxios\/([-\w\.]+)/i],[V,[q,G1]],[/\bqihu|(qi?ho?o?|360)browser/i],[[q,"360 "+T1]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[q,/(.+)/,"$1 "+T1],V],[/(comodo_dragon)\/([\w\.]+)/i],[[q,/_/g," "],V],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[q,V],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[q],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[q,_],V],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[q,V],[/\bgsa\/([\w\.]+) .*safari\//i],[V,[q,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[V,[q,P1+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[q,P1+" WebView"],V],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[V,[q,"Android "+T1]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[q,V],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[V,[q,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[V,q],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[q,[V,F1,k1]],[/(webkit|khtml)\/([\w\.]+)/i],[q,V],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[q,"Netscape"],V],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[V,[q,G1+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[q,V],[/(cobalt)\/([\w\.]+)/i],[q,[V,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[$,"amd64"]],[/(ia32(?=;))/i],[[$,Ue]],[/((?:i[346]|x)86)[;\)]/i],[[$,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[$,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[$,"armhf"]],[/windows (ce|mobile); ppc;/i],[[$,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[$,/ower/,y,Ue]],[/(sun4\w)[;\)]/i],[[$,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[$,Ue]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[P,[N,t1],[I,S1]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[P,[N,t1],[I,z1]],[/\((ip(?:hone|od)[\w ]*);/i],[P,[N,Y1],[I,z1]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[P,[N,Y1],[I,S1]],[/(macintosh);/i],[P,[N,Y1]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[P,[N,r1],[I,z1]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[P,[N,he],[I,S1]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[P,[N,he],[I,z1]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[P,/_/g," "],[N,o1],[I,z1]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[P,/_/g," "],[N,o1],[I,S1]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[P,[N,"OPPO"],[I,z1]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[P,[N,"Vivo"],[I,z1]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[P,[N,"Realme"],[I,z1]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[P,[N,l1],[I,z1]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[P,[N,l1],[I,S1]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[P,[N,Ce],[I,S1]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[P,[N,Ce],[I,z1]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[P,[N,"Lenovo"],[I,S1]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[P,/_/g," "],[N,"Nokia"],[I,z1]],[/(pixel c)\b/i],[P,[N,le],[I,S1]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[P,[N,le],[I,z1]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[P,[N,x1],[I,z1]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[P,"Xperia Tablet"],[N,x1],[I,S1]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[P,[N,"OnePlus"],[I,z1]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[P,[N,ze],[I,S1]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[P,/(.+)/g,"Fire Phone $1"],[N,ze],[I,z1]],[/(playbook);[-\w\),; ]+(rim)/i],[P,N,[I,S1]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[P,[N,N1],[I,z1]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[P,[N,ne],[I,S1]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[P,[N,ne],[I,z1]],[/(nexus 9)/i],[P,[N,"HTC"],[I,S1]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[N,[P,/_/g," "],[I,z1]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[P,[N,"Acer"],[I,S1]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[P,[N,"Meizu"],[I,z1]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[N,P,[I,z1]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[N,P,[I,S1]],[/(surface duo)/i],[P,[N,b1],[I,S1]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[P,[N,"Fairphone"],[I,z1]],[/(u304aa)/i],[P,[N,"AT&T"],[I,z1]],[/\bsie-(\w*)/i],[P,[N,"Siemens"],[I,z1]],[/\b(rct\w+) b/i],[P,[N,"RCA"],[I,S1]],[/\b(venue[\d ]{2,7}) b/i],[P,[N,"Dell"],[I,S1]],[/\b(q(?:mv|ta)\w+) b/i],[P,[N,"Verizon"],[I,S1]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[P,[N,"Barnes & Noble"],[I,S1]],[/\b(tm\d{3}\w+) b/i],[P,[N,"NuVision"],[I,S1]],[/\b(k88) b/i],[P,[N,"ZTE"],[I,S1]],[/\b(nx\d{3}j) b/i],[P,[N,"ZTE"],[I,z1]],[/\b(gen\d{3}) b.+49h/i],[P,[N,"Swiss"],[I,z1]],[/\b(zur\d{3}) b/i],[P,[N,"Swiss"],[I,S1]],[/\b((zeki)?tb.*\b) b/i],[P,[N,"Zeki"],[I,S1]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[N,"Dragon Touch"],P,[I,S1]],[/\b(ns-?\w{0,9}) b/i],[P,[N,"Insignia"],[I,S1]],[/\b((nxa|next)-?\w{0,9}) b/i],[P,[N,"NextBook"],[I,S1]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[N,"Voice"],P,[I,z1]],[/\b(lvtel\-)?(v1[12]) b/i],[[N,"LvTel"],P,[I,z1]],[/\b(ph-1) /i],[P,[N,"Essential"],[I,z1]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[P,[N,"Envizen"],[I,S1]],[/\b(trio[-\w\. ]+) b/i],[P,[N,"MachSpeed"],[I,S1]],[/\btu_(1491) b/i],[P,[N,"Rotor"],[I,S1]],[/(shield[\w ]+) b/i],[P,[N,"Nvidia"],[I,S1]],[/(sprint) (\w+)/i],[N,P,[I,z1]],[/(kin\.[onetw]{3})/i],[[P,/\./g," "],[N,b1],[I,z1]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[P,[N,y1],[I,S1]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[P,[N,y1],[I,z1]],[/smart-tv.+(samsung)/i],[N,[I,h1]],[/hbbtv.+maple;(\d+)/i],[[P,/^/,"SmartTV"],[N,t1],[I,h1]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[N,Ce],[I,h1]],[/(apple) ?tv/i],[N,[P,Y1+" TV"],[I,h1]],[/crkey/i],[[P,P1+"cast"],[N,le],[I,h1]],[/droid.+aft(\w)( bui|\))/i],[P,[N,ze],[I,h1]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[P,[N,r1],[I,h1]],[/(bravia[\w ]+)( bui|\))/i],[P,[N,x1],[I,h1]],[/(mitv-\w{5}) bui/i],[P,[N,o1],[I,h1]],[/Hbbtv.*(technisat) (.*);/i],[N,P,[I,h1]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[N,v1],[P,v1],[I,h1]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[I,h1]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[N,P,[I,i1]],[/droid.+; (shield) bui/i],[P,[N,"Nvidia"],[I,i1]],[/(playstation [345portablevi]+)/i],[P,[N,x1],[I,i1]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[P,[N,b1],[I,i1]],[/((pebble))app/i],[N,P,[I,E1]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[P,[N,Y1],[I,E1]],[/droid.+; (glass) \d/i],[P,[N,le],[I,E1]],[/droid.+; (wt63?0{2,3})\)/i],[P,[N,y1],[I,E1]],[/(quest( 2| pro)?)/i],[P,[N,_],[I,E1]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[N,[I,X1]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[P,[I,z1]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[P,[I,S1]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[I,S1]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[I,z1]],[/(android[-\w\. ]{0,9});.+buil/i],[P,[N,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[V,[q,pe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[V,[q,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[q,V],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[V,q]],os:[[/microsoft (windows) (vista|xp)/i],[q,V],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[q,[V,F1,C1]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[q,"Windows"],[V,F1,C1]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[V,/_/g,"."],[q,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[q,J1],[V,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[V,q],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[q,V],[/\(bb(10);/i],[V,[q,N1]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[V,[q,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[V,[q,G1+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[V,[q,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[V,[q,"watchOS"]],[/crkey\/([\d\.]+)/i],[V,[q,P1+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[q,$1],V],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[q,V],[/(sunos) ?([\w\.\d]*)/i],[[q,"Solaris"],V],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[q,V]]},A1=function(ge,Ge){if(typeof ge===j&&(Ge=ge,ge=c),!(this instanceof A1))return new A1(ge,Ge).getResult();var Fe=typeof l!==T&&l.navigator?l.navigator:c,Ze=ge||(Fe&&Fe.userAgent?Fe.userAgent:y),g2=Fe&&Fe.userAgentData?Fe.userAgentData:c,R1=Ge?Ae(te,Ge):te;return this.getBrowser=function(){var Z1={};return Z1[q]=c,Z1[V]=c,u1.call(Z1,Ze,R1.browser),Z1[Z]=X(Z1[V]),Fe&&Fe.brave&&typeof Fe.brave.isBrave==C&&(Z1[q]="Brave"),Z1},this.getCPU=function(){var Z1={};return Z1[$]=c,u1.call(Z1,Ze,R1.cpu),Z1},this.getDevice=function(){var Z1={};return Z1[N]=c,Z1[P]=c,Z1[I]=c,u1.call(Z1,Ze,R1.device),!Z1[I]&&g2&&g2.mobile&&(Z1[I]=z1),Z1[P]=="Macintosh"&&Fe&&typeof Fe.standalone!==T&&Fe.maxTouchPoints&&Fe.maxTouchPoints>2&&(Z1[P]="iPad",Z1[I]=S1),Z1},this.getEngine=function(){var Z1={};return Z1[q]=c,Z1[V]=c,u1.call(Z1,Ze,R1.engine),Z1},this.getOS=function(){var Z1={};return Z1[q]=c,Z1[V]=c,u1.call(Z1,Ze,R1.os),!Z1[q]&&g2&&g2.platform!="Unknown"&&(Z1[q]=g2.platform.replace(/chrome os/i,$1).replace(/macos/i,J1)),Z1},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ze},this.setUA=function(Z1){return Ze=typeof Z1===k&&Z1.length>ae?v1(Z1,ae):Z1,this},this.setUA(Ze),this};A1.VERSION=u,A1.BROWSER=me([q,V,Z]),A1.CPU=me([$]),A1.DEVICE=me([P,N,I,i1,z1,h1,S1,E1,X1]),A1.ENGINE=A1.OS=me([q,V]),t.exports&&(i=t.exports=A1),i.UAParser=A1;var Le=typeof l!==T&&(l.jQuery||l.Zepto);if(Le&&!Le.ua){var f2=new A1;Le.ua=f2.getResult(),Le.ua.get=function(){return f2.getUA()},Le.ua.set=function(ge){f2.setUA(ge);var Ge=f2.getResult();for(var Fe in Ge)Le.ua[Fe]=Ge[Fe]}}})(typeof window=="object"?window:R4)})(ar,ar.exports),Object.defineProperty(_e,"__esModule",{value:!0});function KC(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var f8=Re.default,U2=KC(f8),Cl=ar.exports,i4=new Cl,p8=i4.getBrowser(),QC=i4.getCPU(),Mt=i4.getDevice(),ir=i4.getEngine(),l4=i4.getOS(),l6=i4.getUA(),Fl=function(i){return i4.setUA(i)},o6=function(i){if(!i){console.error("No userAgent string was provided");return}var l=new Cl(i);return{UA:l,browser:l.getBrowser(),cpu:l.getCPU(),device:l.getDevice(),engine:l.getEngine(),os:l.getOS(),ua:l.getUA(),setUserAgent:function(u){return l.setUA(u)}}},Ml=Object.freeze({ClientUAInstance:i4,browser:p8,cpu:QC,device:Mt,engine:ir,os:l4,ua:l6,setUa:Fl,parseUserAgent:o6});function Al(t,i){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);i&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),l.push.apply(l,c)}return l}function YC(t){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{};i%2?Al(Object(l),!0).forEach(function(c){RC(t,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):Al(Object(l)).forEach(function(c){Object.defineProperty(t,c,Object.getOwnPropertyDescriptor(l,c))})}return t}function s6(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s6=function(i){return typeof i}:s6=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s6(t)}function JC(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Ll(t,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}function XC(t,i,l){return i&&Ll(t.prototype,i),l&&Ll(t,l),t}function RC(t,i,l){return i in t?Object.defineProperty(t,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[i]=l,t}function lr(){return lr=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(t[c]=l[c])}return t},lr.apply(this,arguments)}function $C(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&sr(t,i)}function or(t){return or=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},or(t)}function sr(t,i){return sr=Object.setPrototypeOf||function(c,u){return c.__proto__=u,c},sr(t,i)}function eF(t,i){if(t==null)return{};var l={},c=Object.keys(t),u,y;for(y=0;y<c.length;y++)u=c[y],!(i.indexOf(u)>=0)&&(l[u]=t[u]);return l}function r0(t,i){if(t==null)return{};var l=eF(t,i),c,u;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);for(u=0;u<y.length;u++)c=y[u],!(i.indexOf(c)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,c)||(l[c]=t[c]))}return l}function g7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tF(t,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g7(t)}function nF(t,i){return rF(t)||aF(t,i)||iF(t,i)||lF()}function rF(t){if(Array.isArray(t))return t}function aF(t,i){var l=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(l!=null){var c=[],u=!0,y=!1,S,C;try{for(l=l.call(t);!(u=(S=l.next()).done)&&(c.push(S.value),!(i&&c.length===i));u=!0);}catch(T){y=!0,C=T}finally{try{!u&&l.return!=null&&l.return()}finally{if(y)throw C}}return c}}function iF(t,i){if(!!t){if(typeof t=="string")return xl(t,i);var l=Object.prototype.toString.call(t).slice(8,-1);if(l==="Object"&&t.constructor&&(l=t.constructor.name),l==="Map"||l==="Set")return Array.from(t);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return xl(t,i)}}function xl(t,i){(i==null||i>t.length)&&(i=t.length);for(var l=0,c=new Array(i);l<i;l++)c[l]=t[l];return c}function lF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1231
+ `,O3={flagsSelect:"ReactFlagsSelect-module_flagsSelect__2pfa2",flagsSelectInline:"ReactFlagsSelect-module_flagsSelectInline__cUnnz",selectBtn:"ReactFlagsSelect-module_selectBtn__19wW7",disabledBtn:"ReactFlagsSelect-module_disabledBtn__3A4GF",label:"ReactFlagsSelect-module_label__27pw9",secondaryLabel:"ReactFlagsSelect-module_secondaryLabel__37t1D",selectValue:"ReactFlagsSelect-module_selectValue__152eS",selectOption:"ReactFlagsSelect-module_selectOption__3pcgW",selectFlag:"ReactFlagsSelect-module_selectFlag__2q5gC",selectOptionValue:"ReactFlagsSelect-module_selectOptionValue__vS99-",selectOptionWithlabel:"ReactFlagsSelect-module_selectOptionWithlabel__2GpmM",selectOptions:"ReactFlagsSelect-module_selectOptions__3LNBJ",selectOptionsWithSearch:"ReactFlagsSelect-module_selectOptionsWithSearch__1W03w",fullWidthOptions:"ReactFlagsSelect-module_fullWidthOptions__1XeR6",alignOptionsToRight:"ReactFlagsSelect-module_alignOptionsToRight__3Qvq2",filterBox:"ReactFlagsSelect-module_filterBox__3m8EU"};PC(BC);var VC="Select a country",HC="Search",jC=function(t){var i,l,c,u=t.className,y=t.selected,S=t.onSelect,C=t.selectButtonClassName,T=t.showSelectedLabel,j=T===void 0?!0:T,k=t.showSecondarySelectedLabel,Z=k===void 0?!0:k,P=t.showOptionLabel,q=P===void 0?!0:P,I=t.showSecondaryOptionLabel,N=I===void 0?!0:I,V=t.selectedSize,$=V===void 0?16:V,i1=t.optionsSize,z1=i1===void 0?16:i1,S1=t.customLabels,h1=S1===void 0?{}:S1,E1=t.placeholder,X1=t.searchable,ae=X1===void 0?!1:X1,ze=t.searchPlaceholder,Y1=t.alignOptionsToRight,ne=Y1===void 0?!1:Y1,N1=t.countries,T1=t.blacklistCountries,P1=T1===void 0?!1:T1,pe=t.fullWidth,G1=pe===void 0?!0:pe,le=t.disabled,he=le===void 0?!1:le,Ce=t.id,b1=t.rfsKey,l1=b1===void 0?"rfs":b1,_1=a6(e.useState(!1),2),t1=_1[0],r1=_1[1],x1=a6(e.useState([]),2),o1=x1[0],y1=x1[1],_=a6(e.useState([]),2),$1=_[0],J1=_[1],Ae=a6(e.useState(""),2),me=Ae[0],ce=Ae[1],Ue=e.useRef(null),X=e.useRef(null),v1=e.useRef(null),u1=o1.includes(y)?y:"",F1=me?$1:o1,k1=function(R1){return NC[R1]},C1=function(){var R1=_l(u1),Z1=k1(R1);return Q1(Z1,{})},te=function(R1){return h1[R1]||Xn[R1]},A1=function(){return r1(!t1)},Le=function(R1){ce(""),S(R1)},f2=function(R1){var Z1=R1.target.value||"";if(ce(Z1),!Z1){J1([]);return}var n3=o1.filter(function(T2){var _2,i2,V2=te(T2);return i6(V2)?Rn((_2=V2)===null||_2===void 0?void 0:_2.primary,Z1)||Rn((i2=V2)===null||i2===void 0?void 0:i2.secondary,Z1):Rn(V2,Z1)});J1(n3)},ge=function(R1){R1.target!==Ue.current&&R1.target!==X.current&&R1.target!==v1.current&&r1(!1)},Ge=function(R1){R1.preventDefault(),R1.keyCode===27&&r1(!1)},Fe=function(R1,Z1){R1.preventDefault(),R1.keyCode===13?(Le(Z1),r1(!1)):R1.keyCode===27&&r1(!1)};e.useEffect(function(){y1(xw(N1,P1))},[N1,P1]),e.useEffect(function(){return window.addEventListener("click",ge),function(){window.removeEventListener("click",ge)}},[]);var Ze=te(u1),g2=l1+"-btn";return z2("div",{className:v7(O3.flagsSelect,u,(i={},i[O3.flagsSelectInline]=!G1,i)),id:Ce,"data-testid":l1,children:[Q1("button",{ref:Ue,id:g2,type:"button",className:v7(O3.selectBtn,C,(l={},l[O3.disabledBtn]=he,l)),style:{fontSize:$},onClick:A1,onKeyUp:function(R1){return Ge(R1)},disabled:he,"aria-labelledby":g2,"aria-haspopup":"listbox","aria-expanded":t1,"data-testid":g2,children:Q1("span",{className:O3.selectValue,children:u1?z2(a4,{children:[Q1("span",{className:O3.selectFlag,"data-testid":l1+"-selected-flag",children:C1()}),j&&Q1("span",{className:O3.label,children:i6(Ze)?Ze.primary:Ze}),Z&&i6(Ze)&&Q1("span",{className:O3.secondaryLabel,children:Ze.secondary})]}):Q1(a4,{children:E1||VC})})}),!he&&t1&&z2("ul",{tabIndex:-1,role:"listbox",ref:X,style:{fontSize:z1},className:v7(O3.selectOptions,(c={},c[O3.selectOptionsWithSearch]=ae,c[O3.alignOptionsToRight]=ne,c[O3.fullWidthOptions]=G1,c)),children:[ae&&Q1("div",{className:O3.filterBox,children:Q1("input",{type:"text",name:l1+"-q",autoComplete:"off",value:me,placeholder:ze||HC,ref:v1,onChange:f2})}),F1.map(function(R1){var Z1,n3=_l(R1),T2=k1(n3),_2=te(R1);return Q1("li",{id:l1+"-"+R1,role:"option",tabIndex:0,className:v7(O3.selectOption,(Z1={},Z1[O3.selectOptionWithlabel]=q,Z1)),onClick:function(){return Le(R1)},onKeyUp:function(i2){return Fe(i2,R1)},children:z2("span",{className:O3.selectOptionValue,children:[Q1("span",{className:O3.selectFlag,children:Q1(T2,{})}),q&&Q1("span",{className:O3.label,children:i6(_2)?_2.primary:_2}),N&&i6(_2)&&Q1("span",{className:O3.secondaryLabel,children:_2.secondary})]})},R1)})]})]})};function $n({type:t,name:i,id:l,icon:c,error:u,label:y,...S}){let C="";const{options:T,placeholder:j,value:k,onChange:Z}=S;return t==="select"?C=z2("div",{className:`custom-input-container ${u?"error":""}`,children:[z2("label",{className:`input-container ${c?"icon":""}`,children:[c&&c,z2("select",{name:i,id:l,...S,className:"custom-input",children:[Q1("option",{hidden:!0,children:"Pa\xEDs"},"default"),T.map((P,q)=>Q1("option",{value:P,children:P},q))]})]}),u&&Q1("p",{className:"error",children:u.message})]}):t==="country"?C=Q1("div",{className:`custom-input-container ${u?"error":""}`,children:Q1(jC,{showOptionLabel:!0,className:"country-select",name:i,id:l,...S,fullWidth:!0,placeholder:"Pa\xEDs de nacimiento"})}):C=z2("div",{className:`custom-input-container ${u?"error":""}`,children:[z2("label",{className:`input-container ${c?"icon":""}`,children:[c&&c,Q1("input",{type:t,name:i,id:l,value:k,onChange:Z}),Q1("div",{className:"filled-input active",children:j&&j})]}),u&&Q1("p",{className:"error",children:u.message})]}),C}$n.defautProps={type:"text",name:"",id:""},$n.propTypes={type:k2.exports.PropTypes.string,name:k2.exports.PropTypes.string,id:k2.exports.PropTypes.string,icon:k2.exports.PropTypes.func};function g9({name:t,control:i,...l}){return Q1(yc,{control:i,name:t,render:({field:{onChange:c,value:u}})=>Q1($n,{onChange:c,value:u,...l})})}function er(){return Q1("div",{id:"cover-spin"})}function UC({message:t}){return z2("div",{className:"success-container",children:[Q1("div",{className:"success-checkmark",children:z2("div",{className:"check-icon",children:[Q1("span",{className:"icon-line line-tip"}),Q1("span",{className:"icon-line line-long"}),Q1("div",{className:"icon-circle"}),Q1("div",{className:"icon-fix"})]})}),Q1("h5",{className:"",children:t})]})}function WC({message:t,status:i}){return z2("div",{className:"warning-container",children:[Q1("div",{className:"sa",children:z2("div",{className:"sa-warning",children:[Q1("div",{className:"sa-warning-body"}),Q1("div",{className:"sa-warning-dot"})]})}),Q1("h5",{className:"",children:t})]})}function qC({lists:t,handleReport:i}){function l(y){let S=y.replace(/[\[\]']+/g,"");return S=S.replace(/\w\S*/g,C=>C.charAt(0).toUpperCase()+C.substr(1).toLowerCase())}function c(y){let S="";const C=y.split(":");return C.length>1&&C.includes(" Address")&&(S=C[C.length-1]),S}const u=y=>{let S="";return y.map(C=>{let T=c(C);r4(T)||(S=T)}),S.replace(/[\[\]']+/g,"")};return Q1("div",{className:"accordion",id:"accordionList",children:t.map((y,S)=>{const[C,T]=y[1].split(":");let j=u(y);return z2("div",{className:"accordion-item",children:[Q1("h2",{className:"accordion-header",id:`heading-${S}`,children:Q1("div",{className:"accordion-button collapsed",type:"","data-bs-toggle":"collapse","data-bs-target":`#collapse-${S}`,"aria-expanded":"false","aria-controls":`collapse-${S}`,children:z2("div",{className:"w-100",children:[Q1("div",{children:l(T)}),z2("div",{className:"description",children:[z2("div",{children:[Q1("b",{children:"Lista: "}),y[0]]}),!r4(j)&&z2("div",{className:"me-3",children:[Q1("b",{children:"Pa\xEDs: "})," ",j]})]})]})})}),Q1("div",{id:`collapse-${S}`,className:"accordion-collapse collapse","aria-labelledby":`heading-${S}`,"data-bs-parent":"#accordionList",children:Q1("div",{className:"accordion-body",children:Q1("code",{children:y.map((k,Z)=>k)})})})]},S)})})}function tr({title:t,status:i,message:l,lists:c,complementarySearch:u,clearState:y,dataReq:S}){const C=["TOKEN","CLIENTID","MATCH","NOT_VERIFY","0",400,404,0,429,500],T=["ACCEPT","Success","FACER_OK"],[j,k]=e.useState({}),Z=P=>{k(P)};return Q1(a4,{children:r4(j)?z2(a4,{children:[C.includes(i)?Q1(WC,{message:l}):T.includes(i)?Q1(UC,{message:l}):null,!r4(c)&&Q1(qC,{lists:c,handleReport:Z}),u&&Q1(v9,{className:"my-2 col-6",onClick:u,children:"Ampliar criterios de consulta"}),Q1(v9,{className:"my-2 col-6",onClick:()=>y(),children:"Verificar nuevamente"})]}):Q1(a4,{children:z2("div",{style:{width:"100%"},children:[Q1("h4",{children:"Lista de sanciones"}),Q1("p",{children:j[0]}),Q1("div",{children:Q1("ul",{style:{listStyleType:"none"},children:j.map((P,q)=>Q1("li",{style:{textAlign:"left"},children:P},q))})})]})})})}function nr({mode:t,loader:i,icon:l,clientId:c,authorize:u,inProduction:y,...S}){const{onSendSubmitDocument:C,simpleHandleSubmit:T,isLoading:j,controlDoc:k,errorsDoc:Z,status:P,message:q,listMatch:I,select:N,setSelect:V,clearState:$,complementarySearch:i1,dataReq:z1}=ww(c,u,y);return z2("div",{className:`kit-gbc ${t}`,children:[Q1(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),j&&Q1(er,{}),Q1("form",{onSubmit:T(C),id:"blacklist",children:z2("div",{className:"sub",children:[Q1("h4",{children:"Lista de sanciones y PEP's"}),r4(P)?z2(a4,{children:[Q1("p",{children:"Ingrese al menos el primer nombre y apellido de la persona a consultar."}),Q1(g9,{type:"text",name:"fname",placeholder:"Primer nombre",icon:l&&l,control:k,error:Z.fname}),Q1(g9,{type:"text",name:"sname",label:"Segundo nombre",placeholder:"Segundo nombre",icon:l&&l,control:k,error:Z.sname}),Q1(g9,{type:"text",name:"lname",label:"Primer apellido",placeholder:"Primer apellido",icon:l&&l,control:k,error:Z.lname}),Q1(g9,{type:"text",name:"slname",label:"Segundo apellido",placeholder:"Segundo apellido",icon:l&&l,control:k,error:Z.slname}),Q1(g9,{type:"date",name:"birthdate",label:"Fecha de nacimiento",placeholder:"Fecha de nacimiento",icon:l&&l,control:k,error:Z.birthdate}),Q1(g9,{type:"country",name:"country",customLabel:"Pa\xEDs de nacimiento",searchable:!0,searchPlaceholder:"Filtrar por pa\xEDs",onSelect:S1=>V(S1),selected:N,icon:l&&l,control:k,error:Z.country}),Q1(v9,{type:"submit",children:"Procesar"})]}):Q1(tr,{status:P,message:q.message?q.message:q,lists:I,complementarySearch:i1,clearState:$,dataReq:z1})]})})]})}nr.defaultProps={mode:"light",loader:!1,inProduction:"prd"},nr.propTypes={mode:k2.exports.PropTypes.string,loader:k2.exports.PropTypes.bool,icon:k2.exports.PropTypes.func,clientId:k2.exports.PropTypes.string.isRequired,authorize:k2.exports.PropTypes.func.isRequired,inProduction:k2.exports.PropTypes.string};const GC=(t,i,l,c)=>{const[u,y]=e.useState({}),[S,C]=e.useState({}),[T,j]=e.useState(""),[k,Z]=e.useState(!1),[P,q]=e.useState(i===void 0?"CLIENTID":l===void 0?"TOKEN":""),I=()=>{y({}),C({}),q("")},{handleSubmit:N}=_a();return{handleChangeDocument:(i1,z1)=>{const S1=i1.target.files[0],{id:h1}=i1.target,E1=new FileReader;E1.addEventListener("load",()=>{const{result:X1}=E1;X1!=null&&(C({...S,[h1]:X1}),y({...u,[h1]:S1.name}))}),E1.readAsDataURL(S1)},onSendSubmitDocument:async()=>{var i1;Z(!0);try{const z1=await l(),h1={method:"POST",path:"api/v1/kyc-kit/document/recognition",inProduction:c,customHeaders:{client_id:i,access_token:z1},bodyParams:S};try{const E1=await rn(h1);E1.data&&await t(E1.data);const{message:X1}=E1.data;X1&&q(X1),j("Documento verificado con \xE9xito")}catch(E1){let X1="";const{status:ae}=E1.response;(i1=E1.response.data)!=null&&i1.message?X1=E1.response.data.message:ae===500&&(X1="Limite de consultas - Verificar con el proveedor"),Z(null),j(X1),q(ae),Jn(E1)}}catch{B2.error("Error - Verificar host con el proveedor")}finally{Z(!1)}},simpleHandleSubmit:N,isLoading:k,docImage:u,status:P,message:T,clearState:I}},zl=()=>z2("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 486.3 486.3",children:[Q1("path",{d:"M395.5,135.8c-5.2-30.9-20.5-59.1-43.9-80.5c-26-23.8-59.8-36.9-95-36.9c-27.2,0-53.7,7.8-76.4,22.5\r c-18.9,12.2-34.6,28.7-45.7,48.1c-4.8-0.9-9.8-1.4-14.8-1.4c-42.5,0-77.1,34.6-77.1,77.1c0,5.5,0.6,10.8,1.6,16\r C16.7,200.7,0,232.9,0,267.2c0,27.7,10.3,54.6,29.1,75.9c19.3,21.8,44.8,34.7,72,36.2c0.3,0,0.5,0,0.8,0h86\r c7.5,0,13.5-6,13.5-13.5s-6-13.5-13.5-13.5h-85.6C61.4,349.8,27,310.9,27,267.1c0-28.3,15.2-54.7,39.7-69\r c5.7-3.3,8.1-10.2,5.9-16.4c-2-5.4-3-11.1-3-17.2c0-27.6,22.5-50.1,50.1-50.1c5.9,0,11.7,1,17.1,3c6.6,2.4,13.9-0.6,16.9-6.9\r c18.7-39.7,59.1-65.3,103-65.3c59,0,107.7,44.2,113.3,102.8c0.6,6.1,5.2,11,11.2,12c44.5,7.6,78.1,48.7,78.1,95.6\r c0,49.7-39.1,92.9-87.3,96.6h-73.7c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5h74.2c0.3,0,0.6,0,1,0c30.5-2.2,59-16.2,80.2-39.6\r c21.1-23.2,32.6-53,32.6-84C486.2,199.5,447.9,149.6,395.5,135.8z"}),Q1("path",{d:"M324.2,280c5.3-5.3,5.3-13.8,0-19.1l-71.5-71.5c-2.5-2.5-6-4-9.5-4s-7,1.4-9.5,4l-71.5,71.5c-5.3,5.3-5.3,13.8,0,19.1\r c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4l48.5-48.5v222.9c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5V231.5l48.5,48.5\r C310.4,285.3,318.9,285.3,324.2,280z"})]});function rr({mode:t,dataDocument:i,clientId:l,authorize:c,inProduction:u,dual:y}){const{onSendSubmitDocument:S,handleChangeDocument:C,simpleHandleSubmit:T,isLoading:j,docImage:k,status:Z,message:P,clearState:q}=GC(i,l,c,u);return z2("div",{className:`kit-gbc ${t}`,children:[Q1(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),j&&Q1(er,{}),Q1("form",{onSubmit:T(S),children:z2("div",{className:"sub",children:[Q1("h4",{children:"Lectura del documento"}),r4(Z)?z2(a4,{children:[Q1("p",{children:"Utilice la c\xE1mara de su dispositivo para capturar una foto de su documento de identidad."}),z2("label",{className:"upload-document",children:[Q1(zl,{}),k.firstImage?Q1("p",{children:k.firstImage}):Q1("p",{children:"Carga Frontal"}),Q1("input",{type:"file",hidden:!0,accept:"image/*",capture:"camera",id:"firstImage",onChange:I=>{C(I)}})]}),y&&z2(a4,{children:[Q1("hr",{}),z2("label",{className:"upload-document",children:[Q1(zl,{}),k.secondImage?Q1("p",{children:k.secondImage}):Q1("p",{children:"Cargar del Reverso"}),Q1("input",{type:"file",hidden:!0,accept:"image/*",capture:"camera",id:"secondImage",onChange:I=>{C(I)}})]})]}),Q1(v9,{type:"submit",children:"Procesar"})]}):Q1(tr,{status:Z,message:P,clearState:q})]})})]})}rr.defaultProps={mode:"light",loader:!1,inProduction:"prd",dual:!1},rr.propTypes={mode:k2.exports.PropTypes.string,loader:k2.exports.PropTypes.bool,data:k2.exports.PropTypes.func,clientId:k2.exports.PropTypes.string.isRequired,authorize:k2.exports.PropTypes.func.isRequired,dataDocument:k2.exports.PropTypes.func.isRequired,inProduction:k2.exports.PropTypes.string,dual:k2.exports.PropTypes.bool};const ZC=(t,i,l)=>{const[c,u]=e.useState(!1),[y,S]=e.useState(t===void 0?"CLIENTID":i===void 0?"TOKEN":""),[C,T]=e.useState(""),j=P=>{if(console.log(P.detail),P.detail&&P.detail.action==="PROCESS_FINISHED"){const{response:q}=P.detail.data,{code:I}=q;I===-1&&(S("NOT_VERIFY"),T("Error interno de aplicaci\xF3n, contactar con soporte!")),Z()}},k=()=>{S(""),T("")},Z=async P=>{u(!0);try{const q=await i(),N={method:"POST",path:"api/v1/kyc-kit/liveness/check",inProduction:l,customHeaders:{client_id:t,access_token:q}};try{const V=await rn(N)}catch(V){let $="";console.log(V);const{status:i1}=V.response;i1===500&&($="Limite de consultas - Verificar con el proveedor"),u(null),T($),S(i1),Jn(V)}}catch{B2.error("Error - Verificar host con el proveedor")}finally{u(!1)}};return{status:y,isLoading:c,listener:j,onSendSubmitLiveness:Z,clearState:k,message:C}};var _e={},ar={exports:{}};(function(t,i){(function(l,c){var u="1.0.34",y="",S="?",C="function",T="undefined",j="object",k="string",Z="major",P="model",q="name",I="type",N="vendor",V="version",$="architecture",i1="console",z1="mobile",S1="tablet",h1="smarttv",E1="wearable",X1="embedded",ae=350,ze="Amazon",Y1="Apple",ne="ASUS",N1="BlackBerry",T1="Browser",P1="Chrome",pe="Edge",G1="Firefox",le="Google",he="Huawei",Ce="LG",b1="Microsoft",l1="Motorola",_1="Opera",t1="Samsung",r1="Sharp",x1="Sony",o1="Xiaomi",y1="Zebra",_="Facebook",$1="Chromium OS",J1="Mac OS",Ae=function(ge,Ge){var Fe={};for(var Ze in ge)Ge[Ze]&&Ge[Ze].length%2===0?Fe[Ze]=Ge[Ze].concat(ge[Ze]):Fe[Ze]=ge[Ze];return Fe},me=function(ge){for(var Ge={},Fe=0;Fe<ge.length;Fe++)Ge[ge[Fe].toUpperCase()]=ge[Fe];return Ge},ce=function(ge,Ge){return typeof ge===k?Ue(Ge).indexOf(Ue(ge))!==-1:!1},Ue=function(ge){return ge.toLowerCase()},X=function(ge){return typeof ge===k?ge.replace(/[^\d\.]/g,y).split(".")[0]:c},v1=function(ge,Ge){if(typeof ge===k)return ge=ge.replace(/^\s\s*/,y),typeof Ge===T?ge:ge.substring(0,ae)},u1=function(ge,Ge){for(var Fe=0,Ze,g2,R1,Z1,n3,T2;Fe<Ge.length&&!n3;){var _2=Ge[Fe],i2=Ge[Fe+1];for(Ze=g2=0;Ze<_2.length&&!n3&&_2[Ze];)if(n3=_2[Ze++].exec(ge),n3)for(R1=0;R1<i2.length;R1++)T2=n3[++g2],Z1=i2[R1],typeof Z1===j&&Z1.length>0?Z1.length===2?typeof Z1[1]==C?this[Z1[0]]=Z1[1].call(this,T2):this[Z1[0]]=Z1[1]:Z1.length===3?typeof Z1[1]===C&&!(Z1[1].exec&&Z1[1].test)?this[Z1[0]]=T2?Z1[1].call(this,T2,Z1[2]):c:this[Z1[0]]=T2?T2.replace(Z1[1],Z1[2]):c:Z1.length===4&&(this[Z1[0]]=T2?Z1[3].call(this,T2.replace(Z1[1],Z1[2])):c):this[Z1]=T2||c;Fe+=2}},F1=function(ge,Ge){for(var Fe in Ge)if(typeof Ge[Fe]===j&&Ge[Fe].length>0){for(var Ze=0;Ze<Ge[Fe].length;Ze++)if(ce(Ge[Fe][Ze],ge))return Fe===S?c:Fe}else if(ce(Ge[Fe],ge))return Fe===S?c:Fe;return ge},k1={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},C1={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[V,[q,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[V,[q,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[q,V],[/opios[\/ ]+([\w\.]+)/i],[V,[q,_1+" Mini"]],[/\bopr\/([\w\.]+)/i],[V,[q,_1]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[q,V],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[V,[q,"UC"+T1]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[V,[q,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[V,[q,"WeChat"]],[/konqueror\/([\w\.]+)/i],[V,[q,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[V,[q,"IE"]],[/yabrowser\/([\w\.]+)/i],[V,[q,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[q,/(.+)/,"$1 Secure "+T1],V],[/\bfocus\/([\w\.]+)/i],[V,[q,G1+" Focus"]],[/\bopt\/([\w\.]+)/i],[V,[q,_1+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[V,[q,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[V,[q,"Dolphin"]],[/coast\/([\w\.]+)/i],[V,[q,_1+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[V,[q,"MIUI "+T1]],[/fxios\/([-\w\.]+)/i],[V,[q,G1]],[/\bqihu|(qi?ho?o?|360)browser/i],[[q,"360 "+T1]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[q,/(.+)/,"$1 "+T1],V],[/(comodo_dragon)\/([\w\.]+)/i],[[q,/_/g," "],V],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[q,V],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[q],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[q,_],V],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[q,V],[/\bgsa\/([\w\.]+) .*safari\//i],[V,[q,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[V,[q,P1+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[q,P1+" WebView"],V],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[V,[q,"Android "+T1]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[q,V],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[V,[q,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[V,q],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[q,[V,F1,k1]],[/(webkit|khtml)\/([\w\.]+)/i],[q,V],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[q,"Netscape"],V],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[V,[q,G1+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[q,V],[/(cobalt)\/([\w\.]+)/i],[q,[V,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[$,"amd64"]],[/(ia32(?=;))/i],[[$,Ue]],[/((?:i[346]|x)86)[;\)]/i],[[$,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[$,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[$,"armhf"]],[/windows (ce|mobile); ppc;/i],[[$,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[$,/ower/,y,Ue]],[/(sun4\w)[;\)]/i],[[$,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[$,Ue]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[P,[N,t1],[I,S1]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[P,[N,t1],[I,z1]],[/\((ip(?:hone|od)[\w ]*);/i],[P,[N,Y1],[I,z1]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[P,[N,Y1],[I,S1]],[/(macintosh);/i],[P,[N,Y1]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[P,[N,r1],[I,z1]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[P,[N,he],[I,S1]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[P,[N,he],[I,z1]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[P,/_/g," "],[N,o1],[I,z1]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[P,/_/g," "],[N,o1],[I,S1]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[P,[N,"OPPO"],[I,z1]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[P,[N,"Vivo"],[I,z1]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[P,[N,"Realme"],[I,z1]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[P,[N,l1],[I,z1]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[P,[N,l1],[I,S1]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[P,[N,Ce],[I,S1]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[P,[N,Ce],[I,z1]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[P,[N,"Lenovo"],[I,S1]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[P,/_/g," "],[N,"Nokia"],[I,z1]],[/(pixel c)\b/i],[P,[N,le],[I,S1]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[P,[N,le],[I,z1]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[P,[N,x1],[I,z1]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[P,"Xperia Tablet"],[N,x1],[I,S1]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[P,[N,"OnePlus"],[I,z1]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[P,[N,ze],[I,S1]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[P,/(.+)/g,"Fire Phone $1"],[N,ze],[I,z1]],[/(playbook);[-\w\),; ]+(rim)/i],[P,N,[I,S1]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[P,[N,N1],[I,z1]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[P,[N,ne],[I,S1]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[P,[N,ne],[I,z1]],[/(nexus 9)/i],[P,[N,"HTC"],[I,S1]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[N,[P,/_/g," "],[I,z1]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[P,[N,"Acer"],[I,S1]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[P,[N,"Meizu"],[I,z1]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[N,P,[I,z1]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[N,P,[I,S1]],[/(surface duo)/i],[P,[N,b1],[I,S1]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[P,[N,"Fairphone"],[I,z1]],[/(u304aa)/i],[P,[N,"AT&T"],[I,z1]],[/\bsie-(\w*)/i],[P,[N,"Siemens"],[I,z1]],[/\b(rct\w+) b/i],[P,[N,"RCA"],[I,S1]],[/\b(venue[\d ]{2,7}) b/i],[P,[N,"Dell"],[I,S1]],[/\b(q(?:mv|ta)\w+) b/i],[P,[N,"Verizon"],[I,S1]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[P,[N,"Barnes & Noble"],[I,S1]],[/\b(tm\d{3}\w+) b/i],[P,[N,"NuVision"],[I,S1]],[/\b(k88) b/i],[P,[N,"ZTE"],[I,S1]],[/\b(nx\d{3}j) b/i],[P,[N,"ZTE"],[I,z1]],[/\b(gen\d{3}) b.+49h/i],[P,[N,"Swiss"],[I,z1]],[/\b(zur\d{3}) b/i],[P,[N,"Swiss"],[I,S1]],[/\b((zeki)?tb.*\b) b/i],[P,[N,"Zeki"],[I,S1]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[N,"Dragon Touch"],P,[I,S1]],[/\b(ns-?\w{0,9}) b/i],[P,[N,"Insignia"],[I,S1]],[/\b((nxa|next)-?\w{0,9}) b/i],[P,[N,"NextBook"],[I,S1]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[N,"Voice"],P,[I,z1]],[/\b(lvtel\-)?(v1[12]) b/i],[[N,"LvTel"],P,[I,z1]],[/\b(ph-1) /i],[P,[N,"Essential"],[I,z1]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[P,[N,"Envizen"],[I,S1]],[/\b(trio[-\w\. ]+) b/i],[P,[N,"MachSpeed"],[I,S1]],[/\btu_(1491) b/i],[P,[N,"Rotor"],[I,S1]],[/(shield[\w ]+) b/i],[P,[N,"Nvidia"],[I,S1]],[/(sprint) (\w+)/i],[N,P,[I,z1]],[/(kin\.[onetw]{3})/i],[[P,/\./g," "],[N,b1],[I,z1]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[P,[N,y1],[I,S1]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[P,[N,y1],[I,z1]],[/smart-tv.+(samsung)/i],[N,[I,h1]],[/hbbtv.+maple;(\d+)/i],[[P,/^/,"SmartTV"],[N,t1],[I,h1]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[N,Ce],[I,h1]],[/(apple) ?tv/i],[N,[P,Y1+" TV"],[I,h1]],[/crkey/i],[[P,P1+"cast"],[N,le],[I,h1]],[/droid.+aft(\w)( bui|\))/i],[P,[N,ze],[I,h1]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[P,[N,r1],[I,h1]],[/(bravia[\w ]+)( bui|\))/i],[P,[N,x1],[I,h1]],[/(mitv-\w{5}) bui/i],[P,[N,o1],[I,h1]],[/Hbbtv.*(technisat) (.*);/i],[N,P,[I,h1]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[N,v1],[P,v1],[I,h1]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[I,h1]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[N,P,[I,i1]],[/droid.+; (shield) bui/i],[P,[N,"Nvidia"],[I,i1]],[/(playstation [345portablevi]+)/i],[P,[N,x1],[I,i1]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[P,[N,b1],[I,i1]],[/((pebble))app/i],[N,P,[I,E1]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[P,[N,Y1],[I,E1]],[/droid.+; (glass) \d/i],[P,[N,le],[I,E1]],[/droid.+; (wt63?0{2,3})\)/i],[P,[N,y1],[I,E1]],[/(quest( 2| pro)?)/i],[P,[N,_],[I,E1]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[N,[I,X1]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[P,[I,z1]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[P,[I,S1]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[I,S1]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[I,z1]],[/(android[-\w\. ]{0,9});.+buil/i],[P,[N,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[V,[q,pe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[V,[q,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[q,V],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[V,q]],os:[[/microsoft (windows) (vista|xp)/i],[q,V],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[q,[V,F1,C1]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[q,"Windows"],[V,F1,C1]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[V,/_/g,"."],[q,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[q,J1],[V,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[V,q],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[q,V],[/\(bb(10);/i],[V,[q,N1]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[V,[q,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[V,[q,G1+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[V,[q,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[V,[q,"watchOS"]],[/crkey\/([\d\.]+)/i],[V,[q,P1+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[q,$1],V],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[q,V],[/(sunos) ?([\w\.\d]*)/i],[[q,"Solaris"],V],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[q,V]]},A1=function(ge,Ge){if(typeof ge===j&&(Ge=ge,ge=c),!(this instanceof A1))return new A1(ge,Ge).getResult();var Fe=typeof l!==T&&l.navigator?l.navigator:c,Ze=ge||(Fe&&Fe.userAgent?Fe.userAgent:y),g2=Fe&&Fe.userAgentData?Fe.userAgentData:c,R1=Ge?Ae(te,Ge):te;return this.getBrowser=function(){var Z1={};return Z1[q]=c,Z1[V]=c,u1.call(Z1,Ze,R1.browser),Z1[Z]=X(Z1[V]),Fe&&Fe.brave&&typeof Fe.brave.isBrave==C&&(Z1[q]="Brave"),Z1},this.getCPU=function(){var Z1={};return Z1[$]=c,u1.call(Z1,Ze,R1.cpu),Z1},this.getDevice=function(){var Z1={};return Z1[N]=c,Z1[P]=c,Z1[I]=c,u1.call(Z1,Ze,R1.device),!Z1[I]&&g2&&g2.mobile&&(Z1[I]=z1),Z1[P]=="Macintosh"&&Fe&&typeof Fe.standalone!==T&&Fe.maxTouchPoints&&Fe.maxTouchPoints>2&&(Z1[P]="iPad",Z1[I]=S1),Z1},this.getEngine=function(){var Z1={};return Z1[q]=c,Z1[V]=c,u1.call(Z1,Ze,R1.engine),Z1},this.getOS=function(){var Z1={};return Z1[q]=c,Z1[V]=c,u1.call(Z1,Ze,R1.os),!Z1[q]&&g2&&g2.platform!="Unknown"&&(Z1[q]=g2.platform.replace(/chrome os/i,$1).replace(/macos/i,J1)),Z1},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ze},this.setUA=function(Z1){return Ze=typeof Z1===k&&Z1.length>ae?v1(Z1,ae):Z1,this},this.setUA(Ze),this};A1.VERSION=u,A1.BROWSER=me([q,V,Z]),A1.CPU=me([$]),A1.DEVICE=me([P,N,I,i1,z1,h1,S1,E1,X1]),A1.ENGINE=A1.OS=me([q,V]),t.exports&&(i=t.exports=A1),i.UAParser=A1;var Le=typeof l!==T&&(l.jQuery||l.Zepto);if(Le&&!Le.ua){var f2=new A1;Le.ua=f2.getResult(),Le.ua.get=function(){return f2.getUA()},Le.ua.set=function(ge){f2.setUA(ge);var Ge=f2.getResult();for(var Fe in Ge)Le.ua[Fe]=Ge[Fe]}}})(typeof window=="object"?window:R4)})(ar,ar.exports),Object.defineProperty(_e,"__esModule",{value:!0});function KC(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var f8=Re.default,U2=KC(f8),Cl=ar.exports,i4=new Cl,p8=i4.getBrowser(),QC=i4.getCPU(),Mt=i4.getDevice(),ir=i4.getEngine(),l4=i4.getOS(),l6=i4.getUA(),Fl=function(i){return i4.setUA(i)},o6=function(i){if(!i){console.error("No userAgent string was provided");return}var l=new Cl(i);return{UA:l,browser:l.getBrowser(),cpu:l.getCPU(),device:l.getDevice(),engine:l.getEngine(),os:l.getOS(),ua:l.getUA(),setUserAgent:function(u){return l.setUA(u)}}},Ml=Object.freeze({ClientUAInstance:i4,browser:p8,cpu:QC,device:Mt,engine:ir,os:l4,ua:l6,setUa:Fl,parseUserAgent:o6});function Al(t,i){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);i&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),l.push.apply(l,c)}return l}function YC(t){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{};i%2?Al(Object(l),!0).forEach(function(c){RC(t,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):Al(Object(l)).forEach(function(c){Object.defineProperty(t,c,Object.getOwnPropertyDescriptor(l,c))})}return t}function s6(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s6=function(i){return typeof i}:s6=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s6(t)}function JC(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Ll(t,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}function XC(t,i,l){return i&&Ll(t.prototype,i),l&&Ll(t,l),t}function RC(t,i,l){return i in t?Object.defineProperty(t,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[i]=l,t}function lr(){return lr=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(t[c]=l[c])}return t},lr.apply(this,arguments)}function $C(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&sr(t,i)}function or(t){return or=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},or(t)}function sr(t,i){return sr=Object.setPrototypeOf||function(c,u){return c.__proto__=u,c},sr(t,i)}function eF(t,i){if(t==null)return{};var l={},c=Object.keys(t),u,y;for(y=0;y<c.length;y++)u=c[y],!(i.indexOf(u)>=0)&&(l[u]=t[u]);return l}function r0(t,i){if(t==null)return{};var l=eF(t,i),c,u;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(t);for(u=0;u<y.length;u++)c=y[u],!(i.indexOf(c)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,c)||(l[c]=t[c]))}return l}function g7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tF(t,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g7(t)}function nF(t,i){return rF(t)||aF(t,i)||iF(t,i)||lF()}function rF(t){if(Array.isArray(t))return t}function aF(t,i){var l=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(l!=null){var c=[],u=!0,y=!1,S,C;try{for(l=l.call(t);!(u=(S=l.next()).done)&&(c.push(S.value),!(i&&c.length===i));u=!0);}catch(T){y=!0,C=T}finally{try{!u&&l.return!=null&&l.return()}finally{if(y)throw C}}return c}}function iF(t,i){if(!!t){if(typeof t=="string")return xl(t,i);var l=Object.prototype.toString.call(t).slice(8,-1);if(l==="Object"&&t.constructor&&(l=t.constructor.name),l==="Map"||l==="Set")return Array.from(t);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return xl(t,i)}}function xl(t,i){(i==null||i>t.length)&&(i=t.length);for(var l=0,c=new Array(i);l<i;l++)c[l]=t[l];return c}function lF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1232
1232
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v8={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},et={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},y9={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},oF={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},sF=function(i){switch(i){case v8.Mobile:return{isMobile:!0};case v8.Tablet:return{isTablet:!0};case v8.SmartTv:return{isSmartTV:!0};case v8.Console:return{isConsole:!0};case v8.Wearable:return{isWearable:!0};case v8.Browser:return{isBrowser:!0};case v8.Embedded:return{isEmbedded:!0};default:return oF}},cF=function(i){return Fl(i)},e2=function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return i||l},cr=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},ur=function(i){var l=cr();return l&&l.platform&&(l.platform.indexOf(i)!==-1||l.platform==="MacIntel"&&l.maxTouchPoints>1&&!window.MSStream)},uF=function(i,l,c,u,y){return{isBrowser:i,browserMajorVersion:e2(l.major),browserFullVersion:e2(l.version),browserName:e2(l.name),engineName:e2(c.name),engineVersion:e2(c.version),osName:e2(u.name),osVersion:e2(u.version),userAgent:e2(y)}},kl=function(i,l,c,u){return YC({},i,{vendor:e2(l.vendor),model:e2(l.model),os:e2(c.name),osVersion:e2(c.version),ua:e2(u)})},dF=function(i,l,c,u){return{isSmartTV:i,engineName:e2(l.name),engineVersion:e2(l.version),osName:e2(c.name),osVersion:e2(c.version),userAgent:e2(u)}},hF=function(i,l,c,u){return{isConsole:i,engineName:e2(l.name),engineVersion:e2(l.version),osName:e2(c.name),osVersion:e2(c.version),userAgent:e2(u)}},mF=function(i,l,c,u){return{isWearable:i,engineName:e2(l.name),engineVersion:e2(l.version),osName:e2(c.name),osVersion:e2(c.version),userAgent:e2(u)}},fF=function(i,l,c,u,y){return{isEmbedded:i,vendor:e2(l.vendor),model:e2(l.model),engineName:e2(c.name),engineVersion:e2(c.version),osName:e2(u.name),osVersion:e2(u.version),userAgent:e2(y)}};function pF(t){var i=t?o6(t):Ml,l=i.device,c=i.browser,u=i.engine,y=i.os,S=i.ua,C=sF(l.type),T=C.isBrowser,j=C.isMobile,k=C.isTablet,Z=C.isSmartTV,P=C.isConsole,q=C.isWearable,I=C.isEmbedded;if(T)return uF(T,c,u,y,S);if(Z)return dF(Z,u,y,S);if(P)return hF(P,u,y,S);if(j||k)return kl(C,l,y,S);if(q)return mF(q,u,y,S);if(I)return fF(I,l,u,y,S)}var Tl=function(i){var l=i.type;return l===v8.Mobile},Dl=function(i){var l=i.type;return l===v8.Tablet},Ol=function(i){var l=i.type;return l===v8.Mobile||l===v8.Tablet},Il=function(i){var l=i.type;return l===v8.SmartTv},y7=function(i){var l=i.type;return l===v8.Browser},Nl=function(i){var l=i.type;return l===v8.Wearable},Pl=function(i){var l=i.type;return l===v8.Console},Bl=function(i){var l=i.type;return l===v8.Embedded},Vl=function(i){var l=i.vendor;return e2(l)},Hl=function(i){var l=i.model;return e2(l)},jl=function(i){var l=i.type;return e2(l,"browser")},Ul=function(i){var l=i.name;return l===y9.Android},Wl=function(i){var l=i.name;return l===y9.Windows},ql=function(i){var l=i.name;return l===y9.MAC_OS},Gl=function(i){var l=i.name;return l===y9.WindowsPhone},Zl=function(i){var l=i.name;return l===y9.IOS},Kl=function(i){var l=i.version;return e2(l)},Ql=function(i){var l=i.name;return e2(l)},Yl=function(i){var l=i.name;return l===et.Chrome},Jl=function(i){var l=i.name;return l===et.Firefox},Xl=function(i){var l=i.name;return l===et.Chromium},E7=function(i){var l=i.name;return l===et.Edge},Rl=function(i){var l=i.name;return l===et.Yandex},$l=function(i){var l=i.name;return l===et.Safari||l===et.MobileSafari},eo=function(i){var l=i.name;return l===et.MobileSafari},to=function(i){var l=i.name;return l===et.Opera},no=function(i){var l=i.name;return l===et.InternetExplorer||l===et.Ie},ro=function(i){var l=i.name;return l===et.MIUI},ao=function(i){var l=i.name;return l===et.SamsungBrowser},io=function(i){var l=i.version;return e2(l)},lo=function(i){var l=i.major;return e2(l)},oo=function(i){var l=i.name;return e2(l)},so=function(i){var l=i.name;return e2(l)},co=function(i){var l=i.version;return e2(l)},uo=function(){var i=cr(),l=i&&i.userAgent&&i.userAgent.toLowerCase();return typeof l=="string"?/electron/.test(l):!1},E9=function(i){return typeof i=="string"&&i.indexOf("Edg/")!==-1},ho=function(){var i=cr();return i&&(/iPad|iPhone|iPod/.test(i.platform)||i.platform==="MacIntel"&&i.maxTouchPoints>1)&&!window.MSStream},$0=function(){return ur("iPad")},mo=function(){return ur("iPhone")},fo=function(){return ur("iPod")},po=function(i){return e2(i)};function vo(t){var i=t||Ml,l=i.device,c=i.browser,u=i.os,y=i.engine,S=i.ua;return{isSmartTV:Il(l),isConsole:Pl(l),isWearable:Nl(l),isEmbedded:Bl(l),isMobileSafari:eo(c)||$0(),isChromium:Xl(c),isMobile:Ol(l)||$0(),isMobileOnly:Tl(l),isTablet:Dl(l)||$0(),isBrowser:y7(l),isDesktop:y7(l),isAndroid:Ul(u),isWinPhone:Gl(u),isIOS:Zl(u)||$0(),isChrome:Yl(c),isFirefox:Jl(c),isSafari:$l(c),isOpera:to(c),isIE:no(c),osVersion:Kl(u),osName:Ql(u),fullBrowserVersion:io(c),browserVersion:lo(c),browserName:oo(c),mobileVendor:Vl(l),mobileModel:Hl(l),engineName:so(y),engineVersion:co(y),getUA:po(S),isEdge:E7(c)||E9(S),isYandex:Rl(c),deviceType:jl(l),isIOS13:ho(),isIPad13:$0(),isIPhone13:mo(),isIPod13:fo(),isElectron:uo(),isEdgeChromium:E9(S),isLegacyEdge:E7(c)&&!E9(S),isWindows:Wl(u),isMacOs:ql(u),isMIUI:ro(c),isSamsungBrowser:ao(c)}}var go=Il(Mt),yo=Pl(Mt),Eo=Nl(Mt),vF=Bl(Mt),gF=eo(p8)||$0(),yF=Xl(p8),b7=Ol(Mt)||$0(),bo=Tl(Mt),wo=Dl(Mt)||$0(),So=y7(Mt),EF=y7(Mt),_o=Ul(l4),zo=Gl(l4),Co=Zl(l4)||$0(),bF=Yl(p8),wF=Jl(p8),SF=$l(p8),_F=to(p8),Fo=no(p8),zF=Kl(l4),CF=Ql(l4),FF=io(p8),MF=lo(p8),AF=oo(p8),LF=Vl(Mt),xF=Hl(Mt),kF=so(ir),TF=co(ir),DF=po(l6),OF=E7(p8)||E9(l6),IF=Rl(p8),NF=jl(Mt),PF=ho(),BF=$0(),VF=mo(),HF=fo(),jF=uo(),UF=E9(l6),WF=E7(p8)&&!E9(l6),qF=Wl(l4),GF=ql(l4),ZF=ro(p8),KF=ao(p8),QF=function(i){if(!i||typeof i!="string"){console.error("No valid user agent string was provided");return}var l=o6(i),c=l.device,u=l.browser,y=l.os,S=l.engine,C=l.ua;return vo({device:c,browser:u,os:y,engine:S,ua:C})},YF=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return _o?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},JF=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return So?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},XF=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return Fo?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},RF=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return Co?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},$F=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return b7?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},eM=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return wo?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},tM=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return zo?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},nM=function(i){var l=i.renderWithFragment,c=i.children;i.viewClassName,i.style;var u=r0(i,["renderWithFragment","children","viewClassName","style"]);return bo?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},rM=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return go?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},aM=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return yo?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},iM=function(i){var l=i.renderWithFragment,c=i.children,u=r0(i,["renderWithFragment","children"]);return Eo?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",u,c):null},lM=function(i){var l=i.renderWithFragment,c=i.children;i.viewClassName,i.style;var u=i.condition,y=r0(i,["renderWithFragment","children","viewClassName","style","condition"]);return u?l?U2.createElement(f8.Fragment,null,c):U2.createElement("div",y,c):null};function oM(t){return function(i){$C(l,i);function l(c){var u;return JC(this,l),u=tF(this,or(l).call(this,c)),u.isEventListenerAdded=!1,u.handleOrientationChange=u.handleOrientationChange.bind(g7(u)),u.onOrientationChange=u.onOrientationChange.bind(g7(u)),u.onPageLoad=u.onPageLoad.bind(g7(u)),u.state={isLandscape:!1,isPortrait:!1},u}return XC(l,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var u=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:u===0,isLandscape:u===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":s6(window))!==void 0&&b7&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return U2.createElement(t,lr({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),l}(U2.Component)}function sM(){var t=f8.useState(function(){var y=window.innerWidth>window.innerHeight?90:0;return{isPortrait:y===0,isLandscape:y===90,orientation:y===0?"portrait":"landscape"}}),i=nF(t,2),l=i[0],c=i[1],u=f8.useCallback(function(){var y=window.innerWidth>window.innerHeight?90:0,S={isPortrait:y===0,isLandscape:y===90,orientation:y===0?"portrait":"landscape"};l.orientation!==S.orientation&&c(S)},[l.orientation]);return f8.useEffect(function(){return(typeof window=="undefined"?"undefined":s6(window))!==void 0&&b7&&(u(),window.addEventListener("load",u,!1),window.addEventListener("resize",u,!1)),function(){window.removeEventListener("resize",u,!1),window.removeEventListener("load",u,!1)}},[u]),l}function Mo(t){var i=t||window.navigator.userAgent;return o6(i)}function cM(t){var i=t||window.navigator.userAgent,l=Mo(i),c=vo(l);return[c,l]}_e.AndroidView=YF,_e.BrowserTypes=et,_e.BrowserView=JF,_e.ConsoleView=aM,_e.CustomView=lM,_e.IEView=XF,_e.IOSView=RF,_e.MobileOnlyView=nM,_e.MobileView=$F,_e.OsTypes=y9,_e.SmartTVView=rM,_e.TabletView=eM,_e.WearableView=iM,_e.WinPhoneView=tM,_e.browserName=AF,_e.browserVersion=MF,_e.deviceDetect=pF,_e.deviceType=NF,_e.engineName=kF,_e.engineVersion=TF,_e.fullBrowserVersion=FF,_e.getSelectorsByUserAgent=QF,_e.getUA=DF,_e.isAndroid=_o,_e.isBrowser=So,_e.isChrome=bF,_e.isChromium=yF,_e.isConsole=yo,_e.isDesktop=EF,_e.isEdge=OF,_e.isEdgeChromium=UF,_e.isElectron=jF,_e.isEmbedded=vF,_e.isFirefox=wF,_e.isIE=Fo,_e.isIOS=Co,_e.isIOS13=PF,_e.isIPad13=BF,_e.isIPhone13=VF,_e.isIPod13=HF,_e.isLegacyEdge=WF,_e.isMIUI=ZF,_e.isMacOs=GF;var uM=_e.isMobile=b7;_e.isMobileOnly=bo,_e.isMobileSafari=gF,_e.isOpera=_F,_e.isSafari=SF,_e.isSamsungBrowser=KF,_e.isSmartTV=go,_e.isTablet=wo,_e.isWearable=Eo,_e.isWinPhone=zo,_e.isWindows=qF,_e.isYandex=IF,_e.mobileModel=xF,_e.mobileVendor=LF,_e.osName=CF,_e.osVersion=zF,_e.parseUserAgent=o6,_e.setUserAgent=cF,_e.useDeviceData=Mo,_e.useDeviceSelectors=cM,_e.useMobileOrientation=sM,_e.withOrientationChange=oM;function dr({mode:t,clientId:i,authorize:l,inProduction:c}){const{status:u,isLoading:y,listener:S,clearState:C,onSendSubmitLiveness:T,message:j}=ZC(i,l,c);return e.useEffect(()=>{const k=document.getElementsByTagName("face-liveness")[0];k&&(uM&&(k.shadowRoot.lastChild.style.height="460px"),k.addEventListener("face-liveness",S))},[]),z2("div",{id:"liveness-check",className:`kit-gbc liveness-container ${t}`,children:[Q1(t6,{position:"top-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),y&&Q1(er,{}),r4(u)?Q1("face-liveness",{locale:"es",class:"liveness",url:"https://regula.globalbridgeconnections.com.py/face-sdk"}):Q1("div",{className:"sub",children:Q1(tr,{status:u,message:j,clearState:C})})]})}dr.defaultProps={mode:"light",inProduction:"prd"},dr.propTypes={mode:k2.exports.PropTypes.string,clientId:k2.exports.PropTypes.string.isRequired,authorize:k2.exports.PropTypes.func.isRequired,inProduction:k2.exports.PropTypes.string};var LM="",dM={exports:{}};/*!
1233
1233
  * Bootstrap v5.2.0 (https://getbootstrap.com/)
1234
1234
  * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbc-kyc-kit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Componentes para el desarrollo de un Onboarding",
5
5
  "license": "MIT",
6
6
  "author": "Global Bridge Connections",
@@ -61,7 +61,7 @@
61
61
  "bootstrap": "5.2.0",
62
62
  "eslint": "^8.18.0",
63
63
  "eslint-plugin-react": "^7.30.1",
64
- "gbc-kyc-kit": "^1.0.7",
64
+ "gbc-kyc-kit": "^1.1.0",
65
65
  "is-empty": "^1.2.0",
66
66
  "jsdom": "^20.0.0",
67
67
  "moment": "^2.29.4",