@regulaforensics/idv-capture-web 3.2.250-nightly → 3.2.252-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.
package/dist/main.iife.js CHANGED
@@ -1,31 +1,31 @@
1
- var RegulaIdv=(function(fe){"use strict";var p1=Object.defineProperty,_1=Object.defineProperties;var m1=Object.getOwnPropertyDescriptors;var ci=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable;var dl=(fe,Ae,Ie)=>Ae in fe?p1(fe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):fe[Ae]=Ie,I=(fe,Ae)=>{for(var Ie in Ae||(Ae={}))ul.call(Ae,Ie)&&dl(fe,Ie,Ae[Ie]);if(ci)for(var Ie of ci(Ae))fl.call(Ae,Ie)&&dl(fe,Ie,Ae[Ie]);return fe},Y=(fe,Ae)=>_1(fe,m1(Ae));var _r=(fe,Ae)=>{var Ie={};for(var qe in fe)ul.call(fe,qe)&&Ae.indexOf(qe)<0&&(Ie[qe]=fe[qe]);if(fe!=null&&ci)for(var qe of ci(fe))Ae.indexOf(qe)<0&&fl.call(fe,qe)&&(Ie[qe]=fe[qe]);return Ie};var U=(fe,Ae,Ie)=>new Promise((qe,Pr)=>{var un=Tt=>{try{Mr(Ie.next(Tt))}catch(mr){Pr(mr)}},di=Tt=>{try{Mr(Ie.throw(Tt))}catch(mr){Pr(mr)}},Mr=Tt=>Tt.done?qe(Tt.value):Promise.resolve(Tt.value).then(un,di);Mr((Ie=Ie.apply(fe,Ae)).next())});/**
1
+ var RegulaIdv=(function(fe){"use strict";var p1=Object.defineProperty,_1=Object.defineProperties;var m1=Object.getOwnPropertyDescriptors;var ci=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable;var dl=(fe,Ae,Ie)=>Ae in fe?p1(fe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):fe[Ae]=Ie,I=(fe,Ae)=>{for(var Ie in Ae||(Ae={}))ul.call(Ae,Ie)&&dl(fe,Ie,Ae[Ie]);if(ci)for(var Ie of ci(Ae))fl.call(Ae,Ie)&&dl(fe,Ie,Ae[Ie]);return fe},Y=(fe,Ae)=>_1(fe,m1(Ae));var _r=(fe,Ae)=>{var Ie={};for(var qe in fe)ul.call(fe,qe)&&Ae.indexOf(qe)<0&&(Ie[qe]=fe[qe]);if(fe!=null&&ci)for(var qe of ci(fe))Ae.indexOf(qe)<0&&fl.call(fe,qe)&&(Ie[qe]=fe[qe]);return Ie};var P=(fe,Ae,Ie)=>new Promise((qe,Mr)=>{var un=It=>{try{Pr(Ie.next(It))}catch(mr){Mr(mr)}},di=It=>{try{Pr(Ie.throw(It))}catch(mr){Mr(mr)}},Pr=It=>It.done?qe(It.value):Promise.resolve(It.value).then(un,di);Pr((Ie=Ie.apply(fe,Ae)).next())});/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */var Qa,el,tl,rl,nl,il;const Ae=globalThis,Ie=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qe=Symbol(),Pr=new WeakMap;let un=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==qe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Ie&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Pr.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Pr.set(r,e))}return e}toString(){return this.cssText}};const di=t=>new un(typeof t=="string"?t:t+"",void 0,qe),Mr=(t,...e)=>{const r=t.length===1?t[0]:e.reduce(((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new un(r,t,qe)},Tt=(t,e)=>{if(Ie)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const n=document.createElement("style"),i=Ae.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},mr=Ie?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return di(r)})(t):t;/**
5
+ */var Qa,el,tl,rl,nl,il;const Ae=globalThis,Ie=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qe=Symbol(),Mr=new WeakMap;let un=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==qe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Ie&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Mr.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Mr.set(r,e))}return e}toString(){return this.cssText}};const di=t=>new un(typeof t=="string"?t:t+"",void 0,qe),Pr=(t,...e)=>{const r=t.length===1?t[0]:e.reduce(((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new un(r,t,qe)},It=(t,e)=>{if(Ie)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of e){const n=document.createElement("style"),i=Ae.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},mr=Ie?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return di(r)})(t):t;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:_l,defineProperty:ml,getOwnPropertyDescriptor:gl,getOwnPropertyNames:wl,getOwnPropertySymbols:vl,getPrototypeOf:yl}=Object,Kt=globalThis,Vo=Kt.trustedTypes,bl=Vo?Vo.emptyScript:"",ui=Kt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,fn={toAttribute(t,e){switch(e){case Boolean:t=t?bl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(n){r=null}}return r}},fi=(t,e)=>!_l(t,e),$o={attribute:!0,type:String,converter:fn,reflect:!1,useDefault:!1,hasChanged:fi};(Qa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(el=Kt.litPropertyMetadata)!=null||(Kt.litPropertyMetadata=new WeakMap);let gr=class extends HTMLElement{static addInitializer(e){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=$o){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&ml(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){var s;const{get:i,set:o}=(s=gl(this.prototype,e))!=null?s:{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:$o}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=yl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const r=this.properties,n=[...wl(r),...vl(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(mr(i))}else e!==void 0&&r.push(mr(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((r=>this.enableUpdating=r)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach((r=>r(this)))}addController(e){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return Tt(e,this.constructor.elementStyles),e}connectedCallback(){var e,r;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)}))}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){var o;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:fn).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){var o,s,a;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=n.getPropertyOptions(i),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:fn;this._$Em=i;const _=d.fromAttribute(r,l.type);this[i]=(a=_!=null?_:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:_,this._$Em=null}}requestUpdate(e,r,n){var i,o;if(e!==void 0){const s=this.constructor,a=this[e];if(n!=null||(n=s.getPropertyOptions(e)),!(((i=n.hasChanged)!=null?i:fi)(a,r)||n.useDefault&&n.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:o},s){var a,l,d;n&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:r)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return U(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o){const{wrapped:l}=a,d=this[s];l!==!0||this._$AL.has(s)||d===void 0||this.C(s,void 0,a,d)}}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(i=this._$EO)==null||i.forEach((o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)})),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(e){}firstUpdated(e){}};gr.elementStyles=[],gr.shadowRootOptions={mode:"open"},gr[Fr("elementProperties")]=new Map,gr[Fr("finalized")]=new Map,ui==null||ui({ReactiveElement:gr}),((tl=Kt.reactiveElementVersions)!=null?tl:Kt.reactiveElementVersions=[]).push("2.1.1");/**
9
+ */const{is:_l,defineProperty:ml,getOwnPropertyDescriptor:gl,getOwnPropertyNames:wl,getOwnPropertySymbols:vl,getPrototypeOf:yl}=Object,Gt=globalThis,Vo=Gt.trustedTypes,bl=Vo?Vo.emptyScript:"",ui=Gt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,fn={toAttribute(t,e){switch(e){case Boolean:t=t?bl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(n){r=null}}return r}},fi=(t,e)=>!_l(t,e),$o={attribute:!0,type:String,converter:fn,reflect:!1,useDefault:!1,hasChanged:fi};(Qa=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(el=Gt.litPropertyMetadata)!=null||(Gt.litPropertyMetadata=new WeakMap);let gr=class extends HTMLElement{static addInitializer(e){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=$o){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&ml(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){var s;const{get:i,set:o}=(s=gl(this.prototype,e))!=null?s:{get(){return this[r]},set(a){this[r]=a}};return{get:i,set(a){const l=i==null?void 0:i.call(this);o==null||o.call(this,a),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var r;return(r=this.elementProperties.get(e))!=null?r:$o}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=yl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const r=this.properties,n=[...wl(r),...vl(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(mr(i))}else e!==void 0&&r.push(mr(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((r=>this.enableUpdating=r)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach((r=>r(this)))}addController(e){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)==null||n.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var r;const e=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return It(e,this.constructor.elementStyles),e}connectedCallback(){var e,r;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)}))}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){var o;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:fn).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(e,r){var o,s,a;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const l=n.getPropertyOptions(i),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:fn;this._$Em=i;const _=u.fromAttribute(r,l.type);this[i]=(a=_!=null?_:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:_,this._$Em=null}}requestUpdate(e,r,n){var i,o;if(e!==void 0){const s=this.constructor,a=this[e];if(n!=null||(n=s.getPropertyOptions(e)),!(((i=n.hasChanged)!=null?i:fi)(a,r)||n.useDefault&&n.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:o},s){var a,l,u;n&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=s!=null?s:r)!=null?l:this[e]),o!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),i===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}_$EP(){return P(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((n=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[s,a]of o){const{wrapped:l}=a,u=this[s];l!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,a,u)}}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(i=this._$EO)==null||i.forEach((o=>{var s;return(s=o.hostUpdate)==null?void 0:s.call(o)})),this.update(r)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach((n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(e){}firstUpdated(e){}};gr.elementStyles=[],gr.shadowRootOptions={mode:"open"},gr[Fr("elementProperties")]=new Map,gr[Fr("finalized")]=new Map,ui==null||ui({ReactiveElement:gr}),((tl=Gt.reactiveElementVersions)!=null?tl:Gt.reactiveElementVersions=[]).push("2.1.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Ur=globalThis,hn=Ur.trustedTypes,Bo=hn?hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ho="$lit$",Gt=`lit$${Math.random().toFixed(9).slice(2)}$`,Wo="?"+Gt,Cl=`<${Wo}>`,rr=document,Lr=()=>rr.createComment(""),Vr=t=>t===null||typeof t!="object"&&typeof t!="function",hi=Array.isArray,Sl=t=>hi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",pi=`[
14
- \f\r]`,$r=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jo=/-->/g,zo=/>/g,nr=RegExp(`>|${pi}(?:([^\\s"'>=/]+)(${pi}*=${pi}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ko=/'/g,Go=/"/g,qo=/^(?:script|style|textarea|title)$/i,El=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_i=El(1),wr=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),Zo=new WeakMap,ir=rr.createTreeWalker(rr,129);function Yo(t,e){if(!hi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bo!==void 0?Bo.createHTML(e):e}const Tl=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=$r;for(let a=0;a<r;a++){const l=t[a];let d,_,h=-1,c=0;for(;c<l.length&&(s.lastIndex=c,_=s.exec(l),_!==null);)c=s.lastIndex,s===$r?_[1]==="!--"?s=jo:_[1]!==void 0?s=zo:_[2]!==void 0?(qo.test(_[2])&&(i=RegExp("</"+_[2],"g")),s=nr):_[3]!==void 0&&(s=nr):s===nr?_[0]===">"?(s=i!=null?i:$r,h=-1):_[1]===void 0?h=-2:(h=s.lastIndex-_[2].length,d=_[1],s=_[3]===void 0?nr:_[3]==='"'?Go:Ko):s===Go||s===Ko?s=nr:s===jo||s===zo?s=$r:(s=nr,i=void 0);const y=s===nr&&t[a+1].startsWith("/>")?" ":"";o+=s===$r?l+Cl:h>=0?(n.push(d),l.slice(0,h)+Ho+l.slice(h)+Gt+y):l+Gt+(h===-2?a:y)}return[Yo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let mi=class hl{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[d,_]=Tl(e,r);if(this.el=hl.createElement(d,n),ir.currentNode=this.el.content,r===2||r===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=ir.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(Ho)){const c=_[s++],y=i.getAttribute(h).split(Gt),g=/([.?@])?(.*)/.exec(c);l.push({type:1,index:o,name:g[2],strings:y,ctor:g[1]==="."?Ol:g[1]==="?"?Al:g[1]==="@"?xl:pn}),i.removeAttribute(h)}else h.startsWith(Gt)&&(l.push({type:6,index:o}),i.removeAttribute(h));if(qo.test(i.tagName)){const h=i.textContent.split(Gt),c=h.length-1;if(c>0){i.textContent=hn?hn.emptyScript:"";for(let y=0;y<c;y++)i.append(h[y],Lr()),ir.nextNode(),l.push({type:2,index:++o});i.append(h[c],Lr())}}}else if(i.nodeType===8)if(i.data===Wo)l.push({type:2,index:o});else{let h=-1;for(;(h=i.data.indexOf(Gt,h+1))!==-1;)l.push({type:7,index:o}),h+=Gt.length-1}o++}}static createElement(e,r){const n=rr.createElement("template");return n.innerHTML=e,n}};function vr(t,e,r=t,n){var s,a,l;if(e===wr)return e;let i=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const o=Vr(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[n]=i:r._$Cl=i),i!==void 0&&(e=vr(t,i._$AS(t,e.values),i,n)),e}let Il=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var d;const{el:{content:r},parts:n}=this._$AD,i=((d=e==null?void 0:e.creationScope)!=null?d:rr).importNode(r,!0);ir.currentNode=i;let o=ir.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let _;l.type===2?_=new gi(o,o.nextSibling,this,e):l.type===1?_=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(_=new Rl(o,this,e)),this._$AV.push(_),l=n[++a]}s!==(l==null?void 0:l.index)&&(o=ir.nextNode(),s++)}return ir.currentNode=rr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},gi=class pl{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,n,i){var o;this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=vr(this,e,r),Vr(e)?e===Re||e==null||e===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sl(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Re&&Vr(this._$AH)?this._$AA.nextSibling.data=e:this.T(rr.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=mi.createElement(Yo(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(r);else{const s=new Il(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Zo.get(e.strings);return r===void 0&&Zo.set(e.strings,r=new mi(e)),r}k(e){hi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const o of e)i===r.length?r.push(n=new pl(this.O(Lr()),this.O(Lr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}},pn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Re}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=vr(this,e,r,0),s=!Vr(e)||e!==this._$AH&&e!==wr,s&&(this._$AH=e);else{const a=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=vr(this,a[n+l],r,l),d===wr&&(d=this._$AH[l]),s||(s=!Vr(d)||d!==this._$AH[l]),d===Re?e=Re:e!==Re&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}s&&!i&&this.j(e)}j(e){e===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Ol=class extends pn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Re?void 0:e}},Al=class extends pn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Re)}},xl=class extends pn{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){var s;if((e=(s=vr(this,e,r,0))!=null?s:Re)===wr)return;const n=this._$AH,i=e===Re&&n!==Re||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,e):this._$AH.handleEvent(e)}},Rl=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){vr(this,e)}};const wi=Ur.litHtmlPolyfillSupport;wi==null||wi(mi,gi),((rl=Ur.litHtmlVersions)!=null?rl:Ur.litHtmlVersions=[]).push("3.3.1");const kl=(t,e,r)=>{var o,s;const n=(o=r==null?void 0:r.renderBefore)!=null?o:e;let i=n._$litPart$;if(i===void 0){const a=(s=r==null?void 0:r.renderBefore)!=null?s:null;n._$litPart$=i=new gi(e.insertBefore(Lr(),a),a,void 0,r!=null?r:{})}return i._$AI(t),i};/**
13
+ */const Ur=globalThis,hn=Ur.trustedTypes,Bo=hn?hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ho="$lit$",qt=`lit$${Math.random().toFixed(9).slice(2)}$`,Wo="?"+qt,Cl=`<${Wo}>`,nr=document,Lr=()=>nr.createComment(""),Vr=t=>t===null||typeof t!="object"&&typeof t!="function",hi=Array.isArray,Sl=t=>hi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",pi=`[
14
+ \f\r]`,$r=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jo=/-->/g,zo=/>/g,ir=RegExp(`>|${pi}(?:([^\\s"'>=/]+)(${pi}*=${pi}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ko=/'/g,Go=/"/g,qo=/^(?:script|style|textarea|title)$/i,El=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_i=El(1),wr=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),Zo=new WeakMap,or=nr.createTreeWalker(nr,129);function Yo(t,e){if(!hi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bo!==void 0?Bo.createHTML(e):e}const Tl=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"<svg>":e===3?"<math>":"",s=$r;for(let a=0;a<r;a++){const l=t[a];let u,_,h=-1,c=0;for(;c<l.length&&(s.lastIndex=c,_=s.exec(l),_!==null);)c=s.lastIndex,s===$r?_[1]==="!--"?s=jo:_[1]!==void 0?s=zo:_[2]!==void 0?(qo.test(_[2])&&(i=RegExp("</"+_[2],"g")),s=ir):_[3]!==void 0&&(s=ir):s===ir?_[0]===">"?(s=i!=null?i:$r,h=-1):_[1]===void 0?h=-2:(h=s.lastIndex-_[2].length,u=_[1],s=_[3]===void 0?ir:_[3]==='"'?Go:Ko):s===Go||s===Ko?s=ir:s===jo||s===zo?s=$r:(s=ir,i=void 0);const y=s===ir&&t[a+1].startsWith("/>")?" ":"";o+=s===$r?l+Cl:h>=0?(n.push(u),l.slice(0,h)+Ho+l.slice(h)+qt+y):l+qt+(h===-2?a:y)}return[Yo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let mi=class hl{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[u,_]=Tl(e,r);if(this.el=hl.createElement(u,n),or.currentNode=this.el.content,r===2||r===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=or.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(Ho)){const c=_[s++],y=i.getAttribute(h).split(qt),g=/([.?@])?(.*)/.exec(c);l.push({type:1,index:o,name:g[2],strings:y,ctor:g[1]==="."?Ol:g[1]==="?"?Al:g[1]==="@"?xl:pn}),i.removeAttribute(h)}else h.startsWith(qt)&&(l.push({type:6,index:o}),i.removeAttribute(h));if(qo.test(i.tagName)){const h=i.textContent.split(qt),c=h.length-1;if(c>0){i.textContent=hn?hn.emptyScript:"";for(let y=0;y<c;y++)i.append(h[y],Lr()),or.nextNode(),l.push({type:2,index:++o});i.append(h[c],Lr())}}}else if(i.nodeType===8)if(i.data===Wo)l.push({type:2,index:o});else{let h=-1;for(;(h=i.data.indexOf(qt,h+1))!==-1;)l.push({type:7,index:o}),h+=qt.length-1}o++}}static createElement(e,r){const n=nr.createElement("template");return n.innerHTML=e,n}};function vr(t,e,r=t,n){var s,a,l;if(e===wr)return e;let i=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl;const o=Vr(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[n]=i:r._$Cl=i),i!==void 0&&(e=vr(t,i._$AS(t,e.values),i,n)),e}let Il=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:r},parts:n}=this._$AD,i=((u=e==null?void 0:e.creationScope)!=null?u:nr).importNode(r,!0);or.currentNode=i;let o=or.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let _;l.type===2?_=new gi(o,o.nextSibling,this,e):l.type===1?_=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(_=new Rl(o,this,e)),this._$AV.push(_),l=n[++a]}s!==(l==null?void 0:l.index)&&(o=or.nextNode(),s++)}return or.currentNode=nr,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},gi=class pl{get _$AU(){var e,r;return(r=(e=this._$AM)==null?void 0:e._$AU)!=null?r:this._$Cv}constructor(e,r,n,i){var o;this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(o=i==null?void 0:i.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=vr(this,e,r),Vr(e)?e===Re||e==null||e===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):e!==this._$AH&&e!==wr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sl(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Re&&Vr(this._$AH)?this._$AA.nextSibling.data=e:this.T(nr.createTextNode(e)),this._$AH=e}$(e){var o;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=mi.createElement(Yo(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(r);else{const s=new Il(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Zo.get(e.strings);return r===void 0&&Zo.set(e.strings,r=new mi(e)),r}k(e){hi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const o of e)i===r.length?r.push(n=new pl(this.O(Lr()),this.O(Lr()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}},pn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Re}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=vr(this,e,r,0),s=!Vr(e)||e!==this._$AH&&e!==wr,s&&(this._$AH=e);else{const a=e;let l,u;for(e=o[0],l=0;l<o.length-1;l++)u=vr(this,a[n+l],r,l),u===wr&&(u=this._$AH[l]),s||(s=!Vr(u)||u!==this._$AH[l]),u===Re?e=Re:e!==Re&&(e+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(e)}j(e){e===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Ol=class extends pn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Re?void 0:e}},Al=class extends pn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Re)}},xl=class extends pn{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){var s;if((e=(s=vr(this,e,r,0))!=null?s:Re)===wr)return;const n=this._$AH,i=e===Re&&n!==Re||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,e):this._$AH.handleEvent(e)}},Rl=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){vr(this,e)}};const wi=Ur.litHtmlPolyfillSupport;wi==null||wi(mi,gi),((rl=Ur.litHtmlVersions)!=null?rl:Ur.litHtmlVersions=[]).push("3.3.1");const kl=(t,e,r)=>{var o,s;const n=(o=r==null?void 0:r.renderBefore)!=null?o:e;let i=n._$litPart$;if(i===void 0){const a=(s=r==null?void 0:r.renderBefore)!=null?s:null;n._$litPart$=i=new gi(e.insertBefore(Lr(),a),a,void 0,r!=null?r:{})}return i._$AI(t),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const or=globalThis;let Br=class extends gr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,n;const e=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kl(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return wr}};Br._$litElement$=!0,Br.finalized=!0,(nl=or.litElementHydrateSupport)==null||nl.call(or,{LitElement:Br});const vi=or.litElementPolyfillSupport;vi==null||vi({LitElement:Br}),((il=or.litElementVersions)!=null?il:or.litElementVersions=[]).push("4.2.1");/**
19
+ */const sr=globalThis;let Br=class extends gr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,n;const e=super.createRenderRoot();return(n=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kl(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return wr}};Br._$litElement$=!0,Br.finalized=!0,(nl=sr.litElementHydrateSupport)==null||nl.call(sr,{LitElement:Br});const vi=sr.litElementPolyfillSupport;vi==null||vi({LitElement:Br}),((il=sr.litElementVersions)!=null?il:sr.litElementVersions=[]).push("4.2.1");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Nl={attribute:!0,type:String,converter:fn,reflect:!1,hasChanged:fi},Dl=(t=Nl,e,r)=>{const{kind:n,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),n==="accessor"){const{name:s}=r;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,l,t)},init(a){return a!==void 0&&this.C(s,void 0,t,a),a}}}if(n==="setter"){const{name:s}=r;return function(a){const l=this[s];e.call(this,a),this.requestUpdate(s,l,t)}}throw Error("Unsupported decorator location: "+n)};function Pl(t){return(e,r)=>typeof r=="object"?Dl(t,e,r):((n,i,o)=>{const s=i.hasOwnProperty(o);return i.constructor.createProperty(o,n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(t,e,r)}/**
23
+ */const Nl={attribute:!0,type:String,converter:fn,reflect:!1,hasChanged:fi},Dl=(t=Nl,e,r)=>{const{kind:n,metadata:i}=r;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),o.set(r.name,t),n==="accessor"){const{name:s}=r;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,l,t)},init(a){return a!==void 0&&this.C(s,void 0,t,a),a}}}if(n==="setter"){const{name:s}=r;return function(a){const l=this[s];e.call(this,a),this.requestUpdate(s,l,t)}}throw Error("Unsupported decorator location: "+n)};function Ml(t){return(e,r)=>typeof r=="object"?Dl(t,e,r):((n,i,o)=>{const s=i.hasOwnProperty(o);return i.constructor.createProperty(o,n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(t,e,r)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */function yr(t){return Pl(Y(I({},t),{state:!0,attribute:!1}))}class Ml{constructor(){this._domains=[],this._transports=[],this._logs=[],this._prevTime=0;try{if(!window.localStorage)return;const e=window.localStorage.getItem("logger");if(!e)return;const[r,n]=e.split(">");this._domains=r.split(","),n&&(this._transports=n.split(","))}catch(e){return}}create(e,r){return n=>{const i=Date.now(),o=new Date(i).toISOString();let s=0;if(this._prevTime&&(s=i-this._prevTime),this._prevTime=i,this._domains.includes(e)&&this._transports.includes("console")){const a=(r==null?void 0:r.color)||"blue";console.log("%c%s: %c%s %c+%dms",`color: ${a};`,`${o} ${e}`,"",n,`color: ${a};`,s)}this._logs.push(`${o} ${e}: ${n} +${s}ms`)}}getLogs(){return this._logs}clearLogs(){this._logs=[]}saveLogsToFile(){if(!this._transports.includes("file")||!this._logs.length)return;const e=this._logs.join(`
28
- `),r=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(r),i=document.createElement("a");i.download="log.txt",i.href=n,i.click(),window.URL.revokeObjectURL(n),this.clearLogs()}}const yi=new Ml,Fl=Mr`
27
+ */function yr(t){return Ml(Y(I({},t),{state:!0,attribute:!1}))}class Pl{constructor(){this._domains=[],this._transports=[],this._logs=[],this._prevTime=0;try{if(!window.localStorage)return;const e=window.localStorage.getItem("logger");if(!e)return;const[r,n]=e.split(">");this._domains=r.split(","),n&&(this._transports=n.split(","))}catch(e){return}}create(e,r){return n=>{const i=Date.now(),o=new Date(i).toISOString();let s=0;if(this._prevTime&&(s=i-this._prevTime),this._prevTime=i,this._domains.includes(e)&&this._transports.includes("console")){const a=(r==null?void 0:r.color)||"blue";console.log("%c%s: %c%s %c+%dms",`color: ${a};`,`${o} ${e}`,"",n,`color: ${a};`,s)}this._logs.push(`${o} ${e}: ${n} +${s}ms`)}}getLogs(){return this._logs}clearLogs(){this._logs=[]}saveLogsToFile(){if(!this._transports.includes("file")||!this._logs.length)return;const e=this._logs.join(`
28
+ `),r=new Blob([e],{type:"text/plain"}),n=window.URL.createObjectURL(r),i=document.createElement("a");i.download="log.txt",i.href=n,i.click(),window.URL.revokeObjectURL(n),this.clearLogs()}}const yi=new Pl,Fl=Pr`
29
29
  *,
30
30
  ::after,
31
31
  ::before {
@@ -86,9 +86,9 @@ var RegulaIdv=(function(fe){"use strict";var p1=Object.defineProperty,_1=Object.
86
86
  background: white;
87
87
  z-index: 1000;
88
88
  }
89
- `,Hr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Ul=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Jo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Jo||{}),br=(t=>(t.DID_START_SESSION="DID_START_SESSION",t.DID_END_SESSION="DID_END_SESSION",t.DID_START_RESTORE_SESSION="DID_START_RESTORE_SESSION",t.DID_CONTINUE_REMOTE_SESSION="DID_CONTINUE_REMOTE_SESSION",t))(br||{}),mt=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.CONNECTION_ISSUE=1]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=2]="WORKFLOW_ISSUE",t[t.INTERNAL_ISSUE=3]="INTERNAL_ISSUE",t[t.SCENARIO_IN_PROGRESS=4]="SCENARIO_IN_PROGRESS",t))(mt||{}),Ve=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.CONFIG_MISSED_OR_INVALID=1]="CONFIG_MISSED_OR_INVALID",t[t.INITIALIZATION_REQUIRED=2]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Ve||{}),We=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.PREPARED_REQUIRED=1]="PREPARED_REQUIRED",t[t.START_SESSION_FAILED=2]="START_SESSION_FAILED",t[t.UNKNOWN_STEP=3]="UNKNOWN_STEP",t[t.MODULES_ISSUE=4]="MODULES_ISSUE",t[t.ALREADY_STARTED=5]="ALREADY_STARTED",t[t.INTERNAL_ISSUE=6]="INTERNAL_ISSUE",t))(We||{}),Wr=(t=>(t[t.CONFIG_MISSED_OR_INVALID=0]="CONFIG_MISSED_OR_INVALID",t[t.MODULES_INSTANTIATION_FAILURE=1]="MODULES_INSTANTIATION_FAILURE",t[t.INITIALIZATION_IN_PROGRESS=2]="INITIALIZATION_IN_PROGRESS",t))(Wr||{}),_n=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(_n||{}),gt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(gt||{}),qt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.TOKEN_ERROR=3]="TOKEN_ERROR",t[t.CONNECTION_ISSUE=4]="CONNECTION_ISSUE",t))(qt||{}),it=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.SAME_STEP=3]="SAME_STEP",t[t.IS_PROCESSING=4]="IS_PROCESSING",t[t.NOT_DATA_TYPE=5]="NOT_DATA_TYPE",t))(it||{}),jr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(jr||{}),It=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(It||{});const Ll=120,Vl=200,bi="PROGRESS",wt="IDV",sr="idv-session-data",zr="idv-session-auth-token",$l="rgl-uid",Bl="en",Xo=t=>{let e;const r=new Set,n=(d,_)=>{const h=typeof d=="function"?d(e):d;if(!Object.is(h,e)){const c=e;e=(_!=null?_:typeof h!="object"||h===null)?h:Object.assign({},e,h),r.forEach(y=>y(e,c))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d))},l=e=t(n,i,a);return a},Hl=t=>t?Xo(t):Xo;var Kr,se,Qo,ar,es,ts,rs,ns,Ci,Si,Ei,is,Gr={},os=[],Wl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qr=Array.isArray;function vt(t,e){for(var r in e)t[r]=e[r];return t}function Ti(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function yt(t,e,r){var n,i,o,s={};for(o in e)o=="key"?n=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?Kr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Zr(t,s,n,i,null)}function Zr(t,e,r,n,i){var o={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Qo:i,__i:-1,__u:0};return i==null&&se.vnode!=null&&se.vnode(o),o}function ss(){return{current:null}}function je(t){return t.children}function ct(t,e){this.props=t,this.context=e}function Cr(t,e){if(e==null)return t.__?Cr(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Cr(t):null}function as(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return as(t)}}function Ii(t){(!t.__d&&(t.__d=!0)&&ar.push(t)&&!mn.__r++||es!=se.debounceRendering)&&((es=se.debounceRendering)||ts)(mn)}function mn(){for(var t,e,r,n,i,o,s,a=1;ar.length;)ar.length>a&&ar.sort(rs),t=ar.shift(),a=ar.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,o=[],s=[],e.__P&&((r=vt({},n)).__v=n.__v+1,se.vnode&&se.vnode(r),Oi(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Cr(n):i,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,fs(o,r,s),n.__e=n.__=null,r.__e!=i&&as(r)));mn.__r=0}function ls(t,e,r,n,i,o,s,a,l,d,_){var h,c,y,g,f,m,S,b=n&&n.__k||os,C=e.length;for(l=jl(r,e,b,l,C),h=0;h<C;h++)(y=r.__k[h])!=null&&(c=y.__i==-1?Gr:b[y.__i]||Gr,y.__i=h,m=Oi(t,y,c,i,o,s,a,l,d,_),g=y.__e,y.ref&&c.ref!=y.ref&&(c.ref&&xi(c.ref,null,y),_.push(y.ref,y.__c||g,y)),f==null&&g!=null&&(f=g),(S=!!(4&y.__u))||c.__k===y.__k?l=cs(y,l,t,S):typeof y.type=="function"&&m!==void 0?l=m:g&&(l=g.nextSibling),y.__u&=-7);return r.__e=f,l}function jl(t,e,r,n,i){var o,s,a,l,d,_=r.length,h=_,c=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+c,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Zr(null,s,null,null,null):qr(s)?Zr(je,{children:s},null,null,null):s.constructor==null&&s.__b>0?Zr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=zl(s,r,l,h))!=-1&&(h--,(a=r[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>_?c--:i<_&&c++),typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?c--:d==l+1?c++:(d>l?c--:c++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<_;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Cr(a)),ps(a,a));return n}function cs(t,e,r,n){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=cs(i[o],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Cr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Ot(t,e){return e=e||[],t==null||typeof t=="boolean"||(qr(t)?t.some(function(r){Ot(r,e)}):e.push(t)),e}function zl(t,e,r,n){var i,o,s,a=t.key,l=t.type,d=e[r],_=d!=null&&(2&d.__u)==0;if(d===null&&t.key==null||_&&a==d.key&&l==d.type)return r;if(n>(_?1:0)){for(i=r-1,o=r+1;i>=0||o<e.length;)if((d=e[s=i>=0?i--:o++])!=null&&(2&d.__u)==0&&a==d.key&&l==d.type)return s}return-1}function ds(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Wl.test(e)?r:r+"px"}function gn(t,e,r,n,i){var o,s;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||ds(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||ds(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(ns,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=r,r?n?r.u=n.u:(r.u=Ci,t.addEventListener(e,o?Ei:Si,o)):t.removeEventListener(e,o?Ei:Si,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function us(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Ci++;else if(e.t<r.u)return;return r(se.event?se.event(e):e)}}}function Oi(t,e,r,n,i,o,s,a,l,d){var _,h,c,y,g,f,m,S,b,C,O,N,R,M,_e,me,ee,Q=e.type;if(e.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),o=[a=e.__e=r.__e]),(_=se.__b)&&_(e);e:if(typeof Q=="function")try{if(S=e.props,b="prototype"in Q&&Q.prototype.render,C=(_=Q.contextType)&&n[_.__c],O=_?C?C.props.value:_.__:n,r.__c?m=(h=e.__c=r.__c).__=h.__E:(b?e.__c=h=new Q(S,O):(e.__c=h=new ct(S,O),h.constructor=Q,h.render=Gl),C&&C.sub(h),h.props=S,h.state||(h.state={}),h.context=O,h.__n=n,c=h.__d=!0,h.__h=[],h._sb=[]),b&&h.__s==null&&(h.__s=h.state),b&&Q.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=vt({},h.__s)),vt(h.__s,Q.getDerivedStateFromProps(S,h.__s))),y=h.props,g=h.state,h.__v=e,c)b&&Q.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),b&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&S!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,O),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,O)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(h.props=S,h.state=h.__s,h.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),N=0;N<h._sb.length;N++)h.__h.push(h._sb[N]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,O),b&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,g,f)})}if(h.context=O,h.props=S,h.__P=t,h.__e=!1,R=se.__r,M=0,b){for(h.state=h.__s,h.__d=!1,R&&R(e),_=h.render(h.props,h.state,h.context),_e=0;_e<h._sb.length;_e++)h.__h.push(h._sb[_e]);h._sb=[]}else do h.__d=!1,R&&R(e),_=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++M<25);h.state=h.__s,h.getChildContext!=null&&(n=vt(vt({},n),h.getChildContext())),b&&!c&&h.getSnapshotBeforeUpdate!=null&&(f=h.getSnapshotBeforeUpdate(y,g)),me=_,_!=null&&_.type===je&&_.key==null&&(me=hs(_.props.children)),a=ls(t,qr(me)?me:[me],e,r,n,i,o,s,a,l,d),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),m&&(h.__E=h.__=null)}catch(H){if(e.__v=null,l||o!=null)if(H.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else{for(ee=o.length;ee--;)Ti(o[ee]);Ai(e)}else e.__e=r.__e,e.__k=r.__k,H.then||Ai(e);se.__e(H,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Kl(r.__e,e,r,n,i,o,s,l,d);return(_=se.diffed)&&_(e),128&e.__u?void 0:a}function Ai(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(Ai)}function fs(t,e,r){for(var n=0;n<r.length;n++)xi(r[n],r[++n],r[++n]);se.__c&&se.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){se.__e(o,i.__v)}})}function hs(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:qr(t)?t.map(hs):vt({},t)}function Kl(t,e,r,n,i,o,s,a,l){var d,_,h,c,y,g,f,m=r.props,S=e.props,b=e.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((y=o[d])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){t=y,o[d]=null;break}}if(t==null){if(b==null)return document.createTextNode(S);t=document.createElementNS(i,b,S.is&&S),a&&(se.__m&&se.__m(e,o),a=!1),o=null}if(b==null)m===S||a&&t.data==S||(t.data=S);else{if(o=o&&Kr.call(t.childNodes),m=r.props||Gr,!a&&o!=null)for(m={},d=0;d<t.attributes.length;d++)m[(y=t.attributes[d]).name]=y.value;for(d in m)if(y=m[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=y;else if(!(d in S)){if(d=="value"&&"defaultValue"in S||d=="checked"&&"defaultChecked"in S)continue;gn(t,d,null,y,i)}}for(d in S)y=S[d],d=="children"?c=y:d=="dangerouslySetInnerHTML"?_=y:d=="value"?g=y:d=="checked"?f=y:a&&typeof y!="function"||m[d]===y||gn(t,d,y,m[d],i);if(_)a||h&&(_.__html==h.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(h&&(t.innerHTML=""),ls(e.type=="template"?t.content:t,qr(c)?c:[c],e,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&Cr(r,0),a,l),o!=null)for(d=o.length;d--;)Ti(o[d]);a||(d="value",b=="progress"&&g==null?t.removeAttribute("value"):g!=null&&(g!==t[d]||b=="progress"&&!g||b=="option"&&g!=m[d])&&gn(t,d,g,m[d],i),d="checked",f!=null&&f!=t[d]&&gn(t,d,f,m[d],i))}return t}function xi(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){se.__e(i,r)}}function ps(t,e,r){var n,i;if(se.unmount&&se.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||xi(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){se.__e(o,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ps(n[i],e,r||typeof t.type!="function");r||Ti(t.__e),t.__c=t.__=t.__e=void 0}function Gl(t,e,r){return this.constructor(t,r)}function Sr(t,e,r){var n,i,o,s;e==document&&(e=document.documentElement),se.__&&se.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],Oi(e,t=(!n&&r||e).__k=yt(je,null,[t]),i||Gr,Gr,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?Kr.call(e.childNodes):null,o,!n&&r?r:i?i.__e:e.firstChild,n,s),fs(o,t,s)}function _s(t,e){Sr(t,e,_s)}function ql(t,e,r){var n,i,o,s,a=vt({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?n=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!=null?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?Kr.call(arguments,2):r),Zr(t.type,a,n||t.key,i||t.ref,null)}function Ri(t){function e(r){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&n.forEach(function(s){s.__e=!0,Ii(s)})},this.sub=function(o){n.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),s&&s.call(o)}}),r.children}return e.__c="__cC"+is++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}Kr=os.slice,se={__e:function(t,e,r,n){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},Qo=0,ct.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=vt({},this.state),typeof t=="function"&&(t=t(vt({},r),this.props)),t&&vt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ii(this))},ct.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ii(this))},ct.prototype.render=je,ar=[],ts=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,rs=function(t,e){return t.__v.__b-e.__v.__b},mn.__r=0,ns=/(PointerCapture)$|Capture$/i,Ci=0,Si=us(!1),Ei=us(!0),is=0;var At,Ce,ki,ms,Er=0,gs=[],Oe=se,ws=Oe.__b,vs=Oe.__r,ys=Oe.diffed,bs=Oe.__c,Cs=Oe.unmount,Ss=Oe.__;function lr(t,e){Oe.__h&&Oe.__h(Ce,t,Er||e),Er=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return Er=1,wn(Ts,t)}function wn(t,e,r){var n=lr(At++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Ts(void 0,e),function(a){var l=n.__N?n.__N[0]:n.__[0],d=n.t(l,a);l!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=Ce,!Ce.__f)){var i=function(a,l,d){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(c){return!!c.__c});if(_.every(function(c){return!c.__N}))return!o||o.call(this,a,l,d);var h=n.__c.props!==a;return _.forEach(function(c){if(c.__N){var y=c.__[0];c.__=c.__N,c.__N=void 0,y!==c.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Ce.__f=!0;var o=Ce.shouldComponentUpdate,s=Ce.componentWillUpdate;Ce.componentWillUpdate=function(a,l,d){if(this.__e){var _=o;o=void 0,i(a,l,d),o=_}s&&s.call(this,a,l,d)},Ce.shouldComponentUpdate=i}return n.__N||n.__}function ot(t,e){var r=lr(At++,3);!Oe.__s&&Ui(r.__H,e)&&(r.__=t,r.u=e,Ce.__H.__h.push(r))}function Zt(t,e){var r=lr(At++,4);!Oe.__s&&Ui(r.__H,e)&&(r.__=t,r.u=e,Ce.__h.push(r))}function st(t){return Er=5,Yr(function(){return{current:t}},[])}function Ni(t,e,r){Er=6,Zt(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Yr(t,e){var r=lr(At++,7);return Ui(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Di(t,e){return Er=8,Yr(function(){return t},e)}function Jr(t){var e=Ce.context[t.__c],r=lr(At++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ce)),e.props.value):t.__}function Pi(t,e){Oe.useDebugValue&&Oe.useDebugValue(e?e(t):t)}function Zl(t){var e=lr(At++,10),r=Ue();return e.__=t,Ce.componentDidCatch||(Ce.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Mi(){var t=lr(At++,11);if(!t.__){for(var e=Ce.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Yl(){for(var t;t=gs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(vn),t.__H.__h.forEach(Fi),t.__H.__h=[]}catch(e){t.__H.__h=[],Oe.__e(e,t.__v)}}Oe.__b=function(t){Ce=null,ws&&ws(t)},Oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ss&&Ss(t,e)},Oe.__r=function(t){vs&&vs(t),At=0;var e=(Ce=t.__c).__H;e&&(ki===Ce?(e.__h=[],Ce.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(vn),e.__h.forEach(Fi),e.__h=[],At=0)),ki=Ce},Oe.diffed=function(t){ys&&ys(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(gs.push(e)!==1&&ms===Oe.requestAnimationFrame||((ms=Oe.requestAnimationFrame)||Jl)(Yl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ki=Ce=null},Oe.__c=function(t,e){e.some(function(r){try{r.__h.forEach(vn),r.__h=r.__h.filter(function(n){return!n.__||Fi(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Oe.__e(n,r.__v)}}),bs&&bs(t,e)},Oe.unmount=function(t){Cs&&Cs(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{vn(n)}catch(i){e=i}}),r.__H=void 0,e&&Oe.__e(e,r.__v))};var Es=typeof requestAnimationFrame=="function";function Jl(t){var e,r=function(){clearTimeout(n),Es&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Es&&(e=requestAnimationFrame(r))}function vn(t){var e=Ce,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ce=e}function Fi(t){var e=Ce;t.__c=t.__(),Ce=e}function Ui(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Ts(t,e){return typeof e=="function"?e(t):e}function Is(t,e){for(var r in e)t[r]=e[r];return t}function Li(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Vi(t,e){var r=e(),n=Ue({t:{__:r,u:e}}),i=n[0].t,o=n[1];return Zt(function(){i.__=r,i.u=e,$i(i)&&o({t:i})},[t,r,e]),ot(function(){return $i(i)&&o({t:i}),t(function(){$i(i)&&o({t:i})})},[t]),r}function $i(t){var e,r,n=t.u,i=t.__;try{var o=n();return!((e=i)===(r=o)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(s){return!0}}function Bi(t){t()}function Hi(t){return t}function Wi(){return[!1,Bi]}var ji=Zt;function yn(t,e){this.props=t,this.context=e}function Os(t,e){function r(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),e?!e(this.props,i)||!s:Li(this.props,i)}function n(i){return this.shouldComponentUpdate=r,yt(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(yn.prototype=new ct).isPureReactComponent=!0,yn.prototype.shouldComponentUpdate=function(t,e){return Li(this.props,t)||Li(this.state,e)};var As=se.__b;se.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),As&&As(t)};var Xl=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xs(t){function e(r){var n=Is({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Xl,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Rs=function(t,e){return t==null?null:Ot(Ot(t).map(e))},ks={map:Rs,forEach:Rs,count:function(t){return t?Ot(t).length:0},only:function(t){var e=Ot(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:Ot},Ql=se.__e;se.__e=function(t,e,r,n){if(t.then){for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}Ql(t,e,r,n)};var Ns=se.unmount;function Ds(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Is({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Ds(n,e,r)})),t}function Ps(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Ps(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Xr(){this.__u=0,this.o=null,this.__b=null}function Ms(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Fs(t){var e,r,n;function i(o){if(e||(e=t()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw e;return yt(r,o)}return i.displayName="Lazy",i.__f=!0,i}function Tr(){this.i=null,this.l=null}se.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ns&&Ns(t)},(Xr.prototype=new ct).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Ms(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Ps(l,l.__c.__P,l.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(s,s)},Xr.prototype.componentWillUnmount=function(){this.o=[]},Xr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ds(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&yt(je,null,t.fallback);return i&&(i.__u&=-33),[yt(je,null,e.__a?null:t.children),i]};var Us=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function ec(t){return this.getChildContext=function(){return t.context},t.children}function tc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Sr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),e.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.h.removeChild(i)}}}Sr(yt(ec,{context:e.context},t.__v),e.v)}function Ls(t,e){var r=yt(tc,{__v:t,h:e});return r.containerInfo=e,r}(Tr.prototype=new ct).__a=function(t){var e=this,r=Ms(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),Us(e,t,n)):i()};r?r(o):o()}},Tr.prototype.render=function(t){this.i=null,this.l=new Map;var e=Ot(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Us(t,r,e)})};var Vs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,rc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ic=/[A-Z0-9]/g,oc=typeof document!="undefined",sc=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function $s(t,e,r){return e.__k==null&&(e.textContent=""),Sr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Bs(t,e,r){return _s(t,e),typeof r=="function"&&r(),t?t.__c:null}ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ct.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Hs=se.event;function ac(){}function lc(){return this.cancelBubble}function cc(){return this.defaultPrevented}se.event=function(t){return Hs&&(t=Hs(t)),t.persist=ac,t.isPropagationStopped=lc,t.isDefaultPrevented=cc,t.nativeEvent=t};var zi,dc={enumerable:!1,configurable:!0,get:function(){return this.class}},Ws=se.vnode;se.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,n=e.type,i={},o=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||oc&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||sc(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":nc.test(s)&&(s=l):l=s="oninput":o&&rc.test(s)?s=s.replace(ic,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ot(r.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Ot(r.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",dc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Vs,Ws&&Ws(t)};var js=se.__r;se.__r=function(t){js&&js(t),zi=t.__c};var zs=se.diffed;se.diffed=function(t){zs&&zs(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),zi=null};var Ks={ReactCurrentDispatcher:{current:{readContext:function(t){return zi.__n[t.__c].props.value},useCallback:Di,useContext:Jr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:ot,useId:Mi,useImperativeHandle:Ni,useInsertionEffect:ji,useLayoutEffect:Zt,useMemo:Yr,useReducer:wn,useRef:st,useState:Ue,useSyncExternalStore:Vi,useTransition:Wi}}},uc="18.3.1";function Gs(t){return yt.bind(null,t)}function Qr(t){return!!t&&t.$$typeof===Vs}function qs(t){return Qr(t)&&t.type===je}function Zs(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Ys(t){return Qr(t)?ql.apply(null,arguments):t}function Js(t){return!!t.__k&&(Sr(null,t),!0)}function Xs(t){return t&&(t.base||t.nodeType===1&&t)||null}var Qs=function(t,e){return t(e)},ea=function(t,e){return t(e)},ta=je,ra=Qr,ce={useState:Ue,useId:Mi,useReducer:wn,useEffect:ot,useLayoutEffect:Zt,useInsertionEffect:ji,useTransition:Wi,useDeferredValue:Hi,useSyncExternalStore:Vi,startTransition:Bi,useRef:st,useImperativeHandle:Ni,useMemo:Yr,useCallback:Di,useContext:Jr,useDebugValue:Pi,version:"18.3.1",Children:ks,render:$s,hydrate:Bs,unmountComponentAtNode:Js,createPortal:Ls,createElement:yt,createContext:Ri,createFactory:Gs,cloneElement:Ys,createRef:ss,Fragment:je,isValidElement:Qr,isElement:ra,isFragment:qs,isMemo:Zs,findDOMNode:Xs,Component:ct,PureComponent:yn,memo:Os,forwardRef:xs,flushSync:ea,unstable_batchedUpdates:Qs,StrictMode:ta,Suspense:Xr,SuspenseList:Tr,lazy:Fs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ks};const fc=Object.freeze(Object.defineProperty({__proto__:null,Children:ks,Component:ct,Fragment:je,PureComponent:yn,StrictMode:ta,Suspense:Xr,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ks,cloneElement:Ys,createContext:Ri,createElement:yt,createFactory:Gs,createPortal:Ls,createRef:ss,default:ce,findDOMNode:Xs,flushSync:ea,forwardRef:xs,hydrate:Bs,isElement:ra,isFragment:qs,isMemo:Zs,isValidElement:Qr,lazy:Fs,memo:Os,render:$s,startTransition:Bi,unmountComponentAtNode:Js,unstable_batchedUpdates:Qs,useCallback:Di,useContext:Jr,useDebugValue:Pi,useDeferredValue:Hi,useEffect:ot,useErrorBoundary:Zl,useId:Mi,useImperativeHandle:Ni,useInsertionEffect:ji,useLayoutEffect:Zt,useMemo:Yr,useReducer:wn,useRef:st,useState:Ue,useSyncExternalStore:Vi,useTransition:Wi,version:uc},Symbol.toStringTag,{value:"Module"})),hc=t=>t;function pc(t,e=hc){const r=ce.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ce.useDebugValue(r),r}const na=t=>{const e=Hl(t),r=n=>pc(e,n);return Object.assign(r,e),r},_c=t=>t?na(t):na;function mc(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(o){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var B={};const gc=mc(fc);var en={exports:{}},wc=en.exports,ia;function vc(){return ia||(ia=1,(function(t,e){(function(r,n){var i="1.0.41",o="",s="?",a="function",l="undefined",d="object",_="string",h="major",c="model",y="name",g="type",f="vendor",m="version",S="architecture",b="console",C="mobile",O="tablet",N="smarttv",R="wearable",M="embedded",_e=500,me="Amazon",ee="Apple",Q="ASUS",H="BlackBerry",J="Browser",de="Chrome",ue="Edge",ve="Firefox",ye="Google",te="Honor",z="Huawei",F="Lenovo",q="LG",re="Microsoft",Te="Motorola",ne="Nvidia",$="OnePlus",X="Opera",Ke="OPPO",Je="Samsung",ht="Sharp",nt="Sony",Wt="Xiaomi",pt="Zebra",Xt="Facebook",jt="Chromium OS",Ct="Mac OS",zt=" Browser",Qt=function(Z,ae){var j={};for(var ge in Z)ae[ge]&&ae[ge].length%2===0?j[ge]=ae[ge].concat(Z[ge]):j[ge]=Z[ge];return j},St=function(Z){for(var ae={},j=0;j<Z.length;j++)ae[Z[j].toUpperCase()]=Z[j];return ae},at=function(Z,ae){return typeof Z===_?v(ae).indexOf(v(Z))!==-1:!1},v=function(Z){return Z.toLowerCase()},T=function(Z){return typeof Z===_?Z.replace(/[^\d\.]/g,o).split(".")[0]:n},x=function(Z,ae){if(typeof Z===_)return Z=Z.replace(/^\s\s*/,o),typeof ae===l?Z:Z.substring(0,_e)},V=function(Z,ae){for(var j=0,ge,Ge,Pe,he,G,Xe;j<ae.length&&!G;){var er=ae[j],pr=ae[j+1];for(ge=Ge=0;ge<er.length&&!G&&er[ge];)if(G=er[ge++].exec(Z),G)for(Pe=0;Pe<pr.length;Pe++)Xe=G[++Ge],he=pr[Pe],typeof he===d&&he.length>0?he.length===2?typeof he[1]==a?this[he[0]]=he[1].call(this,Xe):this[he[0]]=he[1]:he.length===3?typeof he[1]===a&&!(he[1].exec&&he[1].test)?this[he[0]]=Xe?he[1].call(this,Xe,he[2]):n:this[he[0]]=Xe?Xe.replace(he[1],he[2]):n:he.length===4&&(this[he[0]]=Xe?he[3].call(this,Xe.replace(he[1],he[2])):n):this[he]=Xe||n;j+=2}},D=function(Z,ae){for(var j in ae)if(typeof ae[j]===d&&ae[j].length>0){for(var ge=0;ge<ae[j].length;ge++)if(at(ae[j][ge],Z))return j===s?n:j}else if(at(ae[j],Z))return j===s?n:j;return ae.hasOwnProperty("*")?ae["*"]:Z},P={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},W={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"},ie={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,m],[/opios[\/ ]+([\w\.]+)/i],[m,[y,X+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[y,X+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[y,X]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[y,"UC"+J]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[y,"Smart Lenovo "+J]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+J],m],[/\bfocus\/([\w\.]+)/i],[m,[y,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[y,X+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[y,X+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[y,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[m,[y,ve]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+zt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[y,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Xt],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[y,de+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,de+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[y,"Android "+J]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[m,D,P]],[/(webkit|khtml)\/([\w\.]+)/i],[y,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[y,ve+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[y,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,o,v]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,v]]],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],[c,[f,Je],[g,O]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,Je],[g,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,ee],[g,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,ee],[g,O]],[/(macintosh);/i],[c,[f,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,ht],[g,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,te],[g,O]],[/honor([-\w ]+)[;\)]/i],[c,[f,te],[g,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[f,z],[g,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,z],[g,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,Wt],[g,O]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[f,Wt],[g,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,Ke],[g,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,D,{OnePlus:["304","403","203"],"*":Ke}],[g,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[g,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[g,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,Te],[g,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,Te],[g,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,q],[g,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,q],[g,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[f,F],[g,O]],[/(nokia) (t[12][01])/i],[f,c,[g,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[g,C],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,ye],[g,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,ye],[g,C]],[/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],[c,[f,nt],[g,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,nt],[g,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,$],[g,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,me],[g,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,me],[g,C]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[g,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,H],[g,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,Q],[g,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,Q],[g,C]],[/(nexus 9)/i],[c,[f,"HTC"],[g,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[g,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[f,"TCL"],[g,O]],[/(itel) ((\w+))/i],[[f,v],c,[g,D,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[g,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[g,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[g,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[g,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[g,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[g,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[g,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[g,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[g,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[g,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[g,C]],[/(kobo)\s(ereader|touch)/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],[f,c,[g,O]],[/(surface duo)/i],[c,[f,re],[g,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[g,C]],[/(u304aa)/i],[c,[f,"AT&T"],[g,C]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[g,C]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[g,O]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[g,O]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[g,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[g,O]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[g,O]],[/\b(k88) b/i],[c,[f,"ZTE"],[g,O]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[g,C]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[g,C]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[g,O]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[g,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[g,O]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[g,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[g,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[g,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[g,C]],[/\b(ph-1) /i],[c,[f,"Essential"],[g,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[g,O]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[g,O]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[g,O]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,ne],[g,O]],[/(sprint) (\w+)/i],[f,c,[g,C]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,re],[g,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,pt],[g,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,pt],[g,C]],[/smart-tv.+(samsung)/i],[f,[g,N]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Je],[g,N]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,q],[g,N]],[/(apple) ?tv/i],[f,[c,ee+" TV"],[g,N]],[/crkey/i],[[c,de+"cast"],[f,ye],[g,N]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,me],[g,N]],[/(shield \w+ tv)/i],[c,[f,ne],[g,N]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,ht],[g,N]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,nt],[g,N]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,Wt],[g,N]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[g,N]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,x],[c,x],[g,N]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[g,N]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,N]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[g,b]],[/droid.+; (shield)( bui|\))/i],[c,[f,ne],[g,b]],[/(playstation \w+)/i],[c,[f,nt],[g,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,re],[g,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Je],[g,R]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[g,R]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,Ke],[g,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,ee],[g,R]],[/(opwwe\d{3})/i],[c,[f,$],[g,R]],[/(moto 360)/i],[c,[f,Te],[g,R]],[/(smartwatch 3)/i],[c,[f,nt],[g,R]],[/(g watch r)/i],[c,[f,q],[g,R]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,pt],[g,R]],[/droid.+; (glass) \d/i],[c,[f,ye],[g,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[g,R]],[/; (quest( \d| pro)?)/i],[c,[f,Xt],[g,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[g,M]],[/(aeobc)\b/i],[c,[f,me],[g,M]],[/(homepod).+mac os/i],[c,[f,ee],[g,M]],[/windows iot/i],[[g,M]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[g,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[g,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[y,ue+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,m],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[m,D,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,D,W],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,Ct],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,m],[/\(bb(10);/i],[m,[y,H]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[y,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[y,de+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,jt],m],[/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,m],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,m]]},K=function(Z,ae){if(typeof Z===d&&(ae=Z,Z=n),!(this instanceof K))return new K(Z,ae).getResult();var j=typeof r!==l&&r.navigator?r.navigator:n,ge=Z||(j&&j.userAgent?j.userAgent:o),Ge=j&&j.userAgentData?j.userAgentData:n,Pe=ae?Qt(ie,ae):ie,he=j&&j.userAgent==ge;return this.getBrowser=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Pe.browser),G[h]=T(G[m]),he&&j&&j.brave&&typeof j.brave.isBrave==a&&(G[y]="Brave"),G},this.getCPU=function(){var G={};return G[S]=n,V.call(G,ge,Pe.cpu),G},this.getDevice=function(){var G={};return G[f]=n,G[c]=n,G[g]=n,V.call(G,ge,Pe.device),he&&!G[g]&&Ge&&Ge.mobile&&(G[g]=C),he&&G[c]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(G[c]="iPad",G[g]=O),G},this.getEngine=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Pe.engine),G},this.getOS=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Pe.os),he&&!G[y]&&Ge&&Ge.platform&&Ge.platform!="Unknown"&&(G[y]=Ge.platform.replace(/chrome os/i,jt).replace(/macos/i,Ct)),G},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 ge},this.setUA=function(G){return ge=typeof G===_&&G.length>_e?x(G,_e):G,this},this.setUA(ge),this};K.VERSION=i,K.BROWSER=St([y,m,h]),K.CPU=St([S]),K.DEVICE=St([c,f,g,b,C,N,O,R,M]),K.ENGINE=K.OS=St([y,m]),t.exports&&(e=t.exports=K),e.UAParser=K;var we=typeof r!==l&&(r.jQuery||r.Zepto);if(we&&!we.ua){var He=new K;we.ua=He.getResult(),we.ua.get=function(){return He.getUA()},we.ua.set=function(Z){He.setUA(Z);var ae=He.getResult();for(var j in ae)we.ua[j]=ae[j]}}})(typeof window=="object"?window:wc)})(en,en.exports)),en.exports}var oa;function yc(){if(oa)return B;oa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=gc,r=t(e),n=vc(),i=new n,o=i.getBrowser(),s=i.getCPU(),a=i.getDevice(),l=i.getEngine(),d=i.getOS(),_=i.getUA(),h=function(p){return i.setUA(p)},c=function(p){if(!p){console.error("No userAgent string was provided");return}var w=new n(p);return{UA:w,browser:w.getBrowser(),cpu:w.getCPU(),device:w.getDevice(),engine:w.getEngine(),os:w.getOS(),ua:w.getUA(),setUserAgent:function(k){return w.setUA(k)}}},y=Object.freeze({ClientUAInstance:i,browser:o,cpu:s,device:a,engine:l,os:d,ua:_,setUa:h,parseUserAgent:c});function g(E,p){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);p&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(E,k).enumerable})),w.push.apply(w,A)}return w}function f(E){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?g(Object(w),!0).forEach(function(A){O(E,A,w[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):g(Object(w)).forEach(function(A){Object.defineProperty(E,A,Object.getOwnPropertyDescriptor(w,A))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(p){return typeof p}:m=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m(E)}function S(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function b(E,p){for(var w=0;w<p.length;w++){var A=p[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}function C(E,p,w){return p&&b(E.prototype,p),E}function O(E,p,w){return p in E?Object.defineProperty(E,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[p]=w,E}function N(){return N=Object.assign||function(E){for(var p=1;p<arguments.length;p++){var w=arguments[p];for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(E[A]=w[A])}return E},N.apply(this,arguments)}function R(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),p&&_e(E,p)}function M(E){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},M(E)}function _e(E,p){return _e=Object.setPrototypeOf||function(A,k){return A.__proto__=k,A},_e(E,p)}function me(E,p){if(E==null)return{};var w={},A=Object.keys(E),k,pe;for(pe=0;pe<A.length;pe++)k=A[pe],!(p.indexOf(k)>=0)&&(w[k]=E[k]);return w}function ee(E,p){if(E==null)return{};var w=me(E,p),A,k;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(E);for(k=0;k<pe.length;k++)A=pe[k],!(p.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(E,A)&&(w[A]=E[A])}return w}function Q(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function H(E,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(E)}function J(E,p){return de(E)||ue(E,p)||ve(E,p)||te()}function de(E){if(Array.isArray(E))return E}function ue(E,p){var w=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(w!=null){var A=[],k=!0,pe=!1,Me,et;try{for(w=w.call(E);!(k=(Me=w.next()).done)&&(A.push(Me.value),!(p&&A.length===p));k=!0);}catch(li){pe=!0,et=li}finally{try{!k&&w.return!=null&&w.return()}finally{if(pe)throw et}}return A}}function ve(E,p){if(E){if(typeof E=="string")return ye(E,p);var w=Object.prototype.toString.call(E).slice(8,-1);if(w==="Object"&&E.constructor&&(w=E.constructor.name),w==="Map"||w==="Set")return Array.from(E);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return ye(E,p)}}function ye(E,p){(p==null||p>E.length)&&(p=E.length);for(var w=0,A=new Array(p);w<p;w++)A[w]=E[w];return A}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},F={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"},q={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},re={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Te=function(p){switch(p){case z.Mobile:return{isMobile:!0};case z.Tablet:return{isTablet:!0};case z.SmartTv:return{isSmartTV:!0};case z.Console:return{isConsole:!0};case z.Wearable:return{isWearable:!0};case z.Browser:return{isBrowser:!0};case z.Embedded:return{isEmbedded:!0};default:return re}},ne=function(p){return h(p)},$=function(p){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return p||w},X=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(p){var w=X();return w&&w.platform&&(w.platform.indexOf(p)!==-1||w.platform==="MacIntel"&&w.maxTouchPoints>1&&!window.MSStream)},Je=function(p,w,A,k,pe){return{isBrowser:p,browserMajorVersion:$(w.major),browserFullVersion:$(w.version),browserName:$(w.name),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(pe)}},ht=function(p,w,A,k){return f({},p,{vendor:$(w.vendor),model:$(w.model),os:$(A.name),osVersion:$(A.version),ua:$(k)})},nt=function(p,w,A,k){return{isSmartTV:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Wt=function(p,w,A,k){return{isConsole:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},pt=function(p,w,A,k){return{isWearable:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Xt=function(p,w,A,k,pe){return{isEmbedded:p,vendor:$(w.vendor),model:$(w.model),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(pe)}};function jt(E){var p=E?c(E):y,w=p.device,A=p.browser,k=p.engine,pe=p.os,Me=p.ua,et=Te(w.type),li=et.isBrowser,f1=et.isMobile,h1=et.isTablet,sl=et.isSmartTV,al=et.isConsole,ll=et.isWearable,cl=et.isEmbedded;if(li)return Je(li,A,k,pe,Me);if(sl)return nt(sl,k,pe,Me);if(al)return Wt(al,k,pe,Me);if(f1||h1)return ht(et,w,pe,Me);if(ll)return pt(ll,k,pe,Me);if(cl)return Xt(cl,w,k,pe,Me)}var Ct=function(p){var w=p.type;return w===z.Mobile},zt=function(p){var w=p.type;return w===z.Tablet},Qt=function(p){var w=p.type;return w===z.Mobile||w===z.Tablet},St=function(p){var w=p.type;return w===z.SmartTv},at=function(p){var w=p.type;return w===z.Browser},v=function(p){var w=p.type;return w===z.Wearable},T=function(p){var w=p.type;return w===z.Console},x=function(p){var w=p.type;return w===z.Embedded},V=function(p){var w=p.vendor;return $(w)},D=function(p){var w=p.model;return $(w)},P=function(p){var w=p.type;return $(w,"browser")},W=function(p){var w=p.name;return w===q.Android},ie=function(p){var w=p.name;return w===q.Windows},K=function(p){var w=p.name;return w===q.MAC_OS},we=function(p){var w=p.name;return w===q.WindowsPhone},He=function(p){var w=p.name;return w===q.IOS},Z=function(p){var w=p.version;return $(w)},ae=function(p){var w=p.name;return $(w)},j=function(p){var w=p.name;return w===F.Chrome},ge=function(p){var w=p.name;return w===F.Firefox},Ge=function(p){var w=p.name;return w===F.Chromium},Pe=function(p){var w=p.name;return w===F.Edge},he=function(p){var w=p.name;return w===F.Yandex},G=function(p){var w=p.name;return w===F.Safari||w===F.MobileSafari},Xe=function(p){var w=p.name;return w===F.MobileSafari},er=function(p){var w=p.name;return w===F.Opera},pr=function(p){var w=p.name;return w===F.InternetExplorer||w===F.Ie},Fn=function(p){var w=p.name;return w===F.MIUI},Un=function(p){var w=p.name;return w===F.SamsungBrowser},Ln=function(p){var w=p.version;return $(w)},Vn=function(p){var w=p.major;return $(w)},$n=function(p){var w=p.name;return $(w)},Bn=function(p){var w=p.name;return $(w)},Hn=function(p){var w=p.version;return $(w)},Wn=function(){var p=X(),w=p&&p.userAgent&&p.userAgent.toLowerCase();return typeof w=="string"?/electron/.test(w):!1},tr=function(p){return typeof p=="string"&&p.indexOf("Edg/")!==-1},jn=function(){var p=X();return p&&(/iPad|iPhone|iPod/.test(p.platform)||p.platform==="MacIntel"&&p.maxTouchPoints>1)&&!window.MSStream},lt=function(){return Ke("iPad")},zn=function(){return Ke("iPhone")},Kn=function(){return Ke("iPod")},Gn=function(p){return $(p)};function qn(E){var p=E||y,w=p.device,A=p.browser,k=p.os,pe=p.engine,Me=p.ua;return{isSmartTV:St(w),isConsole:T(w),isWearable:v(w),isEmbedded:x(w),isMobileSafari:Xe(A)||lt(),isChromium:Ge(A),isMobile:Qt(w)||lt(),isMobileOnly:Ct(w),isTablet:zt(w)||lt(),isBrowser:at(w),isDesktop:at(w),isAndroid:W(k),isWinPhone:we(k),isIOS:He(k)||lt(),isChrome:j(A),isFirefox:ge(A),isSafari:G(A),isOpera:er(A),isIE:pr(A),osVersion:Z(k),osName:ae(k),fullBrowserVersion:Ln(A),browserVersion:Vn(A),browserName:$n(A),mobileVendor:V(w),mobileModel:D(w),engineName:Bn(pe),engineVersion:Hn(pe),getUA:Gn(Me),isEdge:Pe(A)||tr(Me),isYandex:he(A),deviceType:P(w),isIOS13:jn(),isIPad13:lt(),isIPhone13:zn(),isIPod13:Kn(),isElectron:Wn(),isEdgeChromium:tr(Me),isLegacyEdge:Pe(A)&&!tr(Me),isWindows:ie(k),isMacOs:K(k),isMIUI:Fn(A),isSamsungBrowser:Un(A)}}var Zn=St(a),Yn=T(a),Jn=v(a),yo=x(a),bo=Xe(o)||lt(),Co=Ge(o),Nr=Qt(a)||lt(),Xn=Ct(a),Qn=zt(a)||lt(),ei=at(a),So=at(a),ti=W(d),ri=we(d),ni=He(d)||lt(),Eo=j(o),To=ge(o),Io=G(o),Oo=er(o),ii=pr(o),Ao=Z(d),xo=ae(d),Ro=Ln(o),ko=Vn(o),No=$n(o),Do=V(a),Po=D(a),Mo=Bn(l),Fo=Hn(l),Uo=Gn(_),Et=Pe(o)||tr(_),Lo=he(o),oe=P(a),_t=jn(),Dr=lt(),oi=zn(),si=Kn(),ai=Wn(),ju=tr(_),zu=Pe(o)&&!tr(_),Ku=ie(d),Gu=K(d),qu=Fn(o),Zu=Un(o),Yu=function(p){if(!p||typeof p!="string"){console.error("No valid user agent string was provided");return}var w=c(p),A=w.device,k=w.browser,pe=w.os,Me=w.engine,et=w.ua;return qn({device:A,browser:k,os:pe,engine:Me,ua:et})},Ju=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ti?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},Xu=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ei?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},Qu=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ii?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},e1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ni?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},t1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Nr?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},r1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Qn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},n1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ri?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},i1=function(p){var w=p.renderWithFragment,A=p.children;p.viewClassName,p.style;var k=ee(p,["renderWithFragment","children","viewClassName","style"]);return Xn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},o1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Zn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},s1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Yn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},a1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Jn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},l1=function(p){var w=p.renderWithFragment,A=p.children;p.viewClassName,p.style;var k=p.condition,pe=ee(p,["renderWithFragment","children","viewClassName","style","condition"]);return k?w?r.createElement(e.Fragment,null,A):r.createElement("div",pe,A):null};function c1(E){return(function(p){R(w,p);function w(A){var k;return S(this,w),k=H(this,M(w).call(this,A)),k.isEventListenerAdded=!1,k.handleOrientationChange=k.handleOrientationChange.bind(Q(k)),k.onOrientationChange=k.onOrientationChange.bind(Q(k)),k.onPageLoad=k.onPageLoad.bind(Q(k)),k.state={isLandscape:!1,isPortrait:!1},k}return C(w,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var k=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:k===0,isLandscape:k===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":m(window))!==void 0&&Nr&&(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 r.createElement(E,N({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),w})(r.Component)}function d1(){var E=e.useState(function(){var pe=window.innerWidth>window.innerHeight?90:0;return{isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"}}),p=J(E,2),w=p[0],A=p[1],k=e.useCallback(function(){var pe=window.innerWidth>window.innerHeight?90:0,Me={isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"};w.orientation!==Me.orientation&&A(Me)},[w.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Nr&&(k(),window.addEventListener("load",k,!1),window.addEventListener("resize",k,!1)),function(){window.removeEventListener("resize",k,!1),window.removeEventListener("load",k,!1)}},[k]),w}function ol(E){var p=E||window.navigator.userAgent;return c(p)}function u1(E){var p=E||window.navigator.userAgent,w=ol(p),A=qn(w);return[A,w]}return B.AndroidView=Ju,B.BrowserTypes=F,B.BrowserView=Xu,B.ConsoleView=s1,B.CustomView=l1,B.IEView=Qu,B.IOSView=e1,B.MobileOnlyView=i1,B.MobileView=t1,B.OsTypes=q,B.SmartTVView=o1,B.TabletView=r1,B.WearableView=a1,B.WinPhoneView=n1,B.browserName=No,B.browserVersion=ko,B.deviceDetect=jt,B.deviceType=oe,B.engineName=Mo,B.engineVersion=Fo,B.fullBrowserVersion=Ro,B.getSelectorsByUserAgent=Yu,B.getUA=Uo,B.isAndroid=ti,B.isBrowser=ei,B.isChrome=Eo,B.isChromium=Co,B.isConsole=Yn,B.isDesktop=So,B.isEdge=Et,B.isEdgeChromium=ju,B.isElectron=ai,B.isEmbedded=yo,B.isFirefox=To,B.isIE=ii,B.isIOS=ni,B.isIOS13=_t,B.isIPad13=Dr,B.isIPhone13=oi,B.isIPod13=si,B.isLegacyEdge=zu,B.isMIUI=qu,B.isMacOs=Gu,B.isMobile=Nr,B.isMobileOnly=Xn,B.isMobileSafari=bo,B.isOpera=Oo,B.isSafari=Io,B.isSamsungBrowser=Zu,B.isSmartTV=Zn,B.isTablet=Qn,B.isWearable=Jn,B.isWinPhone=ri,B.isWindows=Ku,B.isYandex=Lo,B.mobileModel=Po,B.mobileVendor=Do,B.osName=xo,B.osVersion=Ao,B.parseUserAgent=c,B.setUserAgent=ne,B.useDeviceData=ol,B.useDeviceSelectors=u1,B.useMobileOrientation=d1,B.withOrientationChange=c1,B}var Yt=yc();const bc=(t,e)=>Ki(t,e),Ki=(t,e)=>{const r=Gi(t,e);for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=r[n];if(typeof i=="object"&&!Array.isArray(i))r[n]=Gi(i,e);else if(Array.isArray(i)){const o=i.map(s=>typeof s=="object"?Ki(s,e):s);r[n]=o}}return r},Gi=(t,e)=>{const r=Cc(t),n=t.layout;if(!n||n.length===0)return r;let i=null;if(n.forEach(o=>{const s=e[o];i?s&&Sc(s,i):i=s}),i){const o=Gi(i,e);for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const a=o[s];Object.prototype.hasOwnProperty.call(r,s)||(r[s]=a)}}return Ki(r,e)},Cc=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Sc=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},$e=[];for(let t=0;t<256;++t)$e.push((t+256).toString(16).slice(1));function Ec(t,e=0){return($e[t[e+0]]+$e[t[e+1]]+$e[t[e+2]]+$e[t[e+3]]+"-"+$e[t[e+4]]+$e[t[e+5]]+"-"+$e[t[e+6]]+$e[t[e+7]]+"-"+$e[t[e+8]]+$e[t[e+9]]+"-"+$e[t[e+10]]+$e[t[e+11]]+$e[t[e+12]]+$e[t[e+13]]+$e[t[e+14]]+$e[t[e+15]]).toLowerCase()}let qi;const Tc=new Uint8Array(16);function Ic(){if(!qi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qi=crypto.getRandomValues.bind(crypto)}return qi(Tc)}const sa={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oc(t,e,r){var i,o,s;t=t||{};const n=(s=(o=t.random)!=null?o:(i=t.rng)==null?void 0:i.call(t))!=null?s:Ic();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ec(n)}function Ac(t,e,r){return sa.randomUUID&&!t?sa.randomUUID():Oc(t)}function Zi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const aa=(t,e)=>{if(!t||!e)return null;let r=null;return r=Zi(t),r&&(r=bc(r,e)),r};function xc(t){return U(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function Rc(i,o){return U(this,arguments,function*(t,e,r=Ll,n=Vl){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield xc(n))}return e()})}const kc=(t,e,r)=>{const n=t.reduce((o,s)=>(o.push(...s.supportedTemplates),o),[]),i=e.find(o=>o.id===r);return n.includes(i==null?void 0:i.client.templateId)},Nc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Dc=(t,e)=>{const r=t.reduce((s,a)=>(s.push(...a.supportedTemplates),s),[]),n=Array.from(new Set(e.filter(s=>!s.final&&Ul.includes(s.type)).map(s=>s.client.templateId)));function i(s,a){const l=new Set(s);return a.filter(d=>!l.has(d))}const o=i(r,n);return{isAllTemplatesSupported:o.length===0,unsupportedSteps:o.length>0?o:void 0}},cr={setAuthTokenToLs:(t,e,r,n,i)=>{const o=localStorage.getItem(zr),s=o?JSON.parse(o):{},a={authToken:t,tokenExpiresAt:i,workflowId:n,sessionId:r};s[e]=a,localStorage.setItem(zr,JSON.stringify(s))},getAuthTokenLs:()=>{const t=localStorage.getItem(zr);if(!t)return null;try{const e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:null}catch(e){return null}},removeAuthTokenLs:t=>{if(!t)return!1;const e=localStorage.getItem(zr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(zr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Yi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ji=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Xi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(sr);let n={};if(r)try{const i=JSON.parse(r);Yi(i)&&(n=i)}catch(i){if(Ji(r)){const[o,s]=r.split(":");o&&s&&(n={[s]:o})}}n[e]=t,localStorage.setItem(sr,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(sr);if(!t)return null;try{const e=JSON.parse(t);return Yi(e)?e:null}catch(e){if(Ji(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(sr);if(!e)return!1;if(!t)return localStorage.removeItem(sr),!0;try{const r=JSON.parse(e);if(!Yi(r))return!1;const n=r;return Object.prototype.hasOwnProperty.call(n,t)?(delete n[t],localStorage.setItem(sr,JSON.stringify(n)),!0):!1}catch(r){if(Ji(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(sr),!0):!1}return!1}}},Pc=t=>{var n;let e;const r=Ac();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Mc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Fc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Uc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Lc(){return typeof navigator!="undefined"?navigator.language:null}const Vc=t=>{const e=Bl,r=typeof t=="string"?t:null,n=Uc(),i=Lc();return r||n||i||e},$c=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function la(t){return!("error"in t)}function Qi(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",o=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:o}}catch(e){return null}}const ca=()=>{if(typeof window=="undefined")return"SERVER_SIDE_RENDERING";if(!document.referrer)return window.location.origin;try{return new URL(document.referrer).origin}catch(t){return window.location.origin}},Bc=t=>({deviceId:Pc($l),metadata:{platform:"browser",osVersion:`${Yt.osVersion}`,hostAppId:ca(),host:ca(),name:navigator.userAgent,deviceModel:`${Yt.osName}/${Yt.osVersion} ${Yt.browserName}/${Yt.fullBrowserVersion}`,hostAppVersion:`${Yt.browserName}/${Yt.fullBrowserVersion}`},deviceType:"browser",heartbeatCadence:2,serial:"",macAddress:""}),da={apiKeyAuthTokenCollection:{},sessionProperties:[],currentSessionData:null,sessionRestoreMode:!1,processingTransformedTemplate:null,nonce:void 0,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:null,modulesConfig:{},workflow:null,externalModules:[],serviceToken:void 0,startConfig:{},listener:()=>{}},Hc=(t,e)=>Y(I({},da),{setApiKeyAuthTokenCollection:(r,n,i)=>{t({apiKeyAuthTokenCollection:{authToken:n,apiKey:r,tokenExpiresAt:i}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=Xi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,o=r&&r[n];return n&&o?{workflowId:n,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{Xi.setSessionIdWorkflowIdToLs(r.sessionId,r.workflowId),t(()=>({currentSessionData:r}))},removeCurrentSessionDataLsAndStore:()=>{const r=e().startConfig,n="apiKey"in r&&typeof r.apiKey=="string"?r.apiKey:"",i=e().workflowId;n?cr.removeAuthTokenLs(n):Xi.removeSessionIdWorkflowIdFromLS({workflowId:i}),t(()=>({currentSessionData:null})),t({_sessionIdFromUrl:null})},getCurrentSessionId(){const r=e().currentSessionData;return r?r.sessionId:null},setWorkflowId:r=>{t(()=>({workflowId:r}))},setWorkflow:r=>{t(()=>({workflow:r}))},setLayout:r=>{t(()=>({layout:r}))},setCurrentStepId:r=>{t(()=>({currentStepId:r}))},setSessionRestoreMode:r=>{t(()=>({sessionRestoreMode:r}))},setNonce:r=>{t(()=>({nonce:r}))},getNonce:()=>e().nonce,resetProps:()=>t(()=>I({},da)),setStartConfig:r=>{t(()=>({startConfig:r}))}});class be{constructor({errorCode:e,errorCodeKey:r,message:n,underlyingError:i,underlyingBaseError:o,domain:s,module:a,errorEnumName:l,shortDomainCode:d}){this.errorCode=e,this.errorCodeKey=r,this.message=n,this.underlyingError=i,this.underlyingBaseError=o,this.module=a,this.domain=s,this.errorEnumName=l,this.shortDomainCode=d}static getErrorKey(e,r){const n=Object.keys(r).find(i=>r[i]===e);if(!n)throw new Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let e=this.underlyingBaseError;for(;(e==null?void 0:e.underlyingBaseError)instanceof be;)e=e.underlyingBaseError;return e==null?void 0:e.underlyingError}toObject(){const e={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 be&&(e.underlyingBaseError=this.underlyingBaseError.toObject()),e}get shortChain(){let e=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.shortChain}`),e}get fullChain(){let e=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.fullChain}`),e}}class ua extends HTMLElement{}function fa(t,e){if(e.displayName?console.log(`Register module: ${e.displayName}`):console.error('Missed "displayName" when register module'),e.getSupportedTemplates&&typeof e.getSupportedTemplates=="function"){const r=e.getSupportedTemplates();console.log(`${e==null?void 0:e.displayName} supported templates: ${r.join(", ")}`)}else console.error('Missed "getSupportedTemplates" method when register module');if(e.initialize&&typeof e.initialize=="function"||console.error(`${e==null?void 0:e.displayName} "initialize" method was not implemented`),e.deinitialize&&typeof e.deinitialize=="function"||console.error(`${e==null?void 0:e.displayName} "deinitialize" method was not implemented`),e.isReady&&typeof e.isReady=="function"||console.error(`${e==null?void 0:e.displayName} "isReady" method was not implemented`),e.getIdentifier&&typeof e.getIdentifier=="function"){const r=e.getIdentifier();console.log(`Module id: ${r}`)}else console.error('Missed "getIdentifier" when register module');customElements.get(e.getIdentifier())?console.log(`Module ${t} has already registered`):customElements.define(t,e),console.log("-------")}const Nt=class Nt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Wr);super({errorCode:e,errorCodeKey:o,errorEnumName:Nt.ERROR_ENUM_NAME,module:Nt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Nt.ERROR_ENUM_NAME,shortDomainCode:Nt.SHORT_CODE})}};Nt.MODULE=wt,Nt.ERROR_ENUM_NAME="InitializeError",Nt.SHORT_CODE="IN";let bn=Nt;const Dt=class Dt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,_n);super({errorCode:e,errorCodeKey:o,errorEnumName:Dt.ERROR_ENUM_NAME,module:Dt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Dt.ERROR_ENUM_NAME,shortDomainCode:Dt.SHORT_CODE})}};Dt.MODULE=wt,Dt.ERROR_ENUM_NAME="TokenInitializeError",Dt.SHORT_CODE="TI";let Cn=Dt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,mt);super({errorCode:e,errorCodeKey:o,errorEnumName:Pt.ERROR_ENUM_NAME,module:Pt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Pt.ERROR_ENUM_NAME,shortDomainCode:Pt.SHORT_CODE})}};Pt.MODULE=wt,Pt.ERROR_ENUM_NAME="PrepareWorkflowError",Pt.SHORT_CODE="PW";let xt=Pt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Ve);super({errorCode:e,errorCodeKey:o,errorEnumName:Mt.ERROR_ENUM_NAME,module:Mt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Mt.ERROR_ENUM_NAME,shortDomainCode:Mt.SHORT_CODE})}};Mt.MODULE=wt,Mt.ERROR_ENUM_NAME="ConfigureError",Mt.SHORT_CODE="CFG";let Be=Mt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,We);super({errorCode:e,errorCodeKey:o,errorEnumName:Ft.ERROR_ENUM_NAME,module:Ft.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ft.ERROR_ENUM_NAME,shortDomainCode:Ft.SHORT_CODE})}};Ft.MODULE=wt,Ft.ERROR_ENUM_NAME="WorkflowError",Ft.SHORT_CODE="SC";let Ze=Ft;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,It);super({errorCode:e,errorCodeKey:o,errorEnumName:Ut.ERROR_ENUM_NAME,module:Ut.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ut.ERROR_ENUM_NAME,shortDomainCode:Ut.SHORT_CODE})}};Ut.MODULE=wt,Ut.ERROR_ENUM_NAME="ConnectionError",Ut.SHORT_CODE="CO";let tn=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,it);super({errorCode:e,errorCodeKey:o,errorEnumName:Lt.ERROR_ENUM_NAME,module:Lt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Lt.ERROR_ENUM_NAME,shortDomainCode:Lt.SHORT_CODE})}};Lt.MODULE=wt,Lt.ERROR_ENUM_NAME="SessionError",Lt.SHORT_CODE="SE";let rn=Lt;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,qt);super({errorCode:e,errorCodeKey:o,errorEnumName:Vt.ERROR_ENUM_NAME,module:Vt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Vt.ERROR_ENUM_NAME,shortDomainCode:Vt.SHORT_CODE})}};Vt.MODULE=wt,Vt.ERROR_ENUM_NAME="StartSessionError",Vt.SHORT_CODE="ST";let dr=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,jr);super({errorCode:e,errorCodeKey:o,errorEnumName:$t.ERROR_ENUM_NAME,module:$t.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:$t.ERROR_ENUM_NAME,shortDomainCode:$t.SHORT_CODE})}};$t.MODULE=wt,$t.ERROR_ENUM_NAME="DeinitializationError",$t.SHORT_CODE="DE";let Sn=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,gt);super({errorCode:e,errorCodeKey:o,errorEnumName:Bt.ERROR_ENUM_NAME,module:Bt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Bt.ERROR_ENUM_NAME,shortDomainCode:Bt.SHORT_CODE})}};Bt.MODULE=wt,Bt.ERROR_ENUM_NAME="WorkflowPlatformError",Bt.SHORT_CODE="WPE";let En=Bt;class Ir{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Ir.instance||(Ir.instance=new Ir),Ir.instance}isConnected(){return this.connected}connect({host:e,isSecure:r=!0,token:n,port:i}){return this.connected?Promise.resolve():new Promise(o=>{const s=`ws${r?"s":""}://${e}${i?`:${i}`:""}/ws/device?Authorization=Connection%20${n}`;this.webSocket=new WebSocket(s),this.webSocket.onopen=()=>{this.connected=!0,o()},this.webSocket.onerror=()=>o(),this.webSocket.onmessage=a=>{this.callbacks.forEach(l=>l(a.data))},this.webSocket.onclose=a=>{this.connected=!1,this.webSocket=null,console.log("Socket connection closed",a)}})}onMessage(e){this.callbacks.add(e)}clearSubscriptions(){this.callbacks.clear()}close(){var e;(e=this.webSocket)==null||e.close(),this.webSocket=null,this.connected=!1,this.callbacks.clear()}}const ur=Ir.getInstance();var Wc=0;function u(t,e,r,n,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var d={type:t,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wc,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return se.vnode&&se.vnode(d),d}const eo=Ri(void 0),ha=({perform:t,children:e,setIsProcessingCallback:r})=>u(eo.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),fr=()=>{const t=Jr(eo);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},jc=()=>{const t=Jr(eo);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},zc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},dt={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},Tn={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},In={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Or={TEXT_EXPANDABLE:"text_expandable",TEXT_SINGLE_LINE:"text_single_line",SELECTOR_OPTIONS:"selector_options",SELECTOR_BUTTONS:"selector_buttons",SELECTOR_DROPDOWN:"selector_dropdown",MULTI_SELECTOR_DROPDOWN:"multi_selector_dropdown"},On={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},nn="#005fcc",An="idv-gui",xn={DECODING_FAILED:"DECODING_FAILED"},to={text:"text",selector:"selector",multiSelector:"multiSelector"},pa={NOT_EMPTY:"notEmpty",REGEX:"regex"};function _a(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function ro(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?ro(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Kc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Gc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function le(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const qc=(t,e)=>t.reduce((r,n)=>{var i,o,s;if(n.answerType===to.text&&(i=n.property)!=null&&i.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return Y(I({},r),{[n.id]:a.string})}if(n.answerType===to.selector&&(o=n.property)!=null&&o.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return Y(I({},r),{[n.id]:a.string})}if(n.answerType===to.multiSelector&&(s=n.property)!=null&&s.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.array)return Y(I({},r),{[n.id]:a.array})}return r},{}),ma=t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;if(typeof i=="string"){const o=i.split(",")[1];e(o)}else r(new Error("Unexpected result type"))},n.onerror=()=>r(n.error),n.readAsDataURL(t)}),Zc=()=>U(null,null,function*(){try{return(yield navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(e=>e.stop()),"allowed"}catch(t){return(t==null?void 0:t.name)==="NotAllowedError"?"denied":"error"}}),Yc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),ga=({indicatorColor:t})=>{const e=st(null),r=le(t)||"#000000",n=60,i=5,o=.75,s=(n-i)/2,a=2*Math.PI*s,l=1-o,d=360/1e3;return ot(()=>{if(!e.current)return;let _=!0,h=0,c=performance.now();function y(g){if(!_)return;const f=g-c;c=g,h=(h+d*f)%360,e.current&&(e.current.style.transform=`rotate(${h}deg)`),requestAnimationFrame(y)}return requestAnimationFrame(y),()=>{_=!1}},[]),u("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:u("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*o} ${a*l}`,strokeDashoffset:0,strokeLinecap:"butt",transform:`rotate(-45 ${n/2} ${n/2})`})})};function Jc({size:t,color:e}){return u("svg",{width:t||86,height:t||86,viewBox:"0 0 87 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("ellipse",{cx:"43.4053",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43.4053 43)",stroke:"#FF3B30",strokeWidth:"3"}),u("path",{d:"M56.9053 29L29.4053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M29.4053 29L56.9053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Xc({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("circle",{cx:"24.5",cy:"24",r:"18",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M17.3803 18.3406V29.2496H15.0739V20.5298H15.0099L12.5117 22.0959V20.0504L15.2124 18.3406H17.3803Z",fill:"#0E1F97"}),u("path",{d:"M23.2927 29.3988C22.4724 29.3988 21.7426 29.2656 21.1034 28.9993C20.4678 28.7294 19.9688 28.3619 19.6066 27.8967C19.2444 27.4315 19.0633 26.9041 19.0633 26.3146C19.0633 25.8601 19.1663 25.4428 19.3722 25.0629C19.5818 24.6793 19.8659 24.3615 20.2245 24.1094C20.5832 23.8537 20.9845 23.6903 21.4284 23.6193V23.5447C20.846 23.4276 20.3737 23.1452 20.0115 22.6978C19.6492 22.2468 19.4681 21.723 19.4681 21.1264C19.4681 20.5618 19.6333 20.0593 19.9635 19.619C20.2938 19.1751 20.7465 18.8271 21.3218 18.5749C21.9007 18.3192 22.5576 18.1914 23.2927 18.1914C24.0278 18.1914 24.683 18.3192 25.2583 18.5749C25.8371 18.8306 26.2916 19.1804 26.6219 19.6243C26.9521 20.0646 27.1191 20.5653 27.1226 21.1264C27.1191 21.7266 26.9344 22.2504 26.5686 22.6978C26.2029 23.1452 25.7341 23.4276 25.1624 23.5447V23.6193C25.5992 23.6903 25.9951 23.8537 26.3502 24.1094C26.7089 24.3615 26.993 24.6793 27.2025 25.0629C27.4156 25.4428 27.5239 25.8601 27.5274 26.3146C27.5239 26.9041 27.341 27.4315 26.9788 27.8967C26.6166 28.3619 26.1159 28.7294 25.4767 28.9993C24.841 29.2656 24.113 29.3988 23.2927 29.3988ZM23.2927 27.7049C23.6585 27.7049 23.9781 27.6392 24.2515 27.5078C24.5249 27.3729 24.738 27.1882 24.8907 26.9538C25.047 26.7159 25.1251 26.4425 25.1251 26.1335C25.1251 25.8175 25.0452 25.5387 24.8854 25.2972C24.7256 25.0522 24.509 24.8604 24.2355 24.7219C23.9621 24.5799 23.6478 24.5089 23.2927 24.5089C22.9411 24.5089 22.6269 24.5799 22.3499 24.7219C22.0729 24.8604 21.8545 25.0522 21.6947 25.2972C21.5384 25.5387 21.4603 25.8175 21.4603 26.1335C21.4603 26.4425 21.5367 26.7159 21.6894 26.9538C21.8421 27.1882 22.0569 27.3729 22.3339 27.5078C22.6109 27.6392 22.9305 27.7049 23.2927 27.7049ZM23.2927 22.831C23.5981 22.831 23.8698 22.7688 24.1077 22.6445C24.3456 22.5202 24.532 22.348 24.667 22.1278C24.8019 21.9077 24.8694 21.6538 24.8694 21.3661C24.8694 21.082 24.8019 20.8335 24.667 20.6204C24.532 20.4038 24.3474 20.2351 24.113 20.1143C23.8786 19.9901 23.6052 19.9279 23.2927 19.9279C22.9838 19.9279 22.7103 19.9901 22.4724 20.1143C22.2345 20.2351 22.048 20.4038 21.9131 20.6204C21.7817 20.8335 21.716 21.082 21.716 21.3661C21.716 21.6538 21.7835 21.9077 21.9184 22.1278C22.0534 22.348 22.2398 22.5202 22.4777 22.6445C22.7156 22.7688 22.9873 22.831 23.2927 22.831Z",fill:"#0E1F97"}),u("path",{d:"M31.65 27.5877V20.0451H33.557V27.5877H31.65ZM28.8322 24.7699V22.8629H36.3748V24.7699H28.8322Z",fill:"#0E1F97"})]})}function Qc({size:t,color:e}){return u("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{d:"M14.3976 12.2816C14.2402 12.2816 14.0863 12.235 13.9555 12.1478C13.8246 12.0605 13.7225 11.9364 13.6623 11.7913C13.602 11.6461 13.5862 11.4864 13.6169 11.3322C13.6476 11.1781 13.7234 11.0365 13.8346 10.9254C13.9459 10.8143 14.0877 10.7386 14.242 10.7079C14.3964 10.6772 14.5564 10.6929 14.7018 10.753C14.8473 10.8131 14.9716 10.9149 15.059 11.0456C15.1465 11.1762 15.1932 11.3298 15.1932 11.4869C15.193 11.6976 15.1091 11.8995 14.9599 12.0485C14.8108 12.1974 14.6086 12.2813 14.3976 12.2816ZM5.60241 12.2816C5.44501 12.2816 5.29115 12.235 5.16026 12.1478C5.02938 12.0605 4.92736 11.9364 4.8671 11.7913C4.80684 11.6461 4.79105 11.4864 4.82173 11.3322C4.85241 11.1781 4.92817 11.0365 5.03944 10.9254C5.15071 10.8143 5.2925 10.7386 5.44686 10.7079C5.60122 10.6772 5.76123 10.6929 5.90665 10.753C6.05207 10.8131 6.17638 10.9149 6.26384 11.0456C6.35131 11.1762 6.39801 11.3298 6.39804 11.4869C6.39784 11.6976 6.31396 11.8995 6.1648 12.0485C6.01564 12.1975 5.81339 12.2813 5.60241 12.2816ZM14.6829 7.4962L16.2732 4.74639C16.2949 4.70883 16.309 4.66736 16.3147 4.62435C16.3204 4.58134 16.3176 4.53763 16.3064 4.49571C16.2952 4.4538 16.2758 4.41451 16.2493 4.38007C16.2229 4.34564 16.1899 4.31674 16.1523 4.29502C16.1147 4.27331 16.0732 4.2592 16.0301 4.25352C15.987 4.24783 15.9432 4.25067 15.9012 4.26187C15.8592 4.27308 15.8199 4.29243 15.7854 4.31882C15.7509 4.34521 15.722 4.37813 15.7002 4.41569L14.0899 7.20023C12.8585 6.63913 11.4755 6.32669 9.99985 6.32669C8.52419 6.32669 7.14135 6.63958 5.90995 7.20023L4.29979 4.41569C4.27807 4.37812 4.24915 4.34519 4.21468 4.31877C4.18021 4.29236 4.14087 4.27299 4.0989 4.26175C4.05694 4.25052 4.01316 4.24765 3.97009 4.25331C3.92701 4.25897 3.88547 4.27304 3.84784 4.29472C3.8102 4.31641 3.77722 4.34528 3.75077 4.37969C3.72431 4.4141 3.7049 4.45338 3.69365 4.49528C3.6824 4.53718 3.67953 4.58088 3.68519 4.62389C3.69086 4.6669 3.70496 4.70837 3.72668 4.74594L5.31705 7.4962C2.5863 8.97904 0.718522 11.739 0.445312 14.9999H19.5547C19.2812 11.739 17.4135 8.97904 14.6829 7.4962Z",fill:e||"#626262"})})}function ed({size:t}){return u("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8697 8.22896C14.0747 8.43399 14.0747 8.7664 13.8697 8.97143L9.99844 12.8427L6.12721 8.97143C5.92218 8.7664 5.92218 8.43399 6.12721 8.22896C6.33223 8.02394 6.66464 8.02394 6.86967 8.22896L9.99844 11.3577L13.1272 8.22896C13.3322 8.02394 13.6646 8.02394 13.8697 8.22896Z",fill:"#787878"})})}const td=({size:t,color:e})=>u("svg",{width:t||20,height:t||20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("g",{clipPath:"url(#clip0_6789_106796)",children:u("path",{d:"M18.1829 14.9885C17.9034 15.6343 17.5725 16.2288 17.1892 16.7753C16.6667 17.5204 16.2389 18.0362 15.9092 18.3226C15.3981 18.7927 14.8505 19.0334 14.2641 19.0471C13.8432 19.0471 13.3355 18.9273 12.7445 18.6843C12.1517 18.4424 11.6068 18.3226 11.1086 18.3226C10.5861 18.3226 10.0257 18.4424 9.42633 18.6843C8.82603 18.9273 8.34243 19.054 7.97269 19.0665C7.41037 19.0905 6.84988 18.8429 6.29042 18.3226C5.93334 18.0111 5.48671 17.4771 4.95166 16.7206C4.37759 15.9127 3.90563 14.9759 3.53589 13.908C3.13991 12.7544 2.94141 11.6373 2.94141 10.5559C2.94141 9.31706 3.20904 8.24861 3.74512 7.35325C4.16643 6.63407 4.72692 6.06675 5.42841 5.65028C6.12991 5.23381 6.88787 5.02158 7.70414 5.008C8.15077 5.008 8.73647 5.14618 9.46432 5.41774C10.1901 5.69022 10.6561 5.82839 10.8605 5.82839C11.0132 5.82839 11.5309 5.66682 12.4086 5.34471C13.2385 5.046 13.939 4.92231 14.5128 4.97103C16.0678 5.09654 17.236 5.70961 18.0129 6.81412C16.6222 7.65688 15.9343 8.83726 15.948 10.3515C15.9605 11.531 16.3883 12.5125 17.2291 13.2918C17.6102 13.6535 18.0357 13.9331 18.5091 14.1316C18.4065 14.4294 18.2981 14.7147 18.1829 14.9885ZM14.6166 0.952815C14.6166 1.87728 14.279 2.74045 13.6059 3.53939C12.7936 4.48918 11.8111 5.03801 10.7457 4.9514C10.7321 4.8405 10.7242 4.72377 10.7242 4.60111C10.7242 3.71363 11.1105 2.76384 11.7965 1.98726C12.139 1.59407 12.5746 1.26713 13.1028 1.00633C13.6298 0.749416 14.1284 0.607338 14.5972 0.583008C14.6109 0.706594 14.6166 0.830189 14.6166 0.952803V0.952815Z",fill:e||"#626262"})}),u("defs",{children:u("clipPath",{id:"clip0_6789_106796",children:u("rect",{width:"19.4597",height:"19.458",fill:"white",transform:"translate(0.996094)"})})})]});function rd({size:t}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M20 12H6",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M13 19L6 12L13 5",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function nd({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M8.25 37.5C7.69772 37.5 7.25 37.0523 7.25 36.5L7.25 13C7.25 12.4477 7.69771 12 8.25 12L40.75 12C41.3023 12 41.75 12.4477 41.75 13L41.75 36.5C41.75 37.0523 41.3023 37.5 40.75 37.5L8.25 37.5Z",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M24.5 29.5C21.8766 29.5 19.75 27.3734 19.75 24.75C19.75 22.1266 21.8766 20 24.5 20C27.1234 20 29.25 22.1266 29.25 24.75C29.25 27.3734 27.1234 29.5 24.5 29.5Z",stroke:"#0E1F97",strokeWidth:"4"}),u("rect",{x:"6.5",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"}),u("rect",{x:"29.9004",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"})]})}function id({size:t,color:e}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M12 23C18.0746 23 23 18.0746 23 12C23 5.92545 18.0746 1 12 0.999999C5.92545 0.999999 1 5.92545 1 12C1 18.0746 5.92545 23 12 23ZM12 2.86607C17.0433 2.86607 21.1339 6.9567 21.1339 12C21.1339 17.0433 17.0433 21.1339 12 21.1339C6.9567 21.1339 2.86607 17.0433 2.86607 12C2.86607 6.9567 6.9567 2.86607 12 2.86607Z",fill:e||"#8C8C8C"}),u("path",{d:"M13 7C13 6.73478 12.8946 6.48043 12.7071 6.29289C12.5196 6.10536 12.2652 6 12 6C11.7348 6 11.4804 6.10536 11.2929 6.29289C11.1054 6.48043 11 6.73478 11 7C11 7.26522 11.1054 7.51957 11.2929 7.70711C11.4804 7.89464 11.7348 8 12 8C12.2652 8 12.5196 7.89464 12.7071 7.70711C12.8946 7.51957 13 7.26522 13 7Z",fill:e||"#8C8C8C"}),u("rect",{x:"13",y:"18",width:"2",height:"8",transform:"rotate(-180 13 18)",fill:"#8C8C8C"})]})}function od({size:t}){return u("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"12.5",y:"1.5",width:"10",height:"21",rx:"1.5",stroke:"#8C8C8C"}),u("path",{d:"M1 10.5C0.723858 10.5 0.5 10.7239 0.5 11C0.5 11.2761 0.723858 11.5 1 11.5V10.5ZM9.35355 11.3536C9.54882 11.1583 9.54882 10.8417 9.35355 10.6464L6.17157 7.46447C5.97631 7.2692 5.65973 7.2692 5.46447 7.46447C5.2692 7.65973 5.2692 7.97631 5.46447 8.17157L8.29289 11L5.46447 13.8284C5.2692 14.0237 5.2692 14.3403 5.46447 14.5355C5.65973 14.7308 5.97631 14.7308 6.17157 14.5355L9.35355 11.3536ZM1 11.5H9V10.5H1V11.5Z",fill:"#8C8C8C"}),u("path",{d:"M15 2H20C20 2.55228 19.5523 3 19 3H16C15.4477 3 15 2.55228 15 2Z",fill:"#8C8C8C"}),u("circle",{cx:"17.5",cy:"20",r:"1",fill:"#8C8C8C"})]})}function sd({size:t}){return u("svg",{width:t||48,height:t||48,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("circle",{cx:"15.5004",cy:"10.8002",r:"3.6",stroke:"#0E1F97",strokeWidth:"3"}),u("circle",{cx:"35.2998",cy:"19.7998",r:"3",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M28.0146 20.3999C29.2496 18.4972 30.705 17.9696 32.2994 18.2728M42.5841 20.3999C41.3491 18.4972 39.8938 17.9696 38.2994 18.2728",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M12.5 41.7002V30.6002H9.5V19.2002H21.5V30.6002H18.5V41.7002",stroke:"#0E1F97",strokeWidth:"3"}),u("path",{d:"M32.2998 41.7001V37.2001H29.2998L33.4998 27.6001H37.0998L41.2998 37.2001H38.2998V41.7001",stroke:"#0E1F97",strokeWidth:"3"})]})}const wa=({size:t,color:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:e||"rgba(0,0,0,0.6)",children:u("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),ad=({size:t,color:e})=>u("svg",{width:t?t*3:39,height:t||13,viewBox:"0 0 39 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M5.88952 5.98264C6.70681 5.48369 7.28459 4.49575 7.28459 3.40906C7.28459 1.34699 5.65607 0 3.60916 0C1.56225 0 0 1.34743 0 3.67543V5.42175H1.49815V3.675C1.49815 2.27819 2.44624 1.49642 3.61046 1.49642C4.77468 1.49642 5.60583 2.29465 5.60583 3.40906C5.60583 4.52347 4.70798 5.42132 3.54376 5.42132H1.49815V9.21326H2.995V6.75186H3.57711C5.04061 6.75186 6.00516 7.88272 6.03851 9.21326H7.60163C7.57391 7.89658 6.94373 6.56778 5.89082 5.98264",fill:e||"#8C8C8C"}),u("path",{d:"M37.5857 2.6262V3.57429C37.1863 2.97573 36.4877 2.57812 35.4902 2.57812C33.6608 2.57812 32.2969 4.04163 32.2969 5.92092C32.2969 7.78332 33.6608 9.26371 35.4902 9.26371C36.4379 9.26371 37.1201 8.88127 37.5857 8.29916V9.21391H38.9994V2.6262H37.5857ZM35.6566 7.83183C34.592 7.83183 33.8271 7.00025 33.8271 5.91919C33.8271 4.83813 34.592 4.00654 35.6566 4.00654C36.7212 4.00654 37.5025 4.83813 37.5025 5.91919C37.5025 7.00025 36.7229 7.83183 35.6566 7.83183Z",fill:e||"#8C8C8C"}),u("path",{d:"M27.5078 6.0384C27.5078 7.33559 26.8426 7.81808 25.9945 7.81808C25.1465 7.81808 24.4812 7.33559 24.4812 6.0384V2.62891H22.9844V5.9717C22.9844 8.16717 24.1152 9.26339 25.9945 9.26339C27.8738 9.26339 29.0047 8.16587 29.0047 5.9717V2.62891H27.5078V6.0384Z",fill:e||"#8C8C8C"}),u("path",{d:"M11.2922 2.57812C9.44578 2.57812 8.01562 4.09143 8.01562 5.93781C8.01562 7.78419 9.44491 9.26371 11.342 9.26371C12.4893 9.26371 13.3209 8.86481 14.003 8.14974L13.1879 7.18519C12.7388 7.58409 12.1735 7.86691 11.3753 7.86691C10.5771 7.86691 9.82865 7.46758 9.59693 6.60264H14.5184C14.578 6.34086 14.6059 6.07286 14.6016 5.80441C14.6016 3.94201 13.1381 2.57812 11.2922 2.57812ZM9.51248 5.42197C9.71214 4.55574 10.4437 3.97536 11.3749 3.97536C12.3061 3.97536 12.938 4.54058 13.1212 5.42197H9.51248Z",fill:e||"#8C8C8C"}),u("path",{d:"M31.4988 0.0664062H30.002V9.2134H31.4988V0.0664062Z",fill:e||"#8C8C8C"}),u("path",{d:"M20.572 3.57429C20.2394 3.00864 19.4745 2.57812 18.4766 2.57812C16.7302 2.57812 15.2832 4.04163 15.2832 5.92092C15.2832 7.78332 16.7302 9.21261 18.4766 9.21261C19.4247 9.21261 20.0232 8.92978 20.4888 8.34637V8.94537C20.4888 10.2426 19.5741 10.7082 18.6927 10.7082C17.8113 10.7082 17.1127 10.275 16.9797 9.32782H15.5162C15.5829 10.991 16.913 12.0565 18.6927 12.0565C20.4724 12.0565 21.9844 11.0421 21.9844 8.84662V2.6262H20.572V3.57429ZM18.6429 7.78202C17.5783 7.78202 16.8134 7.00025 16.8134 5.91962C16.8134 4.839 17.5783 4.00698 18.6429 4.00698C19.7075 4.00698 20.4888 4.83856 20.4888 5.91962C20.4888 7.00068 19.7071 7.78202 18.6429 7.78202Z",fill:e||"#8C8C8C"})]});function ld({size:t,color:e}){return u("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("ellipse",{cx:"43",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43 43)",stroke:e||"#FCB937",strokeWidth:"3"}),u("path",{d:"M40.8789 48.5352L40.5859 25H44.9805L44.6875 48.5352H40.8789ZM42.7832 60.4736C42.002 60.4736 41.3428 60.2051 40.8057 59.668C40.2686 59.1309 40 58.4717 40 57.6904C40 56.8929 40.2686 56.2337 40.8057 55.7129C41.3428 55.1758 42.002 54.9072 42.7832 54.9072C43.5807 54.9072 44.2399 55.1758 44.7607 55.7129C45.2979 56.2337 45.5664 56.8929 45.5664 57.6904C45.5664 58.4717 45.2979 59.1309 44.7607 59.668C44.2399 60.2051 43.5807 60.4736 42.7832 60.4736Z",fill:e||"#FCB937"})]})}function cd(){return u("svg",{width:"113",height:"16",viewBox:"0 0 113 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M1.35197 12V3.27273H4.6247C5.29515 3.27273 5.85765 3.39773 6.3122 3.64773C6.76958 3.89773 7.11475 4.24148 7.34771 4.67898C7.5835 5.11364 7.7014 5.60795 7.7014 6.16193C7.7014 6.72159 7.5835 7.21875 7.34771 7.65341C7.11191 8.08807 6.7639 8.4304 6.30367 8.6804C5.84345 8.92756 5.27668 9.05114 4.60339 9.05114H2.43435V7.75142H4.39032C4.78237 7.75142 5.10339 7.68324 5.35339 7.54688C5.60339 7.41051 5.78805 7.22301 5.90737 6.98438C6.02953 6.74574 6.0906 6.47159 6.0906 6.16193C6.0906 5.85227 6.02953 5.57955 5.90737 5.34375C5.78805 5.10795 5.60197 4.92472 5.34913 4.79403C5.09913 4.66051 4.77668 4.59375 4.3818 4.59375H2.93293V12H1.35197ZM11.6478 12.1278C11.0086 12.1278 10.4546 11.9872 9.98587 11.706C9.51712 11.4247 9.15349 11.0312 8.89497 10.5256C8.63928 10.0199 8.51144 9.42898 8.51144 8.75284C8.51144 8.0767 8.63928 7.48437 8.89497 6.97585C9.15349 6.46733 9.51712 6.07244 9.98587 5.79119C10.4546 5.50994 11.0086 5.36932 11.6478 5.36932C12.287 5.36932 12.841 5.50994 13.3097 5.79119C13.7785 6.07244 14.1407 6.46733 14.3964 6.97585C14.6549 7.48437 14.7842 8.0767 14.7842 8.75284C14.7842 9.42898 14.6549 10.0199 14.3964 10.5256C14.1407 11.0312 13.7785 11.4247 13.3097 11.706C12.841 11.9872 12.287 12.1278 11.6478 12.1278ZM11.6563 10.892C12.0029 10.892 12.2927 10.7969 12.5256 10.6065C12.7586 10.4134 12.9319 10.1548 13.0455 9.83097C13.162 9.5071 13.2202 9.14631 13.2202 8.74858C13.2202 8.34801 13.162 7.9858 13.0455 7.66193C12.9319 7.33523 12.7586 7.07528 12.5256 6.8821C12.2927 6.68892 12.0029 6.59233 11.6563 6.59233C11.3012 6.59233 11.0058 6.68892 10.77 6.8821C10.537 7.07528 10.3623 7.33523 10.2458 7.66193C10.1322 7.9858 10.0754 8.34801 10.0754 8.74858C10.0754 9.14631 10.1322 9.5071 10.2458 9.83097C10.3623 10.1548 10.537 10.4134 10.77 10.6065C11.0058 10.7969 11.3012 10.892 11.6563 10.892ZM17.1368 12L15.2874 5.45455H16.8598L18.0104 10.0568H18.0701L19.2462 5.45455H20.8016L21.9777 10.0312H22.0417L23.1752 5.45455H24.7519L22.8982 12H21.2917L20.0644 7.5767H19.9749L18.7476 12H17.1368ZM28.4192 12.1278C27.7629 12.1278 27.1962 11.9915 26.7189 11.7188C26.2445 11.4432 25.8794 11.054 25.6237 10.5511C25.368 10.0455 25.2402 9.45028 25.2402 8.76562C25.2402 8.09233 25.368 7.50142 25.6237 6.9929C25.8822 6.48153 26.243 6.08381 26.7061 5.79972C27.1692 5.51278 27.7132 5.36932 28.3382 5.36932C28.7416 5.36932 29.1223 5.43466 29.4802 5.56534C29.841 5.69318 30.1592 5.89205 30.4348 6.16193C30.7132 6.43182 30.932 6.77557 31.091 7.19318C31.2501 7.60795 31.3297 8.10227 31.3297 8.67614V9.14915H25.9646V8.10938H29.851C29.8481 7.81392 29.7842 7.55114 29.6592 7.32102C29.5342 7.08807 29.3595 6.90483 29.1351 6.77131C28.9135 6.63778 28.655 6.57102 28.3595 6.57102C28.0442 6.57102 27.7672 6.64773 27.5285 6.80114C27.2899 6.9517 27.1038 7.15057 26.9703 7.39773C26.8396 7.64205 26.7729 7.91051 26.77 8.20312V9.1108C26.77 9.49148 26.8396 9.81818 26.9788 10.0909C27.118 10.3608 27.3126 10.5682 27.5626 10.7131C27.8126 10.8551 28.1052 10.9261 28.4405 10.9261C28.6649 10.9261 28.868 10.8949 29.0499 10.8324C29.2317 10.767 29.3893 10.6719 29.5229 10.5469C29.6564 10.4219 29.7572 10.267 29.8254 10.0824L31.2658 10.2443C31.1749 10.625 31.0016 10.9574 30.7459 11.2415C30.493 11.5227 30.1692 11.7415 29.7743 11.8977C29.3794 12.0511 28.9277 12.1278 28.4192 12.1278ZM32.5147 12V5.45455H34.0105V6.54545H34.0786C34.198 6.16761 34.4025 5.87642 34.6923 5.67188C34.9849 5.46449 35.3187 5.3608 35.6937 5.3608C35.7789 5.3608 35.8741 5.36506 35.9792 5.37358C36.0872 5.37926 36.1767 5.3892 36.2477 5.40341V6.82244C36.1823 6.79972 36.0786 6.77983 35.9366 6.76278C35.7974 6.7429 35.6625 6.73295 35.5318 6.73295C35.2505 6.73295 34.9977 6.79403 34.7732 6.91619C34.5517 7.03551 34.3769 7.2017 34.2491 7.41477C34.1213 7.62784 34.0573 7.87358 34.0573 8.15199V12H32.5147ZM39.7807 12.1278C39.1245 12.1278 38.5577 11.9915 38.0804 11.7188C37.606 11.4432 37.241 11.054 36.9853 10.5511C36.7296 10.0455 36.6018 9.45028 36.6018 8.76562C36.6018 8.09233 36.7296 7.50142 36.9853 6.9929C37.2438 6.48153 37.6046 6.08381 38.0677 5.79972C38.5307 5.51278 39.0748 5.36932 39.6998 5.36932C40.1032 5.36932 40.4839 5.43466 40.8418 5.56534C41.2026 5.69318 41.5208 5.89205 41.7964 6.16193C42.0748 6.43182 42.2935 6.77557 42.4526 7.19318C42.6117 7.60795 42.6912 8.10227 42.6912 8.67614V9.14915H37.3262V8.10938H41.2126C41.2097 7.81392 41.1458 7.55114 41.0208 7.32102C40.8958 7.08807 40.7211 6.90483 40.4966 6.77131C40.2751 6.63778 40.0165 6.57102 39.7211 6.57102C39.4057 6.57102 39.1287 6.64773 38.8901 6.80114C38.6515 6.9517 38.4654 7.15057 38.3319 7.39773C38.2012 7.64205 38.1344 7.91051 38.1316 8.20312V9.1108C38.1316 9.49148 38.2012 9.81818 38.3404 10.0909C38.4796 10.3608 38.6742 10.5682 38.9242 10.7131C39.1742 10.8551 39.4668 10.9261 39.802 10.9261C40.0265 10.9261 40.2296 10.8949 40.4114 10.8324C40.5932 10.767 40.7509 10.6719 40.8844 10.5469C41.0179 10.4219 41.1188 10.267 41.187 10.0824L42.6273 10.2443C42.5364 10.625 42.3631 10.9574 42.1074 11.2415C41.8546 11.5227 41.5307 11.7415 41.1358 11.8977C40.741 12.0511 40.2893 12.1278 39.7807 12.1278ZM46.3053 12.1151C45.7911 12.1151 45.3308 11.983 44.9246 11.7188C44.5183 11.4545 44.1973 11.071 43.9615 10.5682C43.7257 10.0653 43.6078 9.45455 43.6078 8.7358C43.6078 8.00852 43.7271 7.39489 43.9658 6.89489C44.2073 6.39205 44.5325 6.01278 44.9416 5.7571C45.3507 5.49858 45.8067 5.36932 46.3095 5.36932C46.693 5.36932 47.0084 5.43466 47.2555 5.56534C47.5027 5.69318 47.6987 5.84801 47.8436 6.02983C47.9885 6.20881 48.1007 6.37784 48.1803 6.53693H48.2442V3.27273H49.7911V12H48.274V10.9688H48.1803C48.1007 11.1278 47.9857 11.2969 47.8351 11.4759C47.6845 11.652 47.4857 11.8026 47.2385 11.9276C46.9913 12.0526 46.6803 12.1151 46.3053 12.1151ZM46.7357 10.8494C47.0624 10.8494 47.3408 10.7614 47.5709 10.5852C47.801 10.4062 47.9757 10.1577 48.095 9.83949C48.2144 9.52131 48.274 9.15057 48.274 8.72727C48.274 8.30398 48.2144 7.93608 48.095 7.62358C47.9786 7.31108 47.8053 7.06818 47.5751 6.89489C47.3479 6.72159 47.068 6.63494 46.7357 6.63494C46.3919 6.63494 46.105 6.72443 45.8749 6.90341C45.6448 7.08239 45.4715 7.32955 45.355 7.64489C45.2385 7.96023 45.1803 8.32102 45.1803 8.72727C45.1803 9.13636 45.2385 9.50142 45.355 9.82244C45.4743 10.1406 45.649 10.392 45.8791 10.5767C46.1121 10.7585 46.3976 10.8494 46.7357 10.8494ZM54.2396 12V3.27273H55.7822V6.53693H55.8462C55.9257 6.37784 56.0379 6.20881 56.1828 6.02983C56.3277 5.84801 56.5237 5.69318 56.7709 5.56534C57.018 5.43466 57.3334 5.36932 57.7169 5.36932C58.2226 5.36932 58.6785 5.49858 59.0848 5.7571C59.4939 6.01278 59.8178 6.39205 60.0564 6.89489C60.2979 7.39489 60.4186 8.00852 60.4186 8.7358C60.4186 9.45455 60.3007 10.0653 60.0649 10.5682C59.8291 11.071 59.5081 11.4545 59.1018 11.7188C58.6956 11.983 58.2354 12.1151 57.7212 12.1151C57.3462 12.1151 57.0351 12.0526 56.7879 11.9276C56.5408 11.8026 56.3419 11.652 56.1913 11.4759C56.0436 11.2969 55.9285 11.1278 55.8462 10.9688H55.7567V12H54.2396ZM55.7524 8.72727C55.7524 9.15057 55.8121 9.52131 55.9314 9.83949C56.0535 10.1577 56.2283 10.4062 56.4555 10.5852C56.6856 10.7614 56.9641 10.8494 57.2908 10.8494C57.6317 10.8494 57.9172 10.7585 58.1473 10.5767C58.3774 10.392 58.5507 10.1406 58.6672 9.82244C58.7865 9.50142 58.8462 9.13636 58.8462 8.72727C58.8462 8.32102 58.7879 7.96023 58.6714 7.64489C58.555 7.32955 58.3817 7.08239 58.1516 6.90341C57.9214 6.72443 57.6345 6.63494 57.2908 6.63494C56.9612 6.63494 56.6814 6.72159 56.4513 6.89489C56.2212 7.06818 56.0464 7.31108 55.9271 7.62358C55.8106 7.93608 55.7524 8.30398 55.7524 8.72727ZM62.3462 14.4545C62.136 14.4545 61.9414 14.4375 61.7624 14.4034C61.5862 14.3722 61.4456 14.3352 61.3405 14.2926L61.6985 13.0909C61.9229 13.1563 62.1232 13.1875 62.2993 13.1847C62.4754 13.1818 62.6303 13.1264 62.7638 13.0185C62.9002 12.9134 63.0152 12.7372 63.109 12.4901L63.2411 12.1364L60.8675 5.45455H62.5039L64.0124 10.3977H64.0806L65.5933 5.45455H67.234L64.6132 12.7926C64.4911 13.1392 64.3291 13.4361 64.1274 13.6832C63.9257 13.9332 63.6786 14.1236 63.386 14.2543C63.0962 14.3878 62.7496 14.4545 62.3462 14.4545Z",fill:"#8C8C8C"}),u("path",{d:"M77.3427 8.45085C78.2228 7.91285 78.8451 6.84759 78.8451 5.67586C78.8451 3.45241 77.0913 2 74.8869 2C72.6825 2 71 3.45288 71 5.96307V7.84606H72.6134V5.9626C72.6134 4.45649 73.6345 3.61353 74.8883 3.61353C76.142 3.61353 77.0371 4.47423 77.0371 5.67586C77.0371 6.87748 76.0702 7.8456 74.8164 7.8456H72.6134V11.9343H74.2254V9.28026H74.8523C76.4284 9.28026 77.4672 10.4996 77.5031 11.9343H79.1865C79.1567 10.5146 78.478 9.08178 77.3441 8.45085",fill:"#BD7DFF"}),u("path",{d:"M111.477 4.83175V5.85404C111.047 5.20862 110.295 4.77991 109.221 4.77991C107.251 4.77991 105.782 6.35794 105.782 8.38431C105.782 10.3925 107.251 11.9887 109.221 11.9887C110.241 11.9887 110.976 11.5763 111.477 10.9487V11.935H113V4.83175H111.477ZM109.4 10.4448C108.253 10.4448 107.43 9.54811 107.43 8.38244C107.43 7.21678 108.253 6.32012 109.4 6.32012C110.546 6.32012 111.388 7.21678 111.388 8.38244C111.388 9.54811 110.548 10.4448 109.4 10.4448Z",fill:"#BD7DFF"}),u("path",{d:"M100.624 8.51104C100.624 9.90974 99.908 10.43 98.9947 10.43C98.0814 10.43 97.3649 9.90974 97.3649 8.51104V4.83472H95.7529V8.43912C95.7529 10.8064 96.9708 11.9884 98.9947 11.9884C101.019 11.9884 102.236 10.805 102.236 8.43912V4.83472H100.624V8.51104Z",fill:"#BD7DFF"}),u("path",{d:"M83.161 4.77991C81.1725 4.77991 79.6323 6.41165 79.6323 8.40252C79.6323 10.3934 81.1716 11.9887 83.2146 11.9887C84.4502 11.9887 85.3458 11.5586 86.0804 10.7876L85.2026 9.74752C84.7189 10.1776 84.1102 10.4826 83.2505 10.4826C82.3909 10.4826 81.5848 10.052 81.3353 9.11939H86.6355C86.6996 8.83711 86.7297 8.54814 86.725 8.25869C86.725 6.25053 85.1489 4.77991 83.161 4.77991ZM81.2443 7.84631C81.4594 6.91229 82.2472 6.28649 83.25 6.28649C84.2529 6.28649 84.9334 6.89594 85.1307 7.84631H81.2443Z",fill:"#BD7DFF"}),u("path",{d:"M104.923 2.07153H103.311V11.9344H104.923V2.07153Z",fill:"#BD7DFF"}),u("path",{d:"M93.1547 5.85404C92.7965 5.24412 91.9727 4.77991 90.8981 4.77991C89.0174 4.77991 87.459 6.35794 87.459 8.38431C87.459 10.3925 89.0174 11.9336 90.8981 11.9336C91.9191 11.9336 92.5637 11.6287 93.0651 10.9996V11.6455C93.0651 13.0442 92.08 13.5462 91.1308 13.5462C90.1816 13.5462 89.4292 13.0792 89.286 12.0578H87.7099C87.7818 13.8512 89.2142 15 91.1308 15C93.0474 15 94.6758 13.9063 94.6758 11.539V4.83175H93.1547V5.85404ZM91.0772 10.3911C89.9307 10.3911 89.1069 9.54811 89.1069 8.38291C89.1069 7.21772 89.9307 6.32058 91.0772 6.32058C92.2237 6.32058 93.0651 7.21725 93.0651 8.38291C93.0651 9.54858 92.2232 10.3911 91.0772 10.3911Z",fill:"#BD7DFF"})]})}const dd=({size:t=100,color:e="#5DA600"})=>u("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("ellipse",{cx:"50.0001",cy:"49.9999",rx:"46.5116",ry:"46.5116",transform:"rotate(90 50.0001 49.9999)",stroke:e,strokeWidth:"3.48837"}),u("path",{d:"M74.4185 36.0469L44.7753 63.9539L30.2325 50.2627",stroke:e,strokeWidth:"3.48837",strokeLinecap:"round",strokeLinejoin:"round"})]}),ud=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#7E57C5"}),u("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),fd=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#8C8C8C"})}),hd=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",fill:"#7E57C5",stroke:"#7E57C5"}),u("path",{d:"M16.6335 6.71849C16.243 6.32797 15.6098 6.32797 15.2193 6.71849L9.09149 12.8463L5.12147 8.8763C4.73095 8.48577 4.09778 8.48577 3.70726 8.8763C3.31674 9.26682 3.31674 9.89999 3.70726 10.2905L9.09541 15.6787L16.6335 8.1327C17.0241 7.74218 17.0241 7.10902 16.6335 6.71849Z",fill:"white"})]}),pd=()=>u("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",stroke:"#8C8C8C"})}),_d=({color:t="#237804"})=>u("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.15385 2.15377C7.35887 2.35879 7.35887 2.69121 7.15385 2.89623L2.67894 7.3712L0.153877 4.84616C-0.0511485 4.64114 -0.0511485 4.30872 0.153877 4.1037C0.358901 3.89867 0.691313 3.89867 0.896338 4.1037L2.67894 5.88628L6.41139 2.15377C6.61641 1.94874 6.94882 1.94874 7.15385 2.15377Z",fill:t})}),md=({color:t="#262626"})=>u("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.86967 0.228964C9.07469 0.433989 9.07469 0.766401 8.86967 0.971426L4.99844 4.84266L1.12721 0.971426C0.922181 0.766401 0.922181 0.433989 1.12721 0.228964C1.33223 0.023939 1.66464 0.023939 1.86967 0.228964L4.99844 3.35773L8.12721 0.228964C8.33223 0.023939 8.66464 0.023939 8.86967 0.228964Z",fill:t})}),gd=({size:t,color:e="#ffffff"})=>u("svg",{width:t||40,height:t||40,viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("g",{clipPath:"url(#clip0_2629_17763)",children:[u("path",{d:"M3.99993 17C3.53533 17 3.30303 17 3.10985 16.9616C2.31642 16.8038 1.69618 16.1835 1.5384 15.3901C1.49998 15.1969 1.49999 14.9646 1.5 14.5L1.50019 7.19993C1.50022 6.07985 1.50024 5.51981 1.71823 5.092C1.90998 4.71568 2.21594 4.40973 2.59226 4.21799C3.02008 4.00001 3.58012 4.00001 4.7002 4.00002L17 4.00004C17.4646 4.00004 17.6969 4.00005 17.8901 4.03847C18.6835 4.19628 19.3037 4.81649 19.4615 5.60989C19.4999 5.80308 19.4999 6.03539 19.4999 6.50001",stroke:e}),u("path",{d:"M6.7002 6.50002L18.2998 6.50002C18.8681 6.50002 19.2648 6.50021 19.5732 6.52541C19.8753 6.55011 20.0491 6.59615 20.1807 6.6631C20.4629 6.80691 20.6931 7.03711 20.8369 7.31935C20.9039 7.45093 20.9499 7.62472 20.9746 7.92677C20.9998 8.23519 21 8.63191 21 9.20021V15.7998C21 16.3681 20.9998 16.7648 20.9746 17.0733C20.9499 17.3753 20.9039 17.5491 20.8369 17.6807C20.6931 17.9629 20.4629 18.1931 20.1807 18.3369C20.0491 18.4039 19.8753 18.4499 19.5732 18.4746C19.2648 18.4998 18.8681 18.5 18.2998 18.5H6.7002C6.13188 18.5 5.73519 18.4998 5.42676 18.4746C5.12471 18.4499 4.95091 18.4039 4.81934 18.3369C4.53709 18.1931 4.30689 17.9629 4.16309 17.6807C4.09614 17.5491 4.05009 17.3753 4.02539 17.0733C4.0002 16.7648 3.99999 16.3681 4 15.7998L4 9.20021C4.00001 8.63192 4.00018 8.23519 4.02539 7.92677C4.05012 7.6245 4.09703 7.45096 4.16406 7.31935C4.30788 7.03712 4.5371 6.80691 4.81934 6.6631C4.95099 6.59606 5.12529 6.55012 5.42773 6.52541C5.73609 6.50024 6.13215 6.50001 6.7002 6.50002Z",stroke:e}),u("path",{d:"M4 16L7.66852 12.7391C8.11271 12.3443 8.80118 12.4217 9.14662 12.9053L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),u("path",{d:"M9 18.5L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),u("circle",{cx:"7.5",cy:"10",r:"1",fill:e})]}),u("defs",{children:u("clipPath",{id:"clip0_2629_17763",children:u("rect",{width:"22",height:"22",fill:"white",transform:"translate(0.5 1.90735e-05)"})})})]}),wd=({size:t=40,color:e="#ffffff"})=>u("svg",{width:t,height:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u("g",{clipPath:"url(#clip0_2629_17707)",children:[u("path",{d:"M8.7041 3.67972H15.2959C15.3348 3.67968 15.3734 3.69153 15.4053 3.7139C15.4211 3.72502 15.4347 3.73877 15.4463 3.75394L15.4746 3.80472L16.1699 5.75394L16.2881 6.08597H19.5625C20.236 6.08597 20.7812 6.63125 20.7812 7.30472V17.1016C20.7812 17.7751 20.236 18.3203 19.5625 18.3203H4.4375C3.76403 18.3203 3.21875 17.7751 3.21875 17.1016V7.30472C3.21875 6.63125 3.76403 6.08597 4.4375 6.08597H7.71191L7.83008 5.75491L8.52832 3.80374L8.5293 3.80179C8.55486 3.73029 8.62456 3.6798 8.7041 3.67972ZM12 8.00784C9.82464 8.00784 8.0625 9.76998 8.0625 11.9453C8.0625 14.1207 9.82464 15.8828 12 15.8828C14.1754 15.8828 15.9375 14.1207 15.9375 11.9453C15.9375 9.76998 14.1754 8.00784 12 8.00784Z",stroke:e}),u("circle",{cx:"18",cy:"9.00003",r:"1",fill:e})]}),u("defs",{children:u("clipPath",{id:"clip0_2629_17707",children:u("rect",{width:"22",height:"22",fill:e})})})]}),vd=()=>u("div",{}),Se={WARNING:"warning_icon",SPINNER:"spinner",ERROR:"failure",AGE:"age",ANDROID:"android",ARROW:"arrow",APPLE:"apple",BACK:"back",BIOMETRIC:"biometricIcon",INFO:"info",TO_MOBILE:"toMobile",UNDERAGE:"underage",CROSS:"cross",REGULA_LOGO:"regulaLogo",POWERED_BY:"signature",SUCCESS:"success",DEFAULT:"empty",CIRCLE_SELECTED:"radio_selected",CIRCLE_NORMAL:"radio_normal",SQUARE_SELECTED:"square_selected",SQUARE_NORMAL:"square_normal",SELECTED:"selected",CHEVRON_DOWN:"chevronDown",CLOSE_ICON:"close_icon",GALLERY_ICON:"gallery",CAMERA_ICON:"camera"},no={[Se.WARNING]:ld,[Se.SPINNER]:ga,[Se.ERROR]:Jc,[Se.AGE]:Xc,[Se.ANDROID]:Qc,[Se.ARROW]:ed,[Se.APPLE]:td,[Se.BACK]:rd,[Se.BIOMETRIC]:nd,[Se.INFO]:id,[Se.TO_MOBILE]:od,[Se.UNDERAGE]:sd,[Se.CROSS]:wa,[Se.REGULA_LOGO]:ad,[Se.DEFAULT]:vd,[Se.POWERED_BY]:cd,[Se.SUCCESS]:dd,[Se.CIRCLE_SELECTED]:ud,[Se.CIRCLE_NORMAL]:fd,[Se.SQUARE_SELECTED]:hd,[Se.SQUARE_NORMAL]:pd,[Se.SELECTED]:_d,[Se.CHEVRON_DOWN]:md,[Se.CLOSE_ICON]:wa,[Se.GALLERY_ICON]:gd,[Se.CAMERA_ICON]:wd},yd=({type:t,size:e,color:r})=>{const n=no[t]||no[Se.DEFAULT];return u(n,{size:e,color:r})},Le=({imageId:t,imageURL:e,base64:r,contentMode:n=In.ASPECT_FILL,cornerRadius:i,backgroundColor:o})=>{const s=h=>{if(h===In.ASPECT_FILL)return"cover";if(h===In.ASPECT_FIT)return"contain";if(h===In.FILL)return"fill"},[a,l]=Ue(!0),d=a&&e,_=()=>{l(!1)};if(r)return u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:le(o)||"transparent",display:d?"none":"block"},src:r});if(t){const h=t in no?t:"default";return u(yd,{type:h})}if(e)return u(je,{children:[d&&u("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:i}}),u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:o,display:d?"none":"block"},src:e,onLoad:_})]})},bd=({signature:t})=>u("footer",{"data-ui":"gui-footer",part:"gui-footer",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%"},children:u("a",{href:"",children:u(Le,{imageId:t==null?void 0:t.imageId})})}),Cd={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Sd=({dataTestId:t,responseBody:e,image:r,title:n,backgroundColor:i="transparent",cornerRadius:o,highlightColor:s})=>{var c;const[a,l]=Ue(!1),d=a&&s?s:i,{perform:_}=fr();return u("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const y=JSON.parse(JSON.stringify(e));ro(y),_(y)},className:"hover-button",style:Y(I(I({},Cd),o&&{borderRadius:o}),{backgroundColor:(c=le(d))!=null?c:"transparent"}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[r&&u("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:u(Le,I({},r))}),n&&u("div",{style:{padding:"0 5px"},children:u(ke,I({},n))})]})},Ed=({closeButton:t})=>u("header",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"16px"},"data-ui":"gui-header",part:"gui-header",children:u("div",{children:t&&u(Sd,I({dataTestId:"close-btn"},t))})});function Td(t){var i;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let n=0;for(const o of t.matchAll(e)){const[s,a,l]=o,d=(i=o.index)!=null?i:0;d>n&&r.push(t.slice(n,d));const _=l.startsWith("http")?l:`https://${l}`;r.push(u("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:a},d)),n=d+s.length}return n<t.length&&r.push(t.slice(n)),r}function va(t){const e=t.split(`
91
- `);return e.flatMap((r,n)=>{const i=Td(r);return n===e.length-1?i:[...i,u("br",{},"br-"+n)]})}const ke=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=Tn.LEFT,backgroundColor:o,cornerRadius:s=0,htmlFor:a})=>{const l={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:le(n)||"#000000",textAlign:_a(i),backgroundColor:le(o)||"transparent",borderRadius:s},d=typeof t=="string"&&t.trim()&&va(t);return a?u("label",{"data-ui":"gui-label",part:"gui-label",style:l,htmlFor:a,children:d}):u("div",{"data-ui":"gui-label",part:"gui-label",style:l,children:d})},io=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:l,type:d="RESPONSE_BODY",onClick:_})=>{var S,b;const[h,c]=Ue(!1),y=h&&le(o)?o:n,{perform:g}=fr(),f=C=>{if(_&&_(C),d!=="RESPONSE_BODY")return;const O=JSON.parse(JSON.stringify(r));ro(O),g(O)},m={height:"50px",width:"100%",padding:"10px 16px",textAlign:"center",fontSize:"16px",fontWeight:"400",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:5,borderRadius:i||0,borderStyle:a&&l?"solid":void 0,backgroundColor:(S=le(y))!=null?S:"transparent",borderColor:(b=le(a))!=null?b:"none",borderWidth:l!=null?l:0,overflow:"hidden",transition:".3s",outlineColor:nn};return u("button",{"data-ui":"gui-button",part:"gui-button",type:d==="FORM"?"submit":"button","data-test":s,onClick:f,style:m,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[e&&u(Le,I({},e)),t&&u("div",{style:{flexGrow:e?0:1},children:u(ke,I({},t))})]})},Id=r=>{var n=r,{items:t}=n,e=_r(n,["items"]);return u("div",{part:"gui-buttons","data-ui":"gui-buttons",style:I(I({},{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",alignSelf:"flex-end",justifyContent:"center",gap:"8px",width:"100%",height:"auto",alignContent:"flex-end",paddingTop:"20px"}),e),children:t.map(o=>{var s;return u(io,I({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Yc())})})},Jt=({children:t,header:e,footer:r,backgroundColor:n="white",buttons:i})=>{const o=e?60:10,s=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?o+10+"px":"10px",paddingBottom:r?s+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:le(n)};return u("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:I({},a),children:[e&&u("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:o},children:u(Ed,{closeButton:e.closeButton})}),u("div",{style:{height:"100%",width:"100%",flex:"1 1 100%",overflow:"hidden"},children:t}),(i==null?void 0:i.length)&&u(Id,{items:i}),r&&u("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:u(bd,I({},r))})]})},Rn=({text:t,fontName:e="",fontColor:r,alignment:n=Tn.LEFT,fontSize:i=17,backgroundColor:o,cornerRadius:s=0})=>u("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:i,textAlign:_a(n),color:le(r)||"#000000",borderRadius:s,backgroundColor:le(o)||"transparent",whiteSpace:"pre-line"},children:t&&va(t)}),Od=({header:t,footer:e,image:r,title:n,description:i,buttons:o,backgroundColor:s})=>{const a=st(null),[l,d]=Ue(!1);return ot(()=>{a.current&&d(a.current.scrollHeight>a.current.clientHeight+2)},[]),u(Jt,{header:t,buttons:o,footer:e,backgroundColor:s,children:u("div",{part:"gui-status-screen",style:{display:"flex",justifyContent:l?"flex-start":"center",alignItems:"center",alignContent:"center",flex:1,height:"100%",flexDirection:"column"},children:[r&&u("div",{style:zc,children:u(Le,I({},r))}),(n==null?void 0:n.text)&&u("div",{ref:a,style:{width:"100%",overflow:l?"auto":"hidden"},children:u("div",{style:{margin:"0 auto",fontSize:"20px",fontWeight:700,maxWidth:"345px",textAlign:"center",lineHeight:"1.2",display:"flex",flexDirection:"column",justifyContent:l?"flex-start":"center",alignItems:"center",alignContent:"center"},children:n&&u(ke,I({},n))})}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:u(Rn,I({},i))})]})})},Ad={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},xd={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Rd=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s})=>u(Jt,{header:e,footer:r,buttons:o,backgroundColor:s,children:u(je,{children:u("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:Y(I({},xd),{justifyContent:n?"flex-start":"center"}),children:[n&&u("div",{style:Ad,children:u(Le,I({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:u(ke,I({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400"},children:u(Rn,I({},i))})]})})}),kd=({indicatorColor:t="black"})=>u(je,{children:u(ga,{indicatorColor:t})}),ya=({progressView:t,footer:e,backgroundColor:r})=>u(Jt,{footer:e,backgroundColor:r,children:u("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"20px",height:"100%",width:"100%"},children:u(kd,{indicatorColor:le(t==null?void 0:t.indicatorColor)||"#000000"})})}),Nd=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:o})=>u("div",{className:"details-item",style:Y(I({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:le(n)||"transparent",borderRadius:i}),children:[u("div",{style:{flex:"0 1 auto"},children:[u("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:u(ke,I({},t))}),u("div",{style:{lineHeight:"21px",fontWeight:"400"},children:u(Rn,I({},e))})]}),u("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:u(Le,I({},r))})]}),Dd={display:"flex",flexDirection:"column",padding:"0 16px"},Pd=({items:t,backgroundColor:e,cornerRadius:r=16})=>u("div",{className:"details",style:Y(I({},Dd),{backgroundColor:le(e)||"white",borderRadius:r}),children:t.map((n,i)=>u(Nd,I({isLastChild:i===t.length-1},n),i))}),Md=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:o})=>{const s=st(null),[a,l]=Ue(!1);return ot(()=>{s.current&&l(s.current.scrollHeight>s.current.clientHeight)},[]),u(Jt,{header:e,buttons:i,footer:r,backgroundColor:o,children:u("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:s,children:[u("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&u(ke,I({},t))}),n&&u(Pd,I({},n))]})})};var on=t=>t.type==="checkbox",hr=t=>t instanceof Date,Ye=t=>t==null;const ba=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&ba(t)&&!hr(t),Ca=t=>Ne(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Fd=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Sa=(t,e)=>t.has(Fd(e)),Ud=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},oo=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Fe(t){let e;const r=Array.isArray(t),n=typeof FileList!="undefined"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(oo&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Ud(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Fe(t[i]));else return t;return e}var kn=t=>/^\w*$/.test(t),xe=t=>t===void 0,so=t=>Array.isArray(t)?t.filter(Boolean):[],ao=t=>so(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(kn(e)?[e]:ao(e)).reduce((i,o)=>Ye(i)?i:i[o],t);return xe(n)||n===t?xe(t[e])?r:t[e]:n},tt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=kn(e)?[e]:ao(e),o=i.length,s=o-1;for(;++n<o;){const a=i[n];let l=r;if(n!==s){const d=t[a];l=Ne(d)||Array.isArray(d)?d:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=l,t=t[a]}};const Nn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ut={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Rt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ea=ce.createContext(null);Ea.displayName="HookFormContext";const lo=()=>ce.useContext(Ea);var Ta=(t,e,r,n=!0)=>{const i={defaultValues:e._defaultValues};for(const o in t)Object.defineProperty(i,o,{get:()=>{const s=o;return e._proxyFormState[s]!==ut.all&&(e._proxyFormState[s]=!n||ut.all),r&&(r[s]=!0),t[s]}});return i};const co=typeof window!="undefined"?ce.useLayoutEffect:ce.useEffect;function Ld(t){const e=lo(),{control:r=e.control,disabled:n,name:i,exact:o}=t||{},[s,a]=ce.useState(r._formState),l=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return co(()=>r._subscribe({name:i,formState:l.current,exact:o,callback:d=>{!n&&a(I(I({},r._formState),d))}}),[i,n,o]),ce.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>Ta(s,r,l.current,!1),[s,r])}var rt=t=>typeof t=="string",Ia=(t,e,r,n,i)=>rt(t)?(n&&e.watch.add(t),L(r,t,i)):Array.isArray(t)?t.map(o=>(n&&e.watch.add(o),L(r,o))):(n&&(e.watchAll=!0),r),uo=t=>Ye(t)||!ba(t);function kt(t,e,r=new WeakSet){if(uo(t)||uo(e))return t===e;if(hr(t)&&hr(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const o of n){const s=t[o];if(!i.includes(o))return!1;if(o!=="ref"){const a=e[o];if(hr(s)&&hr(a)||Ne(s)&&Ne(a)||Array.isArray(s)&&Array.isArray(a)?!kt(s,a,r):s!==a)return!1}}return!0}function Vd(t){const e=lo(),{control:r=e.control,name:n,defaultValue:i,disabled:o,exact:s,compute:a}=t||{},l=ce.useRef(i),d=ce.useRef(a),_=ce.useRef(void 0);d.current=a;const h=ce.useMemo(()=>r._getWatch(n,l.current),[r,n]),[c,y]=ce.useState(d.current?d.current(h):h);return co(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:g=>{if(!o){const f=Ia(n,r._names,g.values||r._formValues,!1,l.current);if(d.current){const m=d.current(f);kt(m,_.current)||(y(m),_.current=m)}else y(f)}}}),[r,o,n,s]),ce.useEffect(()=>r._removeUnmounted()),c}function $d(t){const e=lo(),{name:r,disabled:n,control:i=e.control,shouldUnregister:o,defaultValue:s}=t,a=Sa(i._names.array,r),l=ce.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,s)),[i,r,s]),d=Vd({control:i,name:r,defaultValue:l,exact:!0}),_=Ld({control:i,name:r,exact:!0}),h=ce.useRef(t),c=ce.useRef(void 0),y=ce.useRef(i.register(r,I(Y(I({},t.rules),{value:d}),tt(t.disabled)?{disabled:t.disabled}:{})));h.current=t;const g=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(_.validatingFields,r)},error:{enumerable:!0,get:()=>L(_.errors,r)}}),[_,r]),f=ce.useCallback(C=>y.current.onChange({target:{value:Ca(C),name:r},type:Nn.CHANGE}),[r]),m=ce.useCallback(()=>y.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Nn.BLUR}),[r,i._formValues]),S=ce.useCallback(C=>{const O=L(i._fields,r);O&&C&&(O._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:N=>C.setCustomValidity(N),reportValidity:()=>C.reportValidity()})},[i._fields,r]),b=ce.useMemo(()=>Y(I({name:r,value:d},tt(n)||_.disabled?{disabled:_.disabled||n}:{}),{onChange:f,onBlur:m,ref:S}),[r,n,_.disabled,f,m,S,d]);return ce.useEffect(()=>{const C=i._options.shouldUnregister||o,O=c.current;O&&O!==r&&!a&&i.unregister(O),i.register(r,I(I({},h.current.rules),tt(h.current.disabled)?{disabled:h.current.disabled}:{}));const N=(R,M)=>{const _e=L(i._fields,R);_e&&_e._f&&(_e._f.mount=M)};if(N(r,!0),C){const R=Fe(L(i._options.defaultValues,r,h.current.defaultValue));Ee(i._defaultValues,r,R),xe(L(i._formValues,r))&&Ee(i._formValues,r,R)}return!a&&i.register(r),c.current=r,()=>{(a?C&&!i._state.action:C)?i.unregister(r):N(r,!1)}},[r,i,a,o]),ce.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ce.useMemo(()=>({field:b,formState:_,fieldState:g}),[b,_,g])}const Oa=t=>t.render($d(t));var Bd=(t,e,r,n,i)=>e?Y(I({},r[t]),{types:Y(I({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},sn=t=>Array.isArray(t)?t:[t],Aa=()=>{let t=[];return{get observers(){return t},next:i=>{for(const o of t)o.next&&o.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(o=>o!==i)}}),unsubscribe:()=>{t=[]}}};function xa(t,e){const r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],o=e[n];if(i&&Ne(i)&&o){const s=xa(i,o);Ne(s)&&(r[n]=s)}else t[n]&&(r[n]=o)}return r}var Qe=t=>Ne(t)&&!Object.keys(t).length,fo=t=>t.type==="file",ft=t=>typeof t=="function",Dn=t=>{if(!oo)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Ra=t=>t.type==="select-multiple",ho=t=>t.type==="radio",Hd=t=>ho(t)||on(t),po=t=>Dn(t)&&t.isConnected;function Wd(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=xe(t)?n++:t[e[n++]];return t}function jd(t){for(const e in t)if(t.hasOwnProperty(e)&&!xe(t[e]))return!1;return!0}function De(t,e){const r=Array.isArray(e)?e:kn(e)?[e]:ao(e),n=r.length===1?t:Wd(t,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(Ne(n)&&Qe(n)||Array.isArray(n)&&jd(n))&&De(t,r.slice(0,-1)),t}var zd=t=>{for(const e in t)if(ft(t[e]))return!0;return!1};function ka(t){return Array.isArray(t)||Ne(t)&&!zd(t)}function _o(t,e={}){for(const r in t)ka(t[r])?(e[r]=Array.isArray(t[r])?[]:{},_o(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=_o(e));for(const n in t)ka(t[n])?xe(e)||uo(r[n])?r[n]=_o(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!kt(t[n],e[n]);return r}const Na={value:!1,isValid:!1},Da={value:!0,isValid:!0};var Pa=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!xe(t[0].attributes.value)?xe(t[0].value)||t[0].value===""?Da:{value:t[0].value,isValid:!0}:Da:Na}return Na},Ma=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>xe(t)?t:e?t===""?NaN:t&&+t:r&&rt(t)?new Date(t):n?n(t):t;const Fa={isValid:!1,value:null};var Ua=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Fa):Fa;function La(t){const e=t.ref;return fo(e)?e.files:ho(e)?Ua(t.refs).value:Ra(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Pa(t.refs).value:Ma(xe(e.value)?t.ref.value:e.value,t)}var Kd=(t,e,r,n)=>{const i={};for(const o of t){const s=L(e,o);s&&Ee(i,o,s._f)}return{criteriaMode:r,names:[...t],fields:i,shouldUseNativeValidation:n}},Pn=t=>t instanceof RegExp,an=t=>xe(t)?t:Pn(t)?t.source:Ne(t)?Pn(t.value)?t.value.source:t.value:t,Va=t=>({isOnSubmit:!t||t===ut.onSubmit,isOnBlur:t===ut.onBlur,isOnChange:t===ut.onChange,isOnAll:t===ut.all,isOnTouch:t===ut.onTouched});const $a="AsyncFunction";var Gd=t=>!!t&&!!t.validate&&!!(ft(t.validate)&&t.validate.constructor.name===$a||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===$a)),qd=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Ba=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const ln=(t,e,r,n)=>{for(const o of r||Object.keys(t)){const s=L(t,o);if(s){const i=s,{_f:a}=i,l=_r(i,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],o)&&!n)return!0;if(a.ref&&e(a.ref,a.name)&&!n)return!0;if(ln(l,e))break}else if(Ne(l)&&ln(l,e))break}}};function Ha(t,e,r){const n=L(t,r);if(n||kn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),s=L(e,o),a=L(t,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};i.pop()}return{name:r}}var Zd=(t,e,r,n)=>{r(t);const s=t,{name:i}=s,o=_r(s,["name"]);return Qe(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!n||ut.all))},Yd=(t,e,r)=>!t||!e||t===e||sn(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Jd=(t,e,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(e||t):(r?n.isOnBlur:i.isOnBlur)?!t:(r?n.isOnChange:i.isOnChange)?t:!0,Xd=(t,e)=>!so(L(t,e)).length&&De(t,e),Qd=(t,e,r)=>{const n=sn(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Wa(t,e,r="validate"){if(rt(t)||Array.isArray(t)&&t.every(rt)||tt(t)&&!t)return{type:r,message:rt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Pn(t)?t:{value:t,message:""},ja=(t,e,r,n,i,o)=>U(null,null,function*(){const{ref:s,refs:a,required:l,maxLength:d,minLength:_,min:h,max:c,pattern:y,validate:g,name:f,valueAsNumber:m,mount:S}=t._f,b=L(r,f);if(!S||e.has(f))return{};const C=a?a[0]:s,O=H=>{i&&C.reportValidity&&(C.setCustomValidity(tt(H)?"":H||""),C.reportValidity())},N={},R=ho(s),M=on(s),_e=R||M,me=(m||fo(s))&&xe(s.value)&&xe(b)||Dn(s)&&s.value===""||b===""||Array.isArray(b)&&!b.length,ee=Bd.bind(null,f,n,N),Q=(H,J,de,ue=Rt.maxLength,ve=Rt.minLength)=>{const ye=H?J:de;N[f]=I({type:H?ue:ve,message:ye,ref:s},ee(H?ue:ve,ye))};if(o?!Array.isArray(b)||!b.length:l&&(!_e&&(me||Ye(b))||tt(b)&&!b||M&&!Pa(a).isValid||R&&!Ua(a).isValid)){const{value:H,message:J}=rt(l)?{value:!!l,message:l}:xr(l);if(H&&(N[f]=I({type:Rt.required,message:J,ref:C},ee(Rt.required,J)),!n))return O(J),N}if(!me&&(!Ye(h)||!Ye(c))){let H,J;const de=xr(c),ue=xr(h);if(!Ye(b)&&!isNaN(b)){const ve=s.valueAsNumber||b&&+b;Ye(de.value)||(H=ve>de.value),Ye(ue.value)||(J=ve<ue.value)}else{const ve=s.valueAsDate||new Date(b),ye=F=>new Date(new Date().toDateString()+" "+F),te=s.type=="time",z=s.type=="week";rt(de.value)&&b&&(H=te?ye(b)>ye(de.value):z?b>de.value:ve>new Date(de.value)),rt(ue.value)&&b&&(J=te?ye(b)<ye(ue.value):z?b<ue.value:ve<new Date(ue.value))}if((H||J)&&(Q(!!H,de.message,ue.message,Rt.max,Rt.min),!n))return O(N[f].message),N}if((d||_)&&!me&&(rt(b)||o&&Array.isArray(b))){const H=xr(d),J=xr(_),de=!Ye(H.value)&&b.length>+H.value,ue=!Ye(J.value)&&b.length<+J.value;if((de||ue)&&(Q(de,H.message,J.message),!n))return O(N[f].message),N}if(y&&!me&&rt(b)){const{value:H,message:J}=xr(y);if(Pn(H)&&!b.match(H)&&(N[f]=I({type:Rt.pattern,message:J,ref:s},ee(Rt.pattern,J)),!n))return O(J),N}if(g){if(ft(g)){const H=yield g(b,r),J=Wa(H,C);if(J&&(N[f]=I(I({},J),ee(Rt.validate,J.message)),!n))return O(J.message),N}else if(Ne(g)){let H={};for(const J in g){if(!Qe(H)&&!n)break;const de=Wa(yield g[J](b,r),C,J);de&&(H=I(I({},de),ee(J,de.message)),O(de.message),n&&(N[f]=H))}if(!Qe(H)&&(N[f]=I({ref:C},H),!n))return N}}return O(!0),N});const eu={mode:ut.onSubmit,reValidateMode:ut.onChange,shouldFocusError:!0};function tu(t={}){let e=I(I({},eu),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ft(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},i=Ne(e.defaultValues)||Ne(e.values)?Fe(e.defaultValues||e.values)||{}:{},o=e.shouldUnregister?{}:Fe(i),s={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h=I({},_);const c={array:Aa(),state:Aa()},y=e.criteriaMode===ut.all,g=v=>T=>{clearTimeout(d),d=setTimeout(v,T)},f=v=>U(null,null,function*(){if(!e.disabled&&(_.isValid||h.isValid||v)){const T=e.resolver?Qe((yield M()).errors):yield me(n,!0);T!==r.isValid&&c.state.next({isValid:T})}}),m=(v,T)=>{!e.disabled&&(_.isValidating||_.validatingFields||h.isValidating||h.validatingFields)&&((v||Array.from(a.mount)).forEach(x=>{x&&(T?Ee(r.validatingFields,x,T):De(r.validatingFields,x))}),c.state.next({validatingFields:r.validatingFields,isValidating:!Qe(r.validatingFields)}))},S=(v,T=[],x,V,D=!0,P=!0)=>{if(V&&x&&!e.disabled){if(s.action=!0,P&&Array.isArray(L(n,v))){const W=x(L(n,v),V.argA,V.argB);D&&Ee(n,v,W)}if(P&&Array.isArray(L(r.errors,v))){const W=x(L(r.errors,v),V.argA,V.argB);D&&Ee(r.errors,v,W),Xd(r.errors,v)}if((_.touchedFields||h.touchedFields)&&P&&Array.isArray(L(r.touchedFields,v))){const W=x(L(r.touchedFields,v),V.argA,V.argB);D&&Ee(r.touchedFields,v,W)}(_.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Ar(i,o)),c.state.next({name:v,isDirty:Q(v,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(o,v,T)},b=(v,T)=>{Ee(r.errors,v,T),c.state.next({errors:r.errors})},C=v=>{r.errors=v,c.state.next({errors:r.errors,isValid:!1})},O=(v,T,x,V)=>{const D=L(n,v);if(D){const P=L(o,v,xe(x)?L(i,v):x);xe(P)||V&&V.defaultChecked||T?Ee(o,v,T?P:La(D._f)):de(v,P),s.mount&&f()}},N=(v,T,x,V,D)=>{let P=!1,W=!1;const ie={name:v};if(!e.disabled){if(!x||V){(_.isDirty||h.isDirty)&&(W=r.isDirty,r.isDirty=ie.isDirty=Q(),P=W!==ie.isDirty);const K=kt(L(i,v),T);W=!!L(r.dirtyFields,v),K?De(r.dirtyFields,v):Ee(r.dirtyFields,v,!0),ie.dirtyFields=r.dirtyFields,P=P||(_.dirtyFields||h.dirtyFields)&&W!==!K}if(x){const K=L(r.touchedFields,v);K||(Ee(r.touchedFields,v,x),ie.touchedFields=r.touchedFields,P=P||(_.touchedFields||h.touchedFields)&&K!==x)}P&&D&&c.state.next(ie)}return P?ie:{}},R=(v,T,x,V)=>{const D=L(r.errors,v),P=(_.isValid||h.isValid)&&tt(T)&&r.isValid!==T;if(e.delayError&&x?(l=g(()=>b(v,x)),l(e.delayError)):(clearTimeout(d),l=null,x?Ee(r.errors,v,x):De(r.errors,v)),(x?!kt(D,x):D)||!Qe(V)||P){const W=Y(I(I({},V),P&&tt(T)?{isValid:T}:{}),{errors:r.errors,name:v});r=I(I({},r),W),c.state.next(W)}},M=v=>U(null,null,function*(){m(v,!0);const T=yield e.resolver(o,e.context,Kd(v||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(v),T}),_e=v=>U(null,null,function*(){const{errors:T}=yield M(v);if(v)for(const x of v){const V=L(T,x);V?Ee(r.errors,x,V):De(r.errors,x)}else r.errors=T;return T}),me=(V,D,...P)=>U(null,[V,D,...P],function*(v,T,x={valid:!0}){for(const ie in v){const K=v[ie];if(K){const W=K,{_f:we}=W,He=_r(W,["_f"]);if(we){const Z=a.array.has(we.name),ae=K._f&&Gd(K._f);ae&&_.validatingFields&&m([we.name],!0);const j=yield ja(K,a.disabled,o,y,e.shouldUseNativeValidation&&!T,Z);if(ae&&_.validatingFields&&m([we.name]),j[we.name]&&(x.valid=!1,T))break;!T&&(L(j,we.name)?Z?Qd(r.errors,j,we.name):Ee(r.errors,we.name,j[we.name]):De(r.errors,we.name))}!Qe(He)&&(yield me(He,T,x))}}return x.valid}),ee=()=>{for(const v of a.unMount){const T=L(n,v);T&&(T._f.refs?T._f.refs.every(x=>!po(x)):!po(T._f.ref))&&Ke(v)}a.unMount=new Set},Q=(v,T)=>!e.disabled&&(v&&T&&Ee(o,v,T),!kt(F(),i)),H=(v,T,x)=>Ia(v,a,I({},s.mount?o:xe(T)?i:rt(v)?{[v]:T}:T),x,T),J=v=>so(L(s.mount?o:i,v,e.shouldUnregister?L(i,v,[]):[])),de=(v,T,x={})=>{const V=L(n,v);let D=T;if(V){const P=V._f;P&&(!P.disabled&&Ee(o,v,Ma(T,P)),D=Dn(P.ref)&&Ye(T)?"":T,Ra(P.ref)?[...P.ref.options].forEach(W=>W.selected=D.includes(W.value)):P.refs?on(P.ref)?P.refs.forEach(W=>{(!W.defaultChecked||!W.disabled)&&(Array.isArray(D)?W.checked=!!D.find(ie=>ie===W.value):W.checked=D===W.value||!!D)}):P.refs.forEach(W=>W.checked=W.value===D):fo(P.ref)?P.ref.value="":(P.ref.value=D,P.ref.type||c.state.next({name:v,values:Fe(o)})))}(x.shouldDirty||x.shouldTouch)&&N(v,D,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&z(v)},ue=(v,T,x)=>{for(const V in T){if(!T.hasOwnProperty(V))return;const D=T[V],P=v+"."+V,W=L(n,P);(a.array.has(v)||Ne(D)||W&&!W._f)&&!hr(D)?ue(P,D,x):de(P,D,x)}},ve=(v,T,x={})=>{const V=L(n,v),D=a.array.has(v),P=Fe(T);Ee(o,v,P),D?(c.array.next({name:v,values:Fe(o)}),(_.isDirty||_.dirtyFields||h.isDirty||h.dirtyFields)&&x.shouldDirty&&c.state.next({name:v,dirtyFields:Ar(i,o),isDirty:Q(v,P)})):V&&!V._f&&!Ye(P)?ue(v,P,x):de(v,P,x),Ba(v,a)&&c.state.next(Y(I({},r),{name:v})),c.state.next({name:s.mount?v:void 0,values:Fe(o)})},ye=v=>U(null,null,function*(){s.mount=!0;const T=v.target;let x=T.name,V=!0;const D=L(n,x),P=K=>{V=Number.isNaN(K)||hr(K)&&isNaN(K.getTime())||kt(K,L(o,x,K))},W=Va(e.mode),ie=Va(e.reValidateMode);if(D){let K,we;const He=T.type?La(D._f):Ca(v),Z=v.type===Nn.BLUR||v.type===Nn.FOCUS_OUT,ae=!qd(D._f)&&!e.resolver&&!L(r.errors,x)&&!D._f.deps||Jd(Z,L(r.touchedFields,x),r.isSubmitted,ie,W),j=Ba(x,a,Z);Ee(o,x,He),Z?(!T||!T.readOnly)&&(D._f.onBlur&&D._f.onBlur(v),l&&l(0)):D._f.onChange&&D._f.onChange(v);const ge=N(x,He,Z),Ge=!Qe(ge)||j;if(!Z&&c.state.next({name:x,type:v.type,values:Fe(o)}),ae)return(_.isValid||h.isValid)&&(e.mode==="onBlur"?Z&&f():Z||f()),Ge&&c.state.next(I({name:x},j?{}:ge));if(!Z&&j&&c.state.next(I({},r)),e.resolver){const{errors:Pe}=yield M([x]);if(P(He),V){const he=Ha(r.errors,n,x),G=Ha(Pe,n,he.name||x);K=G.error,x=G.name,we=Qe(Pe)}}else m([x],!0),K=(yield ja(D,a.disabled,o,y,e.shouldUseNativeValidation))[x],m([x]),P(He),V&&(K?we=!1:(_.isValid||h.isValid)&&(we=yield me(n,!0)));V&&(D._f.deps&&(!Array.isArray(D._f.deps)||D._f.deps.length>0)&&z(D._f.deps),R(x,we,K,ge))}}),te=(v,T)=>{if(L(r.errors,T)&&v.focus)return v.focus(),1},z=(x,...V)=>U(null,[x,...V],function*(v,T={}){let D,P;const W=sn(v);if(e.resolver){const ie=yield _e(xe(v)?v:W);D=Qe(ie),P=v?!W.some(K=>L(ie,K)):D}else v?(P=(yield Promise.all(W.map(ie=>U(null,null,function*(){const K=L(n,ie);return yield me(K&&K._f?{[ie]:K}:K)})))).every(Boolean),!(!P&&!r.isValid)&&f()):P=D=yield me(n);return c.state.next(Y(I(I({},!rt(v)||(_.isValid||h.isValid)&&D!==r.isValid?{}:{name:v}),e.resolver||!v?{isValid:D}:{}),{errors:r.errors})),T.shouldFocus&&!P&&ln(n,te,v?W:a.mount),P}),F=(v,T)=>{let x=I({},s.mount?o:i);return T&&(x=xa(T.dirtyFields?r.dirtyFields:r.touchedFields,x)),xe(v)?x:rt(v)?L(x,v):v.map(V=>L(x,V))},q=(v,T)=>({invalid:!!L((T||r).errors,v),isDirty:!!L((T||r).dirtyFields,v),error:L((T||r).errors,v),isValidating:!!L(r.validatingFields,v),isTouched:!!L((T||r).touchedFields,v)}),re=v=>{v&&sn(v).forEach(T=>De(r.errors,T)),c.state.next({errors:v?r.errors:{}})},Te=(v,T,x)=>{const V=(L(n,v,{_f:{}})._f||{}).ref,we=L(r.errors,v)||{},{ref:P,message:W,type:ie}=we,K=_r(we,["ref","message","type"]);Ee(r.errors,v,Y(I(I({},K),T),{ref:V})),c.state.next({name:v,errors:r.errors,isValid:!1}),x&&x.shouldFocus&&V&&V.focus&&V.focus()},ne=(v,T)=>ft(v)?c.state.subscribe({next:x=>"values"in x&&v(H(void 0,T),x)}):H(v,T,!0),$=v=>c.state.subscribe({next:T=>{Yd(v.name,T.name,v.exact)&&Zd(T,v.formState||_,Qt,v.reRenderRoot)&&v.callback(Y(I(I({values:I({},o)},r),T),{defaultValues:i}))}}).unsubscribe,X=v=>(s.mount=!0,h=I(I({},h),v.formState),$(Y(I({},v),{formState:h}))),Ke=(v,T={})=>{for(const x of v?sn(v):a.mount)a.mount.delete(x),a.array.delete(x),T.keepValue||(De(n,x),De(o,x)),!T.keepError&&De(r.errors,x),!T.keepDirty&&De(r.dirtyFields,x),!T.keepTouched&&De(r.touchedFields,x),!T.keepIsValidating&&De(r.validatingFields,x),!e.shouldUnregister&&!T.keepDefaultValue&&De(i,x);c.state.next({values:Fe(o)}),c.state.next(I(I({},r),T.keepDirty?{isDirty:Q()}:{})),!T.keepIsValid&&f()},Je=({disabled:v,name:T})=>{(tt(v)&&s.mount||v||a.disabled.has(T))&&(v?a.disabled.add(T):a.disabled.delete(T))},ht=(v,T={})=>{let x=L(n,v);const V=tt(T.disabled)||tt(e.disabled);return Ee(n,v,Y(I({},x||{}),{_f:I(Y(I({},x&&x._f?x._f:{ref:{name:v}}),{name:v,mount:!0}),T)})),a.mount.add(v),x?Je({disabled:tt(T.disabled)?T.disabled:e.disabled,name:v}):O(v,!0,T.value),Y(I(I({},V?{disabled:T.disabled||e.disabled}:{}),e.progressive?{required:!!T.required,min:an(T.min),max:an(T.max),minLength:an(T.minLength),maxLength:an(T.maxLength),pattern:an(T.pattern)}:{}),{name:v,onChange:ye,onBlur:ye,ref:D=>{if(D){ht(v,T),x=L(n,v);const P=xe(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,W=Hd(P),ie=x._f.refs||[];if(W?ie.find(K=>K===P):P===x._f.ref)return;Ee(n,v,{_f:I(I({},x._f),W?{refs:[...ie.filter(po),P,...Array.isArray(L(i,v))?[{}]:[]],ref:{type:P.type,name:v}}:{ref:P})}),O(v,!1,void 0,P)}else x=L(n,v,{}),x._f&&(x._f.mount=!1),(e.shouldUnregister||T.shouldUnregister)&&!(Sa(a.array,v)&&s.action)&&a.unMount.add(v)}})},nt=()=>e.shouldFocusError&&ln(n,te,a.mount),Wt=v=>{tt(v)&&(c.state.next({disabled:v}),ln(n,(T,x)=>{const V=L(n,x);V&&(T.disabled=V._f.disabled||v,Array.isArray(V._f.refs)&&V._f.refs.forEach(D=>{D.disabled=V._f.disabled||v}))},0,!1))},pt=(v,T)=>x=>U(null,null,function*(){let V;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let D=Fe(o);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:P,values:W}=yield M();r.errors=P,D=Fe(W)}else yield me(n);if(a.disabled.size)for(const P of a.disabled)De(D,P);if(De(r.errors,"root"),Qe(r.errors)){c.state.next({errors:{}});try{yield v(D,x)}catch(P){V=P}}else T&&(yield T(I({},r.errors),x)),nt(),setTimeout(nt);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Xt=(v,T={})=>{L(n,v)&&(xe(T.defaultValue)?ve(v,Fe(L(i,v))):(ve(v,T.defaultValue),Ee(i,v,Fe(T.defaultValue))),T.keepTouched||De(r.touchedFields,v),T.keepDirty||(De(r.dirtyFields,v),r.isDirty=T.defaultValue?Q(v,Fe(L(i,v))):Q()),T.keepError||(De(r.errors,v),_.isValid&&f()),c.state.next(I({},r)))},jt=(v,T={})=>{const x=v?Fe(v):i,V=Fe(x),D=Qe(v),P=D?i:V;if(T.keepDefaultValues||(i=x),!T.keepValues){if(T.keepDirtyValues){const W=new Set([...a.mount,...Object.keys(Ar(i,o))]);for(const ie of Array.from(W))L(r.dirtyFields,ie)?Ee(P,ie,L(o,ie)):ve(ie,L(P,ie))}else{if(oo&&xe(v))for(const W of a.mount){const ie=L(n,W);if(ie&&ie._f){const K=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Dn(K)){const we=K.closest("form");if(we){we.reset();break}}}}if(T.keepFieldsRef)for(const W of a.mount)ve(W,L(P,W));else n={}}o=e.shouldUnregister?T.keepDefaultValues?Fe(i):{}:Fe(P),c.array.next({values:I({},P)}),c.state.next({values:I({},P)})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!_.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,c.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:D?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!kt(v,i)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D?{}:T.keepDirtyValues?T.keepDefaultValues&&o?Ar(i,o):r.dirtyFields:T.keepDefaultValues&&v?Ar(i,v):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ct=(v,T)=>jt(ft(v)?v(o):v,T),zt=(v,T={})=>{const x=L(n,v),V=x&&x._f;if(V){const D=V.refs?V.refs[0]:V.ref;D.focus&&(D.focus(),T.shouldSelect&&ft(D.select)&&D.select())}},Qt=v=>{r=I(I({},r),v)},at={control:{register:ht,unregister:Ke,getFieldState:q,handleSubmit:pt,setError:Te,_subscribe:$,_runSchema:M,_focusError:nt,_getWatch:H,_getDirty:Q,_setValid:f,_setFieldArray:S,_setDisabledField:Je,_setErrors:C,_getFieldArray:J,_reset:jt,_resetDefaultValues:()=>ft(e.defaultValues)&&e.defaultValues().then(v=>{Ct(v,e.resetOptions),c.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:Wt,_subjects:c,_proxyFormState:_,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(v){s=v},get _defaultValues(){return i},get _names(){return a},set _names(v){a=v},get _formState(){return r},get _options(){return e},set _options(v){e=I(I({},e),v)}},subscribe:X,trigger:z,register:ht,handleSubmit:pt,watch:ne,setValue:ve,getValues:F,reset:Ct,resetField:Xt,clearErrors:re,unregister:Ke,setError:Te,setFocus:zt,getFieldState:q};return Y(I({},at),{formControl:at})}function ru(t={}){const e=ce.useRef(void 0),r=ce.useRef(void 0),[n,i]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ft(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:ft(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=Y(I({},t.formControl),{formState:n}),t.defaultValues&&!ft(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=tu(t),{formControl:a}=s,l=_r(s,["formControl"]);e.current=Y(I({},l),{formState:n})}const o=e.current.control;return o._options=t,co(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i(I({},o._formState)),reRenderRoot:!0});return i(l=>Y(I({},l),{isReady:!0})),o._formState.isReady=!0,a},[o]),ce.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),ce.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),ce.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),ce.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),ce.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),ce.useEffect(()=>{t.values&&!kt(t.values,r.current)?(o._reset(t.values,I({keepFieldsRef:!0},o._options.resetOptions)),r.current=t.values,i(a=>I({},a))):o._resetDefaultValues()},[o,t.values]),ce.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next(I({},o._formState))),o._removeUnmounted()}),e.current.formState=Ta(n,o),e.current}const Rr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===pa.NOT_EMPTY&&(r.required=o=>e&&Gc(o)?n.message:!0),n.type===pa.REGEX){const o=new RegExp(n.regex);r[`regex_${i}`]=s=>!e&&!s?!0:typeof s!="string"?n.message:o.test(s)||n.message}}),r},nu=({isOpen:t,image:e})=>u("div",{"data-ui":"gui-custom-select-chevron",style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transform:t?"rotate(180deg)":"none",transformOrigin:"50% 50%",transition:".2s",flexShrink:0},children:e?u(Le,I({},e)):u(Le,{imageId:"chevronDown"})}),iu=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:n,onHover:i,onHoverEnd:o})=>{const s=t?e.layoutSelected.image:e.layout.image;return u("div",{style:{padding:"5px 8px",background:((l,d)=>{var _,h,c,y;if(!l&&!d)return(_=le(e.layout.backgroundColor))!=null?_:"transparent";if(!l&&d)return(h=le(e.layoutSelected.backgroundColor))!=null?h:"transparent";if(l&&!d)return(c=le(e.layout.highlightColor))!=null?c:"#F4F4F4";if(l&&d)return(y=le(e.layoutSelected.highlightColor))!=null?y:"#F4F4F4"})(n,t),fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",gap:8,borderRadius:4,cursor:"pointer"},"data-select-id":e.value,onClick:r(e),onMouseEnter:i,onMouseLeave:o,children:[u(ke,Y(I({},e.layout.title),{text:e.label})),u("div",{style:{display:"flex",flexShrink:0},children:u(Le,I({},s))})]},e.value)},za=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:l,parentElementRef:d,controlLayout:_,pickerLayout:h})=>{var H,J,de,ue,ve,ye,te,z;const[c,y]=Ue(!1),[g,f]=Ue(i),[m,S]=Ue("down"),[b,C]=Ue(null),O=st(null),N=st(null);Zt(()=>{var ne,$,X;if(!c)return;const F=(ne=O.current)==null?void 0:ne.getBoundingClientRect(),q=($=N.current)==null?void 0:$.getBoundingClientRect(),re=(X=d.current)==null?void 0:X.getBoundingClientRect();if(!F||!q||!re)return;const Te=F.bottom+q.height<re.bottom;S(Te?"down":"up")},[c]),ot(()=>{o(g)},[g]);const R=F=>q=>{var re;q.stopPropagation(),(q.type==="touchend"||((re=q.nativeEvent)==null?void 0:re.pointerType)==="touch")&&C(null),a&&y(!1),f(Te=>r?Te.some($=>$.value===F.value)?Te.filter($=>$.value!==F.value):[...Te,F]:[F])},M=()=>{l&&l(),y(!1)},_e=F=>q=>{q.stopPropagation(),f(re=>re.filter(Te=>Te.value!==F.value))},me=F=>{F.stopPropagation(),f([])},ee=(H=le(_==null?void 0:_.borderColor))!=null?H:"#D9D9D9",Q=(J=le(_==null?void 0:_.highlightBorderColor))!=null?J:"#7E57C5";return u("div",{"data-ui":"gui-custom-select",ref:O,children:u("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:le(_==null?void 0:_.backgroundColor),borderStyle:"solid",borderColor:c?Q:ee,borderWidth:(de=_==null?void 0:_.borderWidth)!=null?de:1,borderRadius:(ue=_==null?void 0:_.cornerRadius)!=null?ue:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:M,onClick:()=>y(!c),children:[u("div",{"data-ui":"gui-custom-select-multi-choose-container",style:{display:"flex",gap:8,alignItems:"flex-start",alignContent:"center",flexWrap:"wrap",width:"100%"},children:[!g.length&&u("span",{style:{fontSize:13,color:"#8C8C8C"},children:s}),g.map(F=>{var q,re,Te,ne,$;if(r){const X=_==null?void 0:_.chip;return u("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(q=le(X==null?void 0:X.backgroundColor))!=null?q:"#F2F2F2",borderRadius:(re=X==null?void 0:X.cornerRadius)!=null?re:4,userSelect:"none",alignItems:"center"},children:[u(ke,Y(I({},X==null?void 0:X.title),{fontSize:(ne=(Te=X==null?void 0:X.title)==null?void 0:Te.fontSize)!=null?ne:13,text:F.label})),u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:_e(F),children:X!=null&&X.removeImage?u(Le,I({},X.removeImage)):u(Le,{imageId:"cross"})})]},F.value)}else{const X=_==null?void 0:_.title;return u("div",{style:{display:"flex",userSelect:"none"},children:u(ke,Y(I({},X),{fontSize:($=X==null?void 0:X.fontSize)!=null?$:13,text:F.label}))},F.value)}})]}),n&&g.length?u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:me,children:_!=null&&_.clearButton?u(Le,I({},_.clearButton)):u(Le,{imageId:"cross"})}):null,n?u("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,u(nu,{isOpen:c,image:_==null?void 0:_.expandButton}),c&&u("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:N,style:Y(I({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ve=le(h==null?void 0:h.backgroundColor))!=null?ve:"#ffffff",borderRadius:(ye=h==null?void 0:h.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(te=le(h==null?void 0:h.borderColor))!=null?te:"#D9D9D9",borderWidth:(z=h==null?void 0:h.borderWidth)!=null?z:1,maxHeight:"500px",overflow:"auto",zIndex:2,boxShadow:"0 3px 15px rgba(0,0,0,.2)",padding:"8px",display:"flex",flexDirection:"column",gap:"2px",cursor:"default"}),onClick:F=>F.stopPropagation(),children:e.map(F=>{const q=g.some(re=>re.value===F.value);return u(iu,{isChosen:q,option:F,onOptionClickCallback:R,isHovered:b===F.value,onHover:()=>C(F.value),onHoverEnd:()=>C(null)},F.label)})})]})})},ou=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&u(ke,Y(I({},e.title),{text:r.text,htmlFor:o})),u(Oa,{name:o,control:t,rules:{required:!!r.required,validate:Rr(r.validators,!!r.required)},render:({field:s})=>{const a=i.find(l=>l.value===s.value);return u(za,{options:i,placeholder:r.placeholder,closeMenuOnSelect:!0,name:s.name,value:a?[a]:[],onChange:l=>{const d=l&&Array.isArray(l)&&l.length?l[0].value:null;s.onChange(d)},parentElementRef:n,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},su=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&u(ke,Y(I({},e.title),{text:r.text,htmlFor:o})),u(Oa,{name:o,control:t,rules:{required:!!r.required,validate:Rr(r.validators,!!r.required)},render:({field:s})=>{const a=i.filter(l=>{var d;return(d=s.value)==null?void 0:d.includes(l.value)});return u(za,{name:o,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:l=>{const d=l.map(_=>_.value);s.onChange(d)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Ka=()=>{const[t,e]=Ue(!1);return ot(()=>{const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("keydown",r),window.addEventListener("mousedown",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("mousedown",n)}},[]),t},au=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Ka(),l=String(r.id),_=i(l)===String(t.id),h=e.option,c=e.optionSelected,y={backgroundColor:le(c.backgroundColor),borderRadius:c.cornerRadius},g={backgroundColor:le(h.backgroundColor),borderRadius:h.cornerRadius},f=o&&a?{filter:`drop-shadow(0 0 1px ${nn})`}:{};return u("div",{children:u("label",{style:I({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},_?y:g),children:[u("div",{style:I({display:"flex",alignItems:"center",alignContent:"center"},f),children:u(Le,I({},_?c.image:h.image))}),u(ke,Y(I({},_?c.title:h.title),{text:t.text})),u("input",Y(I({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:Rr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)}))]})},t.id)},lu=({layout:t,register:e,watch:r,dataSourceQuestion:n})=>u("div",{style:{boxSizing:"border-box"},children:u("fieldset",{style:{margin:0,padding:0,border:"none",display:"flex",flexDirection:"column",gap:"16px"},children:[t.title&&u("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:u(ke,Y(I({},t.title),{text:n.text}))}),n.options.map(i=>u(au,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),cu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Ka(),l=String(r.id),_=i(l)===String(t.id),h=e.option,c=e.optionSelected,y={borderRadius:h.cornerRadius,background:le(h.backgroundColor),borderColor:le(h.borderColor),borderWidth:h.borderWidth},g={borderRadius:c.cornerRadius,background:le(c.backgroundColor),borderColor:le(c.borderColor),borderWidth:c.borderWidth},f=o&&a?{outline:`2px solid ${nn}`}:{};return u("div",{style:{display:"flex",flexGrow:1},children:u("label",{style:I(I({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},_?g:y),f),children:[u("input",Y(I({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:Rr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)})),u(ke,Y(I({},_?c.title:h.title),{text:t.text}))]})},t.id)},du=({layout:t,watch:e,register:r,dataSourceQuestion:n})=>u("div",{style:{boxSizing:"border-box"},children:u("fieldset",{style:{margin:0,padding:0,border:"none"},children:[t.title&&u("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:u(ke,Y(I({},t.title),{text:n.text}))}),u("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>u(cu,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),uu=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:o,validationBorderWidth:s})=>{const a=I({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:le(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&I(I({},le(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return u("div",{style:a,children:[i&&u("span",{style:{color:le(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},fu=({validationErrorsTypes:t,title:e})=>t?u("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>u(ke,Y(I({},e),{text:n}),r))}):null,hu=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,l,d,_,h,c,y,g,f,m,S,b,C,O;const n=String(e.id),i=N=>N?N===On.EMAIL?"email":N===On.FREE_TEXT?"text":N===On.NUMBER?"number":N===On.SECURE?"password":"text":"text";return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(ke,Y(I({},t.title),{text:e.text,htmlFor:n})),u("input",Y(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,type:i((o=t.textField)==null?void 0:o.inputType),style:{fontFamily:(a=(s=t==null?void 0:t.textField)==null?void 0:s.fontName)!=null?a:"sans-serif",fontSize:(d=(l=t==null?void 0:t.textField)==null?void 0:l.fontSize)!=null?d:15,color:(h=le((_=t==null?void 0:t.textField)==null?void 0:_.fontColor))!=null?h:"#000000",height:"42px",borderWidth:(y=(c=t==null?void 0:t.textField)==null?void 0:c.borderWidth)!=null?y:1,borderColor:(f=le((g=t==null?void 0:t.textField)==null?void 0:g.borderColor))!=null?f:"#d9d9d9",borderStyle:"solid",borderRadius:(S=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?S:8,padding:"11px",boxSizing:"border-box",backgroundColor:(C=le((b=t==null?void 0:t.textField)==null?void 0:b.backgroundColor))!=null?C:"#FFFFFF",outlineColor:nn},placeholder:(O=e.placeholder)!=null?O:"","data-id":n}))]})},pu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,o,s,a,l,d,_,h,c,y,g,f,m;const n=String(e.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(ke,Y(I({},t.title),{text:e.text,htmlFor:n})),u("textarea",Y(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:S=>{S.currentTarget.style.height="auto",S.currentTarget.style.height=`${S.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(s=(o=t==null?void 0:t.textField)==null?void 0:o.fontSize)!=null?s:15,color:(l=le((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(_=(d=t==null?void 0:t.textField)==null?void 0:d.borderWidth)!=null?_:1,borderColor:(c=le((h=t==null?void 0:t.textField)==null?void 0:h.borderColor))!=null?c:"#d9d9d9",borderStyle:"solid",borderRadius:(g=(y=t==null?void 0:t.textField)==null?void 0:y.cornerRadius)!=null?g:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=le((f=t==null?void 0:t.textField)==null?void 0:f.backgroundColor))!=null?m:"#FFFFFF",outlineColor:nn}}))]})},Ht=class Ht extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,xn);super({errorCode:e,errorCodeKey:o,errorEnumName:Ht.ERROR_ENUM_NAME,module:Ht.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ht.ERROR_ENUM_NAME,shortDomainCode:Ht.SHORT_CODE})}};Ht.MODULE=An,Ht.ERROR_ENUM_NAME="GuiModuleError",Ht.SHORT_CODE="GM";let cn=Ht;const _u=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:o,properties:s,backgroundColor:a})=>{const{perform:l}=fr(),d=s?qc(o.questions,s):{},_=st(null),{register:h,handleSubmit:c,formState:{errors:y},reset:g,watch:f,control:m}=ru({criteriaMode:"all",defaultValues:d});return u(Jt,{header:t,footer:n,backgroundColor:a,children:u("form",{onSubmit:c(b=>{l(Kc(b)),g()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[u("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:le(i.backgroundColor)||"transparent"},ref:_,children:[e&&u("div",{style:{lineHeight:"39.2px",width:"100%"},children:u(ke,I({},e))}),u("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:o.questions.map(b=>{var me;const C=o.static,O=(ee,Q)=>Q.find(H=>{var J;if((J=H.questionIds)!=null&&J.length)return H.questionIds.find(de=>ee===de)}),N=(ee,Q)=>Q.find(H=>!H.questionIds&&H.answerType===ee),R=C?O(String(b.id),i.itemTypes)||N(b.answerType,i.itemTypes):i.itemTypes.find(ee=>ee.answerType===b.answerType);if(!R){const ee=new cn({errorCode:xn.DECODING_FAILED,message:"The question template has not been found"});l(ee);return}const M=R==null?void 0:R.displayType,_e=b.id in y&&((me=y[b.id])==null?void 0:me.types);return u(je,{children:[u(uu,{backgroundColor:R==null?void 0:R.backgroundColor,cornerRadius:R==null?void 0:R.cornerRadius,isError:!!_e,isRequired:b.required,validationBorderColor:R==null?void 0:R.validationBorderColor,validationBorderWidth:R==null?void 0:R.validationBorderWidth,children:[M===Or.TEXT_EXPANDABLE&&u(pu,{layout:R,dataSourceQuestion:b,register:h}),M===Or.TEXT_SINGLE_LINE&&u(hu,{layout:R,dataSourceQuestion:b,register:h}),M===Or.SELECTOR_OPTIONS&&u(lu,{layout:R,dataSourceQuestion:b,watch:f,register:h}),M===Or.SELECTOR_BUTTONS&&u(du,{layout:R,dataSourceQuestion:b,watch:f,register:h}),M===Or.SELECTOR_DROPDOWN&&u(ou,{control:m,layout:R,dataSourceQuestion:b,parentElementRef:_}),M===Or.MULTI_SELECTOR_DROPDOWN&&u(su,{control:m,layout:R,dataSourceQuestion:b,parentElementRef:_})]}),_e&&u(fu,{validationErrorsTypes:_e,title:R.validationMessage})]},b.id)})})]}),!!(r!=null&&r.length)&&u("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:r.map((b,C)=>u(io,I({dataTestId:"question-button"},b),C))})]})})},mu={display:"none"},gu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},wu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},vu=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var _,h;const{perform:o}=fr(),s=st(null),a=typeof i=="number"&&(i===0||i>1),l=c=>U(null,null,function*(){var g;const y=Array.from((g=c.currentTarget.files)!=null?g:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>U(null,null,function*(){return{content:yield ma(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),d=()=>{var c;(c=s.current)==null||c.showPicker()};return u(Jt,{header:t,footer:e,backgroundColor:n,children:u(je,{children:u("div",{style:Y(I({},wu),{justifyContent:"center"}),children:[u("input",Y(I({style:mu,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:gu,onClick:d,children:u(Le,{imageId:(h=(_=r==null?void 0:r[0])==null?void 0:_.image)==null?void 0:h.imageId})})]})})})},yu={display:"none"},bu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Cu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Su=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var _,h;const{perform:o}=fr(),s=st(null),a=typeof i=="number"&&(i===0||i>1),l=c=>U(null,null,function*(){var g;const y=Array.from((g=c.currentTarget.files)!=null?g:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>U(null,null,function*(){return{content:yield ma(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),d=()=>U(null,null,function*(){var c;(c=s.current)==null||c.showPicker()});return ot(()=>{U(null,null,function*(){if(Yt.isDesktop)return;const c=yield Zc();(c==="denied"||c==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),u(Jt,{header:t,footer:e,backgroundColor:r,children:u(je,{children:u("div",{style:Y(I({},Cu),{justifyContent:"center"}),children:[u("input",Y(I({style:yu,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:bu,onClick:d,children:u(Le,{imageId:(h=(_=n==null?void 0:n[0])==null?void 0:_.image)==null?void 0:h.imageId})})]})})})};function Eu(){const t=st(null),[e,r]=Ue(!1);return{ref:t,isPopoverOpen:e,openPopover:()=>{var o;(o=t.current)==null||o.showPopover(),r(!0)},closePopover:()=>{var o;(o=t.current)==null||o.hidePopover(),r(!1)}}}const Ga=()=>U(null,null,function*(){var t;try{const e=yield navigator.permissions.query({name:"geolocation"});return(t=e==null?void 0:e.state)!=null?t:"unknown"}catch(e){return"unknown"}}),Tu=()=>U(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),mo=t=>U(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{lat:null,lon:null,error:"Geolocation is not supported"}});navigator.geolocation.getCurrentPosition(r=>e({location:{lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{const n=r!=null&&r.message?` Error message: ${r.message}`:"";e({location:{lat:null,lon:null,error:`Failed to get geolocation data via navigator.${n}`}})},t)})}),Iu={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},Ou={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"},Au={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},xu={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Ru={padding:"24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(550px, calc(100vw - 32px))",height:"min(250px, calc(100dvh - 32px))",gridTemplateRows:"auto 1fr"},qa={display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",marginBottom:"30px"},ku={padding:0,border:"none",background:"transparent",cursor:"pointer"},Nu=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s,popup:a})=>{var m,S,b;const{perform:l}=fr(),{setIsProcessingCallback:d}=jc(),{ref:_,isPopoverOpen:h,openPopover:c,closePopover:y}=Eu(),g={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4};Zt(()=>{d==null||d(!0)},[]),ot(()=>{let C=!0;return U(null,null,function*(){if((yield Ga())!=="granted"){d==null||d(!1);return}const N=yield mo(g);C&&l(N)}),()=>{C=!1}},[]),ot(()=>{let C=!0,O=null;return U(null,null,function*(){const N=yield Tu();N&&(O=N,N.onchange=()=>U(null,null,function*(){if(N.state!=="granted")return;d==null||d(!0);const R=yield mo(g);C&&l(R)}))}),()=>{C=!1,O&&(O.onchange=null)}},[]);const f=C=>U(null,null,function*(){C.preventDefault();const O=yield Ga();if(O==="denied"){c();return}O==="prompt"&&(yield mo())});return u(Jt,{header:e,footer:r,backgroundColor:s,children:[u("div",{style:Iu,children:[u("div",{style:Ou,children:[n&&u("div",{style:xu,children:u(Le,I({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px",width:"100%"},children:u(ke,I({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",width:"100%"},children:u(Rn,I({},i))})]}),!!(o!=null&&o.length)&&u("div",{style:{display:"flex",flexDirection:"column"},children:o.map((C,O)=>u("div",{style:{padding:"5px"},children:u(io,I(I({dataTestId:"question-button"},C),C.type==="FORM"?{onClick:f}:{}))},O))})]}),u("div",{ref:_,popover:"manual",role:"dialog","aria-modal":"true",style:Y(I({},Ru),{borderRadius:a.cornerRadius}),children:[u("div",{style:qa,children:[u("strong",{children:(m=a.title)==null?void 0:m.text}),u("button",{style:ku,onClick:y,"aria-label":"Close",children:u(Le,{imageId:(S=a.closeButton.image)==null?void 0:S.imageId})})]}),u("div",{style:qa,children:u("span",{children:(b=a.message)==null?void 0:b.text})})]}),h&&u("div",{style:Au,onPointerDown:C=>{C.preventDefault(),C.stopPropagation(),y()}})]})},Za=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:o}=fr();if(!e||!r)return u(ya,{});const s=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===dt.STATUS)return u(Od,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,description:r==null?void 0:r.description,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO)return u(Rd,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,title:r==null?void 0:r.title,description:r==null?void 0:r.description,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.GEOLOCATION)return u(Nu,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popup:r.popup});if(e===dt.PROGRESS)return u(ya,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,progressView:r==null?void 0:r.progressView,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.INFO_DETAILS)return u(Md,{header:r==null?void 0:r.header,title:r==null?void 0:r.title,details:r==null?void 0:r.details,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:r==null?void 0:r.backgroundColor});if(e===dt.CAMERA)return u(Su,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(e===dt.GALLERY)return u(vu,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(n&&(n!=null&&n.questions.length)&&e===dt.QUESTIONS)return u(_u,{dataSource:n,properties:i,questions:r.questions,header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor},s);if(e===dt.QUESTIONS&&!n){const l=new cn({errorCode:xn.DECODING_FAILED,message:"No data for questions"});return o(l),null}const a=new cn({errorCode:xn.DECODING_FAILED,message:"Unsupported step template"});return o(a),null};let go=!1;const Ya=({children:t})=>u("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),Du=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:o,properties:s}=e,a=l=>{r&&r(l)};return n===dt.QUESTIONS?u(ha,{perform:a,children:u(Ya,{children:u(Za,{properties:s,dataSource:o,templateId:n,templateLayout:i})})}):u(ha,{perform:a,setIsProcessingCallback:t,children:u(Ya,{children:u(Za,I(I({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},dn=class dn extends ua{constructor(){super(),this._mounted=!1,this._shadowRoot=this.attachShadow({mode:"open"}),this.props=null}setProps(e){this.props={idvEventListener:e.idvEventListener,moduleProps:e.moduleProps,isProcessing:e.isProcessing,perform:e.perform},this.render()}connectedCallback(){this.render(),this._mounted=!0}render(){if(!this.props)return"";if(this.shadowRoot){const e=document.createElement("style");e.id="idv-gui-styles",e.textContent=`
89
+ `,Hr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Ul=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Jo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Jo||{}),br=(t=>(t.DID_START_SESSION="DID_START_SESSION",t.DID_END_SESSION="DID_END_SESSION",t.DID_START_RESTORE_SESSION="DID_START_RESTORE_SESSION",t.DID_CONTINUE_REMOTE_SESSION="DID_CONTINUE_REMOTE_SESSION",t))(br||{}),gt=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.CONNECTION_ISSUE=1]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=2]="WORKFLOW_ISSUE",t[t.INTERNAL_ISSUE=3]="INTERNAL_ISSUE",t[t.SCENARIO_IN_PROGRESS=4]="SCENARIO_IN_PROGRESS",t))(gt||{}),Ve=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.CONFIG_MISSED_OR_INVALID=1]="CONFIG_MISSED_OR_INVALID",t[t.INITIALIZATION_REQUIRED=2]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(Ve||{}),We=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.PREPARED_REQUIRED=1]="PREPARED_REQUIRED",t[t.START_SESSION_FAILED=2]="START_SESSION_FAILED",t[t.UNKNOWN_STEP=3]="UNKNOWN_STEP",t[t.MODULES_ISSUE=4]="MODULES_ISSUE",t[t.ALREADY_STARTED=5]="ALREADY_STARTED",t[t.INTERNAL_ISSUE=6]="INTERNAL_ISSUE",t))(We||{}),Wr=(t=>(t[t.CONFIG_MISSED_OR_INVALID=0]="CONFIG_MISSED_OR_INVALID",t[t.MODULES_INSTANTIATION_FAILURE=1]="MODULES_INSTANTIATION_FAILURE",t[t.INITIALIZATION_IN_PROGRESS=2]="INITIALIZATION_IN_PROGRESS",t))(Wr||{}),_n=(t=>(t[t.CONNECTION_ISSUE=0]="CONNECTION_ISSUE",t[t.WORKFLOW_ISSUE=1]="WORKFLOW_ISSUE",t))(_n||{}),wt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(wt||{}),Zt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.TOKEN_ERROR=3]="TOKEN_ERROR",t[t.CONNECTION_ISSUE=4]="CONNECTION_ISSUE",t))(Zt||{}),it=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t[t.SAME_STEP=3]="SAME_STEP",t[t.IS_PROCESSING=4]="IS_PROCESSING",t[t.NOT_DATA_TYPE=5]="NOT_DATA_TYPE",t))(it||{}),jr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(jr||{}),Ot=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(Ot||{});const Ll=120,Vl=200,bi="PROGRESS",vt="IDV",ar="idv-session-data",zr="idv-session-auth-token",$l="rgl-uid",Bl="en",Xo=t=>{let e;const r=new Set,n=(u,_)=>{const h=typeof u=="function"?u(e):u;if(!Object.is(h,e)){const c=e;e=(_!=null?_:typeof h!="object"||h===null)?h:Object.assign({},e,h),r.forEach(y=>y(e,c))}},i=()=>e,a={setState:n,getState:i,getInitialState:()=>l,subscribe:u=>(r.add(u),()=>r.delete(u))},l=e=t(n,i,a);return a},Hl=t=>t?Xo(t):Xo;var Kr,se,Qo,lr,es,ts,rs,ns,Ci,Si,Ei,is,Gr={},os=[],Wl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qr=Array.isArray;function yt(t,e){for(var r in e)t[r]=e[r];return t}function Ti(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function bt(t,e,r){var n,i,o,s={};for(o in e)o=="key"?n=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?Kr.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Zr(t,s,n,i,null)}function Zr(t,e,r,n,i){var o={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Qo:i,__i:-1,__u:0};return i==null&&se.vnode!=null&&se.vnode(o),o}function ss(){return{current:null}}function je(t){return t.children}function ct(t,e){this.props=t,this.context=e}function Cr(t,e){if(e==null)return t.__?Cr(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Cr(t):null}function as(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return as(t)}}function Ii(t){(!t.__d&&(t.__d=!0)&&lr.push(t)&&!mn.__r++||es!=se.debounceRendering)&&((es=se.debounceRendering)||ts)(mn)}function mn(){for(var t,e,r,n,i,o,s,a=1;lr.length;)lr.length>a&&lr.sort(rs),t=lr.shift(),a=lr.length,t.__d&&(r=void 0,n=void 0,i=(n=(e=t).__v).__e,o=[],s=[],e.__P&&((r=yt({},n)).__v=n.__v+1,se.vnode&&se.vnode(r),Oi(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Cr(n):i,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,fs(o,r,s),n.__e=n.__=null,r.__e!=i&&as(r)));mn.__r=0}function ls(t,e,r,n,i,o,s,a,l,u,_){var h,c,y,g,f,m,S,b=n&&n.__k||os,C=e.length;for(l=jl(r,e,b,l,C),h=0;h<C;h++)(y=r.__k[h])!=null&&(c=y.__i==-1?Gr:b[y.__i]||Gr,y.__i=h,m=Oi(t,y,c,i,o,s,a,l,u,_),g=y.__e,y.ref&&c.ref!=y.ref&&(c.ref&&xi(c.ref,null,y),_.push(y.ref,y.__c||g,y)),f==null&&g!=null&&(f=g),(S=!!(4&y.__u))||c.__k===y.__k?l=cs(y,l,t,S):typeof y.type=="function"&&m!==void 0?l=m:g&&(l=g.nextSibling),y.__u&=-7);return r.__e=f,l}function jl(t,e,r,n,i){var o,s,a,l,u,_=r.length,h=_,c=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+c,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Zr(null,s,null,null,null):qr(s)?Zr(je,{children:s},null,null,null):s.constructor==null&&s.__b>0?Zr(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(u=s.__i=zl(s,r,l,h))!=-1&&(h--,(a=r[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(i>_?c--:i<_&&c++),typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?c--:u==l+1?c++:(u>l?c--:c++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<_;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Cr(a)),ps(a,a));return n}function cs(t,e,r,n){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=cs(i[o],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Cr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function At(t,e){return e=e||[],t==null||typeof t=="boolean"||(qr(t)?t.some(function(r){At(r,e)}):e.push(t)),e}function zl(t,e,r,n){var i,o,s,a=t.key,l=t.type,u=e[r],_=u!=null&&(2&u.__u)==0;if(u===null&&t.key==null||_&&a==u.key&&l==u.type)return r;if(n>(_?1:0)){for(i=r-1,o=r+1;i>=0||o<e.length;)if((u=e[s=i>=0?i--:o++])!=null&&(2&u.__u)==0&&a==u.key&&l==u.type)return s}return-1}function ds(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Wl.test(e)?r:r+"px"}function gn(t,e,r,n,i){var o,s;e:if(e=="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||ds(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||ds(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(ns,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=r,r?n?r.u=n.u:(r.u=Ci,t.addEventListener(e,o?Ei:Si,o)):t.removeEventListener(e,o?Ei:Si,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&r==1?"":r))}}function us(t){return function(e){if(this.l){var r=this.l[e.type+t];if(e.t==null)e.t=Ci++;else if(e.t<r.u)return;return r(se.event?se.event(e):e)}}}function Oi(t,e,r,n,i,o,s,a,l,u){var _,h,c,y,g,f,m,S,b,C,O,N,R,F,_e,me,ee,Q=e.type;if(e.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),o=[a=e.__e=r.__e]),(_=se.__b)&&_(e);e:if(typeof Q=="function")try{if(S=e.props,b="prototype"in Q&&Q.prototype.render,C=(_=Q.contextType)&&n[_.__c],O=_?C?C.props.value:_.__:n,r.__c?m=(h=e.__c=r.__c).__=h.__E:(b?e.__c=h=new Q(S,O):(e.__c=h=new ct(S,O),h.constructor=Q,h.render=Gl),C&&C.sub(h),h.props=S,h.state||(h.state={}),h.context=O,h.__n=n,c=h.__d=!0,h.__h=[],h._sb=[]),b&&h.__s==null&&(h.__s=h.state),b&&Q.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=yt({},h.__s)),yt(h.__s,Q.getDerivedStateFromProps(S,h.__s))),y=h.props,g=h.state,h.__v=e,c)b&&Q.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),b&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(b&&Q.getDerivedStateFromProps==null&&S!==y&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,O),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,O)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(h.props=S,h.state=h.__s,h.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),N=0;N<h._sb.length;N++)h.__h.push(h._sb[N]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,O),b&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(y,g,f)})}if(h.context=O,h.props=S,h.__P=t,h.__e=!1,R=se.__r,F=0,b){for(h.state=h.__s,h.__d=!1,R&&R(e),_=h.render(h.props,h.state,h.context),_e=0;_e<h._sb.length;_e++)h.__h.push(h._sb[_e]);h._sb=[]}else do h.__d=!1,R&&R(e),_=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++F<25);h.state=h.__s,h.getChildContext!=null&&(n=yt(yt({},n),h.getChildContext())),b&&!c&&h.getSnapshotBeforeUpdate!=null&&(f=h.getSnapshotBeforeUpdate(y,g)),me=_,_!=null&&_.type===je&&_.key==null&&(me=hs(_.props.children)),a=ls(t,qr(me)?me:[me],e,r,n,i,o,s,a,l,u),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),m&&(h.__E=h.__=null)}catch(H){if(e.__v=null,l||o!=null)if(H.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else{for(ee=o.length;ee--;)Ti(o[ee]);Ai(e)}else e.__e=r.__e,e.__k=r.__k,H.then||Ai(e);se.__e(H,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Kl(r.__e,e,r,n,i,o,s,l,u);return(_=se.diffed)&&_(e),128&e.__u?void 0:a}function Ai(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(Ai)}function fs(t,e,r){for(var n=0;n<r.length;n++)xi(r[n],r[++n],r[++n]);se.__c&&se.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){se.__e(o,i.__v)}})}function hs(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:qr(t)?t.map(hs):yt({},t)}function Kl(t,e,r,n,i,o,s,a,l){var u,_,h,c,y,g,f,m=r.props,S=e.props,b=e.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((y=o[u])&&"setAttribute"in y==!!b&&(b?y.localName==b:y.nodeType==3)){t=y,o[u]=null;break}}if(t==null){if(b==null)return document.createTextNode(S);t=document.createElementNS(i,b,S.is&&S),a&&(se.__m&&se.__m(e,o),a=!1),o=null}if(b==null)m===S||a&&t.data==S||(t.data=S);else{if(o=o&&Kr.call(t.childNodes),m=r.props||Gr,!a&&o!=null)for(m={},u=0;u<t.attributes.length;u++)m[(y=t.attributes[u]).name]=y.value;for(u in m)if(y=m[u],u!="children"){if(u=="dangerouslySetInnerHTML")h=y;else if(!(u in S)){if(u=="value"&&"defaultValue"in S||u=="checked"&&"defaultChecked"in S)continue;gn(t,u,null,y,i)}}for(u in S)y=S[u],u=="children"?c=y:u=="dangerouslySetInnerHTML"?_=y:u=="value"?g=y:u=="checked"?f=y:a&&typeof y!="function"||m[u]===y||gn(t,u,y,m[u],i);if(_)a||h&&(_.__html==h.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(h&&(t.innerHTML=""),ls(e.type=="template"?t.content:t,qr(c)?c:[c],e,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&Cr(r,0),a,l),o!=null)for(u=o.length;u--;)Ti(o[u]);a||(u="value",b=="progress"&&g==null?t.removeAttribute("value"):g!=null&&(g!==t[u]||b=="progress"&&!g||b=="option"&&g!=m[u])&&gn(t,u,g,m[u],i),u="checked",f!=null&&f!=t[u]&&gn(t,u,f,m[u],i))}return t}function xi(t,e,r){try{if(typeof t=="function"){var n=typeof t.__u=="function";n&&t.__u(),n&&e==null||(t.__u=t(e))}else t.current=e}catch(i){se.__e(i,r)}}function ps(t,e,r){var n,i;if(se.unmount&&se.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||xi(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){se.__e(o,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ps(n[i],e,r||typeof t.type!="function");r||Ti(t.__e),t.__c=t.__=t.__e=void 0}function Gl(t,e,r){return this.constructor(t,r)}function Sr(t,e,r){var n,i,o,s;e==document&&(e=document.documentElement),se.__&&se.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],Oi(e,t=(!n&&r||e).__k=bt(je,null,[t]),i||Gr,Gr,e.namespaceURI,!n&&r?[r]:i?null:e.firstChild?Kr.call(e.childNodes):null,o,!n&&r?r:i?i.__e:e.firstChild,n,s),fs(o,t,s)}function _s(t,e){Sr(t,e,_s)}function ql(t,e,r){var n,i,o,s,a=yt({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)o=="key"?n=e[o]:o=="ref"?i=e[o]:a[o]=e[o]===void 0&&s!=null?s[o]:e[o];return arguments.length>2&&(a.children=arguments.length>3?Kr.call(arguments,2):r),Zr(t.type,a,n||t.key,i||t.ref,null)}function Ri(t){function e(r){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&n.forEach(function(s){s.__e=!0,Ii(s)})},this.sub=function(o){n.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),s&&s.call(o)}}),r.children}return e.__c="__cC"+is++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}Kr=os.slice,se={__e:function(t,e,r,n){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},Qo=0,ct.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=yt({},this.state),typeof t=="function"&&(t=t(yt({},r),this.props)),t&&yt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ii(this))},ct.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ii(this))},ct.prototype.render=je,lr=[],ts=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,rs=function(t,e){return t.__v.__b-e.__v.__b},mn.__r=0,ns=/(PointerCapture)$|Capture$/i,Ci=0,Si=us(!1),Ei=us(!0),is=0;var xt,Ce,ki,ms,Er=0,gs=[],Oe=se,ws=Oe.__b,vs=Oe.__r,ys=Oe.diffed,bs=Oe.__c,Cs=Oe.unmount,Ss=Oe.__;function cr(t,e){Oe.__h&&Oe.__h(Ce,t,Er||e),Er=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return Er=1,wn(Ts,t)}function wn(t,e,r){var n=cr(xt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Ts(void 0,e),function(a){var l=n.__N?n.__N[0]:n.__[0],u=n.t(l,a);l!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=Ce,!Ce.__f)){var i=function(a,l,u){if(!n.__c.__H)return!0;var _=n.__c.__H.__.filter(function(c){return!!c.__c});if(_.every(function(c){return!c.__N}))return!o||o.call(this,a,l,u);var h=n.__c.props!==a;return _.forEach(function(c){if(c.__N){var y=c.__[0];c.__=c.__N,c.__N=void 0,y!==c.__[0]&&(h=!0)}}),o&&o.call(this,a,l,u)||h};Ce.__f=!0;var o=Ce.shouldComponentUpdate,s=Ce.componentWillUpdate;Ce.componentWillUpdate=function(a,l,u){if(this.__e){var _=o;o=void 0,i(a,l,u),o=_}s&&s.call(this,a,l,u)},Ce.shouldComponentUpdate=i}return n.__N||n.__}function ot(t,e){var r=cr(xt++,3);!Oe.__s&&Ui(r.__H,e)&&(r.__=t,r.u=e,Ce.__H.__h.push(r))}function Yt(t,e){var r=cr(xt++,4);!Oe.__s&&Ui(r.__H,e)&&(r.__=t,r.u=e,Ce.__h.push(r))}function st(t){return Er=5,Yr(function(){return{current:t}},[])}function Ni(t,e,r){Er=6,Yt(function(){if(typeof t=="function"){var n=t(e());return function(){t(null),n&&typeof n=="function"&&n()}}if(t)return t.current=e(),function(){return t.current=null}},r==null?r:r.concat(t))}function Yr(t,e){var r=cr(xt++,7);return Ui(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Di(t,e){return Er=8,Yr(function(){return t},e)}function Jr(t){var e=Ce.context[t.__c],r=cr(xt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Ce)),e.props.value):t.__}function Mi(t,e){Oe.useDebugValue&&Oe.useDebugValue(e?e(t):t)}function Zl(t){var e=cr(xt++,10),r=Ue();return e.__=t,Ce.componentDidCatch||(Ce.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Pi(){var t=cr(xt++,11);if(!t.__){for(var e=Ce.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function Yl(){for(var t;t=gs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(vn),t.__H.__h.forEach(Fi),t.__H.__h=[]}catch(e){t.__H.__h=[],Oe.__e(e,t.__v)}}Oe.__b=function(t){Ce=null,ws&&ws(t)},Oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ss&&Ss(t,e)},Oe.__r=function(t){vs&&vs(t),xt=0;var e=(Ce=t.__c).__H;e&&(ki===Ce?(e.__h=[],Ce.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(vn),e.__h.forEach(Fi),e.__h=[],xt=0)),ki=Ce},Oe.diffed=function(t){ys&&ys(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(gs.push(e)!==1&&ms===Oe.requestAnimationFrame||((ms=Oe.requestAnimationFrame)||Jl)(Yl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ki=Ce=null},Oe.__c=function(t,e){e.some(function(r){try{r.__h.forEach(vn),r.__h=r.__h.filter(function(n){return!n.__||Fi(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Oe.__e(n,r.__v)}}),bs&&bs(t,e)},Oe.unmount=function(t){Cs&&Cs(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{vn(n)}catch(i){e=i}}),r.__H=void 0,e&&Oe.__e(e,r.__v))};var Es=typeof requestAnimationFrame=="function";function Jl(t){var e,r=function(){clearTimeout(n),Es&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Es&&(e=requestAnimationFrame(r))}function vn(t){var e=Ce,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Ce=e}function Fi(t){var e=Ce;t.__c=t.__(),Ce=e}function Ui(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Ts(t,e){return typeof e=="function"?e(t):e}function Is(t,e){for(var r in e)t[r]=e[r];return t}function Li(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Vi(t,e){var r=e(),n=Ue({t:{__:r,u:e}}),i=n[0].t,o=n[1];return Yt(function(){i.__=r,i.u=e,$i(i)&&o({t:i})},[t,r,e]),ot(function(){return $i(i)&&o({t:i}),t(function(){$i(i)&&o({t:i})})},[t]),r}function $i(t){var e,r,n=t.u,i=t.__;try{var o=n();return!((e=i)===(r=o)&&(e!==0||1/e==1/r)||e!=e&&r!=r)}catch(s){return!0}}function Bi(t){t()}function Hi(t){return t}function Wi(){return[!1,Bi]}var ji=Yt;function yn(t,e){this.props=t,this.context=e}function Os(t,e){function r(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),e?!e(this.props,i)||!s:Li(this.props,i)}function n(i){return this.shouldComponentUpdate=r,bt(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(yn.prototype=new ct).isPureReactComponent=!0,yn.prototype.shouldComponentUpdate=function(t,e){return Li(this.props,t)||Li(this.state,e)};var As=se.__b;se.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),As&&As(t)};var Xl=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xs(t){function e(r){var n=Is({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Xl,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Rs=function(t,e){return t==null?null:At(At(t).map(e))},ks={map:Rs,forEach:Rs,count:function(t){return t?At(t).length:0},only:function(t){var e=At(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:At},Ql=se.__e;se.__e=function(t,e,r,n){if(t.then){for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}Ql(t,e,r,n)};var Ns=se.unmount;function Ds(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Is({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Ds(n,e,r)})),t}function Ms(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Ms(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}function Xr(){this.__u=0,this.o=null,this.__b=null}function Ps(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Fs(t){var e,r,n;function i(o){if(e||(e=t()).then(function(s){r=s.default||s},function(s){n=s}),n)throw n;if(!r)throw e;return bt(r,o)}return i.displayName="Lazy",i.__f=!0,i}function Tr(){this.i=null,this.l=null}se.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ns&&Ns(t)},(Xr.prototype=new ct).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Ps(n.__v),o=!1,s=function(){o||(o=!0,r.__R=null,i?i(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Ms(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(s,s)},Xr.prototype.componentWillUnmount=function(){this.o=[]},Xr.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ds(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&bt(je,null,t.fallback);return i&&(i.__u&=-33),[bt(je,null,e.__a?null:t.children),i]};var Us=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};function ec(t){return this.getChildContext=function(){return t.context},t.children}function tc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Sr(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),e.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.h.removeChild(i)}}}Sr(bt(ec,{context:e.context},t.__v),e.v)}function Ls(t,e){var r=bt(tc,{__v:t,h:e});return r.containerInfo=e,r}(Tr.prototype=new ct).__a=function(t){var e=this,r=Ps(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),Us(e,t,n)):i()};r?r(o):o()}},Tr.prototype.render=function(t){this.i=null,this.l=new Map;var e=At(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,r){Us(t,r,e)})};var Vs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,rc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ic=/[A-Z0-9]/g,oc=typeof document!="undefined",sc=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function $s(t,e,r){return e.__k==null&&(e.textContent=""),Sr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Bs(t,e,r){return _s(t,e),typeof r=="function"&&r(),t?t.__c:null}ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ct.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Hs=se.event;function ac(){}function lc(){return this.cancelBubble}function cc(){return this.defaultPrevented}se.event=function(t){return Hs&&(t=Hs(t)),t.persist=ac,t.isPropagationStopped=lc,t.isDefaultPrevented=cc,t.nativeEvent=t};var zi,dc={enumerable:!1,configurable:!0,get:function(){return this.class}},Ws=se.vnode;se.vnode=function(t){typeof t.type=="string"&&(function(e){var r=e.props,n=e.type,i={},o=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||oc&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||sc(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":nc.test(s)&&(s=l):l=s="oninput":o&&rc.test(s)?s=s.replace(ic,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=At(r.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=At(r.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",dc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Vs,Ws&&Ws(t)};var js=se.__r;se.__r=function(t){js&&js(t),zi=t.__c};var zs=se.diffed;se.diffed=function(t){zs&&zs(t);var e=t.props,r=t.__e;r!=null&&t.type==="textarea"&&"value"in e&&e.value!==r.value&&(r.value=e.value==null?"":e.value),zi=null};var Ks={ReactCurrentDispatcher:{current:{readContext:function(t){return zi.__n[t.__c].props.value},useCallback:Di,useContext:Jr,useDebugValue:Mi,useDeferredValue:Hi,useEffect:ot,useId:Pi,useImperativeHandle:Ni,useInsertionEffect:ji,useLayoutEffect:Yt,useMemo:Yr,useReducer:wn,useRef:st,useState:Ue,useSyncExternalStore:Vi,useTransition:Wi}}},uc="18.3.1";function Gs(t){return bt.bind(null,t)}function Qr(t){return!!t&&t.$$typeof===Vs}function qs(t){return Qr(t)&&t.type===je}function Zs(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Ys(t){return Qr(t)?ql.apply(null,arguments):t}function Js(t){return!!t.__k&&(Sr(null,t),!0)}function Xs(t){return t&&(t.base||t.nodeType===1&&t)||null}var Qs=function(t,e){return t(e)},ea=function(t,e){return t(e)},ta=je,ra=Qr,ce={useState:Ue,useId:Pi,useReducer:wn,useEffect:ot,useLayoutEffect:Yt,useInsertionEffect:ji,useTransition:Wi,useDeferredValue:Hi,useSyncExternalStore:Vi,startTransition:Bi,useRef:st,useImperativeHandle:Ni,useMemo:Yr,useCallback:Di,useContext:Jr,useDebugValue:Mi,version:"18.3.1",Children:ks,render:$s,hydrate:Bs,unmountComponentAtNode:Js,createPortal:Ls,createElement:bt,createContext:Ri,createFactory:Gs,cloneElement:Ys,createRef:ss,Fragment:je,isValidElement:Qr,isElement:ra,isFragment:qs,isMemo:Zs,findDOMNode:Xs,Component:ct,PureComponent:yn,memo:Os,forwardRef:xs,flushSync:ea,unstable_batchedUpdates:Qs,StrictMode:ta,Suspense:Xr,SuspenseList:Tr,lazy:Fs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ks};const fc=Object.freeze(Object.defineProperty({__proto__:null,Children:ks,Component:ct,Fragment:je,PureComponent:yn,StrictMode:ta,Suspense:Xr,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ks,cloneElement:Ys,createContext:Ri,createElement:bt,createFactory:Gs,createPortal:Ls,createRef:ss,default:ce,findDOMNode:Xs,flushSync:ea,forwardRef:xs,hydrate:Bs,isElement:ra,isFragment:qs,isMemo:Zs,isValidElement:Qr,lazy:Fs,memo:Os,render:$s,startTransition:Bi,unmountComponentAtNode:Js,unstable_batchedUpdates:Qs,useCallback:Di,useContext:Jr,useDebugValue:Mi,useDeferredValue:Hi,useEffect:ot,useErrorBoundary:Zl,useId:Pi,useImperativeHandle:Ni,useInsertionEffect:ji,useLayoutEffect:Yt,useMemo:Yr,useReducer:wn,useRef:st,useState:Ue,useSyncExternalStore:Vi,useTransition:Wi,version:uc},Symbol.toStringTag,{value:"Module"})),hc=t=>t;function pc(t,e=hc){const r=ce.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return ce.useDebugValue(r),r}const na=t=>{const e=Hl(t),r=n=>pc(e,n);return Object.assign(r,e),r},_c=t=>t?na(t):na;function mc(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch(o){}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var B={};const gc=mc(fc);var en={exports:{}},wc=en.exports,ia;function vc(){return ia||(ia=1,(function(t,e){(function(r,n){var i="1.0.41",o="",s="?",a="function",l="undefined",u="object",_="string",h="major",c="model",y="name",g="type",f="vendor",m="version",S="architecture",b="console",C="mobile",O="tablet",N="smarttv",R="wearable",F="embedded",_e=500,me="Amazon",ee="Apple",Q="ASUS",H="BlackBerry",J="Browser",de="Chrome",ue="Edge",ve="Firefox",ye="Google",te="Honor",z="Huawei",U="Lenovo",q="LG",re="Microsoft",Te="Motorola",ne="Nvidia",$="OnePlus",X="Opera",Ke="OPPO",Je="Samsung",pt="Sharp",nt="Sony",jt="Xiaomi",_t="Zebra",Qt="Facebook",zt="Chromium OS",St="Mac OS",Kt=" Browser",er=function(Z,ae){var j={};for(var ge in Z)ae[ge]&&ae[ge].length%2===0?j[ge]=ae[ge].concat(Z[ge]):j[ge]=Z[ge];return j},Et=function(Z){for(var ae={},j=0;j<Z.length;j++)ae[Z[j].toUpperCase()]=Z[j];return ae},at=function(Z,ae){return typeof Z===_?v(ae).indexOf(v(Z))!==-1:!1},v=function(Z){return Z.toLowerCase()},T=function(Z){return typeof Z===_?Z.replace(/[^\d\.]/g,o).split(".")[0]:n},x=function(Z,ae){if(typeof Z===_)return Z=Z.replace(/^\s\s*/,o),typeof ae===l?Z:Z.substring(0,_e)},V=function(Z,ae){for(var j=0,ge,Ge,Me,he,G,Xe;j<ae.length&&!G;){var tr=ae[j],pr=ae[j+1];for(ge=Ge=0;ge<tr.length&&!G&&tr[ge];)if(G=tr[ge++].exec(Z),G)for(Me=0;Me<pr.length;Me++)Xe=G[++Ge],he=pr[Me],typeof he===u&&he.length>0?he.length===2?typeof he[1]==a?this[he[0]]=he[1].call(this,Xe):this[he[0]]=he[1]:he.length===3?typeof he[1]===a&&!(he[1].exec&&he[1].test)?this[he[0]]=Xe?he[1].call(this,Xe,he[2]):n:this[he[0]]=Xe?Xe.replace(he[1],he[2]):n:he.length===4&&(this[he[0]]=Xe?he[3].call(this,Xe.replace(he[1],he[2])):n):this[he]=Xe||n;j+=2}},D=function(Z,ae){for(var j in ae)if(typeof ae[j]===u&&ae[j].length>0){for(var ge=0;ge<ae[j].length;ge++)if(at(ae[j][ge],Z))return j===s?n:j}else if(at(ae[j],Z))return j===s?n:j;return ae.hasOwnProperty("*")?ae["*"]:Z},M={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},W={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"},ie={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,m],[/opios[\/ ]+([\w\.]+)/i],[m,[y,X+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[y,X+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[y,X]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[y,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[y,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[y,"UC"+J]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[y,"Smart Lenovo "+J]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+J],m],[/\bfocus\/([\w\.]+)/i],[m,[y,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[y,X+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[y,X+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[y,"MIUI"+Kt]],[/fxios\/([\w\.-]+)/i],[m,[y,ve]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+Kt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[y,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Qt],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[y,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[y,de+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,de+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[y,"Android "+J]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[m,D,M]],[/(webkit|khtml)\/([\w\.]+)/i],[y,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[y,ve+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[y,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[S,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[S,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[S,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[S,/ower/,o,v]],[/ sun4\w[;\)]/i],[[S,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[S,v]]],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],[c,[f,Je],[g,O]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,Je],[g,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,ee],[g,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,ee],[g,O]],[/(macintosh);/i],[c,[f,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,pt],[g,C]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,te],[g,O]],[/honor([-\w ]+)[;\)]/i],[c,[f,te],[g,C]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[f,z],[g,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,z],[g,C]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,jt],[g,O]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[f,jt],[g,C]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[f,Ke],[g,C]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,D,{OnePlus:["304","403","203"],"*":Ke}],[g,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[g,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[g,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[f,Te],[g,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,Te],[g,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,q],[g,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,q],[g,C]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[f,U],[g,O]],[/(nokia) (t[12][01])/i],[f,c,[g,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[g,C],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,ye],[g,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,ye],[g,C]],[/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],[c,[f,nt],[g,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,nt],[g,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,$],[g,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,me],[g,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,me],[g,C]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[g,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,H],[g,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,Q],[g,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,Q],[g,C]],[/(nexus 9)/i],[c,[f,"HTC"],[g,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[g,C]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[f,"TCL"],[g,O]],[/(itel) ((\w+))/i],[[f,v],c,[g,D,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[g,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[g,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[g,C]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[g,C]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[g,C]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[g,C]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[g,C]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[g,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[g,C]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[g,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[f,c,[g,C]],[/(kobo)\s(ereader|touch)/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],[f,c,[g,O]],[/(surface duo)/i],[c,[f,re],[g,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[g,C]],[/(u304aa)/i],[c,[f,"AT&T"],[g,C]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[g,C]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[g,O]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[g,O]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[g,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[g,O]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[g,O]],[/\b(k88) b/i],[c,[f,"ZTE"],[g,O]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[g,C]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[g,C]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[g,O]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[g,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[g,O]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[g,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[g,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[g,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[g,C]],[/\b(ph-1) /i],[c,[f,"Essential"],[g,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[g,O]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[g,O]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[g,O]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,ne],[g,O]],[/(sprint) (\w+)/i],[f,c,[g,C]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,re],[g,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,_t],[g,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,_t],[g,C]],[/smart-tv.+(samsung)/i],[f,[g,N]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Je],[g,N]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,q],[g,N]],[/(apple) ?tv/i],[f,[c,ee+" TV"],[g,N]],[/crkey/i],[[c,de+"cast"],[f,ye],[g,N]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,me],[g,N]],[/(shield \w+ tv)/i],[c,[f,ne],[g,N]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,pt],[g,N]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,nt],[g,N]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,jt],[g,N]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[g,N]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,x],[c,x],[g,N]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[g,N]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,N]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[g,b]],[/droid.+; (shield)( bui|\))/i],[c,[f,ne],[g,b]],[/(playstation \w+)/i],[c,[f,nt],[g,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,re],[g,b]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Je],[g,R]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[g,R]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,Ke],[g,R]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,ee],[g,R]],[/(opwwe\d{3})/i],[c,[f,$],[g,R]],[/(moto 360)/i],[c,[f,Te],[g,R]],[/(smartwatch 3)/i],[c,[f,nt],[g,R]],[/(g watch r)/i],[c,[f,q],[g,R]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,_t],[g,R]],[/droid.+; (glass) \d/i],[c,[f,ye],[g,R]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[g,R]],[/; (quest( \d| pro)?)/i],[c,[f,Qt],[g,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[g,F]],[/(aeobc)\b/i],[c,[f,me],[g,F]],[/(homepod).+mac os/i],[c,[f,ee],[g,F]],[/windows iot/i],[[g,F]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[g,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[g,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,C]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[y,ue+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[y,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[y,m],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[m,D,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,D,W],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,St],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,m],[/\(bb(10);/i],[m,[y,H]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[y,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[y,de+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,zt],m],[/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)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[y,m],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,m]]},K=function(Z,ae){if(typeof Z===u&&(ae=Z,Z=n),!(this instanceof K))return new K(Z,ae).getResult();var j=typeof r!==l&&r.navigator?r.navigator:n,ge=Z||(j&&j.userAgent?j.userAgent:o),Ge=j&&j.userAgentData?j.userAgentData:n,Me=ae?er(ie,ae):ie,he=j&&j.userAgent==ge;return this.getBrowser=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Me.browser),G[h]=T(G[m]),he&&j&&j.brave&&typeof j.brave.isBrave==a&&(G[y]="Brave"),G},this.getCPU=function(){var G={};return G[S]=n,V.call(G,ge,Me.cpu),G},this.getDevice=function(){var G={};return G[f]=n,G[c]=n,G[g]=n,V.call(G,ge,Me.device),he&&!G[g]&&Ge&&Ge.mobile&&(G[g]=C),he&&G[c]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(G[c]="iPad",G[g]=O),G},this.getEngine=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Me.engine),G},this.getOS=function(){var G={};return G[y]=n,G[m]=n,V.call(G,ge,Me.os),he&&!G[y]&&Ge&&Ge.platform&&Ge.platform!="Unknown"&&(G[y]=Ge.platform.replace(/chrome os/i,zt).replace(/macos/i,St)),G},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 ge},this.setUA=function(G){return ge=typeof G===_&&G.length>_e?x(G,_e):G,this},this.setUA(ge),this};K.VERSION=i,K.BROWSER=Et([y,m,h]),K.CPU=Et([S]),K.DEVICE=Et([c,f,g,b,C,N,O,R,F]),K.ENGINE=K.OS=Et([y,m]),t.exports&&(e=t.exports=K),e.UAParser=K;var we=typeof r!==l&&(r.jQuery||r.Zepto);if(we&&!we.ua){var He=new K;we.ua=He.getResult(),we.ua.get=function(){return He.getUA()},we.ua.set=function(Z){He.setUA(Z);var ae=He.getResult();for(var j in ae)we.ua[j]=ae[j]}}})(typeof window=="object"?window:wc)})(en,en.exports)),en.exports}var oa;function yc(){if(oa)return B;oa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=gc,r=t(e),n=vc(),i=new n,o=i.getBrowser(),s=i.getCPU(),a=i.getDevice(),l=i.getEngine(),u=i.getOS(),_=i.getUA(),h=function(p){return i.setUA(p)},c=function(p){if(!p){console.error("No userAgent string was provided");return}var w=new n(p);return{UA:w,browser:w.getBrowser(),cpu:w.getCPU(),device:w.getDevice(),engine:w.getEngine(),os:w.getOS(),ua:w.getUA(),setUserAgent:function(k){return w.setUA(k)}}},y=Object.freeze({ClientUAInstance:i,browser:o,cpu:s,device:a,engine:l,os:u,ua:_,setUa:h,parseUserAgent:c});function g(E,p){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);p&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(E,k).enumerable})),w.push.apply(w,A)}return w}function f(E){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?g(Object(w),!0).forEach(function(A){O(E,A,w[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):g(Object(w)).forEach(function(A){Object.defineProperty(E,A,Object.getOwnPropertyDescriptor(w,A))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(p){return typeof p}:m=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m(E)}function S(E,p){if(!(E instanceof p))throw new TypeError("Cannot call a class as a function")}function b(E,p){for(var w=0;w<p.length;w++){var A=p[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}function C(E,p,w){return p&&b(E.prototype,p),E}function O(E,p,w){return p in E?Object.defineProperty(E,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[p]=w,E}function N(){return N=Object.assign||function(E){for(var p=1;p<arguments.length;p++){var w=arguments[p];for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(E[A]=w[A])}return E},N.apply(this,arguments)}function R(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(p&&p.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),p&&_e(E,p)}function F(E){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},F(E)}function _e(E,p){return _e=Object.setPrototypeOf||function(A,k){return A.__proto__=k,A},_e(E,p)}function me(E,p){if(E==null)return{};var w={},A=Object.keys(E),k,pe;for(pe=0;pe<A.length;pe++)k=A[pe],!(p.indexOf(k)>=0)&&(w[k]=E[k]);return w}function ee(E,p){if(E==null)return{};var w=me(E,p),A,k;if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(E);for(k=0;k<pe.length;k++)A=pe[k],!(p.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(E,A)&&(w[A]=E[A])}return w}function Q(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function H(E,p){if(p&&(typeof p=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q(E)}function J(E,p){return de(E)||ue(E,p)||ve(E,p)||te()}function de(E){if(Array.isArray(E))return E}function ue(E,p){var w=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(w!=null){var A=[],k=!0,pe=!1,Pe,et;try{for(w=w.call(E);!(k=(Pe=w.next()).done)&&(A.push(Pe.value),!(p&&A.length===p));k=!0);}catch(li){pe=!0,et=li}finally{try{!k&&w.return!=null&&w.return()}finally{if(pe)throw et}}return A}}function ve(E,p){if(E){if(typeof E=="string")return ye(E,p);var w=Object.prototype.toString.call(E).slice(8,-1);if(w==="Object"&&E.constructor&&(w=E.constructor.name),w==="Map"||w==="Set")return Array.from(E);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return ye(E,p)}}function ye(E,p){(p==null||p>E.length)&&(p=E.length);for(var w=0,A=new Array(p);w<p;w++)A[w]=E[w];return A}function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},U={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"},q={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},re={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Te=function(p){switch(p){case z.Mobile:return{isMobile:!0};case z.Tablet:return{isTablet:!0};case z.SmartTv:return{isSmartTV:!0};case z.Console:return{isConsole:!0};case z.Wearable:return{isWearable:!0};case z.Browser:return{isBrowser:!0};case z.Embedded:return{isEmbedded:!0};default:return re}},ne=function(p){return h(p)},$=function(p){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return p||w},X=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(p){var w=X();return w&&w.platform&&(w.platform.indexOf(p)!==-1||w.platform==="MacIntel"&&w.maxTouchPoints>1&&!window.MSStream)},Je=function(p,w,A,k,pe){return{isBrowser:p,browserMajorVersion:$(w.major),browserFullVersion:$(w.version),browserName:$(w.name),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(pe)}},pt=function(p,w,A,k){return f({},p,{vendor:$(w.vendor),model:$(w.model),os:$(A.name),osVersion:$(A.version),ua:$(k)})},nt=function(p,w,A,k){return{isSmartTV:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},jt=function(p,w,A,k){return{isConsole:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},_t=function(p,w,A,k){return{isWearable:p,engineName:$(w.name),engineVersion:$(w.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Qt=function(p,w,A,k,pe){return{isEmbedded:p,vendor:$(w.vendor),model:$(w.model),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(pe)}};function zt(E){var p=E?c(E):y,w=p.device,A=p.browser,k=p.engine,pe=p.os,Pe=p.ua,et=Te(w.type),li=et.isBrowser,f1=et.isMobile,h1=et.isTablet,sl=et.isSmartTV,al=et.isConsole,ll=et.isWearable,cl=et.isEmbedded;if(li)return Je(li,A,k,pe,Pe);if(sl)return nt(sl,k,pe,Pe);if(al)return jt(al,k,pe,Pe);if(f1||h1)return pt(et,w,pe,Pe);if(ll)return _t(ll,k,pe,Pe);if(cl)return Qt(cl,w,k,pe,Pe)}var St=function(p){var w=p.type;return w===z.Mobile},Kt=function(p){var w=p.type;return w===z.Tablet},er=function(p){var w=p.type;return w===z.Mobile||w===z.Tablet},Et=function(p){var w=p.type;return w===z.SmartTv},at=function(p){var w=p.type;return w===z.Browser},v=function(p){var w=p.type;return w===z.Wearable},T=function(p){var w=p.type;return w===z.Console},x=function(p){var w=p.type;return w===z.Embedded},V=function(p){var w=p.vendor;return $(w)},D=function(p){var w=p.model;return $(w)},M=function(p){var w=p.type;return $(w,"browser")},W=function(p){var w=p.name;return w===q.Android},ie=function(p){var w=p.name;return w===q.Windows},K=function(p){var w=p.name;return w===q.MAC_OS},we=function(p){var w=p.name;return w===q.WindowsPhone},He=function(p){var w=p.name;return w===q.IOS},Z=function(p){var w=p.version;return $(w)},ae=function(p){var w=p.name;return $(w)},j=function(p){var w=p.name;return w===U.Chrome},ge=function(p){var w=p.name;return w===U.Firefox},Ge=function(p){var w=p.name;return w===U.Chromium},Me=function(p){var w=p.name;return w===U.Edge},he=function(p){var w=p.name;return w===U.Yandex},G=function(p){var w=p.name;return w===U.Safari||w===U.MobileSafari},Xe=function(p){var w=p.name;return w===U.MobileSafari},tr=function(p){var w=p.name;return w===U.Opera},pr=function(p){var w=p.name;return w===U.InternetExplorer||w===U.Ie},Fn=function(p){var w=p.name;return w===U.MIUI},Un=function(p){var w=p.name;return w===U.SamsungBrowser},Ln=function(p){var w=p.version;return $(w)},Vn=function(p){var w=p.major;return $(w)},$n=function(p){var w=p.name;return $(w)},Bn=function(p){var w=p.name;return $(w)},Hn=function(p){var w=p.version;return $(w)},Wn=function(){var p=X(),w=p&&p.userAgent&&p.userAgent.toLowerCase();return typeof w=="string"?/electron/.test(w):!1},rr=function(p){return typeof p=="string"&&p.indexOf("Edg/")!==-1},jn=function(){var p=X();return p&&(/iPad|iPhone|iPod/.test(p.platform)||p.platform==="MacIntel"&&p.maxTouchPoints>1)&&!window.MSStream},lt=function(){return Ke("iPad")},zn=function(){return Ke("iPhone")},Kn=function(){return Ke("iPod")},Gn=function(p){return $(p)};function qn(E){var p=E||y,w=p.device,A=p.browser,k=p.os,pe=p.engine,Pe=p.ua;return{isSmartTV:Et(w),isConsole:T(w),isWearable:v(w),isEmbedded:x(w),isMobileSafari:Xe(A)||lt(),isChromium:Ge(A),isMobile:er(w)||lt(),isMobileOnly:St(w),isTablet:Kt(w)||lt(),isBrowser:at(w),isDesktop:at(w),isAndroid:W(k),isWinPhone:we(k),isIOS:He(k)||lt(),isChrome:j(A),isFirefox:ge(A),isSafari:G(A),isOpera:tr(A),isIE:pr(A),osVersion:Z(k),osName:ae(k),fullBrowserVersion:Ln(A),browserVersion:Vn(A),browserName:$n(A),mobileVendor:V(w),mobileModel:D(w),engineName:Bn(pe),engineVersion:Hn(pe),getUA:Gn(Pe),isEdge:Me(A)||rr(Pe),isYandex:he(A),deviceType:M(w),isIOS13:jn(),isIPad13:lt(),isIPhone13:zn(),isIPod13:Kn(),isElectron:Wn(),isEdgeChromium:rr(Pe),isLegacyEdge:Me(A)&&!rr(Pe),isWindows:ie(k),isMacOs:K(k),isMIUI:Fn(A),isSamsungBrowser:Un(A)}}var Zn=Et(a),Yn=T(a),Jn=v(a),yo=x(a),bo=Xe(o)||lt(),Co=Ge(o),Nr=er(a)||lt(),Xn=St(a),Qn=Kt(a)||lt(),ei=at(a),So=at(a),ti=W(u),ri=we(u),ni=He(u)||lt(),Eo=j(o),To=ge(o),Io=G(o),Oo=tr(o),ii=pr(o),Ao=Z(u),xo=ae(u),Ro=Ln(o),ko=Vn(o),No=$n(o),Do=V(a),Mo=D(a),Po=Bn(l),Fo=Hn(l),Uo=Gn(_),Tt=Me(o)||rr(_),Lo=he(o),oe=M(a),mt=jn(),Dr=lt(),oi=zn(),si=Kn(),ai=Wn(),ju=rr(_),zu=Me(o)&&!rr(_),Ku=ie(u),Gu=K(u),qu=Fn(o),Zu=Un(o),Yu=function(p){if(!p||typeof p!="string"){console.error("No valid user agent string was provided");return}var w=c(p),A=w.device,k=w.browser,pe=w.os,Pe=w.engine,et=w.ua;return qn({device:A,browser:k,os:pe,engine:Pe,ua:et})},Ju=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ti?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},Xu=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ei?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},Qu=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ii?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},e1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ni?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},t1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Nr?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},r1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Qn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},n1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return ri?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},i1=function(p){var w=p.renderWithFragment,A=p.children;p.viewClassName,p.style;var k=ee(p,["renderWithFragment","children","viewClassName","style"]);return Xn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},o1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Zn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},s1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Yn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},a1=function(p){var w=p.renderWithFragment,A=p.children,k=ee(p,["renderWithFragment","children"]);return Jn?w?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},l1=function(p){var w=p.renderWithFragment,A=p.children;p.viewClassName,p.style;var k=p.condition,pe=ee(p,["renderWithFragment","children","viewClassName","style","condition"]);return k?w?r.createElement(e.Fragment,null,A):r.createElement("div",pe,A):null};function c1(E){return(function(p){R(w,p);function w(A){var k;return S(this,w),k=H(this,F(w).call(this,A)),k.isEventListenerAdded=!1,k.handleOrientationChange=k.handleOrientationChange.bind(Q(k)),k.onOrientationChange=k.onOrientationChange.bind(Q(k)),k.onPageLoad=k.onPageLoad.bind(Q(k)),k.state={isLandscape:!1,isPortrait:!1},k}return C(w,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var k=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:k===0,isLandscape:k===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window=="undefined"?"undefined":m(window))!==void 0&&Nr&&(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 r.createElement(E,N({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),w})(r.Component)}function d1(){var E=e.useState(function(){var pe=window.innerWidth>window.innerHeight?90:0;return{isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"}}),p=J(E,2),w=p[0],A=p[1],k=e.useCallback(function(){var pe=window.innerWidth>window.innerHeight?90:0,Pe={isPortrait:pe===0,isLandscape:pe===90,orientation:pe===0?"portrait":"landscape"};w.orientation!==Pe.orientation&&A(Pe)},[w.orientation]);return e.useEffect(function(){return(typeof window=="undefined"?"undefined":m(window))!==void 0&&Nr&&(k(),window.addEventListener("load",k,!1),window.addEventListener("resize",k,!1)),function(){window.removeEventListener("resize",k,!1),window.removeEventListener("load",k,!1)}},[k]),w}function ol(E){var p=E||window.navigator.userAgent;return c(p)}function u1(E){var p=E||window.navigator.userAgent,w=ol(p),A=qn(w);return[A,w]}return B.AndroidView=Ju,B.BrowserTypes=U,B.BrowserView=Xu,B.ConsoleView=s1,B.CustomView=l1,B.IEView=Qu,B.IOSView=e1,B.MobileOnlyView=i1,B.MobileView=t1,B.OsTypes=q,B.SmartTVView=o1,B.TabletView=r1,B.WearableView=a1,B.WinPhoneView=n1,B.browserName=No,B.browserVersion=ko,B.deviceDetect=zt,B.deviceType=oe,B.engineName=Po,B.engineVersion=Fo,B.fullBrowserVersion=Ro,B.getSelectorsByUserAgent=Yu,B.getUA=Uo,B.isAndroid=ti,B.isBrowser=ei,B.isChrome=Eo,B.isChromium=Co,B.isConsole=Yn,B.isDesktop=So,B.isEdge=Tt,B.isEdgeChromium=ju,B.isElectron=ai,B.isEmbedded=yo,B.isFirefox=To,B.isIE=ii,B.isIOS=ni,B.isIOS13=mt,B.isIPad13=Dr,B.isIPhone13=oi,B.isIPod13=si,B.isLegacyEdge=zu,B.isMIUI=qu,B.isMacOs=Gu,B.isMobile=Nr,B.isMobileOnly=Xn,B.isMobileSafari=bo,B.isOpera=Oo,B.isSafari=Io,B.isSamsungBrowser=Zu,B.isSmartTV=Zn,B.isTablet=Qn,B.isWearable=Jn,B.isWinPhone=ri,B.isWindows=Ku,B.isYandex=Lo,B.mobileModel=Mo,B.mobileVendor=Do,B.osName=xo,B.osVersion=Ao,B.parseUserAgent=c,B.setUserAgent=ne,B.useDeviceData=ol,B.useDeviceSelectors=u1,B.useMobileOrientation=d1,B.withOrientationChange=c1,B}var Jt=yc();const bc=(t,e)=>Ki(t,e),Ki=(t,e)=>{const r=Gi(t,e);for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=r[n];if(typeof i=="object"&&!Array.isArray(i))r[n]=Gi(i,e);else if(Array.isArray(i)){const o=i.map(s=>typeof s=="object"?Ki(s,e):s);r[n]=o}}return r},Gi=(t,e)=>{const r=Cc(t),n=t.layout;if(!n||n.length===0)return r;let i=null;if(n.forEach(o=>{const s=e[o];i?s&&Sc(s,i):i=s}),i){const o=Gi(i,e);for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const a=o[s];Object.prototype.hasOwnProperty.call(r,s)||(r[s]=a)}}return Ki(r,e)},Cc=t=>{const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&r.toLowerCase()!=="layout"&&(e[r]=t[r]);return e},Sc=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},$e=[];for(let t=0;t<256;++t)$e.push((t+256).toString(16).slice(1));function Ec(t,e=0){return($e[t[e+0]]+$e[t[e+1]]+$e[t[e+2]]+$e[t[e+3]]+"-"+$e[t[e+4]]+$e[t[e+5]]+"-"+$e[t[e+6]]+$e[t[e+7]]+"-"+$e[t[e+8]]+$e[t[e+9]]+"-"+$e[t[e+10]]+$e[t[e+11]]+$e[t[e+12]]+$e[t[e+13]]+$e[t[e+14]]+$e[t[e+15]]).toLowerCase()}let qi;const Tc=new Uint8Array(16);function Ic(){if(!qi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qi=crypto.getRandomValues.bind(crypto)}return qi(Tc)}const sa={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Oc(t,e,r){var i,o,s;t=t||{};const n=(s=(o=t.random)!=null?o:(i=t.rng)==null?void 0:i.call(t))!=null?s:Ic();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ec(n)}function Ac(t,e,r){return sa.randomUUID&&!t?sa.randomUUID():Oc(t)}function Zi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const aa=(t,e)=>{if(!t||!e)return null;let r=null;return r=Zi(t),r&&(r=bc(r,e)),r};function xc(t){return P(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function Rc(i,o){return P(this,arguments,function*(t,e,r=Ll,n=Vl){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield xc(n))}return e()})}const kc=(t,e,r)=>{const n=t.reduce((o,s)=>(o.push(...s.supportedTemplates),o),[]),i=e.find(o=>o.id===r);return n.includes(i==null?void 0:i.client.templateId)},Nc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Dc=(t,e)=>{const r=t.reduce((s,a)=>(s.push(...a.supportedTemplates),s),[]),n=Array.from(new Set(e.filter(s=>!s.final&&Ul.includes(s.type)).map(s=>s.client.templateId)));function i(s,a){const l=new Set(s);return a.filter(u=>!l.has(u))}const o=i(r,n);return{isAllTemplatesSupported:o.length===0,unsupportedSteps:o.length>0?o:void 0}},dr={setAuthTokenToLs:(t,e,r,n,i)=>{const o=localStorage.getItem(zr),s=o?JSON.parse(o):{},a={authToken:t,tokenExpiresAt:i,workflowId:n,sessionId:r};s[e]=a,localStorage.setItem(zr,JSON.stringify(s))},getAuthTokenLs:()=>{const t=localStorage.getItem(zr);if(!t)return null;try{const e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:null}catch(e){return null}},removeAuthTokenLs:t=>{if(!t)return!1;const e=localStorage.getItem(zr);if(!e)return!1;try{const r=JSON.parse(e);return Object.prototype.hasOwnProperty.call(r,t)?(delete r[t],localStorage.setItem(zr,JSON.stringify(r)),!0):!1}catch(r){return!1}}},Yi=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ji=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Xi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(ar);let n={};if(r)try{const i=JSON.parse(r);Yi(i)&&(n=i)}catch(i){if(Ji(r)){const[o,s]=r.split(":");o&&s&&(n={[s]:o})}}n[e]=t,localStorage.setItem(ar,JSON.stringify(n))},getSessionIdWorkflowIdFromLS:()=>{const t=localStorage.getItem(ar);if(!t)return null;try{const e=JSON.parse(t);return Yi(e)?e:null}catch(e){if(Ji(t)){const[r,n]=t.split(":");if(r&&n)return{[n]:r}}return null}},removeSessionIdWorkflowIdFromLS:({workflowId:t=""})=>{const e=localStorage.getItem(ar);if(!e)return!1;if(!t)return localStorage.removeItem(ar),!0;try{const r=JSON.parse(e);if(!Yi(r))return!1;const n=r;return Object.prototype.hasOwnProperty.call(n,t)?(delete n[t],localStorage.setItem(ar,JSON.stringify(n)),!0):!1}catch(r){if(Ji(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(ar),!0):!1}return!1}}},Mc=t=>{var n;let e;const r=Ac();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Pc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Fc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Uc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Lc(){return typeof navigator!="undefined"?navigator.language:null}const Vc=t=>{const e=Bl,r=typeof t=="string"?t:null,n=Uc(),i=Lc();return r||n||i||e},$c=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function la(t){return!("error"in t)}function Qi(t){try{let e=t;!t.includes("://")&&t.includes(".")&&(e=`http://${t}`);const r=new URL(e),n=r.hostname,i=r.protocol==="https:",o=r.port?parseInt(r.port,10):void 0;return{host:n,isSecure:i,port:o}}catch(e){return null}}const ca=()=>{if(typeof window=="undefined")return"SERVER_SIDE_RENDERING";if(!document.referrer)return window.location.origin;try{return new URL(document.referrer).origin}catch(t){return window.location.origin}},Bc=t=>({deviceId:Mc($l),metadata:{platform:"browser",osVersion:`${Jt.osVersion}`,hostAppId:ca(),host:ca(),name:navigator.userAgent,deviceModel:`${Jt.osName}/${Jt.osVersion} ${Jt.browserName}/${Jt.fullBrowserVersion}`,hostAppVersion:`${Jt.browserName}/${Jt.fullBrowserVersion}`},deviceType:"browser",heartbeatCadence:2,serial:"",macAddress:""}),da={apiKeyAuthTokenCollection:{},sessionProperties:[],currentSessionData:null,sessionRestoreMode:!1,processingTransformedTemplate:null,nonce:void 0,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:null,modulesConfig:{},workflow:null,externalModules:[],serviceToken:void 0,startConfig:{},listener:()=>{}},Hc=(t,e)=>Y(I({},da),{setApiKeyAuthTokenCollection:(r,n,i)=>{t({apiKeyAuthTokenCollection:{authToken:n,apiKey:r,tokenExpiresAt:i}})},setSessionProperties:r=>{t({sessionProperties:r})},setServiceSessionToken:r=>{t({serviceToken:r})},setListener:r=>{t({listener:r})},getCurrentSessionDataLs:()=>{const r=Xi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,o=r&&r[n];return n&&o?{workflowId:n,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{Xi.setSessionIdWorkflowIdToLs(r.sessionId,r.workflowId),t(()=>({currentSessionData:r}))},removeCurrentSessionDataLsAndStore:()=>{const r=e().startConfig,n="apiKey"in r&&typeof r.apiKey=="string"?r.apiKey:"",i=e().workflowId;n?dr.removeAuthTokenLs(n):Xi.removeSessionIdWorkflowIdFromLS({workflowId:i}),t(()=>({currentSessionData:null})),t({_sessionIdFromUrl:null})},getCurrentSessionId(){const r=e().currentSessionData;return r?r.sessionId:null},setWorkflowId:r=>{t(()=>({workflowId:r}))},setWorkflow:r=>{t(()=>({workflow:r}))},setLayout:r=>{t(()=>({layout:r}))},setCurrentStepId:r=>{t(()=>({currentStepId:r}))},setSessionRestoreMode:r=>{t(()=>({sessionRestoreMode:r}))},setNonce:r=>{t(()=>({nonce:r}))},getNonce:()=>e().nonce,resetProps:()=>t(()=>I({},da)),setStartConfig:r=>{t(()=>({startConfig:r}))}});class be{constructor({errorCode:e,errorCodeKey:r,message:n,underlyingError:i,underlyingBaseError:o,domain:s,module:a,errorEnumName:l,shortDomainCode:u}){this.errorCode=e,this.errorCodeKey=r,this.message=n,this.underlyingError=i,this.underlyingBaseError=o,this.module=a,this.domain=s,this.errorEnumName=l,this.shortDomainCode=u}static getErrorKey(e,r){const n=Object.keys(r).find(i=>r[i]===e);if(!n)throw new Error(`Invalid errorCode: ${e} in enum`);return n}get lastUnderlyingError(){let e=this.underlyingBaseError;for(;(e==null?void 0:e.underlyingBaseError)instanceof be;)e=e.underlyingBaseError;return e==null?void 0:e.underlyingError}toObject(){const e={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 be&&(e.underlyingBaseError=this.underlyingBaseError.toObject()),e}get shortChain(){let e=`${this.shortDomainCode}:${this.errorCode}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.shortChain}`),e}get fullChain(){let e=`${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError?"-"+this.underlyingError:""}`;return this.underlyingBaseError instanceof be&&(e+=`-${this.underlyingBaseError.fullChain}`),e}}class ua extends HTMLElement{}function fa(t,e){if(e.displayName?console.log(`Register module: ${e.displayName}`):console.error('Missed "displayName" when register module'),e.getSupportedTemplates&&typeof e.getSupportedTemplates=="function"){const r=e.getSupportedTemplates();console.log(`${e==null?void 0:e.displayName} supported templates: ${r.join(", ")}`)}else console.error('Missed "getSupportedTemplates" method when register module');if(e.initialize&&typeof e.initialize=="function"||console.error(`${e==null?void 0:e.displayName} "initialize" method was not implemented`),e.deinitialize&&typeof e.deinitialize=="function"||console.error(`${e==null?void 0:e.displayName} "deinitialize" method was not implemented`),e.isReady&&typeof e.isReady=="function"||console.error(`${e==null?void 0:e.displayName} "isReady" method was not implemented`),e.getIdentifier&&typeof e.getIdentifier=="function"){const r=e.getIdentifier();console.log(`Module id: ${r}`)}else console.error('Missed "getIdentifier" when register module');customElements.get(e.getIdentifier())?console.log(`Module ${t} has already registered`):customElements.define(t,e),console.log("-------")}const Dt=class Dt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Wr);super({errorCode:e,errorCodeKey:o,errorEnumName:Dt.ERROR_ENUM_NAME,module:Dt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Dt.ERROR_ENUM_NAME,shortDomainCode:Dt.SHORT_CODE})}};Dt.MODULE=vt,Dt.ERROR_ENUM_NAME="InitializeError",Dt.SHORT_CODE="IN";let bn=Dt;const Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,_n);super({errorCode:e,errorCodeKey:o,errorEnumName:Mt.ERROR_ENUM_NAME,module:Mt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Mt.ERROR_ENUM_NAME,shortDomainCode:Mt.SHORT_CODE})}};Mt.MODULE=vt,Mt.ERROR_ENUM_NAME="TokenInitializeError",Mt.SHORT_CODE="TI";let Cn=Mt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,gt);super({errorCode:e,errorCodeKey:o,errorEnumName:Pt.ERROR_ENUM_NAME,module:Pt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Pt.ERROR_ENUM_NAME,shortDomainCode:Pt.SHORT_CODE})}};Pt.MODULE=vt,Pt.ERROR_ENUM_NAME="PrepareWorkflowError",Pt.SHORT_CODE="PW";let Rt=Pt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Ve);super({errorCode:e,errorCodeKey:o,errorEnumName:Ft.ERROR_ENUM_NAME,module:Ft.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ft.ERROR_ENUM_NAME,shortDomainCode:Ft.SHORT_CODE})}};Ft.MODULE=vt,Ft.ERROR_ENUM_NAME="ConfigureError",Ft.SHORT_CODE="CFG";let Be=Ft;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,We);super({errorCode:e,errorCodeKey:o,errorEnumName:Ut.ERROR_ENUM_NAME,module:Ut.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ut.ERROR_ENUM_NAME,shortDomainCode:Ut.SHORT_CODE})}};Ut.MODULE=vt,Ut.ERROR_ENUM_NAME="WorkflowError",Ut.SHORT_CODE="SC";let Ze=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Ot);super({errorCode:e,errorCodeKey:o,errorEnumName:Lt.ERROR_ENUM_NAME,module:Lt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Lt.ERROR_ENUM_NAME,shortDomainCode:Lt.SHORT_CODE})}};Lt.MODULE=vt,Lt.ERROR_ENUM_NAME="ConnectionError",Lt.SHORT_CODE="CO";let tn=Lt;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,it);super({errorCode:e,errorCodeKey:o,errorEnumName:Vt.ERROR_ENUM_NAME,module:Vt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Vt.ERROR_ENUM_NAME,shortDomainCode:Vt.SHORT_CODE})}};Vt.MODULE=vt,Vt.ERROR_ENUM_NAME="SessionError",Vt.SHORT_CODE="SE";let rn=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Zt);super({errorCode:e,errorCodeKey:o,errorEnumName:$t.ERROR_ENUM_NAME,module:$t.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:$t.ERROR_ENUM_NAME,shortDomainCode:$t.SHORT_CODE})}};$t.MODULE=vt,$t.ERROR_ENUM_NAME="StartSessionError",$t.SHORT_CODE="ST";let ur=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,jr);super({errorCode:e,errorCodeKey:o,errorEnumName:Bt.ERROR_ENUM_NAME,module:Bt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Bt.ERROR_ENUM_NAME,shortDomainCode:Bt.SHORT_CODE})}};Bt.MODULE=vt,Bt.ERROR_ENUM_NAME="DeinitializationError",Bt.SHORT_CODE="DE";let Sn=Bt;const Ht=class Ht extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,wt);super({errorCode:e,errorCodeKey:o,errorEnumName:Ht.ERROR_ENUM_NAME,module:Ht.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Ht.ERROR_ENUM_NAME,shortDomainCode:Ht.SHORT_CODE})}};Ht.MODULE=vt,Ht.ERROR_ENUM_NAME="WorkflowPlatformError",Ht.SHORT_CODE="WPE";let En=Ht;class Ir{constructor(){this.webSocket=null,this.callbacks=new Set,this.connected=!1}static getInstance(){return Ir.instance||(Ir.instance=new Ir),Ir.instance}isConnected(){return this.connected}connect({host:e,isSecure:r=!0,token:n,port:i}){return this.connected?Promise.resolve():new Promise(o=>{const s=`ws${r?"s":""}://${e}${i?`:${i}`:""}/ws/device?Authorization=Connection%20${n}`;this.webSocket=new WebSocket(s),this.webSocket.onopen=()=>{this.connected=!0,o()},this.webSocket.onerror=()=>o(),this.webSocket.onmessage=a=>{this.callbacks.forEach(l=>l(a.data))},this.webSocket.onclose=a=>{this.connected=!1,this.webSocket=null,console.log("Socket connection closed",a)}})}onMessage(e){this.callbacks.add(e)}clearSubscriptions(){this.callbacks.clear()}close(){var e;(e=this.webSocket)==null||e.close(),this.webSocket=null,this.connected=!1,this.callbacks.clear()}}const dt=Ir.getInstance();var Wc=0;function d(t,e,r,n,i,o){e||(e={});var s,a,l=e;if("ref"in l)for(a in l={},e)a=="ref"?s=e[a]:l[a]=e[a];var u={type:t,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wc,__i:-1,__u:0,__source:i,__self:o};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return se.vnode&&se.vnode(u),u}const eo=Ri(void 0),ha=({perform:t,children:e,setIsProcessingCallback:r})=>d(eo.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),fr=()=>{const t=Jr(eo);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},jc=()=>{const t=Jr(eo);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},zc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},ut={INFO:"INFO",INFO_DETAILS:"INFO_DETAILS",STATUS:"STATUS",PROGRESS:"PROGRESS",QUESTIONS:"QUESTIONS",CAMERA:"CAMERA",GALLERY:"GALLERY",GEOLOCATION:"GEOLOCATION"},Tn={LEFT:"LEFT",CENTER:"CENTER",RIGHT:"RIGHT"},In={ASPECT_FILL:"ASPECT_FILL",ASPECT_FIT:"ASPECT_FIT",FILL:"FILL"},Or={TEXT_EXPANDABLE:"text_expandable",TEXT_SINGLE_LINE:"text_single_line",SELECTOR_OPTIONS:"selector_options",SELECTOR_BUTTONS:"selector_buttons",SELECTOR_DROPDOWN:"selector_dropdown",MULTI_SELECTOR_DROPDOWN:"multi_selector_dropdown"},On={FREE_TEXT:"FREE_TEXT",EMAIL:"EMAIL",NUMBER:"NUMBER",SECURE:"SECURE"},nn="#005fcc",An="idv-gui",xn={DECODING_FAILED:"DECODING_FAILED"},to={text:"text",selector:"selector",multiSelector:"multiSelector"},pa={NOT_EMPTY:"notEmpty",REGEX:"regex"};function _a(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function ro(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?ro(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function Kc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Gc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function le(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const qc=(t,e)=>t.reduce((r,n)=>{var i,o,s;if(n.answerType===to.text&&(i=n.property)!=null&&i.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return Y(I({},r),{[n.id]:a.string})}if(n.answerType===to.selector&&(o=n.property)!=null&&o.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return Y(I({},r),{[n.id]:a.string})}if(n.answerType===to.multiSelector&&(s=n.property)!=null&&s.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.array)return Y(I({},r),{[n.id]:a.array})}return r},{}),ma=t=>new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;if(typeof i=="string"){const o=i.split(",")[1];e(o)}else r(new Error("Unexpected result type"))},n.onerror=()=>r(n.error),n.readAsDataURL(t)}),Zc=()=>P(null,null,function*(){try{return(yield navigator.mediaDevices.getUserMedia({video:!0})).getTracks().forEach(e=>e.stop()),"allowed"}catch(t){return(t==null?void 0:t.name)==="NotAllowedError"?"denied":"error"}}),Yc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),ga=({indicatorColor:t})=>{const e=st(null),r=le(t)||"#000000",n=60,i=5,o=.75,s=(n-i)/2,a=2*Math.PI*s,l=1-o,u=360/1e3;return ot(()=>{if(!e.current)return;let _=!0,h=0,c=performance.now();function y(g){if(!_)return;const f=g-c;c=g,h=(h+u*f)%360,e.current&&(e.current.style.transform=`rotate(${h}deg)`),requestAnimationFrame(y)}return requestAnimationFrame(y),()=>{_=!1}},[]),d("svg",{ref:e,width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:d("circle",{cx:n/2,cy:n/2,r:s,fill:"none",stroke:r,strokeWidth:i,strokeDasharray:`${a*o} ${a*l}`,strokeDashoffset:0,strokeLinecap:"butt",transform:`rotate(-45 ${n/2} ${n/2})`})})};function Jc({size:t,color:e}){return d("svg",{width:t||86,height:t||86,viewBox:"0 0 87 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("ellipse",{cx:"43.4053",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43.4053 43)",stroke:"#FF3B30",strokeWidth:"3"}),d("path",{d:"M56.9053 29L29.4053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M29.4053 29L56.9053 56.5",stroke:e||"#FF3B30",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Xc({size:t}){return d("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"24.5",cy:"24",r:"18",stroke:"#0E1F97",strokeWidth:"3"}),d("path",{d:"M17.3803 18.3406V29.2496H15.0739V20.5298H15.0099L12.5117 22.0959V20.0504L15.2124 18.3406H17.3803Z",fill:"#0E1F97"}),d("path",{d:"M23.2927 29.3988C22.4724 29.3988 21.7426 29.2656 21.1034 28.9993C20.4678 28.7294 19.9688 28.3619 19.6066 27.8967C19.2444 27.4315 19.0633 26.9041 19.0633 26.3146C19.0633 25.8601 19.1663 25.4428 19.3722 25.0629C19.5818 24.6793 19.8659 24.3615 20.2245 24.1094C20.5832 23.8537 20.9845 23.6903 21.4284 23.6193V23.5447C20.846 23.4276 20.3737 23.1452 20.0115 22.6978C19.6492 22.2468 19.4681 21.723 19.4681 21.1264C19.4681 20.5618 19.6333 20.0593 19.9635 19.619C20.2938 19.1751 20.7465 18.8271 21.3218 18.5749C21.9007 18.3192 22.5576 18.1914 23.2927 18.1914C24.0278 18.1914 24.683 18.3192 25.2583 18.5749C25.8371 18.8306 26.2916 19.1804 26.6219 19.6243C26.9521 20.0646 27.1191 20.5653 27.1226 21.1264C27.1191 21.7266 26.9344 22.2504 26.5686 22.6978C26.2029 23.1452 25.7341 23.4276 25.1624 23.5447V23.6193C25.5992 23.6903 25.9951 23.8537 26.3502 24.1094C26.7089 24.3615 26.993 24.6793 27.2025 25.0629C27.4156 25.4428 27.5239 25.8601 27.5274 26.3146C27.5239 26.9041 27.341 27.4315 26.9788 27.8967C26.6166 28.3619 26.1159 28.7294 25.4767 28.9993C24.841 29.2656 24.113 29.3988 23.2927 29.3988ZM23.2927 27.7049C23.6585 27.7049 23.9781 27.6392 24.2515 27.5078C24.5249 27.3729 24.738 27.1882 24.8907 26.9538C25.047 26.7159 25.1251 26.4425 25.1251 26.1335C25.1251 25.8175 25.0452 25.5387 24.8854 25.2972C24.7256 25.0522 24.509 24.8604 24.2355 24.7219C23.9621 24.5799 23.6478 24.5089 23.2927 24.5089C22.9411 24.5089 22.6269 24.5799 22.3499 24.7219C22.0729 24.8604 21.8545 25.0522 21.6947 25.2972C21.5384 25.5387 21.4603 25.8175 21.4603 26.1335C21.4603 26.4425 21.5367 26.7159 21.6894 26.9538C21.8421 27.1882 22.0569 27.3729 22.3339 27.5078C22.6109 27.6392 22.9305 27.7049 23.2927 27.7049ZM23.2927 22.831C23.5981 22.831 23.8698 22.7688 24.1077 22.6445C24.3456 22.5202 24.532 22.348 24.667 22.1278C24.8019 21.9077 24.8694 21.6538 24.8694 21.3661C24.8694 21.082 24.8019 20.8335 24.667 20.6204C24.532 20.4038 24.3474 20.2351 24.113 20.1143C23.8786 19.9901 23.6052 19.9279 23.2927 19.9279C22.9838 19.9279 22.7103 19.9901 22.4724 20.1143C22.2345 20.2351 22.048 20.4038 21.9131 20.6204C21.7817 20.8335 21.716 21.082 21.716 21.3661C21.716 21.6538 21.7835 21.9077 21.9184 22.1278C22.0534 22.348 22.2398 22.5202 22.4777 22.6445C22.7156 22.7688 22.9873 22.831 23.2927 22.831Z",fill:"#0E1F97"}),d("path",{d:"M31.65 27.5877V20.0451H33.557V27.5877H31.65ZM28.8322 24.7699V22.8629H36.3748V24.7699H28.8322Z",fill:"#0E1F97"})]})}function Qc({size:t,color:e}){return d("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M14.3976 12.2816C14.2402 12.2816 14.0863 12.235 13.9555 12.1478C13.8246 12.0605 13.7225 11.9364 13.6623 11.7913C13.602 11.6461 13.5862 11.4864 13.6169 11.3322C13.6476 11.1781 13.7234 11.0365 13.8346 10.9254C13.9459 10.8143 14.0877 10.7386 14.242 10.7079C14.3964 10.6772 14.5564 10.6929 14.7018 10.753C14.8473 10.8131 14.9716 10.9149 15.059 11.0456C15.1465 11.1762 15.1932 11.3298 15.1932 11.4869C15.193 11.6976 15.1091 11.8995 14.9599 12.0485C14.8108 12.1974 14.6086 12.2813 14.3976 12.2816ZM5.60241 12.2816C5.44501 12.2816 5.29115 12.235 5.16026 12.1478C5.02938 12.0605 4.92736 11.9364 4.8671 11.7913C4.80684 11.6461 4.79105 11.4864 4.82173 11.3322C4.85241 11.1781 4.92817 11.0365 5.03944 10.9254C5.15071 10.8143 5.2925 10.7386 5.44686 10.7079C5.60122 10.6772 5.76123 10.6929 5.90665 10.753C6.05207 10.8131 6.17638 10.9149 6.26384 11.0456C6.35131 11.1762 6.39801 11.3298 6.39804 11.4869C6.39784 11.6976 6.31396 11.8995 6.1648 12.0485C6.01564 12.1975 5.81339 12.2813 5.60241 12.2816ZM14.6829 7.4962L16.2732 4.74639C16.2949 4.70883 16.309 4.66736 16.3147 4.62435C16.3204 4.58134 16.3176 4.53763 16.3064 4.49571C16.2952 4.4538 16.2758 4.41451 16.2493 4.38007C16.2229 4.34564 16.1899 4.31674 16.1523 4.29502C16.1147 4.27331 16.0732 4.2592 16.0301 4.25352C15.987 4.24783 15.9432 4.25067 15.9012 4.26187C15.8592 4.27308 15.8199 4.29243 15.7854 4.31882C15.7509 4.34521 15.722 4.37813 15.7002 4.41569L14.0899 7.20023C12.8585 6.63913 11.4755 6.32669 9.99985 6.32669C8.52419 6.32669 7.14135 6.63958 5.90995 7.20023L4.29979 4.41569C4.27807 4.37812 4.24915 4.34519 4.21468 4.31877C4.18021 4.29236 4.14087 4.27299 4.0989 4.26175C4.05694 4.25052 4.01316 4.24765 3.97009 4.25331C3.92701 4.25897 3.88547 4.27304 3.84784 4.29472C3.8102 4.31641 3.77722 4.34528 3.75077 4.37969C3.72431 4.4141 3.7049 4.45338 3.69365 4.49528C3.6824 4.53718 3.67953 4.58088 3.68519 4.62389C3.69086 4.6669 3.70496 4.70837 3.72668 4.74594L5.31705 7.4962C2.5863 8.97904 0.718522 11.739 0.445312 14.9999H19.5547C19.2812 11.739 17.4135 8.97904 14.6829 7.4962Z",fill:e||"#626262"})})}function ed({size:t}){return d("svg",{width:t||20,height:t||20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8697 8.22896C14.0747 8.43399 14.0747 8.7664 13.8697 8.97143L9.99844 12.8427L6.12721 8.97143C5.92218 8.7664 5.92218 8.43399 6.12721 8.22896C6.33223 8.02394 6.66464 8.02394 6.86967 8.22896L9.99844 11.3577L13.1272 8.22896C13.3322 8.02394 13.6646 8.02394 13.8697 8.22896Z",fill:"#787878"})})}const td=({size:t,color:e})=>d("svg",{width:t||20,height:t||20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{clipPath:"url(#clip0_6789_106796)",children:d("path",{d:"M18.1829 14.9885C17.9034 15.6343 17.5725 16.2288 17.1892 16.7753C16.6667 17.5204 16.2389 18.0362 15.9092 18.3226C15.3981 18.7927 14.8505 19.0334 14.2641 19.0471C13.8432 19.0471 13.3355 18.9273 12.7445 18.6843C12.1517 18.4424 11.6068 18.3226 11.1086 18.3226C10.5861 18.3226 10.0257 18.4424 9.42633 18.6843C8.82603 18.9273 8.34243 19.054 7.97269 19.0665C7.41037 19.0905 6.84988 18.8429 6.29042 18.3226C5.93334 18.0111 5.48671 17.4771 4.95166 16.7206C4.37759 15.9127 3.90563 14.9759 3.53589 13.908C3.13991 12.7544 2.94141 11.6373 2.94141 10.5559C2.94141 9.31706 3.20904 8.24861 3.74512 7.35325C4.16643 6.63407 4.72692 6.06675 5.42841 5.65028C6.12991 5.23381 6.88787 5.02158 7.70414 5.008C8.15077 5.008 8.73647 5.14618 9.46432 5.41774C10.1901 5.69022 10.6561 5.82839 10.8605 5.82839C11.0132 5.82839 11.5309 5.66682 12.4086 5.34471C13.2385 5.046 13.939 4.92231 14.5128 4.97103C16.0678 5.09654 17.236 5.70961 18.0129 6.81412C16.6222 7.65688 15.9343 8.83726 15.948 10.3515C15.9605 11.531 16.3883 12.5125 17.2291 13.2918C17.6102 13.6535 18.0357 13.9331 18.5091 14.1316C18.4065 14.4294 18.2981 14.7147 18.1829 14.9885ZM14.6166 0.952815C14.6166 1.87728 14.279 2.74045 13.6059 3.53939C12.7936 4.48918 11.8111 5.03801 10.7457 4.9514C10.7321 4.8405 10.7242 4.72377 10.7242 4.60111C10.7242 3.71363 11.1105 2.76384 11.7965 1.98726C12.139 1.59407 12.5746 1.26713 13.1028 1.00633C13.6298 0.749416 14.1284 0.607338 14.5972 0.583008C14.6109 0.706594 14.6166 0.830189 14.6166 0.952803V0.952815Z",fill:e||"#626262"})}),d("defs",{children:d("clipPath",{id:"clip0_6789_106796",children:d("rect",{width:"19.4597",height:"19.458",fill:"white",transform:"translate(0.996094)"})})})]});function rd({size:t}){return d("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M20 12H6",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M13 19L6 12L13 5",stroke:"#8C8C8C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function nd({size:t}){return d("svg",{width:t||48,height:t||48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M8.25 37.5C7.69772 37.5 7.25 37.0523 7.25 36.5L7.25 13C7.25 12.4477 7.69771 12 8.25 12L40.75 12C41.3023 12 41.75 12.4477 41.75 13L41.75 36.5C41.75 37.0523 41.3023 37.5 40.75 37.5L8.25 37.5Z",stroke:"#0E1F97",strokeWidth:"3"}),d("path",{d:"M24.5 29.5C21.8766 29.5 19.75 27.3734 19.75 24.75C19.75 22.1266 21.8766 20 24.5 20C27.1234 20 29.25 22.1266 29.25 24.75C29.25 27.3734 27.1234 29.5 24.5 29.5Z",stroke:"#0E1F97",strokeWidth:"4"}),d("rect",{x:"6.5",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"}),d("rect",{x:"29.9004",y:"23.3999",width:"12",height:"2.4",fill:"#0E1F97"})]})}function id({size:t,color:e}){return d("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M12 23C18.0746 23 23 18.0746 23 12C23 5.92545 18.0746 1 12 0.999999C5.92545 0.999999 1 5.92545 1 12C1 18.0746 5.92545 23 12 23ZM12 2.86607C17.0433 2.86607 21.1339 6.9567 21.1339 12C21.1339 17.0433 17.0433 21.1339 12 21.1339C6.9567 21.1339 2.86607 17.0433 2.86607 12C2.86607 6.9567 6.9567 2.86607 12 2.86607Z",fill:e||"#8C8C8C"}),d("path",{d:"M13 7C13 6.73478 12.8946 6.48043 12.7071 6.29289C12.5196 6.10536 12.2652 6 12 6C11.7348 6 11.4804 6.10536 11.2929 6.29289C11.1054 6.48043 11 6.73478 11 7C11 7.26522 11.1054 7.51957 11.2929 7.70711C11.4804 7.89464 11.7348 8 12 8C12.2652 8 12.5196 7.89464 12.7071 7.70711C12.8946 7.51957 13 7.26522 13 7Z",fill:e||"#8C8C8C"}),d("rect",{x:"13",y:"18",width:"2",height:"8",transform:"rotate(-180 13 18)",fill:"#8C8C8C"})]})}function od({size:t}){return d("svg",{width:t||24,height:t||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("rect",{x:"12.5",y:"1.5",width:"10",height:"21",rx:"1.5",stroke:"#8C8C8C"}),d("path",{d:"M1 10.5C0.723858 10.5 0.5 10.7239 0.5 11C0.5 11.2761 0.723858 11.5 1 11.5V10.5ZM9.35355 11.3536C9.54882 11.1583 9.54882 10.8417 9.35355 10.6464L6.17157 7.46447C5.97631 7.2692 5.65973 7.2692 5.46447 7.46447C5.2692 7.65973 5.2692 7.97631 5.46447 8.17157L8.29289 11L5.46447 13.8284C5.2692 14.0237 5.2692 14.3403 5.46447 14.5355C5.65973 14.7308 5.97631 14.7308 6.17157 14.5355L9.35355 11.3536ZM1 11.5H9V10.5H1V11.5Z",fill:"#8C8C8C"}),d("path",{d:"M15 2H20C20 2.55228 19.5523 3 19 3H16C15.4477 3 15 2.55228 15 2Z",fill:"#8C8C8C"}),d("circle",{cx:"17.5",cy:"20",r:"1",fill:"#8C8C8C"})]})}function sd({size:t}){return d("svg",{width:t||48,height:t||48,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"15.5004",cy:"10.8002",r:"3.6",stroke:"#0E1F97",strokeWidth:"3"}),d("circle",{cx:"35.2998",cy:"19.7998",r:"3",stroke:"#0E1F97",strokeWidth:"3"}),d("path",{d:"M28.0146 20.3999C29.2496 18.4972 30.705 17.9696 32.2994 18.2728M42.5841 20.3999C41.3491 18.4972 39.8938 17.9696 38.2994 18.2728",stroke:"#0E1F97",strokeWidth:"3"}),d("path",{d:"M12.5 41.7002V30.6002H9.5V19.2002H21.5V30.6002H18.5V41.7002",stroke:"#0E1F97",strokeWidth:"3"}),d("path",{d:"M32.2998 41.7001V37.2001H29.2998L33.4998 27.6001H37.0998L41.2998 37.2001H38.2998V41.7001",stroke:"#0E1F97",strokeWidth:"3"})]})}const wa=({size:t,color:e})=>d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t||24,height:t||24,fill:e||"rgba(0,0,0,0.6)",children:d("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),ad=({size:t,color:e})=>d("svg",{width:t?t*3:39,height:t||13,viewBox:"0 0 39 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M5.88952 5.98264C6.70681 5.48369 7.28459 4.49575 7.28459 3.40906C7.28459 1.34699 5.65607 0 3.60916 0C1.56225 0 0 1.34743 0 3.67543V5.42175H1.49815V3.675C1.49815 2.27819 2.44624 1.49642 3.61046 1.49642C4.77468 1.49642 5.60583 2.29465 5.60583 3.40906C5.60583 4.52347 4.70798 5.42132 3.54376 5.42132H1.49815V9.21326H2.995V6.75186H3.57711C5.04061 6.75186 6.00516 7.88272 6.03851 9.21326H7.60163C7.57391 7.89658 6.94373 6.56778 5.89082 5.98264",fill:e||"#8C8C8C"}),d("path",{d:"M37.5857 2.6262V3.57429C37.1863 2.97573 36.4877 2.57812 35.4902 2.57812C33.6608 2.57812 32.2969 4.04163 32.2969 5.92092C32.2969 7.78332 33.6608 9.26371 35.4902 9.26371C36.4379 9.26371 37.1201 8.88127 37.5857 8.29916V9.21391H38.9994V2.6262H37.5857ZM35.6566 7.83183C34.592 7.83183 33.8271 7.00025 33.8271 5.91919C33.8271 4.83813 34.592 4.00654 35.6566 4.00654C36.7212 4.00654 37.5025 4.83813 37.5025 5.91919C37.5025 7.00025 36.7229 7.83183 35.6566 7.83183Z",fill:e||"#8C8C8C"}),d("path",{d:"M27.5078 6.0384C27.5078 7.33559 26.8426 7.81808 25.9945 7.81808C25.1465 7.81808 24.4812 7.33559 24.4812 6.0384V2.62891H22.9844V5.9717C22.9844 8.16717 24.1152 9.26339 25.9945 9.26339C27.8738 9.26339 29.0047 8.16587 29.0047 5.9717V2.62891H27.5078V6.0384Z",fill:e||"#8C8C8C"}),d("path",{d:"M11.2922 2.57812C9.44578 2.57812 8.01562 4.09143 8.01562 5.93781C8.01562 7.78419 9.44491 9.26371 11.342 9.26371C12.4893 9.26371 13.3209 8.86481 14.003 8.14974L13.1879 7.18519C12.7388 7.58409 12.1735 7.86691 11.3753 7.86691C10.5771 7.86691 9.82865 7.46758 9.59693 6.60264H14.5184C14.578 6.34086 14.6059 6.07286 14.6016 5.80441C14.6016 3.94201 13.1381 2.57812 11.2922 2.57812ZM9.51248 5.42197C9.71214 4.55574 10.4437 3.97536 11.3749 3.97536C12.3061 3.97536 12.938 4.54058 13.1212 5.42197H9.51248Z",fill:e||"#8C8C8C"}),d("path",{d:"M31.4988 0.0664062H30.002V9.2134H31.4988V0.0664062Z",fill:e||"#8C8C8C"}),d("path",{d:"M20.572 3.57429C20.2394 3.00864 19.4745 2.57812 18.4766 2.57812C16.7302 2.57812 15.2832 4.04163 15.2832 5.92092C15.2832 7.78332 16.7302 9.21261 18.4766 9.21261C19.4247 9.21261 20.0232 8.92978 20.4888 8.34637V8.94537C20.4888 10.2426 19.5741 10.7082 18.6927 10.7082C17.8113 10.7082 17.1127 10.275 16.9797 9.32782H15.5162C15.5829 10.991 16.913 12.0565 18.6927 12.0565C20.4724 12.0565 21.9844 11.0421 21.9844 8.84662V2.6262H20.572V3.57429ZM18.6429 7.78202C17.5783 7.78202 16.8134 7.00025 16.8134 5.91962C16.8134 4.839 17.5783 4.00698 18.6429 4.00698C19.7075 4.00698 20.4888 4.83856 20.4888 5.91962C20.4888 7.00068 19.7071 7.78202 18.6429 7.78202Z",fill:e||"#8C8C8C"})]});function ld({size:t,color:e}){return d("svg",{width:t||86,height:t||86,viewBox:"0 0 86 86",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("ellipse",{cx:"43",cy:"43",rx:"40",ry:"40",transform:"rotate(90 43 43)",stroke:e||"#FCB937",strokeWidth:"3"}),d("path",{d:"M40.8789 48.5352L40.5859 25H44.9805L44.6875 48.5352H40.8789ZM42.7832 60.4736C42.002 60.4736 41.3428 60.2051 40.8057 59.668C40.2686 59.1309 40 58.4717 40 57.6904C40 56.8929 40.2686 56.2337 40.8057 55.7129C41.3428 55.1758 42.002 54.9072 42.7832 54.9072C43.5807 54.9072 44.2399 55.1758 44.7607 55.7129C45.2979 56.2337 45.5664 56.8929 45.5664 57.6904C45.5664 58.4717 45.2979 59.1309 44.7607 59.668C44.2399 60.2051 43.5807 60.4736 42.7832 60.4736Z",fill:e||"#FCB937"})]})}function cd(){return d("svg",{width:"113",height:"16",viewBox:"0 0 113 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M1.35197 12V3.27273H4.6247C5.29515 3.27273 5.85765 3.39773 6.3122 3.64773C6.76958 3.89773 7.11475 4.24148 7.34771 4.67898C7.5835 5.11364 7.7014 5.60795 7.7014 6.16193C7.7014 6.72159 7.5835 7.21875 7.34771 7.65341C7.11191 8.08807 6.7639 8.4304 6.30367 8.6804C5.84345 8.92756 5.27668 9.05114 4.60339 9.05114H2.43435V7.75142H4.39032C4.78237 7.75142 5.10339 7.68324 5.35339 7.54688C5.60339 7.41051 5.78805 7.22301 5.90737 6.98438C6.02953 6.74574 6.0906 6.47159 6.0906 6.16193C6.0906 5.85227 6.02953 5.57955 5.90737 5.34375C5.78805 5.10795 5.60197 4.92472 5.34913 4.79403C5.09913 4.66051 4.77668 4.59375 4.3818 4.59375H2.93293V12H1.35197ZM11.6478 12.1278C11.0086 12.1278 10.4546 11.9872 9.98587 11.706C9.51712 11.4247 9.15349 11.0312 8.89497 10.5256C8.63928 10.0199 8.51144 9.42898 8.51144 8.75284C8.51144 8.0767 8.63928 7.48437 8.89497 6.97585C9.15349 6.46733 9.51712 6.07244 9.98587 5.79119C10.4546 5.50994 11.0086 5.36932 11.6478 5.36932C12.287 5.36932 12.841 5.50994 13.3097 5.79119C13.7785 6.07244 14.1407 6.46733 14.3964 6.97585C14.6549 7.48437 14.7842 8.0767 14.7842 8.75284C14.7842 9.42898 14.6549 10.0199 14.3964 10.5256C14.1407 11.0312 13.7785 11.4247 13.3097 11.706C12.841 11.9872 12.287 12.1278 11.6478 12.1278ZM11.6563 10.892C12.0029 10.892 12.2927 10.7969 12.5256 10.6065C12.7586 10.4134 12.9319 10.1548 13.0455 9.83097C13.162 9.5071 13.2202 9.14631 13.2202 8.74858C13.2202 8.34801 13.162 7.9858 13.0455 7.66193C12.9319 7.33523 12.7586 7.07528 12.5256 6.8821C12.2927 6.68892 12.0029 6.59233 11.6563 6.59233C11.3012 6.59233 11.0058 6.68892 10.77 6.8821C10.537 7.07528 10.3623 7.33523 10.2458 7.66193C10.1322 7.9858 10.0754 8.34801 10.0754 8.74858C10.0754 9.14631 10.1322 9.5071 10.2458 9.83097C10.3623 10.1548 10.537 10.4134 10.77 10.6065C11.0058 10.7969 11.3012 10.892 11.6563 10.892ZM17.1368 12L15.2874 5.45455H16.8598L18.0104 10.0568H18.0701L19.2462 5.45455H20.8016L21.9777 10.0312H22.0417L23.1752 5.45455H24.7519L22.8982 12H21.2917L20.0644 7.5767H19.9749L18.7476 12H17.1368ZM28.4192 12.1278C27.7629 12.1278 27.1962 11.9915 26.7189 11.7188C26.2445 11.4432 25.8794 11.054 25.6237 10.5511C25.368 10.0455 25.2402 9.45028 25.2402 8.76562C25.2402 8.09233 25.368 7.50142 25.6237 6.9929C25.8822 6.48153 26.243 6.08381 26.7061 5.79972C27.1692 5.51278 27.7132 5.36932 28.3382 5.36932C28.7416 5.36932 29.1223 5.43466 29.4802 5.56534C29.841 5.69318 30.1592 5.89205 30.4348 6.16193C30.7132 6.43182 30.932 6.77557 31.091 7.19318C31.2501 7.60795 31.3297 8.10227 31.3297 8.67614V9.14915H25.9646V8.10938H29.851C29.8481 7.81392 29.7842 7.55114 29.6592 7.32102C29.5342 7.08807 29.3595 6.90483 29.1351 6.77131C28.9135 6.63778 28.655 6.57102 28.3595 6.57102C28.0442 6.57102 27.7672 6.64773 27.5285 6.80114C27.2899 6.9517 27.1038 7.15057 26.9703 7.39773C26.8396 7.64205 26.7729 7.91051 26.77 8.20312V9.1108C26.77 9.49148 26.8396 9.81818 26.9788 10.0909C27.118 10.3608 27.3126 10.5682 27.5626 10.7131C27.8126 10.8551 28.1052 10.9261 28.4405 10.9261C28.6649 10.9261 28.868 10.8949 29.0499 10.8324C29.2317 10.767 29.3893 10.6719 29.5229 10.5469C29.6564 10.4219 29.7572 10.267 29.8254 10.0824L31.2658 10.2443C31.1749 10.625 31.0016 10.9574 30.7459 11.2415C30.493 11.5227 30.1692 11.7415 29.7743 11.8977C29.3794 12.0511 28.9277 12.1278 28.4192 12.1278ZM32.5147 12V5.45455H34.0105V6.54545H34.0786C34.198 6.16761 34.4025 5.87642 34.6923 5.67188C34.9849 5.46449 35.3187 5.3608 35.6937 5.3608C35.7789 5.3608 35.8741 5.36506 35.9792 5.37358C36.0872 5.37926 36.1767 5.3892 36.2477 5.40341V6.82244C36.1823 6.79972 36.0786 6.77983 35.9366 6.76278C35.7974 6.7429 35.6625 6.73295 35.5318 6.73295C35.2505 6.73295 34.9977 6.79403 34.7732 6.91619C34.5517 7.03551 34.3769 7.2017 34.2491 7.41477C34.1213 7.62784 34.0573 7.87358 34.0573 8.15199V12H32.5147ZM39.7807 12.1278C39.1245 12.1278 38.5577 11.9915 38.0804 11.7188C37.606 11.4432 37.241 11.054 36.9853 10.5511C36.7296 10.0455 36.6018 9.45028 36.6018 8.76562C36.6018 8.09233 36.7296 7.50142 36.9853 6.9929C37.2438 6.48153 37.6046 6.08381 38.0677 5.79972C38.5307 5.51278 39.0748 5.36932 39.6998 5.36932C40.1032 5.36932 40.4839 5.43466 40.8418 5.56534C41.2026 5.69318 41.5208 5.89205 41.7964 6.16193C42.0748 6.43182 42.2935 6.77557 42.4526 7.19318C42.6117 7.60795 42.6912 8.10227 42.6912 8.67614V9.14915H37.3262V8.10938H41.2126C41.2097 7.81392 41.1458 7.55114 41.0208 7.32102C40.8958 7.08807 40.7211 6.90483 40.4966 6.77131C40.2751 6.63778 40.0165 6.57102 39.7211 6.57102C39.4057 6.57102 39.1287 6.64773 38.8901 6.80114C38.6515 6.9517 38.4654 7.15057 38.3319 7.39773C38.2012 7.64205 38.1344 7.91051 38.1316 8.20312V9.1108C38.1316 9.49148 38.2012 9.81818 38.3404 10.0909C38.4796 10.3608 38.6742 10.5682 38.9242 10.7131C39.1742 10.8551 39.4668 10.9261 39.802 10.9261C40.0265 10.9261 40.2296 10.8949 40.4114 10.8324C40.5932 10.767 40.7509 10.6719 40.8844 10.5469C41.0179 10.4219 41.1188 10.267 41.187 10.0824L42.6273 10.2443C42.5364 10.625 42.3631 10.9574 42.1074 11.2415C41.8546 11.5227 41.5307 11.7415 41.1358 11.8977C40.741 12.0511 40.2893 12.1278 39.7807 12.1278ZM46.3053 12.1151C45.7911 12.1151 45.3308 11.983 44.9246 11.7188C44.5183 11.4545 44.1973 11.071 43.9615 10.5682C43.7257 10.0653 43.6078 9.45455 43.6078 8.7358C43.6078 8.00852 43.7271 7.39489 43.9658 6.89489C44.2073 6.39205 44.5325 6.01278 44.9416 5.7571C45.3507 5.49858 45.8067 5.36932 46.3095 5.36932C46.693 5.36932 47.0084 5.43466 47.2555 5.56534C47.5027 5.69318 47.6987 5.84801 47.8436 6.02983C47.9885 6.20881 48.1007 6.37784 48.1803 6.53693H48.2442V3.27273H49.7911V12H48.274V10.9688H48.1803C48.1007 11.1278 47.9857 11.2969 47.8351 11.4759C47.6845 11.652 47.4857 11.8026 47.2385 11.9276C46.9913 12.0526 46.6803 12.1151 46.3053 12.1151ZM46.7357 10.8494C47.0624 10.8494 47.3408 10.7614 47.5709 10.5852C47.801 10.4062 47.9757 10.1577 48.095 9.83949C48.2144 9.52131 48.274 9.15057 48.274 8.72727C48.274 8.30398 48.2144 7.93608 48.095 7.62358C47.9786 7.31108 47.8053 7.06818 47.5751 6.89489C47.3479 6.72159 47.068 6.63494 46.7357 6.63494C46.3919 6.63494 46.105 6.72443 45.8749 6.90341C45.6448 7.08239 45.4715 7.32955 45.355 7.64489C45.2385 7.96023 45.1803 8.32102 45.1803 8.72727C45.1803 9.13636 45.2385 9.50142 45.355 9.82244C45.4743 10.1406 45.649 10.392 45.8791 10.5767C46.1121 10.7585 46.3976 10.8494 46.7357 10.8494ZM54.2396 12V3.27273H55.7822V6.53693H55.8462C55.9257 6.37784 56.0379 6.20881 56.1828 6.02983C56.3277 5.84801 56.5237 5.69318 56.7709 5.56534C57.018 5.43466 57.3334 5.36932 57.7169 5.36932C58.2226 5.36932 58.6785 5.49858 59.0848 5.7571C59.4939 6.01278 59.8178 6.39205 60.0564 6.89489C60.2979 7.39489 60.4186 8.00852 60.4186 8.7358C60.4186 9.45455 60.3007 10.0653 60.0649 10.5682C59.8291 11.071 59.5081 11.4545 59.1018 11.7188C58.6956 11.983 58.2354 12.1151 57.7212 12.1151C57.3462 12.1151 57.0351 12.0526 56.7879 11.9276C56.5408 11.8026 56.3419 11.652 56.1913 11.4759C56.0436 11.2969 55.9285 11.1278 55.8462 10.9688H55.7567V12H54.2396ZM55.7524 8.72727C55.7524 9.15057 55.8121 9.52131 55.9314 9.83949C56.0535 10.1577 56.2283 10.4062 56.4555 10.5852C56.6856 10.7614 56.9641 10.8494 57.2908 10.8494C57.6317 10.8494 57.9172 10.7585 58.1473 10.5767C58.3774 10.392 58.5507 10.1406 58.6672 9.82244C58.7865 9.50142 58.8462 9.13636 58.8462 8.72727C58.8462 8.32102 58.7879 7.96023 58.6714 7.64489C58.555 7.32955 58.3817 7.08239 58.1516 6.90341C57.9214 6.72443 57.6345 6.63494 57.2908 6.63494C56.9612 6.63494 56.6814 6.72159 56.4513 6.89489C56.2212 7.06818 56.0464 7.31108 55.9271 7.62358C55.8106 7.93608 55.7524 8.30398 55.7524 8.72727ZM62.3462 14.4545C62.136 14.4545 61.9414 14.4375 61.7624 14.4034C61.5862 14.3722 61.4456 14.3352 61.3405 14.2926L61.6985 13.0909C61.9229 13.1563 62.1232 13.1875 62.2993 13.1847C62.4754 13.1818 62.6303 13.1264 62.7638 13.0185C62.9002 12.9134 63.0152 12.7372 63.109 12.4901L63.2411 12.1364L60.8675 5.45455H62.5039L64.0124 10.3977H64.0806L65.5933 5.45455H67.234L64.6132 12.7926C64.4911 13.1392 64.3291 13.4361 64.1274 13.6832C63.9257 13.9332 63.6786 14.1236 63.386 14.2543C63.0962 14.3878 62.7496 14.4545 62.3462 14.4545Z",fill:"#8C8C8C"}),d("path",{d:"M77.3427 8.45085C78.2228 7.91285 78.8451 6.84759 78.8451 5.67586C78.8451 3.45241 77.0913 2 74.8869 2C72.6825 2 71 3.45288 71 5.96307V7.84606H72.6134V5.9626C72.6134 4.45649 73.6345 3.61353 74.8883 3.61353C76.142 3.61353 77.0371 4.47423 77.0371 5.67586C77.0371 6.87748 76.0702 7.8456 74.8164 7.8456H72.6134V11.9343H74.2254V9.28026H74.8523C76.4284 9.28026 77.4672 10.4996 77.5031 11.9343H79.1865C79.1567 10.5146 78.478 9.08178 77.3441 8.45085",fill:"#BD7DFF"}),d("path",{d:"M111.477 4.83175V5.85404C111.047 5.20862 110.295 4.77991 109.221 4.77991C107.251 4.77991 105.782 6.35794 105.782 8.38431C105.782 10.3925 107.251 11.9887 109.221 11.9887C110.241 11.9887 110.976 11.5763 111.477 10.9487V11.935H113V4.83175H111.477ZM109.4 10.4448C108.253 10.4448 107.43 9.54811 107.43 8.38244C107.43 7.21678 108.253 6.32012 109.4 6.32012C110.546 6.32012 111.388 7.21678 111.388 8.38244C111.388 9.54811 110.548 10.4448 109.4 10.4448Z",fill:"#BD7DFF"}),d("path",{d:"M100.624 8.51104C100.624 9.90974 99.908 10.43 98.9947 10.43C98.0814 10.43 97.3649 9.90974 97.3649 8.51104V4.83472H95.7529V8.43912C95.7529 10.8064 96.9708 11.9884 98.9947 11.9884C101.019 11.9884 102.236 10.805 102.236 8.43912V4.83472H100.624V8.51104Z",fill:"#BD7DFF"}),d("path",{d:"M83.161 4.77991C81.1725 4.77991 79.6323 6.41165 79.6323 8.40252C79.6323 10.3934 81.1716 11.9887 83.2146 11.9887C84.4502 11.9887 85.3458 11.5586 86.0804 10.7876L85.2026 9.74752C84.7189 10.1776 84.1102 10.4826 83.2505 10.4826C82.3909 10.4826 81.5848 10.052 81.3353 9.11939H86.6355C86.6996 8.83711 86.7297 8.54814 86.725 8.25869C86.725 6.25053 85.1489 4.77991 83.161 4.77991ZM81.2443 7.84631C81.4594 6.91229 82.2472 6.28649 83.25 6.28649C84.2529 6.28649 84.9334 6.89594 85.1307 7.84631H81.2443Z",fill:"#BD7DFF"}),d("path",{d:"M104.923 2.07153H103.311V11.9344H104.923V2.07153Z",fill:"#BD7DFF"}),d("path",{d:"M93.1547 5.85404C92.7965 5.24412 91.9727 4.77991 90.8981 4.77991C89.0174 4.77991 87.459 6.35794 87.459 8.38431C87.459 10.3925 89.0174 11.9336 90.8981 11.9336C91.9191 11.9336 92.5637 11.6287 93.0651 10.9996V11.6455C93.0651 13.0442 92.08 13.5462 91.1308 13.5462C90.1816 13.5462 89.4292 13.0792 89.286 12.0578H87.7099C87.7818 13.8512 89.2142 15 91.1308 15C93.0474 15 94.6758 13.9063 94.6758 11.539V4.83175H93.1547V5.85404ZM91.0772 10.3911C89.9307 10.3911 89.1069 9.54811 89.1069 8.38291C89.1069 7.21772 89.9307 6.32058 91.0772 6.32058C92.2237 6.32058 93.0651 7.21725 93.0651 8.38291C93.0651 9.54858 92.2232 10.3911 91.0772 10.3911Z",fill:"#BD7DFF"})]})}const dd=({size:t=100,color:e="#5DA600"})=>d("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("ellipse",{cx:"50.0001",cy:"49.9999",rx:"46.5116",ry:"46.5116",transform:"rotate(90 50.0001 49.9999)",stroke:e,strokeWidth:"3.48837"}),d("path",{d:"M74.4185 36.0469L44.7753 63.9539L30.2325 50.2627",stroke:e,strokeWidth:"3.48837",strokeLinecap:"round",strokeLinejoin:"round"})]}),ud=()=>d("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#7E57C5"}),d("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),fd=()=>d("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"9.5",stroke:"#8C8C8C"})}),hd=()=>d("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",fill:"#7E57C5",stroke:"#7E57C5"}),d("path",{d:"M16.6335 6.71849C16.243 6.32797 15.6098 6.32797 15.2193 6.71849L9.09149 12.8463L5.12147 8.8763C4.73095 8.48577 4.09778 8.48577 3.70726 8.8763C3.31674 9.26682 3.31674 9.89999 3.70726 10.2905L9.09541 15.6787L16.6335 8.1327C17.0241 7.74218 17.0241 7.10902 16.6335 6.71849Z",fill:"white"})]}),pd=()=>d("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("rect",{x:"0.5",y:"1",width:"19",height:"19",rx:"3.5",stroke:"#8C8C8C"})}),_d=({color:t="#237804"})=>d("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.15385 2.15377C7.35887 2.35879 7.35887 2.69121 7.15385 2.89623L2.67894 7.3712L0.153877 4.84616C-0.0511485 4.64114 -0.0511485 4.30872 0.153877 4.1037C0.358901 3.89867 0.691313 3.89867 0.896338 4.1037L2.67894 5.88628L6.41139 2.15377C6.61641 1.94874 6.94882 1.94874 7.15385 2.15377Z",fill:t})}),md=({color:t="#262626"})=>d("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.86967 0.228964C9.07469 0.433989 9.07469 0.766401 8.86967 0.971426L4.99844 4.84266L1.12721 0.971426C0.922181 0.766401 0.922181 0.433989 1.12721 0.228964C1.33223 0.023939 1.66464 0.023939 1.86967 0.228964L4.99844 3.35773L8.12721 0.228964C8.33223 0.023939 8.66464 0.023939 8.86967 0.228964Z",fill:t})}),gd=({size:t,color:e="#ffffff"})=>d("svg",{width:t||40,height:t||40,viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{clipPath:"url(#clip0_2629_17763)",children:[d("path",{d:"M3.99993 17C3.53533 17 3.30303 17 3.10985 16.9616C2.31642 16.8038 1.69618 16.1835 1.5384 15.3901C1.49998 15.1969 1.49999 14.9646 1.5 14.5L1.50019 7.19993C1.50022 6.07985 1.50024 5.51981 1.71823 5.092C1.90998 4.71568 2.21594 4.40973 2.59226 4.21799C3.02008 4.00001 3.58012 4.00001 4.7002 4.00002L17 4.00004C17.4646 4.00004 17.6969 4.00005 17.8901 4.03847C18.6835 4.19628 19.3037 4.81649 19.4615 5.60989C19.4999 5.80308 19.4999 6.03539 19.4999 6.50001",stroke:e}),d("path",{d:"M6.7002 6.50002L18.2998 6.50002C18.8681 6.50002 19.2648 6.50021 19.5732 6.52541C19.8753 6.55011 20.0491 6.59615 20.1807 6.6631C20.4629 6.80691 20.6931 7.03711 20.8369 7.31935C20.9039 7.45093 20.9499 7.62472 20.9746 7.92677C20.9998 8.23519 21 8.63191 21 9.20021V15.7998C21 16.3681 20.9998 16.7648 20.9746 17.0733C20.9499 17.3753 20.9039 17.5491 20.8369 17.6807C20.6931 17.9629 20.4629 18.1931 20.1807 18.3369C20.0491 18.4039 19.8753 18.4499 19.5732 18.4746C19.2648 18.4998 18.8681 18.5 18.2998 18.5H6.7002C6.13188 18.5 5.73519 18.4998 5.42676 18.4746C5.12471 18.4499 4.95091 18.4039 4.81934 18.3369C4.53709 18.1931 4.30689 17.9629 4.16309 17.6807C4.09614 17.5491 4.05009 17.3753 4.02539 17.0733C4.0002 16.7648 3.99999 16.3681 4 15.7998L4 9.20021C4.00001 8.63192 4.00018 8.23519 4.02539 7.92677C4.05012 7.6245 4.09703 7.45096 4.16406 7.31935C4.30788 7.03712 4.5371 6.80691 4.81934 6.6631C4.95099 6.59606 5.12529 6.55012 5.42773 6.52541C5.73609 6.50024 6.13215 6.50001 6.7002 6.50002Z",stroke:e}),d("path",{d:"M4 16L7.66852 12.7391C8.11271 12.3443 8.80118 12.4217 9.14662 12.9053L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),d("path",{d:"M9 18.5L11 15.5L14.6647 10.6138C15.075 10.0666 15.9013 10.0837 16.2887 10.6472L21 17.5",stroke:e}),d("circle",{cx:"7.5",cy:"10",r:"1",fill:e})]}),d("defs",{children:d("clipPath",{id:"clip0_2629_17763",children:d("rect",{width:"22",height:"22",fill:"white",transform:"translate(0.5 1.90735e-05)"})})})]}),wd=({size:t=40,color:e="#ffffff"})=>d("svg",{width:t,height:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("g",{clipPath:"url(#clip0_2629_17707)",children:[d("path",{d:"M8.7041 3.67972H15.2959C15.3348 3.67968 15.3734 3.69153 15.4053 3.7139C15.4211 3.72502 15.4347 3.73877 15.4463 3.75394L15.4746 3.80472L16.1699 5.75394L16.2881 6.08597H19.5625C20.236 6.08597 20.7812 6.63125 20.7812 7.30472V17.1016C20.7812 17.7751 20.236 18.3203 19.5625 18.3203H4.4375C3.76403 18.3203 3.21875 17.7751 3.21875 17.1016V7.30472C3.21875 6.63125 3.76403 6.08597 4.4375 6.08597H7.71191L7.83008 5.75491L8.52832 3.80374L8.5293 3.80179C8.55486 3.73029 8.62456 3.6798 8.7041 3.67972ZM12 8.00784C9.82464 8.00784 8.0625 9.76998 8.0625 11.9453C8.0625 14.1207 9.82464 15.8828 12 15.8828C14.1754 15.8828 15.9375 14.1207 15.9375 11.9453C15.9375 9.76998 14.1754 8.00784 12 8.00784Z",stroke:e}),d("circle",{cx:"18",cy:"9.00003",r:"1",fill:e})]}),d("defs",{children:d("clipPath",{id:"clip0_2629_17707",children:d("rect",{width:"22",height:"22",fill:e})})})]}),vd=()=>d("div",{}),Se={WARNING:"warning_icon",SPINNER:"spinner",ERROR:"failure",AGE:"age",ANDROID:"android",ARROW:"arrow",APPLE:"apple",BACK:"back",BIOMETRIC:"biometricIcon",INFO:"info",TO_MOBILE:"toMobile",UNDERAGE:"underage",CROSS:"cross",REGULA_LOGO:"regulaLogo",POWERED_BY:"signature",SUCCESS:"success",DEFAULT:"empty",CIRCLE_SELECTED:"radio_selected",CIRCLE_NORMAL:"radio_normal",SQUARE_SELECTED:"square_selected",SQUARE_NORMAL:"square_normal",SELECTED:"selected",CHEVRON_DOWN:"chevronDown",CLOSE_ICON:"close_icon",GALLERY_ICON:"gallery",CAMERA_ICON:"camera"},no={[Se.WARNING]:ld,[Se.SPINNER]:ga,[Se.ERROR]:Jc,[Se.AGE]:Xc,[Se.ANDROID]:Qc,[Se.ARROW]:ed,[Se.APPLE]:td,[Se.BACK]:rd,[Se.BIOMETRIC]:nd,[Se.INFO]:id,[Se.TO_MOBILE]:od,[Se.UNDERAGE]:sd,[Se.CROSS]:wa,[Se.REGULA_LOGO]:ad,[Se.DEFAULT]:vd,[Se.POWERED_BY]:cd,[Se.SUCCESS]:dd,[Se.CIRCLE_SELECTED]:ud,[Se.CIRCLE_NORMAL]:fd,[Se.SQUARE_SELECTED]:hd,[Se.SQUARE_NORMAL]:pd,[Se.SELECTED]:_d,[Se.CHEVRON_DOWN]:md,[Se.CLOSE_ICON]:wa,[Se.GALLERY_ICON]:gd,[Se.CAMERA_ICON]:wd},yd=({type:t,size:e,color:r})=>{const n=no[t]||no[Se.DEFAULT];return d(n,{size:e,color:r})},Le=({imageId:t,imageURL:e,base64:r,contentMode:n=In.ASPECT_FILL,cornerRadius:i,backgroundColor:o})=>{const s=h=>{if(h===In.ASPECT_FILL)return"cover";if(h===In.ASPECT_FIT)return"contain";if(h===In.FILL)return"fill"},[a,l]=Ue(!0),u=a&&e,_=()=>{l(!1)};if(r)return d("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:le(o)||"transparent",display:u?"none":"block"},src:r});if(t){const h=t in no?t:"default";return d(yd,{type:h})}if(e)return d(je,{children:[u&&d("div",{style:{width:"100%",height:"100%",backgroundColor:"#e0e0e0",borderRadius:i}}),d("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:o,display:u?"none":"block"},src:e,onLoad:_})]})},bd=({signature:t})=>d("footer",{"data-ui":"gui-footer",part:"gui-footer",style:{display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",height:"100%",width:"100%"},children:d("a",{href:"",children:d(Le,{imageId:t==null?void 0:t.imageId})})}),Cd={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Sd=({dataTestId:t,responseBody:e,image:r,title:n,backgroundColor:i="transparent",cornerRadius:o,highlightColor:s})=>{var c;const[a,l]=Ue(!1),u=a&&s?s:i,{perform:_}=fr();return d("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const y=JSON.parse(JSON.stringify(e));ro(y),_(y)},className:"hover-button",style:Y(I(I({},Cd),o&&{borderRadius:o}),{backgroundColor:(c=le(u))!=null?c:"transparent"}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[r&&d("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},children:d(Le,I({},r))}),n&&d("div",{style:{padding:"0 5px"},children:d(ke,I({},n))})]})},Ed=({closeButton:t})=>d("header",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"16px"},"data-ui":"gui-header",part:"gui-header",children:d("div",{children:t&&d(Sd,I({dataTestId:"close-btn"},t))})});function Td(t){var i;const e=/\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g,r=[];let n=0;for(const o of t.matchAll(e)){const[s,a,l]=o,u=(i=o.index)!=null?i:0;u>n&&r.push(t.slice(n,u));const _=l.startsWith("http")?l:`https://${l}`;r.push(d("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:a},u)),n=u+s.length}return n<t.length&&r.push(t.slice(n)),r}function va(t){const e=t.split(`
91
+ `);return e.flatMap((r,n)=>{const i=Td(r);return n===e.length-1?i:[...i,d("br",{},"br-"+n)]})}const ke=({text:t,fontName:e="",fontSize:r="17px",fontColor:n,alignment:i=Tn.LEFT,backgroundColor:o,cornerRadius:s=0,htmlFor:a})=>{const l={fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:r,color:le(n)||"#000000",textAlign:_a(i),backgroundColor:le(o)||"transparent",borderRadius:s},u=typeof t=="string"&&t.trim()&&va(t);return a?d("label",{"data-ui":"gui-label",part:"gui-label",style:l,htmlFor:a,children:u}):d("div",{"data-ui":"gui-label",part:"gui-label",style:l,children:u})},io=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:l,type:u="RESPONSE_BODY",onClick:_})=>{var S,b;const[h,c]=Ue(!1),y=h&&le(o)?o:n,{perform:g}=fr(),f=C=>{if(_&&_(C),u!=="RESPONSE_BODY")return;const O=JSON.parse(JSON.stringify(r));ro(O),g(O)},m={height:"50px",width:"100%",padding:"10px 16px",textAlign:"center",fontSize:"16px",fontWeight:"400",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:5,borderRadius:i||0,borderStyle:a&&l?"solid":void 0,backgroundColor:(S=le(y))!=null?S:"transparent",borderColor:(b=le(a))!=null?b:"none",borderWidth:l!=null?l:0,overflow:"hidden",transition:".3s",outlineColor:nn};return d("button",{"data-ui":"gui-button",part:"gui-button",type:u==="FORM"?"submit":"button","data-test":s,onClick:f,style:m,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[e&&d(Le,I({},e)),t&&d("div",{style:{flexGrow:e?0:1},children:d(ke,I({},t))})]})},Id=r=>{var n=r,{items:t}=n,e=_r(n,["items"]);return d("div",{part:"gui-buttons","data-ui":"gui-buttons",style:I(I({},{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",alignSelf:"flex-end",justifyContent:"center",gap:"8px",width:"100%",height:"auto",alignContent:"flex-end",paddingTop:"20px"}),e),children:t.map(o=>{var s;return d(io,I({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Yc())})})},Xt=({children:t,header:e,footer:r,backgroundColor:n="white",buttons:i})=>{const o=e?60:10,s=r?30:10,a={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",justifyContent:"center",margin:"0 auto",paddingTop:e?o+10+"px":"10px",paddingBottom:r?s+10+"px":"10px",paddingLeft:"20px",paddingRight:"20px",height:"100%",width:"100%",backgroundColor:le(n)};return d("div",{part:"gui-base-container","data-ui":"gui-base-container",id:"base-container",style:I({},a),children:[e&&d("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:o},children:d(Ed,{closeButton:e.closeButton})}),d("div",{style:{height:"100%",width:"100%",flex:"1 1 100%",overflow:"hidden"},children:t}),(i==null?void 0:i.length)&&d(Id,{items:i}),r&&d("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:d(bd,I({},r))})]})},Rn=({text:t,fontName:e="",fontColor:r,alignment:n=Tn.LEFT,fontSize:i=17,backgroundColor:o,cornerRadius:s=0})=>d("div",{"data-ui":"gui-description",part:"gui-description",style:{fontFamily:[e,"-apple-system","BlinkMacSystemFont","sans-serif"].filter(Boolean).join(", "),fontSize:i,textAlign:_a(n),color:le(r)||"#000000",borderRadius:s,backgroundColor:le(o)||"transparent",whiteSpace:"pre-line"},children:t&&va(t)}),Od=({header:t,footer:e,image:r,title:n,description:i,buttons:o,backgroundColor:s})=>{const a=st(null),[l,u]=Ue(!1);return ot(()=>{a.current&&u(a.current.scrollHeight>a.current.clientHeight+2)},[]),d(Xt,{header:t,buttons:o,footer:e,backgroundColor:s,children:d("div",{part:"gui-status-screen",style:{display:"flex",justifyContent:l?"flex-start":"center",alignItems:"center",alignContent:"center",flex:1,height:"100%",flexDirection:"column"},children:[r&&d("div",{style:zc,children:d(Le,I({},r))}),(n==null?void 0:n.text)&&d("div",{ref:a,style:{width:"100%",overflow:l?"auto":"hidden"},children:d("div",{style:{margin:"0 auto",fontSize:"20px",fontWeight:700,maxWidth:"345px",textAlign:"center",lineHeight:"1.2",display:"flex",flexDirection:"column",justifyContent:l?"flex-start":"center",alignItems:"center",alignContent:"center"},children:n&&d(ke,I({},n))})}),i&&d("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:d(Rn,I({},i))})]})})},Ad={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},xd={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Rd=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s})=>d(Xt,{header:e,footer:r,buttons:o,backgroundColor:s,children:d(je,{children:d("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:Y(I({},xd),{justifyContent:n?"flex-start":"center"}),children:[n&&d("div",{style:Ad,children:d(Le,I({},n))}),t&&d("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:d(ke,I({},t))}),i&&d("div",{style:{lineHeight:"28px",fontWeight:"400"},children:d(Rn,I({},i))})]})})}),kd=({indicatorColor:t="black"})=>d(je,{children:d(ga,{indicatorColor:t})}),ya=({progressView:t,footer:e,backgroundColor:r})=>d(Xt,{footer:e,backgroundColor:r,children:d("div",{style:{flex:"1 1 100%",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center",flexDirection:"column",gap:"20px",height:"100%",width:"100%"},children:d(kd,{indicatorColor:le(t==null?void 0:t.indicatorColor)||"#000000"})})}),Nd=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:o})=>d("div",{className:"details-item",style:Y(I({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:le(n)||"transparent",borderRadius:i}),children:[d("div",{style:{flex:"0 1 auto"},children:[d("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:d(ke,I({},t))}),d("div",{style:{lineHeight:"21px",fontWeight:"400"},children:d(Rn,I({},e))})]}),d("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:d(Le,I({},r))})]}),Dd={display:"flex",flexDirection:"column",padding:"0 16px"},Md=({items:t,backgroundColor:e,cornerRadius:r=16})=>d("div",{className:"details",style:Y(I({},Dd),{backgroundColor:le(e)||"white",borderRadius:r}),children:t.map((n,i)=>d(Nd,I({isLastChild:i===t.length-1},n),i))}),Pd=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:o})=>{const s=st(null),[a,l]=Ue(!1);return ot(()=>{s.current&&l(s.current.scrollHeight>s.current.clientHeight)},[]),d(Xt,{header:e,buttons:i,footer:r,backgroundColor:o,children:d("div",{style:{display:"flex",flexDirection:"column",justifyContent:a?"flex-start":"center",height:"100%",minHeight:"100%",overflow:"auto"},ref:s,children:[d("div",{style:{marginBottom:t?"16px":"0",fontWeight:400,fontSize:"28px"},children:t&&d(ke,I({},t))}),n&&d(Md,I({},n))]})})};var on=t=>t.type==="checkbox",hr=t=>t instanceof Date,Ye=t=>t==null;const ba=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&ba(t)&&!hr(t),Ca=t=>Ne(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Fd=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Sa=(t,e)=>t.has(Fd(e)),Ud=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},oo=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function Fe(t){let e;const r=Array.isArray(t),n=typeof FileList!="undefined"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(!(oo&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Ud(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Fe(t[i]));else return t;return e}var kn=t=>/^\w*$/.test(t),xe=t=>t===void 0,so=t=>Array.isArray(t)?t.filter(Boolean):[],ao=t=>so(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(kn(e)?[e]:ao(e)).reduce((i,o)=>Ye(i)?i:i[o],t);return xe(n)||n===t?xe(t[e])?r:t[e]:n},tt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=kn(e)?[e]:ao(e),o=i.length,s=o-1;for(;++n<o;){const a=i[n];let l=r;if(n!==s){const u=t[a];l=Ne(u)||Array.isArray(u)?u:isNaN(+i[n+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=l,t=t[a]}};const Nn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ft={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},kt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ea=ce.createContext(null);Ea.displayName="HookFormContext";const lo=()=>ce.useContext(Ea);var Ta=(t,e,r,n=!0)=>{const i={defaultValues:e._defaultValues};for(const o in t)Object.defineProperty(i,o,{get:()=>{const s=o;return e._proxyFormState[s]!==ft.all&&(e._proxyFormState[s]=!n||ft.all),r&&(r[s]=!0),t[s]}});return i};const co=typeof window!="undefined"?ce.useLayoutEffect:ce.useEffect;function Ld(t){const e=lo(),{control:r=e.control,disabled:n,name:i,exact:o}=t||{},[s,a]=ce.useState(r._formState),l=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return co(()=>r._subscribe({name:i,formState:l.current,exact:o,callback:u=>{!n&&a(I(I({},r._formState),u))}}),[i,n,o]),ce.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),ce.useMemo(()=>Ta(s,r,l.current,!1),[s,r])}var rt=t=>typeof t=="string",Ia=(t,e,r,n,i)=>rt(t)?(n&&e.watch.add(t),L(r,t,i)):Array.isArray(t)?t.map(o=>(n&&e.watch.add(o),L(r,o))):(n&&(e.watchAll=!0),r),uo=t=>Ye(t)||!ba(t);function Nt(t,e,r=new WeakSet){if(uo(t)||uo(e))return t===e;if(hr(t)&&hr(e))return t.getTime()===e.getTime();const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);for(const o of n){const s=t[o];if(!i.includes(o))return!1;if(o!=="ref"){const a=e[o];if(hr(s)&&hr(a)||Ne(s)&&Ne(a)||Array.isArray(s)&&Array.isArray(a)?!Nt(s,a,r):s!==a)return!1}}return!0}function Vd(t){const e=lo(),{control:r=e.control,name:n,defaultValue:i,disabled:o,exact:s,compute:a}=t||{},l=ce.useRef(i),u=ce.useRef(a),_=ce.useRef(void 0);u.current=a;const h=ce.useMemo(()=>r._getWatch(n,l.current),[r,n]),[c,y]=ce.useState(u.current?u.current(h):h);return co(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:g=>{if(!o){const f=Ia(n,r._names,g.values||r._formValues,!1,l.current);if(u.current){const m=u.current(f);Nt(m,_.current)||(y(m),_.current=m)}else y(f)}}}),[r,o,n,s]),ce.useEffect(()=>r._removeUnmounted()),c}function $d(t){const e=lo(),{name:r,disabled:n,control:i=e.control,shouldUnregister:o,defaultValue:s}=t,a=Sa(i._names.array,r),l=ce.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,s)),[i,r,s]),u=Vd({control:i,name:r,defaultValue:l,exact:!0}),_=Ld({control:i,name:r,exact:!0}),h=ce.useRef(t),c=ce.useRef(void 0),y=ce.useRef(i.register(r,I(Y(I({},t.rules),{value:u}),tt(t.disabled)?{disabled:t.disabled}:{})));h.current=t;const g=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(_.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(_.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(_.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(_.validatingFields,r)},error:{enumerable:!0,get:()=>L(_.errors,r)}}),[_,r]),f=ce.useCallback(C=>y.current.onChange({target:{value:Ca(C),name:r},type:Nn.CHANGE}),[r]),m=ce.useCallback(()=>y.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Nn.BLUR}),[r,i._formValues]),S=ce.useCallback(C=>{const O=L(i._fields,r);O&&C&&(O._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:N=>C.setCustomValidity(N),reportValidity:()=>C.reportValidity()})},[i._fields,r]),b=ce.useMemo(()=>Y(I({name:r,value:u},tt(n)||_.disabled?{disabled:_.disabled||n}:{}),{onChange:f,onBlur:m,ref:S}),[r,n,_.disabled,f,m,S,u]);return ce.useEffect(()=>{const C=i._options.shouldUnregister||o,O=c.current;O&&O!==r&&!a&&i.unregister(O),i.register(r,I(I({},h.current.rules),tt(h.current.disabled)?{disabled:h.current.disabled}:{}));const N=(R,F)=>{const _e=L(i._fields,R);_e&&_e._f&&(_e._f.mount=F)};if(N(r,!0),C){const R=Fe(L(i._options.defaultValues,r,h.current.defaultValue));Ee(i._defaultValues,r,R),xe(L(i._formValues,r))&&Ee(i._formValues,r,R)}return!a&&i.register(r),c.current=r,()=>{(a?C&&!i._state.action:C)?i.unregister(r):N(r,!1)}},[r,i,a,o]),ce.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),ce.useMemo(()=>({field:b,formState:_,fieldState:g}),[b,_,g])}const Oa=t=>t.render($d(t));var Bd=(t,e,r,n,i)=>e?Y(I({},r[t]),{types:Y(I({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},sn=t=>Array.isArray(t)?t:[t],Aa=()=>{let t=[];return{get observers(){return t},next:i=>{for(const o of t)o.next&&o.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(o=>o!==i)}}),unsubscribe:()=>{t=[]}}};function xa(t,e){const r={};for(const n in t)if(t.hasOwnProperty(n)){const i=t[n],o=e[n];if(i&&Ne(i)&&o){const s=xa(i,o);Ne(s)&&(r[n]=s)}else t[n]&&(r[n]=o)}return r}var Qe=t=>Ne(t)&&!Object.keys(t).length,fo=t=>t.type==="file",ht=t=>typeof t=="function",Dn=t=>{if(!oo)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Ra=t=>t.type==="select-multiple",ho=t=>t.type==="radio",Hd=t=>ho(t)||on(t),po=t=>Dn(t)&&t.isConnected;function Wd(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=xe(t)?n++:t[e[n++]];return t}function jd(t){for(const e in t)if(t.hasOwnProperty(e)&&!xe(t[e]))return!1;return!0}function De(t,e){const r=Array.isArray(e)?e:kn(e)?[e]:ao(e),n=r.length===1?t:Wd(t,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(Ne(n)&&Qe(n)||Array.isArray(n)&&jd(n))&&De(t,r.slice(0,-1)),t}var zd=t=>{for(const e in t)if(ht(t[e]))return!0;return!1};function ka(t){return Array.isArray(t)||Ne(t)&&!zd(t)}function _o(t,e={}){for(const r in t)ka(t[r])?(e[r]=Array.isArray(t[r])?[]:{},_o(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=_o(e));for(const n in t)ka(t[n])?xe(e)||uo(r[n])?r[n]=_o(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Nt(t[n],e[n]);return r}const Na={value:!1,isValid:!1},Da={value:!0,isValid:!0};var Ma=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!xe(t[0].attributes.value)?xe(t[0].value)||t[0].value===""?Da:{value:t[0].value,isValid:!0}:Da:Na}return Na},Pa=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>xe(t)?t:e?t===""?NaN:t&&+t:r&&rt(t)?new Date(t):n?n(t):t;const Fa={isValid:!1,value:null};var Ua=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Fa):Fa;function La(t){const e=t.ref;return fo(e)?e.files:ho(e)?Ua(t.refs).value:Ra(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Ma(t.refs).value:Pa(xe(e.value)?t.ref.value:e.value,t)}var Kd=(t,e,r,n)=>{const i={};for(const o of t){const s=L(e,o);s&&Ee(i,o,s._f)}return{criteriaMode:r,names:[...t],fields:i,shouldUseNativeValidation:n}},Mn=t=>t instanceof RegExp,an=t=>xe(t)?t:Mn(t)?t.source:Ne(t)?Mn(t.value)?t.value.source:t.value:t,Va=t=>({isOnSubmit:!t||t===ft.onSubmit,isOnBlur:t===ft.onBlur,isOnChange:t===ft.onChange,isOnAll:t===ft.all,isOnTouch:t===ft.onTouched});const $a="AsyncFunction";var Gd=t=>!!t&&!!t.validate&&!!(ht(t.validate)&&t.validate.constructor.name===$a||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===$a)),qd=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),Ba=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(n=>t.startsWith(n)&&/^\.\w+/.test(t.slice(n.length))));const ln=(t,e,r,n)=>{for(const o of r||Object.keys(t)){const s=L(t,o);if(s){const i=s,{_f:a}=i,l=_r(i,["_f"]);if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],o)&&!n)return!0;if(a.ref&&e(a.ref,a.name)&&!n)return!0;if(ln(l,e))break}else if(Ne(l)&&ln(l,e))break}}};function Ha(t,e,r){const n=L(t,r);if(n||kn(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const o=i.join("."),s=L(e,o),a=L(t,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(a&&a.type)return{name:o,error:a};if(a&&a.root&&a.root.type)return{name:`${o}.root`,error:a.root};i.pop()}return{name:r}}var Zd=(t,e,r,n)=>{r(t);const s=t,{name:i}=s,o=_r(s,["name"]);return Qe(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!n||ft.all))},Yd=(t,e,r)=>!t||!e||t===e||sn(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Jd=(t,e,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(e||t):(r?n.isOnBlur:i.isOnBlur)?!t:(r?n.isOnChange:i.isOnChange)?t:!0,Xd=(t,e)=>!so(L(t,e)).length&&De(t,e),Qd=(t,e,r)=>{const n=sn(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Wa(t,e,r="validate"){if(rt(t)||Array.isArray(t)&&t.every(rt)||tt(t)&&!t)return{type:r,message:rt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Mn(t)?t:{value:t,message:""},ja=(t,e,r,n,i,o)=>P(null,null,function*(){const{ref:s,refs:a,required:l,maxLength:u,minLength:_,min:h,max:c,pattern:y,validate:g,name:f,valueAsNumber:m,mount:S}=t._f,b=L(r,f);if(!S||e.has(f))return{};const C=a?a[0]:s,O=H=>{i&&C.reportValidity&&(C.setCustomValidity(tt(H)?"":H||""),C.reportValidity())},N={},R=ho(s),F=on(s),_e=R||F,me=(m||fo(s))&&xe(s.value)&&xe(b)||Dn(s)&&s.value===""||b===""||Array.isArray(b)&&!b.length,ee=Bd.bind(null,f,n,N),Q=(H,J,de,ue=kt.maxLength,ve=kt.minLength)=>{const ye=H?J:de;N[f]=I({type:H?ue:ve,message:ye,ref:s},ee(H?ue:ve,ye))};if(o?!Array.isArray(b)||!b.length:l&&(!_e&&(me||Ye(b))||tt(b)&&!b||F&&!Ma(a).isValid||R&&!Ua(a).isValid)){const{value:H,message:J}=rt(l)?{value:!!l,message:l}:xr(l);if(H&&(N[f]=I({type:kt.required,message:J,ref:C},ee(kt.required,J)),!n))return O(J),N}if(!me&&(!Ye(h)||!Ye(c))){let H,J;const de=xr(c),ue=xr(h);if(!Ye(b)&&!isNaN(b)){const ve=s.valueAsNumber||b&&+b;Ye(de.value)||(H=ve>de.value),Ye(ue.value)||(J=ve<ue.value)}else{const ve=s.valueAsDate||new Date(b),ye=U=>new Date(new Date().toDateString()+" "+U),te=s.type=="time",z=s.type=="week";rt(de.value)&&b&&(H=te?ye(b)>ye(de.value):z?b>de.value:ve>new Date(de.value)),rt(ue.value)&&b&&(J=te?ye(b)<ye(ue.value):z?b<ue.value:ve<new Date(ue.value))}if((H||J)&&(Q(!!H,de.message,ue.message,kt.max,kt.min),!n))return O(N[f].message),N}if((u||_)&&!me&&(rt(b)||o&&Array.isArray(b))){const H=xr(u),J=xr(_),de=!Ye(H.value)&&b.length>+H.value,ue=!Ye(J.value)&&b.length<+J.value;if((de||ue)&&(Q(de,H.message,J.message),!n))return O(N[f].message),N}if(y&&!me&&rt(b)){const{value:H,message:J}=xr(y);if(Mn(H)&&!b.match(H)&&(N[f]=I({type:kt.pattern,message:J,ref:s},ee(kt.pattern,J)),!n))return O(J),N}if(g){if(ht(g)){const H=yield g(b,r),J=Wa(H,C);if(J&&(N[f]=I(I({},J),ee(kt.validate,J.message)),!n))return O(J.message),N}else if(Ne(g)){let H={};for(const J in g){if(!Qe(H)&&!n)break;const de=Wa(yield g[J](b,r),C,J);de&&(H=I(I({},de),ee(J,de.message)),O(de.message),n&&(N[f]=H))}if(!Qe(H)&&(N[f]=I({ref:C},H),!n))return N}}return O(!0),N});const eu={mode:ft.onSubmit,reValidateMode:ft.onChange,shouldFocusError:!0};function tu(t={}){let e=I(I({},eu),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:ht(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},n={},i=Ne(e.defaultValues)||Ne(e.values)?Fe(e.defaultValues||e.values)||{}:{},o=e.shouldUnregister?{}:Fe(i),s={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h=I({},_);const c={array:Aa(),state:Aa()},y=e.criteriaMode===ft.all,g=v=>T=>{clearTimeout(u),u=setTimeout(v,T)},f=v=>P(null,null,function*(){if(!e.disabled&&(_.isValid||h.isValid||v)){const T=e.resolver?Qe((yield F()).errors):yield me(n,!0);T!==r.isValid&&c.state.next({isValid:T})}}),m=(v,T)=>{!e.disabled&&(_.isValidating||_.validatingFields||h.isValidating||h.validatingFields)&&((v||Array.from(a.mount)).forEach(x=>{x&&(T?Ee(r.validatingFields,x,T):De(r.validatingFields,x))}),c.state.next({validatingFields:r.validatingFields,isValidating:!Qe(r.validatingFields)}))},S=(v,T=[],x,V,D=!0,M=!0)=>{if(V&&x&&!e.disabled){if(s.action=!0,M&&Array.isArray(L(n,v))){const W=x(L(n,v),V.argA,V.argB);D&&Ee(n,v,W)}if(M&&Array.isArray(L(r.errors,v))){const W=x(L(r.errors,v),V.argA,V.argB);D&&Ee(r.errors,v,W),Xd(r.errors,v)}if((_.touchedFields||h.touchedFields)&&M&&Array.isArray(L(r.touchedFields,v))){const W=x(L(r.touchedFields,v),V.argA,V.argB);D&&Ee(r.touchedFields,v,W)}(_.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Ar(i,o)),c.state.next({name:v,isDirty:Q(v,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(o,v,T)},b=(v,T)=>{Ee(r.errors,v,T),c.state.next({errors:r.errors})},C=v=>{r.errors=v,c.state.next({errors:r.errors,isValid:!1})},O=(v,T,x,V)=>{const D=L(n,v);if(D){const M=L(o,v,xe(x)?L(i,v):x);xe(M)||V&&V.defaultChecked||T?Ee(o,v,T?M:La(D._f)):de(v,M),s.mount&&f()}},N=(v,T,x,V,D)=>{let M=!1,W=!1;const ie={name:v};if(!e.disabled){if(!x||V){(_.isDirty||h.isDirty)&&(W=r.isDirty,r.isDirty=ie.isDirty=Q(),M=W!==ie.isDirty);const K=Nt(L(i,v),T);W=!!L(r.dirtyFields,v),K?De(r.dirtyFields,v):Ee(r.dirtyFields,v,!0),ie.dirtyFields=r.dirtyFields,M=M||(_.dirtyFields||h.dirtyFields)&&W!==!K}if(x){const K=L(r.touchedFields,v);K||(Ee(r.touchedFields,v,x),ie.touchedFields=r.touchedFields,M=M||(_.touchedFields||h.touchedFields)&&K!==x)}M&&D&&c.state.next(ie)}return M?ie:{}},R=(v,T,x,V)=>{const D=L(r.errors,v),M=(_.isValid||h.isValid)&&tt(T)&&r.isValid!==T;if(e.delayError&&x?(l=g(()=>b(v,x)),l(e.delayError)):(clearTimeout(u),l=null,x?Ee(r.errors,v,x):De(r.errors,v)),(x?!Nt(D,x):D)||!Qe(V)||M){const W=Y(I(I({},V),M&&tt(T)?{isValid:T}:{}),{errors:r.errors,name:v});r=I(I({},r),W),c.state.next(W)}},F=v=>P(null,null,function*(){m(v,!0);const T=yield e.resolver(o,e.context,Kd(v||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(v),T}),_e=v=>P(null,null,function*(){const{errors:T}=yield F(v);if(v)for(const x of v){const V=L(T,x);V?Ee(r.errors,x,V):De(r.errors,x)}else r.errors=T;return T}),me=(V,D,...M)=>P(null,[V,D,...M],function*(v,T,x={valid:!0}){for(const ie in v){const K=v[ie];if(K){const W=K,{_f:we}=W,He=_r(W,["_f"]);if(we){const Z=a.array.has(we.name),ae=K._f&&Gd(K._f);ae&&_.validatingFields&&m([we.name],!0);const j=yield ja(K,a.disabled,o,y,e.shouldUseNativeValidation&&!T,Z);if(ae&&_.validatingFields&&m([we.name]),j[we.name]&&(x.valid=!1,T))break;!T&&(L(j,we.name)?Z?Qd(r.errors,j,we.name):Ee(r.errors,we.name,j[we.name]):De(r.errors,we.name))}!Qe(He)&&(yield me(He,T,x))}}return x.valid}),ee=()=>{for(const v of a.unMount){const T=L(n,v);T&&(T._f.refs?T._f.refs.every(x=>!po(x)):!po(T._f.ref))&&Ke(v)}a.unMount=new Set},Q=(v,T)=>!e.disabled&&(v&&T&&Ee(o,v,T),!Nt(U(),i)),H=(v,T,x)=>Ia(v,a,I({},s.mount?o:xe(T)?i:rt(v)?{[v]:T}:T),x,T),J=v=>so(L(s.mount?o:i,v,e.shouldUnregister?L(i,v,[]):[])),de=(v,T,x={})=>{const V=L(n,v);let D=T;if(V){const M=V._f;M&&(!M.disabled&&Ee(o,v,Pa(T,M)),D=Dn(M.ref)&&Ye(T)?"":T,Ra(M.ref)?[...M.ref.options].forEach(W=>W.selected=D.includes(W.value)):M.refs?on(M.ref)?M.refs.forEach(W=>{(!W.defaultChecked||!W.disabled)&&(Array.isArray(D)?W.checked=!!D.find(ie=>ie===W.value):W.checked=D===W.value||!!D)}):M.refs.forEach(W=>W.checked=W.value===D):fo(M.ref)?M.ref.value="":(M.ref.value=D,M.ref.type||c.state.next({name:v,values:Fe(o)})))}(x.shouldDirty||x.shouldTouch)&&N(v,D,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&z(v)},ue=(v,T,x)=>{for(const V in T){if(!T.hasOwnProperty(V))return;const D=T[V],M=v+"."+V,W=L(n,M);(a.array.has(v)||Ne(D)||W&&!W._f)&&!hr(D)?ue(M,D,x):de(M,D,x)}},ve=(v,T,x={})=>{const V=L(n,v),D=a.array.has(v),M=Fe(T);Ee(o,v,M),D?(c.array.next({name:v,values:Fe(o)}),(_.isDirty||_.dirtyFields||h.isDirty||h.dirtyFields)&&x.shouldDirty&&c.state.next({name:v,dirtyFields:Ar(i,o),isDirty:Q(v,M)})):V&&!V._f&&!Ye(M)?ue(v,M,x):de(v,M,x),Ba(v,a)&&c.state.next(Y(I({},r),{name:v})),c.state.next({name:s.mount?v:void 0,values:Fe(o)})},ye=v=>P(null,null,function*(){s.mount=!0;const T=v.target;let x=T.name,V=!0;const D=L(n,x),M=K=>{V=Number.isNaN(K)||hr(K)&&isNaN(K.getTime())||Nt(K,L(o,x,K))},W=Va(e.mode),ie=Va(e.reValidateMode);if(D){let K,we;const He=T.type?La(D._f):Ca(v),Z=v.type===Nn.BLUR||v.type===Nn.FOCUS_OUT,ae=!qd(D._f)&&!e.resolver&&!L(r.errors,x)&&!D._f.deps||Jd(Z,L(r.touchedFields,x),r.isSubmitted,ie,W),j=Ba(x,a,Z);Ee(o,x,He),Z?(!T||!T.readOnly)&&(D._f.onBlur&&D._f.onBlur(v),l&&l(0)):D._f.onChange&&D._f.onChange(v);const ge=N(x,He,Z),Ge=!Qe(ge)||j;if(!Z&&c.state.next({name:x,type:v.type,values:Fe(o)}),ae)return(_.isValid||h.isValid)&&(e.mode==="onBlur"?Z&&f():Z||f()),Ge&&c.state.next(I({name:x},j?{}:ge));if(!Z&&j&&c.state.next(I({},r)),e.resolver){const{errors:Me}=yield F([x]);if(M(He),V){const he=Ha(r.errors,n,x),G=Ha(Me,n,he.name||x);K=G.error,x=G.name,we=Qe(Me)}}else m([x],!0),K=(yield ja(D,a.disabled,o,y,e.shouldUseNativeValidation))[x],m([x]),M(He),V&&(K?we=!1:(_.isValid||h.isValid)&&(we=yield me(n,!0)));V&&(D._f.deps&&(!Array.isArray(D._f.deps)||D._f.deps.length>0)&&z(D._f.deps),R(x,we,K,ge))}}),te=(v,T)=>{if(L(r.errors,T)&&v.focus)return v.focus(),1},z=(x,...V)=>P(null,[x,...V],function*(v,T={}){let D,M;const W=sn(v);if(e.resolver){const ie=yield _e(xe(v)?v:W);D=Qe(ie),M=v?!W.some(K=>L(ie,K)):D}else v?(M=(yield Promise.all(W.map(ie=>P(null,null,function*(){const K=L(n,ie);return yield me(K&&K._f?{[ie]:K}:K)})))).every(Boolean),!(!M&&!r.isValid)&&f()):M=D=yield me(n);return c.state.next(Y(I(I({},!rt(v)||(_.isValid||h.isValid)&&D!==r.isValid?{}:{name:v}),e.resolver||!v?{isValid:D}:{}),{errors:r.errors})),T.shouldFocus&&!M&&ln(n,te,v?W:a.mount),M}),U=(v,T)=>{let x=I({},s.mount?o:i);return T&&(x=xa(T.dirtyFields?r.dirtyFields:r.touchedFields,x)),xe(v)?x:rt(v)?L(x,v):v.map(V=>L(x,V))},q=(v,T)=>({invalid:!!L((T||r).errors,v),isDirty:!!L((T||r).dirtyFields,v),error:L((T||r).errors,v),isValidating:!!L(r.validatingFields,v),isTouched:!!L((T||r).touchedFields,v)}),re=v=>{v&&sn(v).forEach(T=>De(r.errors,T)),c.state.next({errors:v?r.errors:{}})},Te=(v,T,x)=>{const V=(L(n,v,{_f:{}})._f||{}).ref,we=L(r.errors,v)||{},{ref:M,message:W,type:ie}=we,K=_r(we,["ref","message","type"]);Ee(r.errors,v,Y(I(I({},K),T),{ref:V})),c.state.next({name:v,errors:r.errors,isValid:!1}),x&&x.shouldFocus&&V&&V.focus&&V.focus()},ne=(v,T)=>ht(v)?c.state.subscribe({next:x=>"values"in x&&v(H(void 0,T),x)}):H(v,T,!0),$=v=>c.state.subscribe({next:T=>{Yd(v.name,T.name,v.exact)&&Zd(T,v.formState||_,er,v.reRenderRoot)&&v.callback(Y(I(I({values:I({},o)},r),T),{defaultValues:i}))}}).unsubscribe,X=v=>(s.mount=!0,h=I(I({},h),v.formState),$(Y(I({},v),{formState:h}))),Ke=(v,T={})=>{for(const x of v?sn(v):a.mount)a.mount.delete(x),a.array.delete(x),T.keepValue||(De(n,x),De(o,x)),!T.keepError&&De(r.errors,x),!T.keepDirty&&De(r.dirtyFields,x),!T.keepTouched&&De(r.touchedFields,x),!T.keepIsValidating&&De(r.validatingFields,x),!e.shouldUnregister&&!T.keepDefaultValue&&De(i,x);c.state.next({values:Fe(o)}),c.state.next(I(I({},r),T.keepDirty?{isDirty:Q()}:{})),!T.keepIsValid&&f()},Je=({disabled:v,name:T})=>{(tt(v)&&s.mount||v||a.disabled.has(T))&&(v?a.disabled.add(T):a.disabled.delete(T))},pt=(v,T={})=>{let x=L(n,v);const V=tt(T.disabled)||tt(e.disabled);return Ee(n,v,Y(I({},x||{}),{_f:I(Y(I({},x&&x._f?x._f:{ref:{name:v}}),{name:v,mount:!0}),T)})),a.mount.add(v),x?Je({disabled:tt(T.disabled)?T.disabled:e.disabled,name:v}):O(v,!0,T.value),Y(I(I({},V?{disabled:T.disabled||e.disabled}:{}),e.progressive?{required:!!T.required,min:an(T.min),max:an(T.max),minLength:an(T.minLength),maxLength:an(T.maxLength),pattern:an(T.pattern)}:{}),{name:v,onChange:ye,onBlur:ye,ref:D=>{if(D){pt(v,T),x=L(n,v);const M=xe(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,W=Hd(M),ie=x._f.refs||[];if(W?ie.find(K=>K===M):M===x._f.ref)return;Ee(n,v,{_f:I(I({},x._f),W?{refs:[...ie.filter(po),M,...Array.isArray(L(i,v))?[{}]:[]],ref:{type:M.type,name:v}}:{ref:M})}),O(v,!1,void 0,M)}else x=L(n,v,{}),x._f&&(x._f.mount=!1),(e.shouldUnregister||T.shouldUnregister)&&!(Sa(a.array,v)&&s.action)&&a.unMount.add(v)}})},nt=()=>e.shouldFocusError&&ln(n,te,a.mount),jt=v=>{tt(v)&&(c.state.next({disabled:v}),ln(n,(T,x)=>{const V=L(n,x);V&&(T.disabled=V._f.disabled||v,Array.isArray(V._f.refs)&&V._f.refs.forEach(D=>{D.disabled=V._f.disabled||v}))},0,!1))},_t=(v,T)=>x=>P(null,null,function*(){let V;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let D=Fe(o);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:M,values:W}=yield F();r.errors=M,D=Fe(W)}else yield me(n);if(a.disabled.size)for(const M of a.disabled)De(D,M);if(De(r.errors,"root"),Qe(r.errors)){c.state.next({errors:{}});try{yield v(D,x)}catch(M){V=M}}else T&&(yield T(I({},r.errors),x)),nt(),setTimeout(nt);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Qt=(v,T={})=>{L(n,v)&&(xe(T.defaultValue)?ve(v,Fe(L(i,v))):(ve(v,T.defaultValue),Ee(i,v,Fe(T.defaultValue))),T.keepTouched||De(r.touchedFields,v),T.keepDirty||(De(r.dirtyFields,v),r.isDirty=T.defaultValue?Q(v,Fe(L(i,v))):Q()),T.keepError||(De(r.errors,v),_.isValid&&f()),c.state.next(I({},r)))},zt=(v,T={})=>{const x=v?Fe(v):i,V=Fe(x),D=Qe(v),M=D?i:V;if(T.keepDefaultValues||(i=x),!T.keepValues){if(T.keepDirtyValues){const W=new Set([...a.mount,...Object.keys(Ar(i,o))]);for(const ie of Array.from(W))L(r.dirtyFields,ie)?Ee(M,ie,L(o,ie)):ve(ie,L(M,ie))}else{if(oo&&xe(v))for(const W of a.mount){const ie=L(n,W);if(ie&&ie._f){const K=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(Dn(K)){const we=K.closest("form");if(we){we.reset();break}}}}if(T.keepFieldsRef)for(const W of a.mount)ve(W,L(M,W));else n={}}o=e.shouldUnregister?T.keepDefaultValues?Fe(i):{}:Fe(M),c.array.next({values:I({},M)}),c.state.next({values:I({},M)})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!_.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,c.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:D?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!Nt(v,i)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D?{}:T.keepDirtyValues?T.keepDefaultValues&&o?Ar(i,o):r.dirtyFields:T.keepDefaultValues&&v?Ar(i,v):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},St=(v,T)=>zt(ht(v)?v(o):v,T),Kt=(v,T={})=>{const x=L(n,v),V=x&&x._f;if(V){const D=V.refs?V.refs[0]:V.ref;D.focus&&(D.focus(),T.shouldSelect&&ht(D.select)&&D.select())}},er=v=>{r=I(I({},r),v)},at={control:{register:pt,unregister:Ke,getFieldState:q,handleSubmit:_t,setError:Te,_subscribe:$,_runSchema:F,_focusError:nt,_getWatch:H,_getDirty:Q,_setValid:f,_setFieldArray:S,_setDisabledField:Je,_setErrors:C,_getFieldArray:J,_reset:zt,_resetDefaultValues:()=>ht(e.defaultValues)&&e.defaultValues().then(v=>{St(v,e.resetOptions),c.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:jt,_subjects:c,_proxyFormState:_,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(v){s=v},get _defaultValues(){return i},get _names(){return a},set _names(v){a=v},get _formState(){return r},get _options(){return e},set _options(v){e=I(I({},e),v)}},subscribe:X,trigger:z,register:pt,handleSubmit:_t,watch:ne,setValue:ve,getValues:U,reset:St,resetField:Qt,clearErrors:re,unregister:Ke,setError:Te,setFocus:Kt,getFieldState:q};return Y(I({},at),{formControl:at})}function ru(t={}){const e=ce.useRef(void 0),r=ce.useRef(void 0),[n,i]=ce.useState({isDirty:!1,isValidating:!1,isLoading:ht(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:ht(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=Y(I({},t.formControl),{formState:n}),t.defaultValues&&!ht(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=tu(t),{formControl:a}=s,l=_r(s,["formControl"]);e.current=Y(I({},l),{formState:n})}const o=e.current.control;return o._options=t,co(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i(I({},o._formState)),reRenderRoot:!0});return i(l=>Y(I({},l),{isReady:!0})),o._formState.isReady=!0,a},[o]),ce.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),ce.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),ce.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),ce.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),ce.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),ce.useEffect(()=>{t.values&&!Nt(t.values,r.current)?(o._reset(t.values,I({keepFieldsRef:!0},o._options.resetOptions)),r.current=t.values,i(a=>I({},a))):o._resetDefaultValues()},[o,t.values]),ce.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next(I({},o._formState))),o._removeUnmounted()}),e.current.formState=Ta(n,o),e.current}const Rr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===pa.NOT_EMPTY&&(r.required=o=>e&&Gc(o)?n.message:!0),n.type===pa.REGEX){const o=new RegExp(n.regex);r[`regex_${i}`]=s=>!e&&!s?!0:typeof s!="string"?n.message:o.test(s)||n.message}}),r},nu=({isOpen:t,image:e})=>d("div",{"data-ui":"gui-custom-select-chevron",style:{width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",transform:t?"rotate(180deg)":"none",transformOrigin:"50% 50%",transition:".2s",flexShrink:0},children:e?d(Le,I({},e)):d(Le,{imageId:"chevronDown"})}),iu=({isChosen:t,option:e,onOptionClickCallback:r,isHovered:n,onHover:i,onHoverEnd:o})=>{const s=t?e.layoutSelected.image:e.layout.image;return d("div",{style:{padding:"5px 8px",background:((l,u)=>{var _,h,c,y;if(!l&&!u)return(_=le(e.layout.backgroundColor))!=null?_:"transparent";if(!l&&u)return(h=le(e.layoutSelected.backgroundColor))!=null?h:"transparent";if(l&&!u)return(c=le(e.layout.highlightColor))!=null?c:"#F4F4F4";if(l&&u)return(y=le(e.layoutSelected.highlightColor))!=null?y:"#F4F4F4"})(n,t),fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",gap:8,borderRadius:4,cursor:"pointer"},"data-select-id":e.value,onClick:r(e),onMouseEnter:i,onMouseLeave:o,children:[d(ke,Y(I({},e.layout.title),{text:e.label})),d("div",{style:{display:"flex",flexShrink:0},children:d(Le,I({},s))})]},e.value)},za=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:l,parentElementRef:u,controlLayout:_,pickerLayout:h})=>{var H,J,de,ue,ve,ye,te,z;const[c,y]=Ue(!1),[g,f]=Ue(i),[m,S]=Ue("down"),[b,C]=Ue(null),O=st(null),N=st(null);Yt(()=>{var ne,$,X;if(!c)return;const U=(ne=O.current)==null?void 0:ne.getBoundingClientRect(),q=($=N.current)==null?void 0:$.getBoundingClientRect(),re=(X=u.current)==null?void 0:X.getBoundingClientRect();if(!U||!q||!re)return;const Te=U.bottom+q.height<re.bottom;S(Te?"down":"up")},[c]),ot(()=>{o(g)},[g]);const R=U=>q=>{var re;q.stopPropagation(),(q.type==="touchend"||((re=q.nativeEvent)==null?void 0:re.pointerType)==="touch")&&C(null),a&&y(!1),f(Te=>r?Te.some($=>$.value===U.value)?Te.filter($=>$.value!==U.value):[...Te,U]:[U])},F=()=>{l&&l(),y(!1)},_e=U=>q=>{q.stopPropagation(),f(re=>re.filter(Te=>Te.value!==U.value))},me=U=>{U.stopPropagation(),f([])},ee=(H=le(_==null?void 0:_.borderColor))!=null?H:"#D9D9D9",Q=(J=le(_==null?void 0:_.highlightBorderColor))!=null?J:"#7E57C5";return d("div",{"data-ui":"gui-custom-select",ref:O,children:d("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:le(_==null?void 0:_.backgroundColor),borderStyle:"solid",borderColor:c?Q:ee,borderWidth:(de=_==null?void 0:_.borderWidth)!=null?de:1,borderRadius:(ue=_==null?void 0:_.cornerRadius)!=null?ue:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:F,onClick:()=>y(!c),children:[d("div",{"data-ui":"gui-custom-select-multi-choose-container",style:{display:"flex",gap:8,alignItems:"flex-start",alignContent:"center",flexWrap:"wrap",width:"100%"},children:[!g.length&&d("span",{style:{fontSize:13,color:"#8C8C8C"},children:s}),g.map(U=>{var q,re,Te,ne,$;if(r){const X=_==null?void 0:_.chip;return d("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(q=le(X==null?void 0:X.backgroundColor))!=null?q:"#F2F2F2",borderRadius:(re=X==null?void 0:X.cornerRadius)!=null?re:4,userSelect:"none",alignItems:"center"},children:[d(ke,Y(I({},X==null?void 0:X.title),{fontSize:(ne=(Te=X==null?void 0:X.title)==null?void 0:Te.fontSize)!=null?ne:13,text:U.label})),d("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:_e(U),children:X!=null&&X.removeImage?d(Le,I({},X.removeImage)):d(Le,{imageId:"cross"})})]},U.value)}else{const X=_==null?void 0:_.title;return d("div",{style:{display:"flex",userSelect:"none"},children:d(ke,Y(I({},X),{fontSize:($=X==null?void 0:X.fontSize)!=null?$:13,text:U.label}))},U.value)}})]}),n&&g.length?d("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:me,children:_!=null&&_.clearButton?d(Le,I({},_.clearButton)):d(Le,{imageId:"cross"})}):null,n?d("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,d(nu,{isOpen:c,image:_==null?void 0:_.expandButton}),c&&d("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:N,style:Y(I({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ve=le(h==null?void 0:h.backgroundColor))!=null?ve:"#ffffff",borderRadius:(ye=h==null?void 0:h.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(te=le(h==null?void 0:h.borderColor))!=null?te:"#D9D9D9",borderWidth:(z=h==null?void 0:h.borderWidth)!=null?z:1,maxHeight:"500px",overflow:"auto",zIndex:2,boxShadow:"0 3px 15px rgba(0,0,0,.2)",padding:"8px",display:"flex",flexDirection:"column",gap:"2px",cursor:"default"}),onClick:U=>U.stopPropagation(),children:e.map(U=>{const q=g.some(re=>re.value===U.value);return d(iu,{isChosen:q,option:U,onOptionClickCallback:R,isHovered:b===U.value,onHover:()=>C(U.value),onHoverEnd:()=>C(null)},U.label)})})]})})},ou=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return d("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&d(ke,Y(I({},e.title),{text:r.text,htmlFor:o})),d(Oa,{name:o,control:t,rules:{required:!!r.required,validate:Rr(r.validators,!!r.required)},render:({field:s})=>{const a=i.find(l=>l.value===s.value);return d(za,{options:i,placeholder:r.placeholder,closeMenuOnSelect:!0,name:s.name,value:a?[a]:[],onChange:l=>{const u=l&&Array.isArray(l)&&l.length?l[0].value:null;s.onChange(u)},parentElementRef:n,isMulti:!1,isClearable:!1,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},su=({control:t,layout:e,dataSourceQuestion:r,parentElementRef:n})=>{const i=r.options.map(s=>({value:String(s.id),label:s.text,layout:e.option,layoutSelected:e.optionSelected})),o=String(r.id);return d("div",{style:{display:"flex",flexDirection:"column",gap:"16px",boxSizing:"border-box"},children:[e.title&&d(ke,Y(I({},e.title),{text:r.text,htmlFor:o})),d(Oa,{name:o,control:t,rules:{required:!!r.required,validate:Rr(r.validators,!!r.required)},render:({field:s})=>{const a=i.filter(l=>{var u;return(u=s.value)==null?void 0:u.includes(l.value)});return d(za,{name:o,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:l=>{const u=l.map(_=>_.value);s.onChange(u)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Ka=()=>{const[t,e]=Ue(!1);return ot(()=>{const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("keydown",r),window.addEventListener("mousedown",n),()=>{window.removeEventListener("keydown",r),window.removeEventListener("mousedown",n)}},[]),t},au=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Ka(),l=String(r.id),_=i(l)===String(t.id),h=e.option,c=e.optionSelected,y={backgroundColor:le(c.backgroundColor),borderRadius:c.cornerRadius},g={backgroundColor:le(h.backgroundColor),borderRadius:h.cornerRadius},f=o&&a?{filter:`drop-shadow(0 0 1px ${nn})`}:{};return d("div",{children:d("label",{style:I({display:"flex",alignItems:"center",alignContent:"center",gap:8,cursor:"pointer"},_?y:g),children:[d("div",{style:I({display:"flex",alignItems:"center",alignContent:"center"},f),children:d(Le,I({},_?c.image:h.image))}),d(ke,Y(I({},_?c.title:h.title),{text:t.text})),d("input",Y(I({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:Rr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)}))]})},t.id)},lu=({layout:t,register:e,watch:r,dataSourceQuestion:n})=>d("div",{style:{boxSizing:"border-box"},children:d("fieldset",{style:{margin:0,padding:0,border:"none",display:"flex",flexDirection:"column",gap:"16px"},children:[t.title&&d("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:d(ke,Y(I({},t.title),{text:n.text}))}),n.options.map(i=>d(au,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),cu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Ka(),l=String(r.id),_=i(l)===String(t.id),h=e.option,c=e.optionSelected,y={borderRadius:h.cornerRadius,background:le(h.backgroundColor),borderColor:le(h.borderColor),borderWidth:h.borderWidth},g={borderRadius:c.cornerRadius,background:le(c.backgroundColor),borderColor:le(c.borderColor),borderWidth:c.borderWidth},f=o&&a?{outline:`2px solid ${nn}`}:{};return d("div",{style:{display:"flex",flexGrow:1},children:d("label",{style:I(I({width:"100%",padding:"8px 16px",cursor:"pointer",borderStyle:"solid",position:"relative"},_?g:y),f),children:[d("input",Y(I({style:{width:1,height:1,opacity:0,position:"absolute",left:"50%"}},n(l,{required:!!r.required,validate:Rr(r.validators,!!r.required)})),{value:t.id,type:"radio",onFocus:()=>s(!0),onBlur:()=>s(!1)})),d(ke,Y(I({},_?c.title:h.title),{text:t.text}))]})},t.id)},du=({layout:t,watch:e,register:r,dataSourceQuestion:n})=>d("div",{style:{boxSizing:"border-box"},children:d("fieldset",{style:{margin:0,padding:0,border:"none"},children:[t.title&&d("legend",{style:{margin:0,padding:0,marginBottom:"16px"},children:d(ke,Y(I({},t.title),{text:n.text}))}),d("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>d(cu,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),uu=({children:t,backgroundColor:e,cornerRadius:r=0,isError:n,isRequired:i,validationBorderColor:o,validationBorderWidth:s})=>{const a=I({position:"relative",flexShrink:0,width:"100%",fontWeight:300,lineHeight:"140%",backgroundColor:le(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&I(I({},le(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return d("div",{style:a,children:[i&&d("span",{style:{color:le(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},fu=({validationErrorsTypes:t,title:e})=>t?d("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>d(ke,Y(I({},e),{text:n}),r))}):null,hu=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,l,u,_,h,c,y,g,f,m,S,b,C,O;const n=String(e.id),i=N=>N?N===On.EMAIL?"email":N===On.FREE_TEXT?"text":N===On.NUMBER?"number":N===On.SECURE?"password":"text":"text";return d("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[d(ke,Y(I({},t.title),{text:e.text,htmlFor:n})),d("input",Y(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,type:i((o=t.textField)==null?void 0:o.inputType),style:{fontFamily:(a=(s=t==null?void 0:t.textField)==null?void 0:s.fontName)!=null?a:"sans-serif",fontSize:(u=(l=t==null?void 0:t.textField)==null?void 0:l.fontSize)!=null?u:15,color:(h=le((_=t==null?void 0:t.textField)==null?void 0:_.fontColor))!=null?h:"#000000",height:"42px",borderWidth:(y=(c=t==null?void 0:t.textField)==null?void 0:c.borderWidth)!=null?y:1,borderColor:(f=le((g=t==null?void 0:t.textField)==null?void 0:g.borderColor))!=null?f:"#d9d9d9",borderStyle:"solid",borderRadius:(S=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?S:8,padding:"11px",boxSizing:"border-box",backgroundColor:(C=le((b=t==null?void 0:t.textField)==null?void 0:b.backgroundColor))!=null?C:"#FFFFFF",outlineColor:nn},placeholder:(O=e.placeholder)!=null?O:"","data-id":n}))]})},pu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,o,s,a,l,u,_,h,c,y,g,f,m;const n=String(e.id);return d("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[d(ke,Y(I({},t.title),{text:e.text,htmlFor:n})),d("textarea",Y(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:S=>{S.currentTarget.style.height="auto",S.currentTarget.style.height=`${S.currentTarget.scrollHeight-15}px`},"data-id":n,style:{fontFamily:"sans-serif",fontSize:(s=(o=t==null?void 0:t.textField)==null?void 0:o.fontSize)!=null?s:15,color:(l=le((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(_=(u=t==null?void 0:t.textField)==null?void 0:u.borderWidth)!=null?_:1,borderColor:(c=le((h=t==null?void 0:t.textField)==null?void 0:h.borderColor))!=null?c:"#d9d9d9",borderStyle:"solid",borderRadius:(g=(y=t==null?void 0:t.textField)==null?void 0:y.cornerRadius)!=null?g:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=le((f=t==null?void 0:t.textField)==null?void 0:f.backgroundColor))!=null?m:"#FFFFFF",outlineColor:nn}}))]})},Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,xn);super({errorCode:e,errorCodeKey:o,errorEnumName:Wt.ERROR_ENUM_NAME,module:Wt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:Wt.ERROR_ENUM_NAME,shortDomainCode:Wt.SHORT_CODE})}};Wt.MODULE=An,Wt.ERROR_ENUM_NAME="GuiModuleError",Wt.SHORT_CODE="GM";let cn=Wt;const _u=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:o,properties:s,backgroundColor:a})=>{const{perform:l}=fr(),u=s?qc(o.questions,s):{},_=st(null),{register:h,handleSubmit:c,formState:{errors:y},reset:g,watch:f,control:m}=ru({criteriaMode:"all",defaultValues:u});return d(Xt,{header:t,footer:n,backgroundColor:a,children:d("form",{onSubmit:c(b=>{l(Kc(b)),g()}),style:{height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},noValidate:!0,children:[d("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:le(i.backgroundColor)||"transparent"},ref:_,children:[e&&d("div",{style:{lineHeight:"39.2px",width:"100%"},children:d(ke,I({},e))}),d("div",{"data-ui":"gui-questions",part:"gui-questions",style:{width:"100%",display:"flex",gap:"10px",flexDirection:"column"},children:o.questions.map(b=>{var me;const C=o.static,O=(ee,Q)=>Q.find(H=>{var J;if((J=H.questionIds)!=null&&J.length)return H.questionIds.find(de=>ee===de)}),N=(ee,Q)=>Q.find(H=>!H.questionIds&&H.answerType===ee),R=C?O(String(b.id),i.itemTypes)||N(b.answerType,i.itemTypes):i.itemTypes.find(ee=>ee.answerType===b.answerType);if(!R){const ee=new cn({errorCode:xn.DECODING_FAILED,message:"The question template has not been found"});l(ee);return}const F=R==null?void 0:R.displayType,_e=b.id in y&&((me=y[b.id])==null?void 0:me.types);return d(je,{children:[d(uu,{backgroundColor:R==null?void 0:R.backgroundColor,cornerRadius:R==null?void 0:R.cornerRadius,isError:!!_e,isRequired:b.required,validationBorderColor:R==null?void 0:R.validationBorderColor,validationBorderWidth:R==null?void 0:R.validationBorderWidth,children:[F===Or.TEXT_EXPANDABLE&&d(pu,{layout:R,dataSourceQuestion:b,register:h}),F===Or.TEXT_SINGLE_LINE&&d(hu,{layout:R,dataSourceQuestion:b,register:h}),F===Or.SELECTOR_OPTIONS&&d(lu,{layout:R,dataSourceQuestion:b,watch:f,register:h}),F===Or.SELECTOR_BUTTONS&&d(du,{layout:R,dataSourceQuestion:b,watch:f,register:h}),F===Or.SELECTOR_DROPDOWN&&d(ou,{control:m,layout:R,dataSourceQuestion:b,parentElementRef:_}),F===Or.MULTI_SELECTOR_DROPDOWN&&d(su,{control:m,layout:R,dataSourceQuestion:b,parentElementRef:_})]}),_e&&d(fu,{validationErrorsTypes:_e,title:R.validationMessage})]},b.id)})})]}),!!(r!=null&&r.length)&&d("div",{style:{display:"flex",width:"100%",flexGrow:0,flexShrink:0,justifyContent:"center",alignItems:"flex-end",padding:"2px"},children:r.map((b,C)=>d(io,I({dataTestId:"question-button"},b),C))})]})})},mu={display:"none"},gu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},wu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},vu=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var _,h;const{perform:o}=fr(),s=st(null),a=typeof i=="number"&&(i===0||i>1),l=c=>P(null,null,function*(){var g;const y=Array.from((g=c.currentTarget.files)!=null?g:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>P(null,null,function*(){return{content:yield ma(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),u=()=>{var c;(c=s.current)==null||c.showPicker()};return d(Xt,{header:t,footer:e,backgroundColor:n,children:d(je,{children:d("div",{style:Y(I({},wu),{justifyContent:"center"}),children:[d("input",Y(I({style:mu,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:l})),d("button",{style:gu,onClick:u,children:d(Le,{imageId:(h=(_=r==null?void 0:r[0])==null?void 0:_.image)==null?void 0:h.imageId})})]})})})},yu={display:"none"},bu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Cu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Su=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var _,h;const{perform:o}=fr(),s=st(null),a=typeof i=="number"&&(i===0||i>1),l=c=>P(null,null,function*(){var g;const y=Array.from((g=c.currentTarget.files)!=null?g:[]);if(y.length)try{const m=(yield Promise.allSettled(y.map(S=>P(null,null,function*(){return{content:yield ma(S),metadata:{name:S.name,type:S.type,size:S.size,lastModified:S.lastModified}}})))).filter(S=>S.status==="fulfilled").map(S=>S.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),u=()=>P(null,null,function*(){var c;(c=s.current)==null||c.showPicker()});return ot(()=>{P(null,null,function*(){if(Jt.isDesktop)return;const c=yield Zc();(c==="denied"||c==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),d(Xt,{header:t,footer:e,backgroundColor:r,children:d(je,{children:d("div",{style:Y(I({},Cu),{justifyContent:"center"}),children:[d("input",Y(I({style:yu,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:l})),d("button",{style:bu,onClick:u,children:d(Le,{imageId:(h=(_=n==null?void 0:n[0])==null?void 0:_.image)==null?void 0:h.imageId})})]})})})};function Eu(){const t=st(null),[e,r]=Ue(!1);return{ref:t,isPopoverOpen:e,openPopover:()=>{var o;(o=t.current)==null||o.showPopover(),r(!0)},closePopover:()=>{var o;(o=t.current)==null||o.hidePopover(),r(!1)}}}const Ga=()=>P(null,null,function*(){var t;try{const e=yield navigator.permissions.query({name:"geolocation"});return(t=e==null?void 0:e.state)!=null?t:"unknown"}catch(e){return"unknown"}}),Tu=()=>P(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),mo=t=>P(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{lat:null,lon:null,error:"Geolocation is not supported"}});navigator.geolocation.getCurrentPosition(r=>e({location:{lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{const n=r!=null&&r.message?` Error message: ${r.message}`:"";e({location:{lat:null,lon:null,error:`Failed to get geolocation data via navigator.${n}`}})},t)})}),Iu={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},Ou={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"},Au={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},xu={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Ru={padding:"24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(550px, calc(100vw - 32px))",height:"min(250px, calc(100dvh - 32px))",gridTemplateRows:"auto 1fr"},qa={display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",marginBottom:"30px"},ku={padding:0,border:"none",background:"transparent",cursor:"pointer"},Nu=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s,popup:a})=>{var m,S,b;const{perform:l}=fr(),{setIsProcessingCallback:u}=jc(),{ref:_,isPopoverOpen:h,openPopover:c,closePopover:y}=Eu(),g={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4};Yt(()=>{u==null||u(!0)},[]),ot(()=>{let C=!0;return P(null,null,function*(){if((yield Ga())!=="granted"){u==null||u(!1);return}const N=yield mo(g);C&&l(N)}),()=>{C=!1}},[]),ot(()=>{let C=!0,O=null;return P(null,null,function*(){const N=yield Tu();N&&(O=N,N.onchange=()=>P(null,null,function*(){if(N.state!=="granted")return;u==null||u(!0);const R=yield mo(g);C&&l(R)}))}),()=>{C=!1,O&&(O.onchange=null)}},[]);const f=C=>P(null,null,function*(){C.preventDefault();const O=yield Ga();if(O==="denied"){c();return}O==="prompt"&&(yield mo())});return d(Xt,{header:e,footer:r,backgroundColor:s,children:[d("div",{style:Iu,children:[d("div",{style:Ou,children:[n&&d("div",{style:xu,children:d(Le,I({},n))}),t&&d("div",{style:{marginBottom:20,lineHeight:"39.2px",width:"100%"},children:d(ke,I({},t))}),i&&d("div",{style:{lineHeight:"28px",fontWeight:"400",width:"100%"},children:d(Rn,I({},i))})]}),!!(o!=null&&o.length)&&d("div",{style:{display:"flex",flexDirection:"column"},children:o.map((C,O)=>d("div",{style:{padding:"5px"},children:d(io,I(I({dataTestId:"question-button"},C),C.type==="FORM"?{onClick:f}:{}))},O))})]}),d("div",{ref:_,popover:"manual",role:"dialog","aria-modal":"true",style:Y(I({},Ru),{borderRadius:a.cornerRadius}),children:[d("div",{style:qa,children:[d("strong",{children:(m=a.title)==null?void 0:m.text}),d("button",{style:ku,onClick:y,"aria-label":"Close",children:d(Le,{imageId:(S=a.closeButton.image)==null?void 0:S.imageId})})]}),d("div",{style:qa,children:d("span",{children:(b=a.message)==null?void 0:b.text})})]}),h&&d("div",{style:Au,onPointerDown:C=>{C.preventDefault(),C.stopPropagation(),y()}})]})},Za=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:o}=fr();if(!e||!r)return d(ya,{});const s=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===ut.STATUS)return d(Od,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,description:r==null?void 0:r.description,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===ut.INFO)return d(Rd,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,image:r==null?void 0:r.image,title:r==null?void 0:r.title,description:r==null?void 0:r.description,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor});if(e===ut.GEOLOCATION)return d(Nu,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popup:r.popup});if(e===ut.PROGRESS)return d(ya,{header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,progressView:r==null?void 0:r.progressView,backgroundColor:r==null?void 0:r.backgroundColor});if(e===ut.INFO_DETAILS)return d(Pd,{header:r==null?void 0:r.header,title:r==null?void 0:r.title,details:r==null?void 0:r.details,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:r==null?void 0:r.backgroundColor});if(e===ut.CAMERA)return d(Su,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(e===ut.GALLERY)return d(vu,{header:r==null?void 0:r.header,buttons:r==null?void 0:r.buttons,footer:r==null?void 0:r.footer,backgroundColor:t.backgroundColor,selectionLimit:t.selectionLimit});if(n&&(n!=null&&n.questions.length)&&e===ut.QUESTIONS)return d(_u,{dataSource:n,properties:i,questions:r.questions,header:r==null?void 0:r.header,footer:r==null?void 0:r.footer,title:r==null?void 0:r.title,buttons:r==null?void 0:r.buttons,backgroundColor:r==null?void 0:r.backgroundColor},s);if(e===ut.QUESTIONS&&!n){const l=new cn({errorCode:xn.DECODING_FAILED,message:"No data for questions"});return o(l),null}const a=new cn({errorCode:xn.DECODING_FAILED,message:"Unsupported step template"});return o(a),null};let go=!1;const Ya=({children:t})=>d("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),Du=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:o,properties:s}=e,a=l=>{r&&r(l)};return n===ut.QUESTIONS?d(ha,{perform:a,children:d(Ya,{children:d(Za,{properties:s,dataSource:o,templateId:n,templateLayout:i})})}):d(ha,{perform:a,setIsProcessingCallback:t,children:d(Ya,{children:d(Za,I(I({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},dn=class dn extends ua{constructor(){super(),this._mounted=!1,this._shadowRoot=this.attachShadow({mode:"open"}),this.props=null}setProps(e){this.props={idvEventListener:e.idvEventListener,moduleProps:e.moduleProps,isProcessing:e.isProcessing,perform:e.perform},this.render()}connectedCallback(){this.render(),this._mounted=!0}render(){if(!this.props)return"";if(this.shadowRoot){const e=document.createElement("style");e.id="idv-gui-styles",e.textContent=`
92
92
  *, *::before, *::after {
93
93
  box-sizing: border-box;
94
94
  }
@@ -106,14 +106,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
106
106
  width: 100%;
107
107
  height: 100%;
108
108
  }
109
- `,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}Sr(u(Du,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this._shadowRoot)}disconnectedCallback(){setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return go}static initialize(e){go=!0}static deinitialize(){go=!1}};dn.displayName=An,dn.getSupportedTemplates=()=>Object.values(dt),dn.getIdentifier=()=>An;let Mn=dn;fa(An,Mn);const Pu=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_prepareDataForWorkflow:n=>{e().setWorkflowId(n.workflow.id),e().setWorkflow(n.workflow),e().setLayout(n.workflow.client.layout),e().setProcessingTemplate(n.workflow.client.steps),e().setSessionProperties(n.properties)},_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const o=e().workflowId,s=e().apiKeyAuthTokenCollection;"authToken"in s&&"apiKey"in s&&cr.setAuthTokenToLs(s.authToken,s.apiKey,n,o,s.tokenExpiresAt)},_checkIsSessionDataValid:n=>{if("httpCode"in n){const i="what"in n&&typeof n.what=="string"&&n.what.length?n.what:null,o=new dr(I({errorCode:qt.HTTP_ISSUE},i?{message:i}:{}));return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:o})}}if("id"in n&&"currentStep"in n)return n;{const i=new dr({errorCode:qt.DECODING_FAILED});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>U(null,null,function*(){const{host:i,isSecure:o,port:s}=e().startConfig;if(i&&n&&(yield ur.connect({host:i,isSecure:o,port:s,token:n})),!i||!n||!ur.isConnected()){const a=new dr({errorCode:qt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>U(null,null,function*(){var y;const o=e().startConfig,s="apiKey"in o&&typeof o.apiKey=="string",a=e().workflowId,l=i?br.DID_CONTINUE_REMOTE_SESSION:br.DID_START_RESTORE_SESSION;let d;if(i)d=i;else if(s){if(!e().sessionRestoreMode)return{};const g=o.apiKey,f=cr.getAuthTokenLs(),m=f&&((y=f[g])==null?void 0:y.sessionId);if(!m)return{};m&&(d=m)}else{if(!e().sessionRestoreMode)return{};const g=e().getCurrentSessionDataLs();if(!g)return{};const f=g.sessionId,m=g.workflowId;if(!f||m!==a)return{};d=f}const _=yield e().fetchService.continueSession(d,n),h=e()._checkIsSessionDataValid(_.data);if(!la(h))return{error:h.error};e()._prepareDataForWorkflow(h);const c=h.currentStep;return e().setCurrentStepId(c),s?e()._checkAndSetApiTokenToLs(h.id):e().setCurrentSessionDataLsAndStore({sessionId:h.id,workflowId:a}),e().setNextStep(h.workflow,h.properties,c),e().listener({eventType:Hr.MESSAGE,message:l,module:"IDV"}),h}),initialize(n){return U(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return new bn({errorCode:Wr.INITIALIZATION_IN_PROGRESS});t({_initializationInProgress:!0}),yield e().setAndInitFetchService(),t({modulesConfig:n.modulesConfig||{}});let i=[Mn];if(Array.isArray(n==null?void 0:n.includedModules)){const s=n.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!i.some(l=>l.displayName===a.displayName));i=[...i,...s]}const o=yield e().loadModules(i);return o.error?{error:o.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(n){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(f=>!(n!=null&&n[f]));if(o.length>0)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=Qi(n.baseUrl);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};typeof n.ttl=="number"&&!Number.isNaN(n.ttl)&&t({_ttl:n.ttl});const a=e()._ttl,l={host:s.host,isSecure:s.isSecure,port:s.port,apiKey:n.apiKey,deviceDescriptor:{ttl:a}},d=cr.getAuthTokenLs(),_=d&&d[n.apiKey]&&d[n.apiKey].authToken?d[n.apiKey]:null,h=_&&_.authToken,c=yield e().connectByApiKey(l);if(c.error)return{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:c.error})};h&&c.authToken!==h&&cr.removeAuthTokenLs(n.apiKey);const y=_&&c.authToken===_.authToken&&_,g=y?y.tokenExpiresAt:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,c.authToken,g),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:n.apiKey,port:s.port}),c})},configureWithUrl(n){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const i=$c(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const o=yield e().connectByUrl(n);if(o.error)return{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=Qi(n);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n}`})};e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port})}catch(s){console.log("Invalid urlWithToken")}return o})},configureByUserPass(n){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(d=>!(n!=null&&n[d]));if(o.length>0)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=Qi(n.baseUrl);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a={host:s.host,isSecure:s.isSecure,password:n.password,port:s.port,userName:n.userName},l=yield e().connectByUserPass(a);return l.error?{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:l.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),l)})},getWorkflows(){return U(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new xt({errorCode:mt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new xt({errorCode:mt.CONNECTION_ISSUE})};const i=yield e().fetchService.listWorkflows(n);if(i.code!==0){const o=i.code===4?gt.HTTP_ISSUE:gt.PROVIDER_ERROR,s=new En({errorCode:o});return{error:new xt({errorCode:mt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return U(this,null,function*(){var g;if(!e()._isInitialized)return{error:new xt({errorCode:mt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new xt({errorCode:mt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new xt({errorCode:mt.SCENARIO_IN_PROGRESS})};const i=yield e().fetchService.getWorkflow(n),o=Zi(i.data),s=((g=o.client)==null?void 0:g.steps)&&o.client.steps.some(f=>f.templateId===bi);let a=null;if(i.code===4&&(a=gt.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=gt.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=gt.DECODING_FAILED),i.code===0&&i.data.id&&o===null&&(a=gt.DECODING_FAILED),s||(a=gt.DECODING_FAILED),a!==null){const f=new En({errorCode:a});return{error:new xt({errorCode:mt.INTERNAL_ISSUE,underlyingBaseError:f})}}const l=e().externalModules,d=o.steps,{isAllTemplatesSupported:_,unsupportedSteps:h}=Dc(l,d);_||console.log("IDV:: Warning. Unsupported steps found: ",h);const c=e().workflowId;c&&n!==c&&l.forEach(f=>{f.component.deinitialize()});const y=e().modulesConfig;return l.forEach(f=>{f.component.isReady()||f.component.initialize(y)}),e().setLayout(o.client.layout),e().setProcessingTemplate(o.client.steps),e().setWorkflowId(n),{workflow:o}})},startNewSession(n,i,o){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Ze({errorCode:We.INITIALIZATION_REQUIRED})};const s=e().workflowId;if(!s)return{error:new Ze({errorCode:We.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ze({errorCode:We.ALREADY_STARTED})};const a=S=>{ur&&ur.close(),n(S)};e().setWorkflowSessionCompletion(a);const l=e().startConfig,d="apiKey"in l&&typeof l.apiKey=="string",_=e().apiKeyAuthTokenCollection;if(d&&"tokenExpiresAt"in _){const S=_.tokenExpiresAt&&typeof _.tokenExpiresAt=="number"?_.tokenExpiresAt:0;if(Date.now()>S){const C=yield e().connectByApiKey({apiKey:l.apiKey,host:l.host,deviceDescriptor:{ttl:e()._ttl}});if(cr.removeAuthTokenLs(l.apiKey),C.error)return{error:new dr({errorCode:qt.CONNECTION_ISSUE,underlyingBaseError:C.error})};if(C&&"authToken"in C){const O=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(l.apiKey,C.authToken,O)}}}e().setIsProcessing(!0);const h=yield e().fetchService.getConnectionToken(!1);if(!h||typeof h!="string"){const S=new dr({errorCode:qt.TOKEN_ERROR});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:S})}}e().setServiceSessionToken(h);const c=yield e()._runSocketConnection(h);if(c.error)return{error:c.error};const y=e()._sessionIdFromUrl,g=yield e()._continueSession(i,y);if("sessionId"in g)return{results:g};if("error"in g)return{error:g.error};if("id"in g)return{};const f=yield e().fetchService.startSession(s,i,o),m=e()._checkIsSessionDataValid(f.data);return la(m)?(e()._prepareDataForWorkflow(m),d?e()._checkAndSetApiTokenToLs(m.id):e().setCurrentSessionDataLsAndStore({sessionId:m.id,workflowId:s}),e().setIsProcessing(!1),e().setCurrentStepId(m.currentStep),e().listener({eventType:Hr.MESSAGE,message:br.DID_START_SESSION,module:"IDV"}),{}):{error:m.error}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new Ze({errorCode:We.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return U(this,null,function*(){if(!e()._isInitialized)return{error:new Sn({errorCode:jr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Sn({errorCode:jr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}});class Mu{constructor(){this._connectionTokenExpirationBufferMs=6e4,this._origin="",this._locale="",this._workflowId="",this._session=null,this._apiKeyAuthToken={token:"",expiresAt:0},this._connectionToken={token:"",expiresAt:0},this._connect=null,this._getErrorTextFromError=e=>e instanceof Error?e.message:String(e)}_setApiKeyAuthToken(e){this._apiKeyAuthToken=e}_setConnectionToken(e){this._connectionToken=e}_getOriginFromConfig(e){return`http${e.isSecure?"s":""}://${e.host}${e.port?`:${e.port}`:""}`}_getOriginFromUrl(e){try{return new URL(e).origin}catch(r){return""}}_getExpiresAtFromTtl(e){return Date.now()+1e3*e}_getAuthorizationHeaderFromConnectionToken(e){return`Connection ${e}`}_getAuthorizationHeaderFromBasicToken(e){return`Basic ${e}`}_getAuthorizationHeaderFromAuthToken(e){return`Token ${e}`}_getApiKeyAuthTokenFromLs(e){var o,s;const r=cr.getAuthTokenLs(),n=(o=r==null?void 0:r[e])==null?void 0:o.authToken,i=Number(((s=r==null?void 0:r[e])==null?void 0:s.tokenExpiresAt)||0);return!n||!i||Number.isNaN(i)||i<=Date.now()?null:{token:n,expiresAt:i}}_getApiKeyAuthTokenFromHeader(e){return e.replace(/^Token\s+/i,"")}_getValidApiKeyAuthToken(e,r){return U(this,null,function*(){if(this._apiKeyAuthToken.token){if(r)return{code:0,data:this._apiKeyAuthToken};if(Date.now()<this._apiKeyAuthToken.expiresAt)return{code:0,data:this._apiKeyAuthToken};const a=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(a.code!==0)return a;const l=this._getApiKeyAuthTokenFromHeader(a.data.authorization),d=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:l,expiresAt:d}}}const n=this._getApiKeyAuthTokenFromLs(e.apiKey);if(n)return{code:0,data:n};const i=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(i.code!==0)return i;const o=this._getApiKeyAuthTokenFromHeader(i.data.authorization),s=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:o,expiresAt:s}}})}_getAuthorizationSearchParam(e){var r;try{return(r=new URL(e).searchParams.get("authorization"))!=null?r:""}catch(n){return""}}_getResponseTextFromBadResponse(e){return U(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return U(this,null,function*(){const r=`${this._origin}/api/ping`;try{const n=yield fetch(r,{method:"GET"}),i={httpCode:n.status,method:"GET",url:r};if(!n.ok){const s=yield this._getResponseTextFromBadResponse(n);return s&&(i.what=s),{code:5,data:i}}let o;try{if(o=yield n.json(),(o==null?void 0:o.status)!=="OK")return{code:6,data:i}}catch(s){const a=this._getErrorTextFromError(s);return i.what=a,{code:6,data:i}}return{code:0,data:o}}catch(n){const i=this._getErrorTextFromError(n);return{code:4,data:{httpCode:0,method:"GET",url:r,what:i}}}})}_fetchMe(e){return U(this,null,function*(){const n=`${this._origin}/api/user/me`;try{const i=yield fetch(n,{headers:{authorization:e},method:"GET"}),o={httpCode:i.status,method:"GET",url:n};if(!i.ok){const a=yield this._getResponseTextFromBadResponse(i);return a&&(o.what=a),{code:5,data:o}}let s;try{if(s=yield i.json(),!s)return{code:6,data:o}}catch(a){const l=this._getErrorTextFromError(a);return o.what=l,{code:6,data:o}}return{code:0,data:s}}catch(i){const o=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:"GET",url:n,what:o}}}})}_fetchConnection(e){return U(this,null,function*(){const r="POST",n=`${this._origin}/api/device/connection`;try{const i=yield fetch(n,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(Bc()),method:r}),o={httpCode:i.status,method:r,url:n};if(!i.ok){const a=yield this._getResponseTextFromBadResponse(i);return a&&(o.what=a),{code:5,data:o}}let s;try{if(s=yield i.json(),!(s!=null&&s.token)||!(s!=null&&s.expiresAt))return{code:6,data:o}}catch(a){const l=this._getErrorTextFromError(a);return o.what=l,{code:6,data:o}}return{code:0,data:{token:s.token,expiresAt:+new Date(s.expiresAt),workflows:s.workflows}}}catch(i){const o=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:r,url:n,what:o}}}})}_fetchEphemeral(e,r){return U(this,null,function*(){const n="POST",i=`${this._origin}/api/device/ephemeral`;try{const o=yield fetch(i,{headers:{authorization:`ApiKey ${e}`,"content-type":"application/json"},body:JSON.stringify({ttl:r}),method:n}),s={httpCode:o.status,method:n,url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!(a!=null&&a.authorization))return{code:6,data:s}}catch(l){const d=this._getErrorTextFromError(l);return s.what=d,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:n,url:i,what:s}}}})}_fetchSessionByWorkflowId(e,r,n){return U(this,null,function*(){const i="POST",o=`${this._origin}/api/sessions?workflowId=${r||this._workflowId}`;try{const s=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:i}),a={httpCode:s.status,method:i,url:o};if(!s.ok){const d=yield this._getResponseTextFromBadResponse(s);return d&&(a.what=d),{code:5,data:a}}let l;try{if(l=yield s.json(),!(l!=null&&l.id))return{code:6,data:a}}catch(d){const _=this._getErrorTextFromError(d);return a.what=_,{code:6,data:a}}return{code:0,data:l}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:i,url:o,what:a}}}})}_fetchSessionState(e,r,n){return U(this,null,function*(){var s;const o=`${this._origin}/api/sessions/${r||((s=this._session)==null?void 0:s.id)}?locale=${n||this._locale}`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},method:"GET"}),l={httpCode:a.status,method:"GET",url:o};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let d;try{if(d=yield a.json(),!(d!=null&&d.id))return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:d}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:o,what:l}}}})}_fetchWorkflows(n){return U(this,arguments,function*(e,r={limit:0,skip:0}){const o=new URL(`${this._origin}/api/workflows`);typeof r.limit=="number"&&r.limit>=0&&o.searchParams.set("limit",String(r.limit)),typeof r.skip=="number"&&r.skip>=0&&o.searchParams.set("skip",String(r.skip));const s=o.toString();try{const a=yield fetch(s,{headers:{authorization:e},method:"GET"}),l={httpCode:a.status,method:"GET",url:s};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:d}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:s,what:l}}}})}_fetchWorkflow(e,r){return U(this,null,function*(){const i=`${this._origin}/api/workflows/${r}?renderClient=true`;try{const o=yield fetch(i,{headers:{authorization:e},method:"GET"}),s={httpCode:o.status,method:"GET",url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!a)return{code:6,data:s}}catch(l){const d=this._getErrorTextFromError(l);return s.what=d,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:"GET",url:i,what:s}}}})}_fetchStep(e,r,n){return U(this,null,function*(){var s;const i="POST",o=`${this._origin}/api/sessions/${(s=this._session)==null?void 0:s.id}/step/${r}?stage=0`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:i}),l={httpCode:a.status,method:i,url:o};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:d}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:i,url:o,what:l}}}})}_fetchSessionLogs(e,r){return U(this,null,function*(){var o;const n="POST",i=`${this._origin}/api/sessions/${(o=this._session)==null?void 0:o.id}/logs`;try{const s=yield fetch(i,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(r.body),method:n}),a={httpCode:s.status,method:n,url:i};if(!s.ok){const d=yield this._getResponseTextFromBadResponse(s);return d&&(a.what=d),{code:5,data:a}}let l;try{if(l=yield s.json(),!l)return{code:6,data:a}}catch(d){const _=this._getErrorTextFromError(d);return a.what=_,{code:6,data:a}}return{code:0,data:l}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:n,url:i,what:a}}}})}connectByUserPass(e){return U(this,null,function*(){!e.userName||e.password,this._connect={type:"byUserPass",arg:e},this._origin=this._getOriginFromConfig(e);const r=yield this._fetchPing();if(r.code!==0)return r;const n=`${btoa(`${e.userName}:${e.password}`)}`;let i=this._getAuthorizationHeaderFromBasicToken(n),o=yield this._fetchMe(i);if(o.code!==0)return o;const s=yield this._fetchConnection(i);return s.code!==0?s:(this._setConnectionToken(s.data),i=this._getAuthorizationHeaderFromConnectionToken(s.data.token),o=yield this._fetchMe(i),o.code!==0?o:{code:0,data:{workflows:s.data.workflows}})})}connectByApiKey(e,r){return U(this,null,function*(){e.apiKey,this._connect={type:"byApiKey",arg:e},this._origin=this._getOriginFromConfig(e);const n=yield this._fetchPing();if(n.code!==0)return n;const i=yield this._getValidApiKeyAuthToken(e,r);if(i.code!==0)return i;this._setApiKeyAuthToken(i.data);let o=this._getAuthorizationHeaderFromAuthToken(i.data.token),s=yield this._fetchMe(o);if(s.code!==0)return s;const a=yield this._fetchConnection(o);return a.code!==0?a:(this._setConnectionToken(a.data),o=this._getAuthorizationHeaderFromConnectionToken(a.data.token),s=yield this._fetchMe(o),s.code!==0?s:{code:0,data:{authToken:i.data.token,workflows:a.data.workflows}})})}connectByUrl(e){return U(this,null,function*(){this._connect={type:"byUrl",arg:e};const r=this._getOriginFromUrl(e);this._origin=r;let n=this._getAuthorizationSearchParam(e);const i=yield this._fetchPing();if(i.code!==0)return i;let o=yield this._fetchMe(n);if(o.code!==0)return o;const s=yield this._fetchConnection(n);return s.code!==0?s:(this._setConnectionToken(s.data),n=this._getAuthorizationHeaderFromConnectionToken(s.data.token),o=yield this._fetchMe(n),o.code!==0?o:{code:0,data:{workflows:s.data.workflows}})})}getConnectionToken(e){return U(this,null,function*(){var r,n,i;return+new Date<+new Date(this._connectionToken.expiresAt)-this._connectionTokenExpirationBufferMs?this._connectionToken.token:((r=this._connect)==null?void 0:r.type)==="byUserPass"?(yield this.connectByUserPass(this._connect.arg),this._connectionToken.token):((n=this._connect)==null?void 0:n.type)==="byApiKey"?(yield this.connectByApiKey(this._connect.arg,e),this._connectionToken.token):((i=this._connect)==null?void 0:i.type)==="byUrl"?(yield this.connectByUrl(this._connect.arg),this._connectionToken.token):""})}startSession(e,r,n){return U(this,null,function*(){const i={locale:r};Mc(n)&&(i.metadata=n);const o=yield this.getConnectionToken(!1),s=this._getAuthorizationHeaderFromConnectionToken(o),a=yield this._fetchSessionByWorkflowId(s,e,i);return a.code===0&&(this._session=a.data,this._locale=r),a})}continueSession(e,r){return U(this,null,function*(){const n=yield this.getConnectionToken(!1),i=this._getAuthorizationHeaderFromConnectionToken(n),o=yield this._fetchSessionState(i,e,r);return o.code===0&&(this._session=o.data,this._locale=r),o})}listWorkflows(){return U(this,arguments,function*(e={limit:0,skip:0}){const r=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflows(n,e)})}getWorkflow(e){return U(this,null,function*(){this._workflowId=e;const r=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflow(n,e)})}pushData(e,r){return U(this,null,function*(){const n=yield this.getConnectionToken(!0),i=this._getAuthorizationHeaderFromConnectionToken(n),o=yield this._fetchStep(i,e,r);if(o.code!==0)return o;const s=yield this._fetchSessionState(i);return s.code===0&&(this._session=s.data),s})}getSessionState(){return U(this,null,function*(){const e=yield this.getConnectionToken(!0),r=this._getAuthorizationHeaderFromConnectionToken(e),n=yield this._fetchSessionState(r);return n.code===0&&(this._session=n.data),n})}pushSessionLogs(e){return U(this,null,function*(){const r=yield this.getConnectionToken(!0),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(n,e)})}}const Fu=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>U(null,null,function*(){const n=new Mu;t({fetchService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return U(this,null,function*(){const o=yield e().fetchService.connectByApiKey(n,!1);if(o.code!==0){const s=o.code===4?It.HTTP_ISSUE:It.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)});return{error:new Cn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(n){return U(this,null,function*(){const i=yield e().fetchService.connectByUserPass(n);if(i.code!==0){const o=i.code===4?It.HTTP_ISSUE:It.PROVIDER_ERROR;return{error:new tn({errorCode:o,message:JSON.stringify(i.data)})}}return{workflows:i.data.workflows}})},connectByUrl(n){return U(this,null,function*(){const o=yield e().fetchService.connectByUrl(n);if(o.code!==0){const s=o.code===4?It.HTTP_ISSUE:It.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)}),l=new Cn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:l}}return{workflows:o.data.workflows}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:n=>{const i=o=>{var d;const s=(d=e().currentSessionData)==null?void 0:d.sessionId,a=Y(I({},o.results),{sessionId:s}),l=I({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),n(l),o.error){const h=yi.getLogs().join("; ");e().fetchService.pushSessionLogs({body:{log:h,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}yi.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>U(null,null,function*(){try{const i=yield Uu(n);return t(()=>({externalModules:i})),{}}catch(i){return e().resetFetchService(),e().resetProps(),{error:new bn({errorCode:Wr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Zi(n.find(o=>o.templateId===bi));i.templateLayout=aa(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i)=>U(null,null,function*(){let o=null;return yield Rc(()=>U(null,null,function*(){const l=yield e().fetchService.pushData(n,i);let d=null;if(l.code===4&&(d=it.HTTP_ISSUE),l.code!==0&&l.code!==4&&(d=it.PROVIDER_ERROR),d!==null){const _=new rn({errorCode:it.HTTP_ISSUE});o=new Ze({errorCode:We.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:_})}return l.code===0?(o=null,l):null}),()=>null),o?{error:o}:{}}),_findStepById:n=>{const i=e().workflow;if(!i||!n)return null;const o=i.steps.find(s=>s.id===n);return o!=null?o:null},_waitingForNextStep:()=>U(null,null,function*(){let n=null,i=null;const o=()=>U(null,null,function*(){var b,C,O;const a=yield e().fetchService.getSessionState(),l=a.code===0,d=l?a.data:null,_=(b=d==null?void 0:d.currentStep)!=null?b:"",h=d==null?void 0:d.isProcessingFiles,c=(O=(C=d==null?void 0:d.workflow)==null?void 0:C.steps)!=null?O:[],y=Nc(c,_),g=a.code===4,f=a.code!==0&&a.code!==4,m=l&&(!a.data.workflow||!a.data.currentStep);let S=null;if(c&&!y&&(S=it.NOT_DATA_TYPE),g&&(S=it.HTTP_ISSUE),f&&(S=it.PROVIDER_ERROR),h&&(S=it.IS_PROCESSING),m&&(S=it.DECODING_FAILED),S!==null){const N=new rn({errorCode:S});n=new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:N})}return y&&!h&&!g&&!f&&!m?(n=null,a.data):null});return yield new Promise(a=>{let _=0,h;const c=y=>U(null,null,function*(){if(y){h=window.setTimeout(()=>{c(!1)},1e4);return}i=yield o(),_++,!i&&_<6?h=window.setTimeout(()=>{c(!1)},1e4):(ur.clearSubscriptions(),a())});if(ur.isConnected()){const y=g=>{JSON.parse(atob(JSON.parse(g).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(h),c(!1))};ur.onMessage(y)}c(!0)}),n?{error:n}:i?{sessionData:i}:(n=new rn({errorCode:it.DECODING_FAILED}),{error:new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:n})})}),setFinalStepAndStopProcess:n=>{const i=n||e().currentStepId;if(!i)return;const o=e()._findStepById(i);o&&(e().workflowSessionCompletion({results:{finalStep:{id:o.id,name:o.name,final:o.final}}}),e().resetSession(),e().listener({eventType:Hr.MESSAGE,message:br.DID_END_SESSION,module:"IDV"}))},setNextStep:(n,i,o)=>{e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i);const s=e()._findStepById(o),a=l=>!!l&&Object.prototype.toString.call(l)==="[object Object]"&&l.templateId;if(s!=null&&s.final&&!a(s.client)){e().setFinalStepAndStopProcess(s.id);return}s!=null&&s.final&&a(s.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1)},pushStepWaitNextStepAndSet:n=>U(null,null,function*(){const i=e().currentStepId;if(!i)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const _=n,h=new Ze({errorCode:We.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:_});e().workflowSessionCompletion({error:h}),e().resetSession();return}const o=yield e()._pushStep(i,n);if(o.error){e().workflowSessionCompletion({error:o.error}),e().resetSession();return}const s=yield e()._waitingForNextStep();if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const a=s.sessionData.workflow,l=s.sessionData.currentStep,d=s.sessionData.properties;e().setNextStep(a,d,l)}),onChangeScreen:n=>{var l,d,_,h;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,o=e().sessionProperties;let s=null;if(n===bi&&e().processingTransformedTemplate!==null){const c=e().processingTransformedTemplate;c&&(s={templateId:c.templateId,templateLayout:c.templateLayout,dataSource:null})}else{const c=e()._findStepById(n);if(typeof((l=c==null?void 0:c.client)==null?void 0:l.templateId)=="string"&&(s=Y(I({},c==null?void 0:c.client),{templateId:c.client.templateId,dataSource:(d=c.dataSource)!=null?d:null,properties:o})),s&&(s.sessionId=(_=e().currentSessionData)==null?void 0:_.sessionId,s.serviceToken=e().serviceToken),s&&Fc((h=c==null?void 0:c.client)==null?void 0:h.templateLayout)){const y=aa(c.client.templateLayout,e().layout);y&&(s.templateLayout=y)}}const a=kc(e().externalModules,i.steps,n);if(s===null||!a){const c=new Ze({errorCode:We.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:c}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:s}))},deinitializationIdv:()=>U(null,null,function*(){return e().resetFetchService(),e().externalModules.forEach(n=>{n.component.deinitialize&&n.component.isReady&&n.component.deinitialize()}),{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetFetchService:()=>t(()=>({fetchService:null}))});function Uu(t){return U(this,null,function*(){const e=[];for(const n of t)n&&e.push({id:n.getIdentifier(),supportedTemplates:n.getSupportedTemplates(),component:n});return e.filter(n=>n!==null)})}const ze=_c((...t)=>I(I(I({},Hc(...t)),Pu(...t)),Fu(...t))),Lu=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Ja=(t,e)=>{if(!Lu(t))throw new Error(`Invalid component name: ${t}`);const r=document.createElement(t);return r.style.width="100%",r.style.height="100%",r.setProps(e),r};class Vu{constructor(e){this.isPortrait=!1,this.isLandscape=!1,this.orientation="portrait",this._handleOrientationChange=()=>{const r=this._getOrientation();this.orientation!==r&&(this.orientation=r,this.isPortrait=this.orientation==="portrait",this.isLandscape=this.orientation==="landscape",this.host.requestUpdate())},(this.host=e).addController(this)}_getOrientation(){return window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait"}hostConnected(){typeof window!="undefined"&&(this._handleOrientationChange(),window.addEventListener("load",this._handleOrientationChange),window.addEventListener("resize",this._handleOrientationChange))}hostDisconnected(){typeof window!="undefined"&&(window.removeEventListener("load",this._handleOrientationChange),window.removeEventListener("resize",this._handleOrientationChange))}}var wo={exports:{}},Xa;function $u(){return Xa||(Xa=1,(function(t){t.exports=(function(e){var r={};function n(i){if(r[i])return r[i].exports;var o=r[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(i,o,s){n.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var o=i&&i.__esModule?(function(){return i.default}):(function(){return i});return n.d(o,"a",o),o},n.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},n.p="",n(n.s=1)})([(function(e,r,n){var i={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},o={CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},s={IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},a={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1};e.exports={BROWSER_TYPES:o,DEVICE_TYPES:i,OS_TYPES:s,defaultData:a}}),(function(e,r,n){var i=n(2),o=n(0),s=o.BROWSER_TYPES,a=o.OS_TYPES,l=o.DEVICE_TYPES,d=n(4),_=d.checkType,h=d.broPayload,c=d.mobilePayload,y=d.wearPayload,g=d.consolePayload,f=d.stvPayload,m=d.getNavigatorInstance,S=d.isIOS13Check,b=new i,C=b.getBrowser(),O=b.getDevice(),N=b.getEngine(),R=b.getOS(),M=b.getUA(),_e=s.CHROME,me=s.CHROMIUM,ee=s.IE,Q=s.INTERNET_EXPLORER,H=s.OPERA,J=s.FIREFOX,de=s.SAFARI,ue=s.EDGE,ve=s.YANDEX,ye=s.MOBILE_SAFARI,te=l.MOBILE,z=l.TABLET,F=l.SMART_TV,q=l.BROWSER,re=l.WEARABLE,Te=l.CONSOLE,ne=a.ANDROID,$=a.WINDOWS_PHONE,X=a.IOS,Ke=a.WINDOWS,Je=a.MAC_OS,ht=function(){return O.type===te},nt=function(){return O.type===z},Wt=function(){switch(O.type){case te:case z:return!0;default:return!1}},pt=function(){return R.name===a.WINDOWS&&R.version==="10"?typeof M=="string"&&M.indexOf("Edg/")!==-1:!1},Xt=function(){return O.type===F},jt=function(){return O.type===q},Ct=function(){return O.type===re},zt=function(){return O.type===Te},Qt=function(){return R.name===ne},St=function(){return R.name===Ke},at=function(){return R.name===Je},v=function(){return R.name===$},T=function(){return R.name===X},x=function(){return C.name===_e},V=function(){return C.name===J},D=function(){return C.name===me},P=function(){return C.name===ue},W=function(){return C.name===ve},ie=function(){return C.name===de||C.name===ye},K=function(){return C.name===ye},we=function(){return C.name===H},He=function(){return C.name===Q||C.name===ee},Z=function(){var _t=m(),Dr=_t&&_t.userAgent.toLowerCase();return typeof Dr=="string"?/electron/.test(Dr):!1},ae=function(){var _t=m();return _t&&(/iPad|iPhone|iPod/.test(_t.platform)||_t.platform==="MacIntel"&&_t.maxTouchPoints>1)&&!window.MSStream},j=function(){return S("iPad")},ge=function(){return S("iPhone")},Ge=function(){return S("iPod")},Pe=function(){return C.major},he=function(){return C.version},G=function(){return R.version?R.version:"none"},Xe=function(){return R.name?R.name:"none"},er=function(){return C.name},pr=function(){return O.vendor?O.vendor:"none"},Fn=function(){return O.model?O.model:"none"},Un=function(){return N.name},Ln=function(){return N.version},Vn=function(){return M},$n=function(){return O.type},Bn=Xt(),Hn=zt(),Wn=Ct(),tr=K()||j(),jn=D(),lt=Wt()||j(),zn=ht(),Kn=nt()||j(),Gn=jt(),qn=Qt(),Zn=v(),Yn=T()||j(),Jn=x(),yo=V(),bo=ie(),Co=we(),Nr=He(),Xn=G(),Qn=Xe(),ei=Pe(),So=he(),ti=er(),ri=pr(),ni=Fn(),Eo=Un(),To=Ln(),Io=Vn(),Oo=P()||pt(),ii=W(),Ao=$n(),xo=ae(),Ro=j(),ko=ge(),No=Ge(),Do=Z(),Po=pt(),Mo=P(),Fo=St(),Uo=at(),Et=_(O.type);function Lo(){var oe=Et.isBrowser,_t=Et.isMobile,Dr=Et.isTablet,oi=Et.isSmartTV,si=Et.isConsole,ai=Et.isWearable;if(oe)return h(oe,C,N,R,M);if(oi)return f(oi,N,R,M);if(si)return g(si,N,R,M);if(_t||Dr)return c(Et,O,R,M);if(ai)return y(ai,N,R,M)}e.exports={deviceDetect:Lo,isSmartTV:Bn,isConsole:Hn,isWearable:Wn,isMobileSafari:tr,isChromium:jn,isMobile:lt,isMobileOnly:zn,isTablet:Kn,isBrowser:Gn,isAndroid:qn,isWinPhone:Zn,isIOS:Yn,isChrome:Jn,isFirefox:yo,isSafari:bo,isOpera:Co,isIE:Nr,osVersion:Xn,osName:Qn,fullBrowserVersion:ei,browserVersion:So,browserName:ti,mobileVendor:ri,mobileModel:ni,engineName:Eo,engineVersion:To,getUA:Io,isEdge:Oo,isYandex:ii,deviceType:Ao,isIOS13:xo,isIPad13:Ro,isIPhone13:ko,isIPod13:No,isElectron:Do,isEdgeChromium:Po,isLegacyEdge:Mo,isWindows:Fo,isMacOs:Uo}}),(function(e,r,n){var i;/*!
109
+ `,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}Sr(d(Du,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this._shadowRoot)}disconnectedCallback(){setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return go}static initialize(e){go=!0}static deinitialize(){go=!1}};dn.displayName=An,dn.getSupportedTemplates=()=>Object.values(ut),dn.getIdentifier=()=>An;let Pn=dn;fa(An,Pn);const Mu=(t,e)=>({_isInitialized:!1,_initializationInProgress:!1,_isConnectedToPlatform:!1,_sessionIdFromUrl:null,_ttl:86400,_checkAndSetApiTokenToLs:n=>{const i=e().startConfig;if(!("apiKey"in i)||!i.apiKey)return;const o=e().workflowId,s=e().apiKeyAuthTokenCollection;"authToken"in s&&"apiKey"in s&&dr.setAuthTokenToLs(s.authToken,s.apiKey,n,o,s.tokenExpiresAt)},_checkIsSessionDataValid:n=>{if("httpCode"in n){const i="what"in n&&typeof n.what=="string"&&n.what.length?n.what:null,o=new ur(I({errorCode:Zt.HTTP_ISSUE},i?{message:i}:{}));return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:o})}}if("id"in n&&"currentStep"in n)return n;{const i=new ur({errorCode:Zt.DECODING_FAILED});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>P(null,null,function*(){const{host:i,isSecure:o,port:s}=e().startConfig;if(i&&n&&(yield dt.connect({host:i,isSecure:o,port:s,token:n})),!i||!n||!dt.isConnected()){const a=new ur({errorCode:Zt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>P(null,null,function*(){var y;const o=e().startConfig,s="apiKey"in o&&typeof o.apiKey=="string",a=e().workflowId,l=i?br.DID_CONTINUE_REMOTE_SESSION:br.DID_START_RESTORE_SESSION;let u;if(i)u=i;else if(s){if(!e().sessionRestoreMode)return{};const g=o.apiKey,f=dr.getAuthTokenLs(),m=f&&((y=f[g])==null?void 0:y.sessionId);if(!m)return{};m&&(u=m)}else{if(!e().sessionRestoreMode)return{};const g=e().getCurrentSessionDataLs();if(!g)return{};const f=g.sessionId,m=g.workflowId;if(!f||m!==a)return{};u=f}const _=yield e().fetchService.continueSession(u,n),h=e()._checkIsSessionDataValid(_.data);if(!la(h))return{error:h.error};const c=h.currentStep;return e().setCurrentStepId(c),s?e()._checkAndSetApiTokenToLs(h.id):e().setCurrentSessionDataLsAndStore({sessionId:h.id,workflowId:a}),e().setNextStep(h.workflow,h.properties,c),e().listener({eventType:Hr.MESSAGE,message:l,module:"IDV"}),h}),initialize(n){return P(this,null,function*(){if(e()._isInitialized)return console.warn("Idv:: Already initialized"),{};if(e()._initializationInProgress)return{error:new bn({errorCode:Wr.INITIALIZATION_IN_PROGRESS})};t({_initializationInProgress:!0}),yield e().setAndInitFetchService(),t({modulesConfig:n.modulesConfig||{}});let i=[Pn];if(Array.isArray(n==null?void 0:n.includedModules)){const s=n.includedModules.filter(a=>typeof a=="function"&&a.displayName&&!i.some(l=>l.displayName===a.displayName));i=[...i,...s]}const o=yield e().loadModules(i);return o.error?{error:o.error}:(t({_initializationInProgress:!1,_isInitialized:!0}),{})})},configureByApiKey(n){return P(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(f=>!(n!=null&&n[f]));if(o.length>0)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=Qi(n.baseUrl);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};typeof n.ttl=="number"&&!Number.isNaN(n.ttl)&&t({_ttl:n.ttl});const a=e()._ttl,l={host:s.host,isSecure:s.isSecure,port:s.port,apiKey:n.apiKey,deviceDescriptor:{ttl:a}},u=dr.getAuthTokenLs(),_=u&&u[n.apiKey]&&u[n.apiKey].authToken?u[n.apiKey]:null,h=_&&_.authToken,c=yield e().connectByApiKey(l);if(c.error)return{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:c.error})};h&&c.authToken!==h&&dr.removeAuthTokenLs(n.apiKey);const y=_&&c.authToken===_.authToken&&_,g=y?y.tokenExpiresAt:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,c.authToken,g),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:n.apiKey,port:s.port}),c})},configureWithUrl(n){return P(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const i=$c(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const o=yield e().connectByUrl(n);if(o.error)return{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=Qi(n);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n}`})};e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port})}catch(s){console.log("Invalid urlWithToken")}return o})},configureByUserPass(n){return P(this,null,function*(){if(!e()._isInitialized)return{error:new Be({errorCode:Ve.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Be({errorCode:Ve.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(u=>!(n!=null&&n[u]));if(o.length>0)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=Qi(n.baseUrl);if(!s)return{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a={host:s.host,isSecure:s.isSecure,password:n.password,port:s.port,userName:n.userName},l=yield e().connectByUserPass(a);return l.error?{error:new Be({errorCode:Ve.CONNECTION_ISSUE,underlyingBaseError:l.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),l)})},getWorkflows(){return P(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new Rt({errorCode:gt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new Rt({errorCode:gt.CONNECTION_ISSUE})};const i=yield e().fetchService.listWorkflows(n);if(i.code!==0){const o=i.code===4?wt.HTTP_ISSUE:wt.PROVIDER_ERROR,s=new En({errorCode:o});return{error:new Rt({errorCode:gt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return P(this,null,function*(){var g;if(!e()._isInitialized)return{error:new Rt({errorCode:gt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new Rt({errorCode:gt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new Rt({errorCode:gt.SCENARIO_IN_PROGRESS})};const i=yield e().fetchService.getWorkflow(n),o=Zi(i.data),s=((g=o.client)==null?void 0:g.steps)&&o.client.steps.some(f=>f.templateId===bi);let a=null;if(i.code===4&&(a=wt.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=wt.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=wt.DECODING_FAILED),i.code===0&&i.data.id&&o===null&&(a=wt.DECODING_FAILED),s||(a=wt.DECODING_FAILED),a!==null){const f=new En({errorCode:a});return{error:new Rt({errorCode:gt.INTERNAL_ISSUE,underlyingBaseError:f})}}const l=e().externalModules,u=o.steps,{isAllTemplatesSupported:_,unsupportedSteps:h}=Dc(l,u);_||console.log("IDV:: Warning. Unsupported steps found: ",h);const c=e().workflowId;c&&n!==c&&l.forEach(f=>{f.component.deinitialize()});const y=e().modulesConfig;return l.forEach(f=>{f.component.isReady()||f.component.initialize(y)}),e().setLayout(o.client.layout),e().setProcessingTemplate(o.client.steps),e().setWorkflowId(n),{workflow:o}})},startNewSession(n,i,o){return P(this,null,function*(){if(!e()._isInitialized)return{error:new Ze({errorCode:We.INITIALIZATION_REQUIRED})};const s=e().workflowId;if(!s)return{error:new Ze({errorCode:We.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ze({errorCode:We.ALREADY_STARTED})};const a=b=>{dt&&dt.close(),n(b)};e().setWorkflowSessionCompletion(a);const l=e().startConfig,u="apiKey"in l&&typeof l.apiKey=="string",_=e().apiKeyAuthTokenCollection;if(u&&"tokenExpiresAt"in _){const b=_.tokenExpiresAt&&typeof _.tokenExpiresAt=="number"?_.tokenExpiresAt:0;if(Date.now()>b){const O=yield e().connectByApiKey({apiKey:l.apiKey,host:l.host,deviceDescriptor:{ttl:e()._ttl}});if(dr.removeAuthTokenLs(l.apiKey),O.error)return{error:new ur({errorCode:Zt.CONNECTION_ISSUE,underlyingBaseError:O.error})};if(O&&"authToken"in O){const N=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(l.apiKey,O.authToken,N)}}}e().setIsProcessing(!0);const h=yield e().fetchService.getConnectionToken(!1);if(!h||typeof h!="string"){const b=new ur({errorCode:Zt.TOKEN_ERROR});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:b})}}e().setServiceSessionToken(h);const c=yield e()._runSocketConnection(h);if(c.error)return{error:c.error};const y=e()._sessionIdFromUrl,g=yield e()._continueSession(i,y);if("sessionId"in g)return{results:g};if("error"in g)return{error:g.error};if("id"in g)return{};const f=yield e().fetchService.startSession(s,i,o),m=e()._checkIsSessionDataValid(f.data);if(!la(m))return{error:m.error};u?e()._checkAndSetApiTokenToLs(m.id):e().setCurrentSessionDataLsAndStore({sessionId:m.id,workflowId:s});const S=m.currentStep;return e().setCurrentStepId(S),e().setNextStep(m.workflow,m.properties,S),e().listener({eventType:Hr.MESSAGE,message:br.DID_START_SESSION,module:"IDV"}),{}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new Ze({errorCode:We.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return P(this,null,function*(){if(!e()._isInitialized)return{error:new Sn({errorCode:jr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Sn({errorCode:jr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}});class Pu{constructor(){this._connectionTokenExpirationBufferMs=6e4,this._origin="",this._locale="",this._workflowId="",this._session=null,this._apiKeyAuthToken={token:"",expiresAt:0},this._connectionToken={token:"",expiresAt:0},this._connect=null,this._getErrorTextFromError=e=>e instanceof Error?e.message:String(e)}_setApiKeyAuthToken(e){this._apiKeyAuthToken=e}_setConnectionToken(e){this._connectionToken=e}_getOriginFromConfig(e){return`http${e.isSecure?"s":""}://${e.host}${e.port?`:${e.port}`:""}`}_getOriginFromUrl(e){try{return new URL(e).origin}catch(r){return""}}_getExpiresAtFromTtl(e){return Date.now()+1e3*e}_getAuthorizationHeaderFromConnectionToken(e){return`Connection ${e}`}_getAuthorizationHeaderFromBasicToken(e){return`Basic ${e}`}_getAuthorizationHeaderFromAuthToken(e){return`Token ${e}`}_getApiKeyAuthTokenFromLs(e){var o,s;const r=dr.getAuthTokenLs(),n=(o=r==null?void 0:r[e])==null?void 0:o.authToken,i=Number(((s=r==null?void 0:r[e])==null?void 0:s.tokenExpiresAt)||0);return!n||!i||Number.isNaN(i)||i<=Date.now()?null:{token:n,expiresAt:i}}_getApiKeyAuthTokenFromHeader(e){return e.replace(/^Token\s+/i,"")}_getValidApiKeyAuthToken(e,r){return P(this,null,function*(){if(this._apiKeyAuthToken.token){if(r)return{code:0,data:this._apiKeyAuthToken};if(Date.now()<this._apiKeyAuthToken.expiresAt)return{code:0,data:this._apiKeyAuthToken};const a=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(a.code!==0)return a;const l=this._getApiKeyAuthTokenFromHeader(a.data.authorization),u=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:l,expiresAt:u}}}const n=this._getApiKeyAuthTokenFromLs(e.apiKey);if(n)return{code:0,data:n};const i=yield this._fetchEphemeral(e.apiKey,e.deviceDescriptor.ttl);if(i.code!==0)return i;const o=this._getApiKeyAuthTokenFromHeader(i.data.authorization),s=this._getExpiresAtFromTtl(e.deviceDescriptor.ttl);return{code:0,data:{token:o,expiresAt:s}}})}_getAuthorizationSearchParam(e){var r;try{return(r=new URL(e).searchParams.get("authorization"))!=null?r:""}catch(n){return""}}_getResponseTextFromBadResponse(e){return P(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return P(this,null,function*(){const r=`${this._origin}/api/ping`;try{const n=yield fetch(r,{method:"GET"}),i={httpCode:n.status,method:"GET",url:r};if(!n.ok){const s=yield this._getResponseTextFromBadResponse(n);return s&&(i.what=s),{code:5,data:i}}let o;try{if(o=yield n.json(),(o==null?void 0:o.status)!=="OK")return{code:6,data:i}}catch(s){const a=this._getErrorTextFromError(s);return i.what=a,{code:6,data:i}}return{code:0,data:o}}catch(n){const i=this._getErrorTextFromError(n);return{code:4,data:{httpCode:0,method:"GET",url:r,what:i}}}})}_fetchMe(e){return P(this,null,function*(){const n=`${this._origin}/api/user/me`;try{const i=yield fetch(n,{headers:{authorization:e},method:"GET"}),o={httpCode:i.status,method:"GET",url:n};if(!i.ok){const a=yield this._getResponseTextFromBadResponse(i);return a&&(o.what=a),{code:5,data:o}}let s;try{if(s=yield i.json(),!s)return{code:6,data:o}}catch(a){const l=this._getErrorTextFromError(a);return o.what=l,{code:6,data:o}}return{code:0,data:s}}catch(i){const o=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:"GET",url:n,what:o}}}})}_fetchConnection(e){return P(this,null,function*(){const r="POST",n=`${this._origin}/api/device/connection`;try{const i=yield fetch(n,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(Bc()),method:r}),o={httpCode:i.status,method:r,url:n};if(!i.ok){const a=yield this._getResponseTextFromBadResponse(i);return a&&(o.what=a),{code:5,data:o}}let s;try{if(s=yield i.json(),!(s!=null&&s.token)||!(s!=null&&s.expiresAt))return{code:6,data:o}}catch(a){const l=this._getErrorTextFromError(a);return o.what=l,{code:6,data:o}}return{code:0,data:{token:s.token,expiresAt:+new Date(s.expiresAt),workflows:s.workflows}}}catch(i){const o=this._getErrorTextFromError(i);return{code:4,data:{httpCode:0,method:r,url:n,what:o}}}})}_fetchEphemeral(e,r){return P(this,null,function*(){const n="POST",i=`${this._origin}/api/device/ephemeral`;try{const o=yield fetch(i,{headers:{authorization:`ApiKey ${e}`,"content-type":"application/json"},body:JSON.stringify({ttl:r}),method:n}),s={httpCode:o.status,method:n,url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!(a!=null&&a.authorization))return{code:6,data:s}}catch(l){const u=this._getErrorTextFromError(l);return s.what=u,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:n,url:i,what:s}}}})}_fetchSessionByWorkflowId(e,r,n){return P(this,null,function*(){const i="POST",o=`${this._origin}/api/sessions?workflowId=${r||this._workflowId}`;try{const s=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:i}),a={httpCode:s.status,method:i,url:o};if(!s.ok){const u=yield this._getResponseTextFromBadResponse(s);return u&&(a.what=u),{code:5,data:a}}let l;try{if(l=yield s.json(),!(l!=null&&l.id))return{code:6,data:a}}catch(u){const _=this._getErrorTextFromError(u);return a.what=_,{code:6,data:a}}return{code:0,data:l}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:i,url:o,what:a}}}})}_fetchSessionState(e,r,n){return P(this,null,function*(){var s;const o=`${this._origin}/api/sessions/${r||((s=this._session)==null?void 0:s.id)}?locale=${n||this._locale}`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},method:"GET"}),l={httpCode:a.status,method:"GET",url:o};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let u;try{if(u=yield a.json(),!(u!=null&&u.id))return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:u}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:o,what:l}}}})}_fetchWorkflows(n){return P(this,arguments,function*(e,r={limit:0,skip:0}){const o=new URL(`${this._origin}/api/workflows`);typeof r.limit=="number"&&r.limit>=0&&o.searchParams.set("limit",String(r.limit)),typeof r.skip=="number"&&r.skip>=0&&o.searchParams.set("skip",String(r.skip));const s=o.toString();try{const a=yield fetch(s,{headers:{authorization:e},method:"GET"}),l={httpCode:a.status,method:"GET",url:s};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let u;try{if(u=yield a.json(),!u)return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:u}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:"GET",url:s,what:l}}}})}_fetchWorkflow(e,r){return P(this,null,function*(){const i=`${this._origin}/api/workflows/${r}?renderClient=true`;try{const o=yield fetch(i,{headers:{authorization:e},method:"GET"}),s={httpCode:o.status,method:"GET",url:i};if(!o.ok){const l=yield this._getResponseTextFromBadResponse(o);return l&&(s.what=l),{code:5,data:s}}let a;try{if(a=yield o.json(),!a)return{code:6,data:s}}catch(l){const u=this._getErrorTextFromError(l);return s.what=u,{code:6,data:s}}return{code:0,data:a}}catch(o){const s=this._getErrorTextFromError(o);return{code:4,data:{httpCode:0,method:"GET",url:i,what:s}}}})}_fetchStep(e,r,n){return P(this,null,function*(){var s;const i="POST",o=`${this._origin}/api/sessions/${(s=this._session)==null?void 0:s.id}/step/${r}?stage=0`;try{const a=yield fetch(o,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:i}),l={httpCode:a.status,method:i,url:o};if(!a.ok){const _=yield this._getResponseTextFromBadResponse(a);return _&&(l.what=_),{code:5,data:l}}let u;try{if(u=yield a.json(),!u)return{code:6,data:l}}catch(_){const h=this._getErrorTextFromError(_);return l.what=h,{code:6,data:l}}return{code:0,data:u}}catch(a){const l=this._getErrorTextFromError(a);return{code:4,data:{httpCode:0,method:i,url:o,what:l}}}})}_fetchSessionLogs(e,r){return P(this,null,function*(){var o;const n="POST",i=`${this._origin}/api/sessions/${(o=this._session)==null?void 0:o.id}/logs`;try{const s=yield fetch(i,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(r.body),method:n}),a={httpCode:s.status,method:n,url:i};if(!s.ok){const u=yield this._getResponseTextFromBadResponse(s);return u&&(a.what=u),{code:5,data:a}}let l;try{if(l=yield s.json(),!l)return{code:6,data:a}}catch(u){const _=this._getErrorTextFromError(u);return a.what=_,{code:6,data:a}}return{code:0,data:l}}catch(s){const a=this._getErrorTextFromError(s);return{code:4,data:{httpCode:0,method:n,url:i,what:a}}}})}connectByUserPass(e){return P(this,null,function*(){!e.userName||e.password,this._connect={type:"byUserPass",arg:e},this._origin=this._getOriginFromConfig(e);const r=yield this._fetchPing();if(r.code!==0)return r;const n=`${btoa(`${e.userName}:${e.password}`)}`;let i=this._getAuthorizationHeaderFromBasicToken(n),o=yield this._fetchMe(i);if(o.code!==0)return o;const s=yield this._fetchConnection(i);return s.code!==0?s:(this._setConnectionToken(s.data),i=this._getAuthorizationHeaderFromConnectionToken(s.data.token),o=yield this._fetchMe(i),o.code!==0?o:{code:0,data:{workflows:s.data.workflows}})})}connectByApiKey(e,r){return P(this,null,function*(){e.apiKey,this._connect={type:"byApiKey",arg:e},this._origin=this._getOriginFromConfig(e);const n=yield this._fetchPing();if(n.code!==0)return n;const i=yield this._getValidApiKeyAuthToken(e,r);if(i.code!==0)return i;this._setApiKeyAuthToken(i.data);let o=this._getAuthorizationHeaderFromAuthToken(i.data.token),s=yield this._fetchMe(o);if(s.code!==0)return s;const a=yield this._fetchConnection(o);return a.code!==0?a:(this._setConnectionToken(a.data),o=this._getAuthorizationHeaderFromConnectionToken(a.data.token),s=yield this._fetchMe(o),s.code!==0?s:{code:0,data:{authToken:i.data.token,workflows:a.data.workflows}})})}connectByUrl(e){return P(this,null,function*(){this._connect={type:"byUrl",arg:e};const r=this._getOriginFromUrl(e);this._origin=r;let n=this._getAuthorizationSearchParam(e);const i=yield this._fetchPing();if(i.code!==0)return i;let o=yield this._fetchMe(n);if(o.code!==0)return o;const s=yield this._fetchConnection(n);return s.code!==0?s:(this._setConnectionToken(s.data),n=this._getAuthorizationHeaderFromConnectionToken(s.data.token),o=yield this._fetchMe(n),o.code!==0?o:{code:0,data:{workflows:s.data.workflows}})})}getConnectionToken(e){return P(this,null,function*(){var r,n,i;return+new Date<+new Date(this._connectionToken.expiresAt)-this._connectionTokenExpirationBufferMs?this._connectionToken.token:((r=this._connect)==null?void 0:r.type)==="byUserPass"?(yield this.connectByUserPass(this._connect.arg),this._connectionToken.token):((n=this._connect)==null?void 0:n.type)==="byApiKey"?(yield this.connectByApiKey(this._connect.arg,e),this._connectionToken.token):((i=this._connect)==null?void 0:i.type)==="byUrl"?(yield this.connectByUrl(this._connect.arg),this._connectionToken.token):""})}startSession(e,r,n){return P(this,null,function*(){const i={locale:r};Pc(n)&&(i.metadata=n);const o=yield this.getConnectionToken(!1),s=this._getAuthorizationHeaderFromConnectionToken(o),a=yield this._fetchSessionByWorkflowId(s,e,i);return a.code===0&&(this._session=a.data,this._locale=r),a})}continueSession(e,r){return P(this,null,function*(){const n=yield this.getConnectionToken(!1),i=this._getAuthorizationHeaderFromConnectionToken(n),o=yield this._fetchSessionState(i,e,r);return o.code===0&&(this._session=o.data,this._locale=r),o})}listWorkflows(){return P(this,arguments,function*(e={limit:0,skip:0}){const r=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflows(n,e)})}getWorkflow(e){return P(this,null,function*(){this._workflowId=e;const r=yield this.getConnectionToken(!1),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchWorkflow(n,e)})}pushData(e,r){return P(this,null,function*(){const n=yield this.getConnectionToken(!0),i=this._getAuthorizationHeaderFromConnectionToken(n);return yield this._fetchStep(i,e,r)})}getSessionState(){return P(this,null,function*(){const e=yield this.getConnectionToken(!0),r=this._getAuthorizationHeaderFromConnectionToken(e),n=yield this._fetchSessionState(r);return n.code===0&&(this._session=n.data),n})}pushSessionLogs(e){return P(this,null,function*(){const r=yield this.getConnectionToken(!0),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(n,e)})}}const Fu=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>P(null,null,function*(){const n=new Pu;t({fetchService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return P(this,null,function*(){const o=yield e().fetchService.connectByApiKey(n,!1);if(o.code!==0){const s=o.code===4?Ot.HTTP_ISSUE:Ot.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)});return{error:new Cn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(n){return P(this,null,function*(){const i=yield e().fetchService.connectByUserPass(n);if(i.code!==0){const o=i.code===4?Ot.HTTP_ISSUE:Ot.PROVIDER_ERROR;return{error:new tn({errorCode:o,message:JSON.stringify(i.data)})}}return{workflows:i.data.workflows}})},connectByUrl(n){return P(this,null,function*(){const o=yield e().fetchService.connectByUrl(n);if(o.code!==0){const s=o.code===4?Ot.HTTP_ISSUE:Ot.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)}),l=new Cn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a});return{workflows:[],error:l}}return{workflows:o.data.workflows}})},workflowSessionCompletion:()=>{},setWorkflowSessionCompletion:n=>{const i=o=>{var u;const s=(u=e().currentSessionData)==null?void 0:u.sessionId,a=Y(I({},o.results),{sessionId:s}),l=I({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),n(l),o.error){const h=yi.getLogs().join("; ");e().fetchService.pushSessionLogs({body:{log:h,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}yi.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>P(null,null,function*(){try{const i=yield Uu(n);return t(()=>({externalModules:i})),{}}catch(i){return e().resetFetchService(),e().resetProps(),{error:new bn({errorCode:Wr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Zi(n.find(o=>o.templateId===bi));i.templateLayout=aa(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i)=>P(null,null,function*(){let o=null;return yield Rc(()=>P(null,null,function*(){const l=yield e().fetchService.pushData(n,i);let u=null;if(l.code===4&&(u=it.HTTP_ISSUE),l.code!==0&&l.code!==4&&(u=it.PROVIDER_ERROR),u!==null){const _=new rn({errorCode:it.HTTP_ISSUE});o=new Ze({errorCode:We.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:_})}return l.code===0?(o=null,l):null}),()=>null),o?{error:o}:{}}),_findStepById:n=>{const i=e().workflow;if(!i||!n)return null;const o=i.steps.find(s=>s.id===n);return o!=null?o:null},_getSessionStateNextStepConditionResult:()=>P(null,null,function*(){var g,f,m;const n=yield e().fetchService.getSessionState(),i=n.code===0,o=i?n.data:null,s=(g=o==null?void 0:o.currentStep)!=null?g:"",a=o==null?void 0:o.isProcessingFiles,l=(m=(f=o==null?void 0:o.workflow)==null?void 0:f.steps)!=null?m:[],u=Nc(l,s),_=n.code===4,h=n.code!==0&&n.code!==4,c=i&&(!n.data.workflow||!n.data.currentStep);let y=null;if(l&&!u&&(y=it.NOT_DATA_TYPE),_&&(y=it.HTTP_ISSUE),h&&(y=it.PROVIDER_ERROR),a&&(y=it.IS_PROCESSING),c&&(y=it.DECODING_FAILED),y!==null){const S=new rn({errorCode:y});return{error:new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:S})}}return u&&!a&&!_&&!h&&!c?{data:n.data}:{shouldRetry:!0}}),_waitingForNextStep:()=>P(null,null,function*(){let n={};return yield new Promise(o=>{let l=0,u;const _=h=>P(null,null,function*(){if(h){u=window.setTimeout(()=>{_(!1)},1e4);return}n=yield e()._getSessionStateNextStepConditionResult(),l++,"shouldRetry"in n&&l<6?u=window.setTimeout(()=>{_(!1)},1e4):(dt.clearSubscriptions(),o())});if(dt.isConnected()){const h=c=>{JSON.parse(atob(JSON.parse(c).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(u),_(!1))};dt.onMessage(h)}_(!0)}),n!=null&&n.error?{error:n.error}:n!=null&&n.data?{sessionData:n.data}:{error:new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:new rn({errorCode:it.DECODING_FAILED})})}}),setFinalStepAndStopProcess:n=>{const i=n||e().currentStepId;if(!i)return;const o=e()._findStepById(i);o&&(e().workflowSessionCompletion({results:{finalStep:{id:o.id,name:o.name,final:o.final}}}),e().resetSession(),e().listener({eventType:Hr.MESSAGE,message:br.DID_END_SESSION,module:"IDV"}))},_stepSocketListenerWhenStepIsRunning:n=>{if(dt.isConnected())if(n){const i=o=>P(null,null,function*(){if(JSON.parse(atob(JSON.parse(o).payload)).eventType==="SESSION_UPDATED"){dt.clearSubscriptions();let a={};const l=5;let u=0;for(;u<l&&(u++,a=yield e()._getSessionStateNextStepConditionResult(),!!a.shouldRetry););if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}if(a.data){const{workflow:_,properties:h,currentStep:c}=a.data;e().setNextStep(_,h,c)}}});dt.onMessage(i)}else dt.clearSubscriptions()},setNextStep:(n,i,o)=>{e().setWorkflowId(n.id),e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i);const s=e()._findStepById(o),a=l=>!!l&&Object.prototype.toString.call(l)==="[object Object]"&&l.templateId;if(s!=null&&s.final&&!a(s.client)){e().setFinalStepAndStopProcess(s.id);return}s!=null&&s.final&&a(s.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1),e()._stepSocketListenerWhenStepIsRunning(!0)},pushStepWaitNextStepAndSet:n=>P(null,null,function*(){e()._stepSocketListenerWhenStepIsRunning(!1);const i=e().currentStepId;if(!i)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const _=n,h=new Ze({errorCode:We.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:_});e().workflowSessionCompletion({error:h}),e().resetSession();return}const o=yield e()._pushStep(i,n);if(o.error){e().workflowSessionCompletion({error:o.error}),e().resetSession();return}const s=yield e()._waitingForNextStep();if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const{workflow:a,properties:l,currentStep:u}=s.sessionData;e().setNextStep(a,l,u)}),onChangeScreen:n=>{var l,u,_,h;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,o=e().sessionProperties;let s=null;if(n===bi&&e().processingTransformedTemplate!==null){const c=e().processingTransformedTemplate;c&&(s={templateId:c.templateId,templateLayout:c.templateLayout,dataSource:null})}else{const c=e()._findStepById(n);if(typeof((l=c==null?void 0:c.client)==null?void 0:l.templateId)=="string"&&(s=Y(I({},c==null?void 0:c.client),{templateId:c.client.templateId,dataSource:(u=c.dataSource)!=null?u:null,properties:o})),s&&(s.sessionId=(_=e().currentSessionData)==null?void 0:_.sessionId,s.serviceToken=e().serviceToken),s&&Fc((h=c==null?void 0:c.client)==null?void 0:h.templateLayout)){const y=aa(c.client.templateLayout,e().layout);y&&(s.templateLayout=y)}}const a=kc(e().externalModules,i.steps,n);if(s===null||!a){const c=new Ze({errorCode:We.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:c}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:s}))},deinitializationIdv:()=>P(null,null,function*(){return e().resetFetchService(),e().externalModules.forEach(n=>{n.component.deinitialize&&n.component.isReady&&n.component.deinitialize()}),{}}),resetSession:()=>t(()=>({isFinalWaitingUi:!1,isProcessing:!1,processingTransformedTemplate:null,currentStepId:null,layout:null,currentScreenConfig:null,workflowId:void 0,workflow:null,serviceToken:void 0})),resetFetchService:()=>t(()=>({fetchService:null}))});function Uu(t){return P(this,null,function*(){const e=[];for(const n of t)n&&e.push({id:n.getIdentifier(),supportedTemplates:n.getSupportedTemplates(),component:n});return e.filter(n=>n!==null)})}const ze=_c((...t)=>I(I(I({},Hc(...t)),Mu(...t)),Fu(...t))),Lu=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Ja=(t,e)=>{if(!Lu(t))throw new Error(`Invalid component name: ${t}`);const r=document.createElement(t);return r.style.width="100%",r.style.height="100%",r.setProps(e),r};class Vu{constructor(e){this.isPortrait=!1,this.isLandscape=!1,this.orientation="portrait",this._handleOrientationChange=()=>{const r=this._getOrientation();this.orientation!==r&&(this.orientation=r,this.isPortrait=this.orientation==="portrait",this.isLandscape=this.orientation==="landscape",this.host.requestUpdate())},(this.host=e).addController(this)}_getOrientation(){return window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait"}hostConnected(){typeof window!="undefined"&&(this._handleOrientationChange(),window.addEventListener("load",this._handleOrientationChange),window.addEventListener("resize",this._handleOrientationChange))}hostDisconnected(){typeof window!="undefined"&&(window.removeEventListener("load",this._handleOrientationChange),window.removeEventListener("resize",this._handleOrientationChange))}}var wo={exports:{}},Xa;function $u(){return Xa||(Xa=1,(function(t){t.exports=(function(e){var r={};function n(i){if(r[i])return r[i].exports;var o=r[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(i,o,s){n.o(i,o)||Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var o=i&&i.__esModule?(function(){return i.default}):(function(){return i});return n.d(o,"a",o),o},n.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},n.p="",n(n.s=1)})([(function(e,r,n){var i={MOBILE:"mobile",TABLET:"tablet",SMART_TV:"smarttv",CONSOLE:"console",WEARABLE:"wearable",BROWSER:void 0},o={CHROME:"Chrome",FIREFOX:"Firefox",OPERA:"Opera",YANDEX:"Yandex",SAFARI:"Safari",INTERNET_EXPLORER:"Internet Explorer",EDGE:"Edge",CHROMIUM:"Chromium",IE:"IE",MOBILE_SAFARI:"Mobile Safari",EDGE_CHROMIUM:"Edge Chromium"},s={IOS:"iOS",ANDROID:"Android",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows",MAC_OS:"Mac OS"},a={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1};e.exports={BROWSER_TYPES:o,DEVICE_TYPES:i,OS_TYPES:s,defaultData:a}}),(function(e,r,n){var i=n(2),o=n(0),s=o.BROWSER_TYPES,a=o.OS_TYPES,l=o.DEVICE_TYPES,u=n(4),_=u.checkType,h=u.broPayload,c=u.mobilePayload,y=u.wearPayload,g=u.consolePayload,f=u.stvPayload,m=u.getNavigatorInstance,S=u.isIOS13Check,b=new i,C=b.getBrowser(),O=b.getDevice(),N=b.getEngine(),R=b.getOS(),F=b.getUA(),_e=s.CHROME,me=s.CHROMIUM,ee=s.IE,Q=s.INTERNET_EXPLORER,H=s.OPERA,J=s.FIREFOX,de=s.SAFARI,ue=s.EDGE,ve=s.YANDEX,ye=s.MOBILE_SAFARI,te=l.MOBILE,z=l.TABLET,U=l.SMART_TV,q=l.BROWSER,re=l.WEARABLE,Te=l.CONSOLE,ne=a.ANDROID,$=a.WINDOWS_PHONE,X=a.IOS,Ke=a.WINDOWS,Je=a.MAC_OS,pt=function(){return O.type===te},nt=function(){return O.type===z},jt=function(){switch(O.type){case te:case z:return!0;default:return!1}},_t=function(){return R.name===a.WINDOWS&&R.version==="10"?typeof F=="string"&&F.indexOf("Edg/")!==-1:!1},Qt=function(){return O.type===U},zt=function(){return O.type===q},St=function(){return O.type===re},Kt=function(){return O.type===Te},er=function(){return R.name===ne},Et=function(){return R.name===Ke},at=function(){return R.name===Je},v=function(){return R.name===$},T=function(){return R.name===X},x=function(){return C.name===_e},V=function(){return C.name===J},D=function(){return C.name===me},M=function(){return C.name===ue},W=function(){return C.name===ve},ie=function(){return C.name===de||C.name===ye},K=function(){return C.name===ye},we=function(){return C.name===H},He=function(){return C.name===Q||C.name===ee},Z=function(){var mt=m(),Dr=mt&&mt.userAgent.toLowerCase();return typeof Dr=="string"?/electron/.test(Dr):!1},ae=function(){var mt=m();return mt&&(/iPad|iPhone|iPod/.test(mt.platform)||mt.platform==="MacIntel"&&mt.maxTouchPoints>1)&&!window.MSStream},j=function(){return S("iPad")},ge=function(){return S("iPhone")},Ge=function(){return S("iPod")},Me=function(){return C.major},he=function(){return C.version},G=function(){return R.version?R.version:"none"},Xe=function(){return R.name?R.name:"none"},tr=function(){return C.name},pr=function(){return O.vendor?O.vendor:"none"},Fn=function(){return O.model?O.model:"none"},Un=function(){return N.name},Ln=function(){return N.version},Vn=function(){return F},$n=function(){return O.type},Bn=Qt(),Hn=Kt(),Wn=St(),rr=K()||j(),jn=D(),lt=jt()||j(),zn=pt(),Kn=nt()||j(),Gn=zt(),qn=er(),Zn=v(),Yn=T()||j(),Jn=x(),yo=V(),bo=ie(),Co=we(),Nr=He(),Xn=G(),Qn=Xe(),ei=Me(),So=he(),ti=tr(),ri=pr(),ni=Fn(),Eo=Un(),To=Ln(),Io=Vn(),Oo=M()||_t(),ii=W(),Ao=$n(),xo=ae(),Ro=j(),ko=ge(),No=Ge(),Do=Z(),Mo=_t(),Po=M(),Fo=Et(),Uo=at(),Tt=_(O.type);function Lo(){var oe=Tt.isBrowser,mt=Tt.isMobile,Dr=Tt.isTablet,oi=Tt.isSmartTV,si=Tt.isConsole,ai=Tt.isWearable;if(oe)return h(oe,C,N,R,F);if(oi)return f(oi,N,R,F);if(si)return g(si,N,R,F);if(mt||Dr)return c(Tt,O,R,F);if(ai)return y(ai,N,R,F)}e.exports={deviceDetect:Lo,isSmartTV:Bn,isConsole:Hn,isWearable:Wn,isMobileSafari:rr,isChromium:jn,isMobile:lt,isMobileOnly:zn,isTablet:Kn,isBrowser:Gn,isAndroid:qn,isWinPhone:Zn,isIOS:Yn,isChrome:Jn,isFirefox:yo,isSafari:bo,isOpera:Co,isIE:Nr,osVersion:Xn,osName:Qn,fullBrowserVersion:ei,browserVersion:So,browserName:ti,mobileVendor:ri,mobileModel:ni,engineName:Eo,engineVersion:To,getUA:Io,isEdge:Oo,isYandex:ii,deviceType:Ao,isIOS13:xo,isIPad13:Ro,isIPhone13:ko,isIPod13:No,isElectron:Do,isEdgeChromium:Mo,isLegacyEdge:Po,isWindows:Fo,isMacOs:Uo}}),(function(e,r,n){var i;/*!
110
110
  * UAParser.js v0.7.18
111
111
  * Lightweight JavaScript-based User-Agent string parser
112
112
  * https://github.com/faisalman/ua-parser-js
113
113
  *
114
114
  * Copyright © 2012-2016 Faisal Salman <fyzlman@gmail.com>
115
115
  * Dual licensed under GPLv2 or MIT
116
- */(function(o,s){var a="0.7.18",l="",d="?",_="function",h="undefined",c="object",y="string",g="major",f="model",m="name",S="type",b="vendor",C="version",O="architecture",N="console",R="mobile",M="tablet",_e="smarttv",me="wearable",ee="embedded",Q={extend:function(te,z){var F={};for(var q in te)z[q]&&z[q].length%2===0?F[q]=z[q].concat(te[q]):F[q]=te[q];return F},has:function(te,z){return typeof te=="string"?z.toLowerCase().indexOf(te.toLowerCase())!==-1:!1},lowerize:function(te){return te.toLowerCase()},major:function(te){return typeof te===y?te.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(te){return te.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={rgx:function(te,z){for(var F=0,q,re,Te,ne,$,X;F<z.length&&!$;){var Ke=z[F],Je=z[F+1];for(q=re=0;q<Ke.length&&!$;)if($=Ke[q++].exec(te),$)for(Te=0;Te<Je.length;Te++)X=$[++re],ne=Je[Te],typeof ne===c&&ne.length>0?ne.length==2?typeof ne[1]==_?this[ne[0]]=ne[1].call(this,X):this[ne[0]]=ne[1]:ne.length==3?typeof ne[1]===_&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=X?ne[1].call(this,X,ne[2]):s:this[ne[0]]=X?X.replace(ne[1],ne[2]):s:ne.length==4&&(this[ne[0]]=X?ne[3].call(this,X.replace(ne[1],ne[2])):s):this[ne]=X||s;F+=2}},str:function(te,z){for(var F in z)if(typeof z[F]===c&&z[F].length>0){for(var q=0;q<z[F].length;q++)if(Q.has(z[F][q],te))return F===d?s:F}else if(Q.has(z[F],te))return F===d?s:F;return te}},J={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{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"}}}},de={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,C],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],C],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],C],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[m,C],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],C],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],C],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],C],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],C],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],C],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],C],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],C],[/(qqbrowserlite)\/([\w\.]+)/i],[m,C],[/(QQ)\/([\d\.]+)/i],[m,C],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,C],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[C,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[C,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[C,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],C],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],C],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[C,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,C],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],C],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],C],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],C],[/fxios\/([\w\.-]+)/i],[C,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[C,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[C,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],C],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[C,H.str,J.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,C],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],C],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,C]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[O,/ower/,"",Q.lowerize]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[O,Q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[f,b,[S,M]],[/applecoremedia\/[\w\.]+ \((ipad)/],[f,[b,"Apple"],[S,M]],[/(apple\s{0,1}tv)/i],[[f,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,f,[S,M]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[f,[b,"Amazon"],[S,M]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[f,H.str,J.device.amazon.model],[b,"Amazon"],[S,R]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[f,b,[S,R]],[/\((ip[honed|\s\w*]+);/i],[f,[b,"Apple"],[S,R]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,f,[S,R]],[/\(bb10;\s(\w+)/i],[f,[b,"BlackBerry"],[S,R]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[f,[b,"Asus"],[S,M]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[f,"Xperia Tablet"],[S,M]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[f,[b,"Sony"],[S,R]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,f,[S,N]],[/android.+;\s(shield)\sbuild/i],[f,[b,"Nvidia"],[S,N]],[/(playstation\s[34portablevi]+)/i],[f,[b,"Sony"],[S,N]],[/(sprint\s(\w+))/i],[[b,H.str,J.device.sprint.vendor],[f,H.str,J.device.sprint.model],[S,R]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,f,[S,M]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[b,[f,/_/g," "],[S,R]],[/(nexus\s9)/i],[f,[b,"HTC"],[S,M]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[f,[b,"Huawei"],[S,R]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,f,[S,R]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[f,[b,"Microsoft"],[S,N]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[b,"Microsoft"],[S,R]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[f,[b,"Motorola"],[S,R]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[f,[b,"Motorola"],[S,M]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,Q.trim],[f,Q.trim],[S,_e]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[b,"Samsung"],[S,_e]],[/\(dtv[\);].+(aquos)/i],[f,[b,"Sharp"],[S,_e]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],f,[S,M]],[/smart-tv.+(samsung)/i],[b,[S,_e],f],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[b,"Samsung"],f,[S,R]],[/sie-(\w*)/i],[f,[b,"Siemens"],[S,R]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[b,"Nokia"],f,[S,R]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[f,[b,"Acer"],[S,M]],[/android.+([vl]k\-?\d{3})\s+build/i],[f,[b,"LG"],[S,M]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],f,[S,M]],[/(lg) netcast\.tv/i],[b,f,[S,_e]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[f,[b,"LG"],[S,R]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[f,[b,"Lenovo"],[S,M]],[/linux;.+((jolla));/i],[b,f,[S,R]],[/((pebble))app\/[\d\.]+\s/i],[b,f,[S,me]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,f,[S,R]],[/crkey/i],[[f,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[f,[b,"Google"],[S,me]],[/android.+;\s(pixel c)\s/i],[f,[b,"Google"],[S,M]],[/android.+;\s(pixel xl|pixel)\s/i],[f,[b,"Google"],[S,R]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[b,"Xiaomi"],[S,R]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[b,"Xiaomi"],[S,M]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[f,[b,"Meizu"],[S,M]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[f,[b,"OnePlus"],[S,R]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[f,[b,"RCA"],[S,M]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[f,[b,"Dell"],[S,M]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[f,[b,"Verizon"],[S,M]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],f,[S,M]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[f,[b,"NuVision"],[S,M]],[/android.+;\s(k88)\sbuild/i],[f,[b,"ZTE"],[S,M]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[f,[b,"Swiss"],[S,R]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[f,[b,"Swiss"],[S,M]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[f,[b,"Zeki"],[S,M]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[b,"Dragon Touch"],f,[S,M]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[f,[b,"Insignia"],[S,M]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[f,[b,"NextBook"],[S,M]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],f,[S,R]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[b,"LvTel"],f,[S,R]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[f,[b,"Envizen"],[S,M]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[b,f,[S,M]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[f,[b,"MachSpeed"],[S,M]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,f,[S,M]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[f,[b,"Rotor"],[S,M]],[/android.+(KS(.+))\s+build/i],[f,[b,"Amazon"],[S,M]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[b,f,[S,M]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[S,Q.lowerize],b,f],[/(android[\w\.\s\-]{0,9});.+build/i],[f,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[C,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,C],[/rv\:([\w\.]{1,9}).+(gecko)/i],[C,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,C],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[C,H.str,J.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[C,H.str,J.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],C],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[m,C],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],C],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],C],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[m,C],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],C],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],C],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,C],[/(haiku)\s(\w+)/i],[m,C],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[C,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[C,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[m,C]]},ue=function(te,z){if(typeof te=="object"&&(z=te,te=s),!(this instanceof ue))return new ue(te,z).getResult();var F=te||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:l),q=z?Q.extend(de,z):de;return this.getBrowser=function(){var re={name:s,version:s};return H.rgx.call(re,F,q.browser),re.major=Q.major(re.version),re},this.getCPU=function(){var re={architecture:s};return H.rgx.call(re,F,q.cpu),re},this.getDevice=function(){var re={vendor:s,model:s,type:s};return H.rgx.call(re,F,q.device),re},this.getEngine=function(){var re={name:s,version:s};return H.rgx.call(re,F,q.engine),re},this.getOS=function(){var re={name:s,version:s};return H.rgx.call(re,F,q.os),re},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 F},this.setUA=function(re){return F=re,this},this};ue.VERSION=a,ue.BROWSER={NAME:m,MAJOR:g,VERSION:C},ue.CPU={ARCHITECTURE:O},ue.DEVICE={MODEL:f,VENDOR:b,TYPE:S,CONSOLE:N,MOBILE:R,SMARTTV:_e,TABLET:M,WEARABLE:me,EMBEDDED:ee},ue.ENGINE={NAME:m,VERSION:C},ue.OS={NAME:m,VERSION:C},typeof r!==h?(typeof e!==h&&e.exports&&(r=e.exports=ue),r.UAParser=ue):n(3)?(i=(function(){return ue}).call(r,n,r,e),i!==s&&(e.exports=i)):o&&(o.UAParser=ue);var ve=o&&(o.jQuery||o.Zepto);if(typeof ve!==h){var ye=new ue;ve.ua=ye.getResult(),ve.ua.get=function(){return ye.getUA()},ve.ua.set=function(te){ye.setUA(te);var z=ye.getResult();for(var F in z)ve.ua[F]=z[F]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(n){e.exports=n}).call(r,{})}),(function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C])}return m},o=n(0),s=o.DEVICE_TYPES,a=o.defaultData,l=function(S){switch(S){case s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return a}},d=function(S,b,C,O,N){return{isBrowser:S,browserMajorVersion:b.major,browserFullVersion:b.version,browserName:b.name,engineName:C.name||!1,engineVersion:C.version,osName:O.name,osVersion:O.version,userAgent:N}},_=function(S,b,C,O){return i({},S,{vendor:b.vendor,model:b.model,os:C.name,osVersion:C.version,ua:O})},h=function(S,b,C,O){return{isSmartTV:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},c=function(S,b,C,O){return{isConsole:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},y=function(S,b,C,O){return{isWearable:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},g=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},f=r.isIOS13Check=function(S){var b=g();return b&&b.platform&&(b.platform.indexOf(S)!==-1||b.platform==="MacIntel"&&b.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:l,broPayload:d,mobilePayload:_,stvPayload:h,consolePayload:c,wearPayload:y,getNavigatorInstance:g,isIOS13Check:f}})])})(wo)),wo.exports}var Bu=$u(),Hu=Object.defineProperty,kr=(t,e,r,n)=>{for(var i=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(i=s(e,r,i)||i);return i&&Hu(e,r,i),i};const vo=class vo extends Br{constructor(){super(),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Vu(this),this.store=ze.getInitialState(),this.currentScreenConfig=this.store.currentScreenConfig,this.processingScreenFromWorkflow=this.store.processingTransformedTemplate,this.isProcessing=this.store.isProcessing,this.loadedModules=this.store.externalModules,this.modulesConfig=this.store.modulesConfig,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:Hr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=e=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e)},ze.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig})}_processingScreen(){const e=this.loadedModules.find(n=>n.supportedTemplates.includes("PROGRESS"));if(!e||!this.processingScreenFromWorkflow)return _i`Processing...`;const r={perform:this._performFromModule,moduleProps:Y(I({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return this._currentProgressElement||(this._currentProgressElement=Ja(e.id,r)),this._currentProgressElement}_isTheSameModuleAndScreen(e){return this._currentScreenModuleId===e.id&&JSON.stringify(structuredClone(this._currentScreenConfig))===JSON.stringify(structuredClone(this.currentScreenConfig))}_currentScreen(){if(!this.currentScreenConfig)return Re;const e=this.loadedModules.find(n=>n.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return Re;const r={perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return(!this._currentScreenElement||!this._isTheSameModuleAndScreen(e))&&(this._currentScreenElement=Ja(e.id,r),this._currentScreenModuleId=e.id,this._currentScreenConfig=this.currentScreenConfig),this._currentScreenElement}get version(){return`${"3.2.250-nightly".trim()}`}disconnectedCallback(){yi.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:_i`<div
116
+ */(function(o,s){var a="0.7.18",l="",u="?",_="function",h="undefined",c="object",y="string",g="major",f="model",m="name",S="type",b="vendor",C="version",O="architecture",N="console",R="mobile",F="tablet",_e="smarttv",me="wearable",ee="embedded",Q={extend:function(te,z){var U={};for(var q in te)z[q]&&z[q].length%2===0?U[q]=z[q].concat(te[q]):U[q]=te[q];return U},has:function(te,z){return typeof te=="string"?z.toLowerCase().indexOf(te.toLowerCase())!==-1:!1},lowerize:function(te){return te.toLowerCase()},major:function(te){return typeof te===y?te.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(te){return te.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={rgx:function(te,z){for(var U=0,q,re,Te,ne,$,X;U<z.length&&!$;){var Ke=z[U],Je=z[U+1];for(q=re=0;q<Ke.length&&!$;)if($=Ke[q++].exec(te),$)for(Te=0;Te<Je.length;Te++)X=$[++re],ne=Je[Te],typeof ne===c&&ne.length>0?ne.length==2?typeof ne[1]==_?this[ne[0]]=ne[1].call(this,X):this[ne[0]]=ne[1]:ne.length==3?typeof ne[1]===_&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=X?ne[1].call(this,X,ne[2]):s:this[ne[0]]=X?X.replace(ne[1],ne[2]):s:ne.length==4&&(this[ne[0]]=X?ne[3].call(this,X.replace(ne[1],ne[2])):s):this[ne]=X||s;U+=2}},str:function(te,z){for(var U in z)if(typeof z[U]===c&&z[U].length>0){for(var q=0;q<z[U].length;q++)if(Q.has(z[U][q],te))return U===u?s:U}else if(Q.has(z[U],te))return U===u?s:U;return te}},J={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{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"}}}},de={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,C],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],C],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],C],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i],[m,C],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],C],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],C],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],C],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],C],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],C],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],C],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],C],[/(qqbrowserlite)\/([\w\.]+)/i],[m,C],[/(QQ)\/([\d\.]+)/i],[m,C],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,C],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,C],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[C,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[C,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[C,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],C],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],C],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[C,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,C],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],C],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],C],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],C],[/fxios\/([\w\.-]+)/i],[C,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[C,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[C,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],C],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[C,H.str,J.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,C],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],C],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[m,C]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Q.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[O,/ower/,"",Q.lowerize]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[O,Q.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[f,b,[S,F]],[/applecoremedia\/[\w\.]+ \((ipad)/],[f,[b,"Apple"],[S,F]],[/(apple\s{0,1}tv)/i],[[f,"Apple TV"],[b,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[b,f,[S,F]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[f,[b,"Amazon"],[S,F]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[f,H.str,J.device.amazon.model],[b,"Amazon"],[S,R]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[f,b,[S,R]],[/\((ip[honed|\s\w*]+);/i],[f,[b,"Apple"],[S,R]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[b,f,[S,R]],[/\(bb10;\s(\w+)/i],[f,[b,"BlackBerry"],[S,R]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[f,[b,"Asus"],[S,F]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[b,"Sony"],[f,"Xperia Tablet"],[S,F]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[f,[b,"Sony"],[S,R]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[b,f,[S,N]],[/android.+;\s(shield)\sbuild/i],[f,[b,"Nvidia"],[S,N]],[/(playstation\s[34portablevi]+)/i],[f,[b,"Sony"],[S,N]],[/(sprint\s(\w+))/i],[[b,H.str,J.device.sprint.vendor],[f,H.str,J.device.sprint.model],[S,R]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[b,f,[S,F]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[b,[f,/_/g," "],[S,R]],[/(nexus\s9)/i],[f,[b,"HTC"],[S,F]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[f,[b,"Huawei"],[S,R]],[/(microsoft);\s(lumia[\s\w]+)/i],[b,f,[S,R]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[f,[b,"Microsoft"],[S,N]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[b,"Microsoft"],[S,R]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[f,[b,"Motorola"],[S,R]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[f,[b,"Motorola"],[S,F]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[b,Q.trim],[f,Q.trim],[S,_e]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[b,"Samsung"],[S,_e]],[/\(dtv[\);].+(aquos)/i],[f,[b,"Sharp"],[S,_e]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[b,"Samsung"],f,[S,F]],[/smart-tv.+(samsung)/i],[b,[S,_e],f],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[b,"Samsung"],f,[S,R]],[/sie-(\w*)/i],[f,[b,"Siemens"],[S,R]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[b,"Nokia"],f,[S,R]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[f,[b,"Acer"],[S,F]],[/android.+([vl]k\-?\d{3})\s+build/i],[f,[b,"LG"],[S,F]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[b,"LG"],f,[S,F]],[/(lg) netcast\.tv/i],[b,f,[S,_e]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[f,[b,"LG"],[S,R]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[f,[b,"Lenovo"],[S,F]],[/linux;.+((jolla));/i],[b,f,[S,R]],[/((pebble))app\/[\d\.]+\s/i],[b,f,[S,me]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[b,f,[S,R]],[/crkey/i],[[f,"Chromecast"],[b,"Google"]],[/android.+;\s(glass)\s\d/i],[f,[b,"Google"],[S,me]],[/android.+;\s(pixel c)\s/i],[f,[b,"Google"],[S,F]],[/android.+;\s(pixel xl|pixel)\s/i],[f,[b,"Google"],[S,R]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[b,"Xiaomi"],[S,R]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[b,"Xiaomi"],[S,F]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[f,[b,"Meizu"],[S,F]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[f,[b,"OnePlus"],[S,R]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[f,[b,"RCA"],[S,F]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[f,[b,"Dell"],[S,F]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[f,[b,"Verizon"],[S,F]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[b,"Barnes & Noble"],f,[S,F]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[f,[b,"NuVision"],[S,F]],[/android.+;\s(k88)\sbuild/i],[f,[b,"ZTE"],[S,F]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[f,[b,"Swiss"],[S,R]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[f,[b,"Swiss"],[S,F]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[f,[b,"Zeki"],[S,F]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[b,"Dragon Touch"],f,[S,F]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[f,[b,"Insignia"],[S,F]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[f,[b,"NextBook"],[S,F]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[b,"Voice"],f,[S,R]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[b,"LvTel"],f,[S,R]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[f,[b,"Envizen"],[S,F]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[b,f,[S,F]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[f,[b,"MachSpeed"],[S,F]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[b,f,[S,F]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[f,[b,"Rotor"],[S,F]],[/android.+(KS(.+))\s+build/i],[f,[b,"Amazon"],[S,F]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[b,f,[S,F]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[S,Q.lowerize],b,f],[/(android[\w\.\s\-]{0,9});.+build/i],[f,[b,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[C,[m,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[m,C],[/rv\:([\w\.]{1,9}).+(gecko)/i],[C,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,C],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[m,[C,H.str,J.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[C,H.str,J.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],C],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[m,C],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],C],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],C],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[m,C],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],C],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],C],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,C],[/(haiku)\s(\w+)/i],[m,C],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[C,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[C,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]*)/i],[m,C]]},ue=function(te,z){if(typeof te=="object"&&(z=te,te=s),!(this instanceof ue))return new ue(te,z).getResult();var U=te||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:l),q=z?Q.extend(de,z):de;return this.getBrowser=function(){var re={name:s,version:s};return H.rgx.call(re,U,q.browser),re.major=Q.major(re.version),re},this.getCPU=function(){var re={architecture:s};return H.rgx.call(re,U,q.cpu),re},this.getDevice=function(){var re={vendor:s,model:s,type:s};return H.rgx.call(re,U,q.device),re},this.getEngine=function(){var re={name:s,version:s};return H.rgx.call(re,U,q.engine),re},this.getOS=function(){var re={name:s,version:s};return H.rgx.call(re,U,q.os),re},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 U},this.setUA=function(re){return U=re,this},this};ue.VERSION=a,ue.BROWSER={NAME:m,MAJOR:g,VERSION:C},ue.CPU={ARCHITECTURE:O},ue.DEVICE={MODEL:f,VENDOR:b,TYPE:S,CONSOLE:N,MOBILE:R,SMARTTV:_e,TABLET:F,WEARABLE:me,EMBEDDED:ee},ue.ENGINE={NAME:m,VERSION:C},ue.OS={NAME:m,VERSION:C},typeof r!==h?(typeof e!==h&&e.exports&&(r=e.exports=ue),r.UAParser=ue):n(3)?(i=(function(){return ue}).call(r,n,r,e),i!==s&&(e.exports=i)):o&&(o.UAParser=ue);var ve=o&&(o.jQuery||o.Zepto);if(typeof ve!==h){var ye=new ue;ve.ua=ye.getResult(),ve.ua.get=function(){return ye.getUA()},ve.ua.set=function(te){ye.setUA(te);var z=ye.getResult();for(var U in z)ve.ua[U]=z[U]}}})(typeof window=="object"?window:this)}),(function(e,r){(function(n){e.exports=n}).call(r,{})}),(function(e,r,n){Object.defineProperty(r,"__esModule",{value:!0});var i=Object.assign||function(m){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C])}return m},o=n(0),s=o.DEVICE_TYPES,a=o.defaultData,l=function(S){switch(S){case s.MOBILE:return{isMobile:!0};case s.TABLET:return{isTablet:!0};case s.SMART_TV:return{isSmartTV:!0};case s.CONSOLE:return{isConsole:!0};case s.WEARABLE:return{isWearable:!0};case s.BROWSER:return{isBrowser:!0};default:return a}},u=function(S,b,C,O,N){return{isBrowser:S,browserMajorVersion:b.major,browserFullVersion:b.version,browserName:b.name,engineName:C.name||!1,engineVersion:C.version,osName:O.name,osVersion:O.version,userAgent:N}},_=function(S,b,C,O){return i({},S,{vendor:b.vendor,model:b.model,os:C.name,osVersion:C.version,ua:O})},h=function(S,b,C,O){return{isSmartTV:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},c=function(S,b,C,O){return{isConsole:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},y=function(S,b,C,O){return{isWearable:S,engineName:b.name,engineVersion:b.version,osName:C.name,osVersion:C.version,userAgent:O}},g=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},f=r.isIOS13Check=function(S){var b=g();return b&&b.platform&&(b.platform.indexOf(S)!==-1||b.platform==="MacIntel"&&b.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:l,broPayload:u,mobilePayload:_,stvPayload:h,consolePayload:c,wearPayload:y,getNavigatorInstance:g,isIOS13Check:f}})])})(wo)),wo.exports}var Bu=$u(),Hu=Object.defineProperty,kr=(t,e,r,n)=>{for(var i=void 0,o=t.length-1,s;o>=0;o--)(s=t[o])&&(i=s(e,r,i)||i);return i&&Hu(e,r,i),i};const vo=class vo extends Br{constructor(){super(),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Vu(this),this.store=ze.getInitialState(),this.currentScreenConfig=this.store.currentScreenConfig,this.processingScreenFromWorkflow=this.store.processingTransformedTemplate,this.isProcessing=this.store.isProcessing,this.loadedModules=this.store.externalModules,this.modulesConfig=this.store.modulesConfig,this._listenerFromModule=(e,r)=>{this.store.listener({eventType:Hr.MESSAGE,message:r,module:e})},this._isProcessingCallback=e=>{this.store.setIsProcessing(e)},this._performFromModule=e=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e)},ze.subscribe(e=>{this.currentScreenConfig=e.currentScreenConfig,this.processingScreenFromWorkflow=e.processingTransformedTemplate,this.isProcessing=e.isProcessing,this.loadedModules=e.externalModules,this.modulesConfig=e.modulesConfig})}_processingScreen(){const e=this.loadedModules.find(n=>n.supportedTemplates.includes("PROGRESS"));if(!e||!this.processingScreenFromWorkflow)return _i`Processing...`;const r={perform:this._performFromModule,moduleProps:Y(I({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return this._currentProgressElement||(this._currentProgressElement=Ja(e.id,r)),this._currentProgressElement}_isTheSameModuleAndScreen(e){return this._currentScreenModuleId===e.id&&JSON.stringify(structuredClone(this._currentScreenConfig))===JSON.stringify(structuredClone(this.currentScreenConfig))}_currentScreen(){if(!this.currentScreenConfig)return Re;const e=this.loadedModules.find(n=>n.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return Re;const r={perform:this._performFromModule,moduleProps:this.currentScreenConfig,modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return(!this._currentScreenElement||!this._isTheSameModuleAndScreen(e))&&(this._currentScreenElement=Ja(e.id,r),this._currentScreenModuleId=e.id,this._currentScreenConfig=this.currentScreenConfig),this._currentScreenElement}get version(){return`${"3.2.252-nightly".trim()}`}disconnectedCallback(){yi.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:_i`<div
117
117
  part="idv"
118
118
  class="idv"
119
119
  data-device="${Bu.isMobile&&this.orientation.isPortrait?"mobile":"desktop"}"
@@ -123,4 +123,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
123
123
  ${this.isProcessing?_i`<div class="processing-overlay">${this._processingScreen()}</div>`:""}
124
124
  ${this._currentScreen()}
125
125
  </div>
126
- </div>`}};vo.styles=[Fl];let bt=vo;kr([yr()],bt.prototype,"store"),kr([yr()],bt.prototype,"currentScreenConfig"),kr([yr()],bt.prototype,"processingScreenFromWorkflow"),kr([yr()],bt.prototype,"isProcessing"),kr([yr()],bt.prototype,"loadedModules"),kr([yr()],bt.prototype,"modulesConfig");class Wu{initialize(e){return U(this,null,function*(){return ze.getState().initialize(e)})}configure(e){return U(this,null,function*(){return"userName"in e?yield ze.getState().configureByUserPass(e):"apiKey"in e?yield ze.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield ze.getState().configureWithUrl(e.url):{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return U(this,null,function*(){return yield ze.getState().getWorkflows(e)})}prepareWorkflow(r){return U(this,arguments,function*({workflowId:e}){return yield ze.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return U(this,null,function*(){return new Promise(r=>{const n=a=>{r(a)},i=e==null?void 0:e.locale,o=e==null?void 0:e.metadata,s=Vc(i);ze.getState().startNewSession(n,s,o).then(a=>{a.error&&(ze.getState().removeCurrentSessionDataLsAndStore(),n(a)),a.results&&(ze.getState().removeCurrentSessionDataLsAndStore(),n(a)),ze.getState().playWorkflow()})})})}deinitialize(){return U(this,null,function*(){return yield ze.getState().deinitialize()})}get version(){return"3.2.250-nightly"}set nonce(e){ze.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}ze.getState().setListener(e)}set sessionRestoreMode(e){ze.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",bt),fe.BaseError=be,fe.BaseModule=ua,fe.ConnectionError=It,fe.DeinitializationError=jr,fe.IdvEventTypesEnum=Hr,fe.IdvIntegrationService=Wu,fe.IdvServiceMessages=br,fe.IdvWebComponent=bt,fe.InitializeError=Wr,fe.PrepareWorkflowError=mt,fe.SessionError=it,fe.StartSessionError=qt,fe.WorkflowError=We,fe.WorkflowPlatformError=gt,fe.registerModule=fa,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),fe})({});
126
+ </div>`}};vo.styles=[Fl];let Ct=vo;kr([yr()],Ct.prototype,"store"),kr([yr()],Ct.prototype,"currentScreenConfig"),kr([yr()],Ct.prototype,"processingScreenFromWorkflow"),kr([yr()],Ct.prototype,"isProcessing"),kr([yr()],Ct.prototype,"loadedModules"),kr([yr()],Ct.prototype,"modulesConfig");class Wu{initialize(e){return P(this,null,function*(){return ze.getState().initialize(e)})}configure(e){return P(this,null,function*(){return"userName"in e?yield ze.getState().configureByUserPass(e):"apiKey"in e?yield ze.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield ze.getState().configureWithUrl(e.url):{error:new Be({errorCode:Ve.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return P(this,null,function*(){return yield ze.getState().getWorkflows(e)})}prepareWorkflow(r){return P(this,arguments,function*({workflowId:e}){return yield ze.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return P(this,null,function*(){return new Promise(r=>{const n=a=>{r(a)},i=e==null?void 0:e.locale,o=e==null?void 0:e.metadata,s=Vc(i);ze.getState().startNewSession(n,s,o).then(a=>{a.error&&(ze.getState().removeCurrentSessionDataLsAndStore(),n(a)),a.results&&(ze.getState().removeCurrentSessionDataLsAndStore(),n(a)),ze.getState().playWorkflow()})})})}deinitialize(){return P(this,null,function*(){return yield ze.getState().deinitialize()})}get version(){return"3.2.252-nightly"}set nonce(e){ze.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}ze.getState().setListener(e)}set sessionRestoreMode(e){ze.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",Ct),fe.BaseError=be,fe.BaseModule=ua,fe.ConnectionError=Ot,fe.DeinitializationError=jr,fe.IdvEventTypesEnum=Hr,fe.IdvIntegrationService=Wu,fe.IdvServiceMessages=br,fe.IdvWebComponent=Ct,fe.InitializeError=Wr,fe.PrepareWorkflowError=gt,fe.SessionError=it,fe.StartSessionError=Zt,fe.WorkflowError=We,fe.WorkflowPlatformError=wt,fe.registerModule=fa,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),fe})({});