@regulaforensics/idv-capture-web 3.2.258-nightly → 3.2.260-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/index.d.ts +2 -0
- package/dist/main.iife.js +12 -12
- package/dist/main.js +366 -361
- package/package.json +1 -1
package/dist/main.iife.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var RegulaIdv=(function(he){"use strict";var b1=Object.defineProperty,S1=Object.defineProperties;var C1=Object.getOwnPropertyDescriptors;var ui=Object.getOwnPropertySymbols;var fl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var ul=(he,Ae,Ie)=>Ae in he?b1(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):he[Ae]=Ie,I=(he,Ae)=>{for(var Ie in Ae||(Ae={}))fl.call(Ae,Ie)&&ul(he,Ie,Ae[Ie]);if(ui)for(var Ie of ui(Ae))hl.call(Ae,Ie)&&ul(he,Ie,Ae[Ie]);return he},X=(he,Ae)=>S1(he,C1(Ae));var
|
|
1
|
+
var RegulaIdv=(function(he){"use strict";var b1=Object.defineProperty,S1=Object.defineProperties;var C1=Object.getOwnPropertyDescriptors;var ui=Object.getOwnPropertySymbols;var fl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var ul=(he,Ae,Ie)=>Ae in he?b1(he,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):he[Ae]=Ie,I=(he,Ae)=>{for(var Ie in Ae||(Ae={}))fl.call(Ae,Ie)&&ul(he,Ie,Ae[Ie]);if(ui)for(var Ie of ui(Ae))hl.call(Ae,Ie)&&ul(he,Ie,Ae[Ie]);return he},X=(he,Ae)=>S1(he,C1(Ae));var mr=(he,Ae)=>{var Ie={};for(var qe in he)fl.call(he,qe)&&Ae.indexOf(qe)<0&&(Ie[qe]=he[qe]);if(he!=null&&ui)for(var qe of ui(he))Ae.indexOf(qe)<0&&hl.call(he,qe)&&(Ie[qe]=he[qe]);return Ie};var F=(he,Ae,Ie)=>new Promise((qe,Mr)=>{var un=Ot=>{try{Pr(Ie.next(Ot))}catch(gr){Mr(gr)}},fi=Ot=>{try{Pr(Ie.throw(Ot))}catch(gr){Mr(gr)}},Pr=Ot=>Ot.done?qe(Ot.value):Promise.resolve(Ot.value).then(un,fi);Pr((Ie=Ie.apply(he,Ae)).next())});/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var el,tl,rl,nl,il,ol;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 fi=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)},Ot=(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)}},
|
|
5
|
+
*/var el,tl,rl,nl,il,ol;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 fi=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)},Ot=(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)}},gr=Ie?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return fi(r)})(t):t;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:ml,defineProperty:gl,getOwnPropertyDescriptor:wl,getOwnPropertyNames:vl,getOwnPropertySymbols:yl,getPrototypeOf:bl}=Object,qt=globalThis,$o=qt.trustedTypes,Sl=$o?$o.emptyScript:"",hi=qt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,fn={toAttribute(t,e){switch(e){case Boolean:t=t?Sl: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}},pi=(t,e)=>!ml(t,e),Bo={attribute:!0,type:String,converter:fn,reflect:!1,useDefault:!1,hasChanged:pi};(el=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(tl=qt.litPropertyMetadata)!=null||(qt.litPropertyMetadata=new WeakMap);let
|
|
9
|
+
*/const{is:ml,defineProperty:gl,getOwnPropertyDescriptor:wl,getOwnPropertyNames:vl,getOwnPropertySymbols:yl,getPrototypeOf:bl}=Object,qt=globalThis,$o=qt.trustedTypes,Sl=$o?$o.emptyScript:"",hi=qt.reactiveElementPolyfillSupport,Fr=(t,e)=>t,fn={toAttribute(t,e){switch(e){case Boolean:t=t?Sl: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}},pi=(t,e)=>!ml(t,e),Bo={attribute:!0,type:String,converter:fn,reflect:!1,useDefault:!1,hasChanged:pi};(el=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(tl=qt.litPropertyMetadata)!=null||(qt.litPropertyMetadata=new WeakMap);let wr=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=Bo){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&&gl(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){var s;const{get:i,set:o}=(s=wl(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:Bo}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=bl(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=[...vl(r),...yl(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(gr(i))}else e!==void 0&&r.push(gr(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 Ot(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 p=d.fromAttribute(r,l.type);this[i]=(a=p!=null?p:(s=this._$Ej)==null?void 0:s.get(i))!=null?a:p,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:pi)(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 F(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){}};wr.elementStyles=[],wr.shadowRootOptions={mode:"open"},wr[Fr("elementProperties")]=new Map,wr[Fr("finalized")]=new Map,hi==null||hi({ReactiveElement:wr}),((rl=qt.reactiveElementVersions)!=null?rl:qt.reactiveElementVersions=[]).push("2.1.1");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const Ur=globalThis,hn=Ur.trustedTypes,Ho=hn?hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wo="$lit$",Zt=`lit$${Math.random().toFixed(9).slice(2)}$`,jo="?"+Zt,Cl=`<${jo}>`,nr=document,Lr=()=>nr.createComment(""),Vr=t=>t===null||typeof t!="object"&&typeof t!="function",_i=Array.isArray,El=t=>_i(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",mi=`[
|
|
14
14
|
\f\r]`,$r=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zo=/-->/g,Ko=/>/g,ir=RegExp(`>|${mi}(?:([^\\s"'>=/]+)(${mi}*=${mi}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Go=/'/g,qo=/"/g,Zo=/^(?:script|style|textarea|title)$/i,Tl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gi=Tl(1),
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Go=/'/g,qo=/"/g,Zo=/^(?:script|style|textarea|title)$/i,Tl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gi=Tl(1),vr=Symbol.for("lit-noChange"),ke=Symbol.for("lit-nothing"),Yo=new WeakMap,or=nr.createTreeWalker(nr,129);function Jo(t,e){if(!_i(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ho!==void 0?Ho.createHTML(e):e}const Il=(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,p,h=-1,c=0;for(;c<l.length&&(s.lastIndex=c,p=s.exec(l),p!==null);)c=s.lastIndex,s===$r?p[1]==="!--"?s=zo:p[1]!==void 0?s=Ko:p[2]!==void 0?(Zo.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=ir):p[3]!==void 0&&(s=ir):s===ir?p[0]===">"?(s=i!=null?i:$r,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,d=p[1],s=p[3]===void 0?ir:p[3]==='"'?qo:Go):s===qo||s===Go?s=ir:s===zo||s===Ko?s=$r:(s=ir,i=void 0);const g=s===ir&&t[a+1].startsWith("/>")?" ":"";o+=s===$r?l+Cl:h>=0?(n.push(d),l.slice(0,h)+Wo+l.slice(h)+Zt+g):l+Zt+(h===-2?a:g)}return[Jo(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let wi=class pl{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0;const a=e.length-1,l=this.parts,[d,p]=Il(e,r);if(this.el=pl.createElement(d,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(Wo)){const c=p[s++],g=i.getAttribute(h).split(Zt),w=/([.?@])?(.*)/.exec(c);l.push({type:1,index:o,name:w[2],strings:g,ctor:w[1]==="."?Al:w[1]==="?"?xl:w[1]==="@"?Rl:pn}),i.removeAttribute(h)}else h.startsWith(Zt)&&(l.push({type:6,index:o}),i.removeAttribute(h));if(Zo.test(i.tagName)){const h=i.textContent.split(Zt),c=h.length-1;if(c>0){i.textContent=hn?hn.emptyScript:"";for(let g=0;g<c;g++)i.append(h[g],Lr()),or.nextNode(),l.push({type:2,index:++o});i.append(h[c],Lr())}}}else if(i.nodeType===8)if(i.data===jo)l.push({type:2,index:o});else{let h=-1;for(;(h=i.data.indexOf(Zt,h+1))!==-1;)l.push({type:7,index:o}),h+=Zt.length-1}o++}}static createElement(e,r){const n=nr.createElement("template");return n.innerHTML=e,n}};function yr(t,e,r=t,n){var s,a,l;if(e===vr)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=yr(t,i._$AS(t,e.values),i,n)),e}let Ol=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: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 p;l.type===2?p=new vi(o,o.nextSibling,this,e):l.type===1?p=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(p=new kl(o,this,e)),this._$AV.push(p),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++}},vi=class _l{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=ke,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=yr(this,e,r),Vr(e)?e===ke||e==null||e===""?(this._$AH!==ke&&this._$AR(),this._$AH=ke):e!==this._$AH&&e!==vr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):El(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!==ke&&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=wi.createElement(Jo(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 Ol(i,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=Yo.get(e.strings);return r===void 0&&Yo.set(e.strings,r=new wi(e)),r}k(e){_i(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 _l(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=ke,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=ke}_$AI(e,r=this,n,i){const o=this.strings;let s=!1;if(o===void 0)e=yr(this,e,r,0),s=!Vr(e)||e!==this._$AH&&e!==vr,s&&(this._$AH=e);else{const a=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=yr(this,a[n+l],r,l),d===vr&&(d=this._$AH[l]),s||(s=!Vr(d)||d!==this._$AH[l]),d===ke?e=ke:e!==ke&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}s&&!i&&this.j(e)}j(e){e===ke?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Al=class extends pn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ke?void 0:e}},xl=class extends pn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ke)}},Rl=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=yr(this,e,r,0))!=null?s:ke)===vr)return;const n=this._$AH,i=e===ke&&n!==ke||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==ke&&(n===ke||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)}},kl=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){yr(this,e)}};const yi=Ur.litHtmlPolyfillSupport;yi==null||yi(wi,vi),((nl=Ur.litHtmlVersions)!=null?nl:Ur.litHtmlVersions=[]).push("3.3.1");const Nl=(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 vi(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 sr=globalThis;let Br=class extends
|
|
19
|
+
*/const sr=globalThis;let Br=class extends wr{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=Nl(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 vr}};Br._$litElement$=!0,Br.finalized=!0,(il=sr.litElementHydrateSupport)==null||il.call(sr,{LitElement:Br});const bi=sr.litElementPolyfillSupport;bi==null||bi({LitElement:Br}),((ol=sr.litElementVersions)!=null?ol:sr.litElementVersions=[]).push("4.2.1");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,7 +24,7 @@ var RegulaIdv=(function(he){"use strict";var b1=Object.defineProperty,S1=Object.
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function
|
|
27
|
+
*/function br(t){return Pl(X(I({},t),{state:!0,attribute:!1}))}class Fl{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
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 Xo=new Fl,Ul=Pr`
|
|
29
29
|
*,
|
|
30
30
|
::after,
|
|
@@ -86,9 +86,9 @@ var RegulaIdv=(function(he){"use strict";var b1=Object.defineProperty,S1=Object.
|
|
|
86
86
|
background: white;
|
|
87
87
|
z-index: 1000;
|
|
88
88
|
}
|
|
89
|
-
`,Hr={MESSAGE:"MESSAGE",ERROR:"ERROR"},Ll=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Qo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Qo||{}),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||{}),wt=(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))(wt||{}),Le=(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))(Le||{}),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||{}),vt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(vt||{}),Yt=(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))(Yt||{}),ot=(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))(ot||{}),jr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(jr||{}),At=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(At||{});const Vl=120,$l=200,Si="PROGRESS",yt="IDV",ar="idv-session-data",zr="idv-session-auth-token",Bl="rgl-uid",Hl="en",es=t=>{let e;const r=new Set,n=(d,p)=>{const h=typeof d=="function"?d(e):d;if(!Object.is(h,e)){const c=e;e=(p!=null?p:typeof h!="object"||h===null)?h:Object.assign({},e,h),r.forEach(g=>g(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},Wl=t=>t?es(t):es;var Kr,oe,ts,lr,rs,ns,is,os,Ci,Ei,Ti,ss,Gr={},as=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qr=Array.isArray;function bt(t,e){for(var r in e)t[r]=e[r];return t}function Ii(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function St(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?++ts:i,__i:-1,__u:0};return i==null&&oe.vnode!=null&&oe.vnode(o),o}function ls(){return{current:null}}function je(t){return t.children}function dt(t,e){this.props=t,this.context=e}function Sr(t,e){if(e==null)return t.__?Sr(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"?Sr(t):null}function cs(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 cs(t)}}function Oi(t){(!t.__d&&(t.__d=!0)&&lr.push(t)&&!mn.__r++||rs!=oe.debounceRendering)&&((rs=oe.debounceRendering)||ns)(mn)}function mn(){for(var t,e,r,n,i,o,s,a=1;lr.length;)lr.length>a&&lr.sort(is),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=bt({},n)).__v=n.__v+1,oe.vnode&&oe.vnode(r),Ai(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Sr(n):i,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,ps(o,r,s),n.__e=n.__=null,r.__e!=i&&cs(r)));mn.__r=0}function ds(t,e,r,n,i,o,s,a,l,d,p){var h,c,g,w,f,m,C,S=n&&n.__k||as,b=e.length;for(l=zl(r,e,S,l,b),h=0;h<b;h++)(g=r.__k[h])!=null&&(c=g.__i==-1?Gr:S[g.__i]||Gr,g.__i=h,m=Ai(t,g,c,i,o,s,a,l,d,p),w=g.__e,g.ref&&c.ref!=g.ref&&(c.ref&&Ri(c.ref,null,g),p.push(g.ref,g.__c||w,g)),f==null&&w!=null&&(f=w),(C=!!(4&g.__u))||c.__k===g.__k?l=us(g,l,t,C):typeof g.type=="function"&&m!==void 0?l=m:w&&(l=w.nextSibling),g.__u&=-7);return r.__e=f,l}function zl(t,e,r,n,i){var o,s,a,l,d,p=r.length,h=p,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=Kl(s,r,l,h))!=-1&&(h--,(a=r[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>p?c--:i<p&&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<p;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Sr(a)),ms(a,a));return n}function us(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=us(i[o],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=Sr(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function xt(t,e){return e=e||[],t==null||typeof t=="boolean"||(qr(t)?t.some(function(r){xt(r,e)}):e.push(t)),e}function Kl(t,e,r,n){var i,o,s,a=t.key,l=t.type,d=e[r],p=d!=null&&(2&d.__u)==0;if(d===null&&t.key==null||p&&a==d.key&&l==d.type)return r;if(n>(p?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 fs(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||jl.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||fs(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||fs(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(os,"$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?Ti:Ei,o)):t.removeEventListener(e,o?Ti:Ei,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 hs(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(oe.event?oe.event(e):e)}}}function Ai(t,e,r,n,i,o,s,a,l,d){var p,h,c,g,w,f,m,C,S,b,O,D,N,R,fe,me,le,Z=e.type;if(e.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),o=[a=e.__e=r.__e]),(p=oe.__b)&&p(e);e:if(typeof Z=="function")try{if(C=e.props,S="prototype"in Z&&Z.prototype.render,b=(p=Z.contextType)&&n[p.__c],O=p?b?b.props.value:p.__:n,r.__c?m=(h=e.__c=r.__c).__=h.__E:(S?e.__c=h=new Z(C,O):(e.__c=h=new dt(C,O),h.constructor=Z,h.render=ql),b&&b.sub(h),h.props=C,h.state||(h.state={}),h.context=O,h.__n=n,c=h.__d=!0,h.__h=[],h._sb=[]),S&&h.__s==null&&(h.__s=h.state),S&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=bt({},h.__s)),bt(h.__s,Z.getDerivedStateFromProps(C,h.__s))),g=h.props,w=h.state,h.__v=e,c)S&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),S&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(S&&Z.getDerivedStateFromProps==null&&C!==g&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(C,O),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(C,h.__s,O)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(h.props=C,h.state=h.__s,h.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),D=0;D<h._sb.length;D++)h.__h.push(h._sb[D]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(C,h.__s,O),S&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(g,w,f)})}if(h.context=O,h.props=C,h.__P=t,h.__e=!1,N=oe.__r,R=0,S){for(h.state=h.__s,h.__d=!1,N&&N(e),p=h.render(h.props,h.state,h.context),fe=0;fe<h._sb.length;fe++)h.__h.push(h._sb[fe]);h._sb=[]}else do h.__d=!1,N&&N(e),p=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++R<25);h.state=h.__s,h.getChildContext!=null&&(n=bt(bt({},n),h.getChildContext())),S&&!c&&h.getSnapshotBeforeUpdate!=null&&(f=h.getSnapshotBeforeUpdate(g,w)),me=p,p!=null&&p.type===je&&p.key==null&&(me=_s(p.props.children)),a=ds(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(le=o.length;le--;)Ii(o[le]);xi(e)}else e.__e=r.__e,e.__k=r.__k,H.then||xi(e);oe.__e(H,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Gl(r.__e,e,r,n,i,o,s,l,d);return(p=oe.diffed)&&p(e),128&e.__u?void 0:a}function xi(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(xi)}function ps(t,e,r){for(var n=0;n<r.length;n++)Ri(r[n],r[++n],r[++n]);oe.__c&&oe.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){oe.__e(o,i.__v)}})}function _s(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:qr(t)?t.map(_s):bt({},t)}function Gl(t,e,r,n,i,o,s,a,l){var d,p,h,c,g,w,f,m=r.props,C=e.props,S=e.type;if(S=="svg"?i="http://www.w3.org/2000/svg":S=="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((g=o[d])&&"setAttribute"in g==!!S&&(S?g.localName==S:g.nodeType==3)){t=g,o[d]=null;break}}if(t==null){if(S==null)return document.createTextNode(C);t=document.createElementNS(i,S,C.is&&C),a&&(oe.__m&&oe.__m(e,o),a=!1),o=null}if(S==null)m===C||a&&t.data==C||(t.data=C);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[(g=t.attributes[d]).name]=g.value;for(d in m)if(g=m[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=g;else if(!(d in C)){if(d=="value"&&"defaultValue"in C||d=="checked"&&"defaultChecked"in C)continue;gn(t,d,null,g,i)}}for(d in C)g=C[d],d=="children"?c=g:d=="dangerouslySetInnerHTML"?p=g:d=="value"?w=g:d=="checked"?f=g:a&&typeof g!="function"||m[d]===g||gn(t,d,g,m[d],i);if(p)a||h&&(p.__html==h.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(h&&(t.innerHTML=""),ds(e.type=="template"?t.content:t,qr(c)?c:[c],e,r,n,S=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:r.__k&&Sr(r,0),a,l),o!=null)for(d=o.length;d--;)Ii(o[d]);a||(d="value",S=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||S=="progress"&&!w||S=="option"&&w!=m[d])&&gn(t,d,w,m[d],i),d="checked",f!=null&&f!=t[d]&&gn(t,d,f,m[d],i))}return t}function Ri(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){oe.__e(i,r)}}function ms(t,e,r){var n,i;if(oe.unmount&&oe.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Ri(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){oe.__e(o,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ms(n[i],e,r||typeof t.type!="function");r||Ii(t.__e),t.__c=t.__=t.__e=void 0}function ql(t,e,r){return this.constructor(t,r)}function Cr(t,e,r){var n,i,o,s;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],Ai(e,t=(!n&&r||e).__k=St(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),ps(o,t,s)}function gs(t,e){Cr(t,e,gs)}function Zl(t,e,r){var n,i,o,s,a=bt({},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 ki(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,Oi(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"+ss++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}Kr=as.slice,oe={__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}},ts=0,dt.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=bt({},this.state),typeof t=="function"&&(t=t(bt({},r),this.props)),t&&bt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Oi(this))},dt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Oi(this))},dt.prototype.render=je,lr=[],ns=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,is=function(t,e){return t.__v.__b-e.__v.__b},mn.__r=0,os=/(PointerCapture)$|Capture$/i,Ci=0,Ei=hs(!1),Ti=hs(!0),ss=0;var Rt,Se,Ni,ws,Er=0,vs=[],Oe=oe,ys=Oe.__b,bs=Oe.__r,Ss=Oe.diffed,Cs=Oe.__c,Es=Oe.unmount,Ts=Oe.__;function cr(t,e){Oe.__h&&Oe.__h(Se,t,Er||e),Er=0;var r=Se.__H||(Se.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return Er=1,wn(Os,t)}function wn(t,e,r){var n=cr(Rt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Os(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=Se,!Se.__f)){var i=function(a,l,d){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(c){return!!c.__c});if(p.every(function(c){return!c.__N}))return!o||o.call(this,a,l,d);var h=n.__c.props!==a;return p.forEach(function(c){if(c.__N){var g=c.__[0];c.__=c.__N,c.__N=void 0,g!==c.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Se.__f=!0;var o=Se.shouldComponentUpdate,s=Se.componentWillUpdate;Se.componentWillUpdate=function(a,l,d){if(this.__e){var p=o;o=void 0,i(a,l,d),o=p}s&&s.call(this,a,l,d)},Se.shouldComponentUpdate=i}return n.__N||n.__}function st(t,e){var r=cr(Rt++,3);!Oe.__s&&Li(r.__H,e)&&(r.__=t,r.u=e,Se.__H.__h.push(r))}function Jt(t,e){var r=cr(Rt++,4);!Oe.__s&&Li(r.__H,e)&&(r.__=t,r.u=e,Se.__h.push(r))}function at(t){return Er=5,Yr(function(){return{current:t}},[])}function Di(t,e,r){Er=6,Jt(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(Rt++,7);return Li(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Mi(t,e){return Er=8,Yr(function(){return t},e)}function Jr(t){var e=Se.context[t.__c],r=cr(Rt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Se)),e.props.value):t.__}function Pi(t,e){Oe.useDebugValue&&Oe.useDebugValue(e?e(t):t)}function Yl(t){var e=cr(Rt++,10),r=Ue();return e.__=t,Se.componentDidCatch||(Se.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Fi(){var t=cr(Rt++,11);if(!t.__){for(var e=Se.__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 Jl(){for(var t;t=vs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(vn),t.__H.__h.forEach(Ui),t.__H.__h=[]}catch(e){t.__H.__h=[],Oe.__e(e,t.__v)}}Oe.__b=function(t){Se=null,ys&&ys(t)},Oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ts&&Ts(t,e)},Oe.__r=function(t){bs&&bs(t),Rt=0;var e=(Se=t.__c).__H;e&&(Ni===Se?(e.__h=[],Se.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(vn),e.__h.forEach(Ui),e.__h=[],Rt=0)),Ni=Se},Oe.diffed=function(t){Ss&&Ss(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vs.push(e)!==1&&ws===Oe.requestAnimationFrame||((ws=Oe.requestAnimationFrame)||Xl)(Jl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ni=Se=null},Oe.__c=function(t,e){e.some(function(r){try{r.__h.forEach(vn),r.__h=r.__h.filter(function(n){return!n.__||Ui(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Oe.__e(n,r.__v)}}),Cs&&Cs(t,e)},Oe.unmount=function(t){Es&&Es(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 Is=typeof requestAnimationFrame=="function";function Xl(t){var e,r=function(){clearTimeout(n),Is&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Is&&(e=requestAnimationFrame(r))}function vn(t){var e=Se,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Se=e}function Ui(t){var e=Se;t.__c=t.__(),Se=e}function Li(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Os(t,e){return typeof e=="function"?e(t):e}function As(t,e){for(var r in e)t[r]=e[r];return t}function Vi(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 $i(t,e){var r=e(),n=Ue({t:{__:r,u:e}}),i=n[0].t,o=n[1];return Jt(function(){i.__=r,i.u=e,Bi(i)&&o({t:i})},[t,r,e]),st(function(){return Bi(i)&&o({t:i}),t(function(){Bi(i)&&o({t:i})})},[t]),r}function Bi(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 Hi(t){t()}function Wi(t){return t}function ji(){return[!1,Hi]}var zi=Jt;function yn(t,e){this.props=t,this.context=e}function xs(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:Vi(this.props,i)}function n(i){return this.shouldComponentUpdate=r,St(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(yn.prototype=new dt).isPureReactComponent=!0,yn.prototype.shouldComponentUpdate=function(t,e){return Vi(this.props,t)||Vi(this.state,e)};var Rs=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rs&&Rs(t)};var Ql=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ks(t){function e(r){var n=As({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Ql,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Ns=function(t,e){return t==null?null:xt(xt(t).map(e))},Ds={map:Ns,forEach:Ns,count:function(t){return t?xt(t).length:0},only:function(t){var e=xt(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:xt},ec=oe.__e;oe.__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)}ec(t,e,r,n)};var Ms=oe.unmount;function Ps(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=As({},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 Ps(n,e,r)})),t}function Fs(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Fs(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 Us(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ls(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 St(r,o)}return i.displayName="Lazy",i.__f=!0,i}function Tr(){this.i=null,this.l=null}oe.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ms&&Ms(t)},(Xr.prototype=new dt).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Us(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]=Fs(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]=Ps(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&St(je,null,t.fallback);return i&&(i.__u&=-33),[St(je,null,e.__a?null:t.children),i]};var Vs=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 tc(t){return this.getChildContext=function(){return t.context},t.children}function rc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){Cr(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)}}}Cr(St(tc,{context:e.context},t.__v),e.v)}function $s(t,e){var r=St(rc,{__v:t,h:e});return r.containerInfo=e,r}(Tr.prototype=new dt).__a=function(t){var e=this,r=Us(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),Vs(e,t,n)):i()};r?r(o):o()}},Tr.prototype.render=function(t){this.i=null,this.l=new Map;var e=xt(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){Vs(t,r,e)})};var Bs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,nc=/^(?: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]/,ic=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oc=/[A-Z0-9]/g,sc=typeof document!="undefined",ac=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Hs(t,e,r){return e.__k==null&&(e.textContent=""),Cr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Ws(t,e,r){return gs(t,e),typeof r=="function"&&r(),t?t.__c:null}dt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(dt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var js=oe.event;function lc(){}function cc(){return this.cancelBubble}function dc(){return this.defaultPrevented}oe.event=function(t){return js&&(t=js(t)),t.persist=lc,t.isPropagationStopped=cc,t.isDefaultPrevented=dc,t.nativeEvent=t};var Ki,uc={enumerable:!1,configurable:!0,get:function(){return this.class}},zs=oe.vnode;oe.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||sc&&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"||ac(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":ic.test(s)&&(s=l):l=s="oninput":o&&nc.test(s)?s=s.replace(oc,"-$&").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=xt(r.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=xt(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",uc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Bs,zs&&zs(t)};var Ks=oe.__r;oe.__r=function(t){Ks&&Ks(t),Ki=t.__c};var Gs=oe.diffed;oe.diffed=function(t){Gs&&Gs(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),Ki=null};var qs={ReactCurrentDispatcher:{current:{readContext:function(t){return Ki.__n[t.__c].props.value},useCallback:Mi,useContext:Jr,useDebugValue:Pi,useDeferredValue:Wi,useEffect:st,useId:Fi,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Jt,useMemo:Yr,useReducer:wn,useRef:at,useState:Ue,useSyncExternalStore:$i,useTransition:ji}}},fc="18.3.1";function Zs(t){return St.bind(null,t)}function Qr(t){return!!t&&t.$$typeof===Bs}function Ys(t){return Qr(t)&&t.type===je}function Js(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Xs(t){return Qr(t)?Zl.apply(null,arguments):t}function Qs(t){return!!t.__k&&(Cr(null,t),!0)}function ea(t){return t&&(t.base||t.nodeType===1&&t)||null}var ta=function(t,e){return t(e)},ra=function(t,e){return t(e)},na=je,ia=Qr,de={useState:Ue,useId:Fi,useReducer:wn,useEffect:st,useLayoutEffect:Jt,useInsertionEffect:zi,useTransition:ji,useDeferredValue:Wi,useSyncExternalStore:$i,startTransition:Hi,useRef:at,useImperativeHandle:Di,useMemo:Yr,useCallback:Mi,useContext:Jr,useDebugValue:Pi,version:"18.3.1",Children:Ds,render:Hs,hydrate:Ws,unmountComponentAtNode:Qs,createPortal:$s,createElement:St,createContext:ki,createFactory:Zs,cloneElement:Xs,createRef:ls,Fragment:je,isValidElement:Qr,isElement:ia,isFragment:Ys,isMemo:Js,findDOMNode:ea,Component:dt,PureComponent:yn,memo:xs,forwardRef:ks,flushSync:ra,unstable_batchedUpdates:ta,StrictMode:na,Suspense:Xr,SuspenseList:Tr,lazy:Ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qs};const hc=Object.freeze(Object.defineProperty({__proto__:null,Children:Ds,Component:dt,Fragment:je,PureComponent:yn,StrictMode:na,Suspense:Xr,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qs,cloneElement:Xs,createContext:ki,createElement:St,createFactory:Zs,createPortal:$s,createRef:ls,default:de,findDOMNode:ea,flushSync:ra,forwardRef:ks,hydrate:Ws,isElement:ia,isFragment:Ys,isMemo:Js,isValidElement:Qr,lazy:Ls,memo:xs,render:Hs,startTransition:Hi,unmountComponentAtNode:Qs,unstable_batchedUpdates:ta,useCallback:Mi,useContext:Jr,useDebugValue:Pi,useDeferredValue:Wi,useEffect:st,useErrorBoundary:Yl,useId:Fi,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Jt,useMemo:Yr,useReducer:wn,useRef:at,useState:Ue,useSyncExternalStore:$i,useTransition:ji,version:fc},Symbol.toStringTag,{value:"Module"})),pc=t=>t;function _c(t,e=pc){const r=de.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return de.useDebugValue(r),r}const oa=t=>{const e=Wl(t),r=n=>_c(e,n);return Object.assign(r,e),r},mc=t=>t?oa(t):oa;function gc(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 wc=gc(hc);var en={exports:{}},vc=en.exports,sa;function yc(){return sa||(sa=1,(function(t,e){(function(r,n){var i="1.0.41",o="",s="?",a="function",l="undefined",d="object",p="string",h="major",c="model",g="name",w="type",f="vendor",m="version",C="architecture",S="console",b="mobile",O="tablet",D="smarttv",N="wearable",R="embedded",fe=500,me="Amazon",le="Apple",Z="ASUS",H="BlackBerry",K="Browser",ue="Chrome",ce="Edge",ve="Firefox",ye="Google",ee="Honor",z="Huawei",U="Lenovo",Y="LG",te="Microsoft",Te="Motorola",re="Nvidia",$="OnePlus",Q="Opera",Ke="OPPO",Je="Samsung",_t="Sharp",it="Sony",zt="Xiaomi",mt="Zebra",Qt="Facebook",Kt="Chromium OS",Et="Mac OS",Gt=" Browser",er=function(J,se){var j={};for(var ge in J)se[ge]&&se[ge].length%2===0?j[ge]=se[ge].concat(J[ge]):j[ge]=J[ge];return j},Tt=function(J){for(var se={},j=0;j<J.length;j++)se[J[j].toUpperCase()]=J[j];return se},lt=function(J,se){return typeof J===p?y(se).indexOf(y(J))!==-1:!1},y=function(J){return J.toLowerCase()},T=function(J){return typeof J===p?J.replace(/[^\d\.]/g,o).split(".")[0]:n},x=function(J,se){if(typeof J===p)return J=J.replace(/^\s\s*/,o),typeof se===l?J:J.substring(0,fe)},V=function(J,se){for(var j=0,ge,Ge,Me,pe,q,Xe;j<se.length&&!q;){var tr=se[j],pr=se[j+1];for(ge=Ge=0;ge<tr.length&&!q&&tr[ge];)if(q=tr[ge++].exec(J),q)for(Me=0;Me<pr.length;Me++)Xe=q[++Ge],pe=pr[Me],typeof pe===d&&pe.length>0?pe.length===2?typeof pe[1]==a?this[pe[0]]=pe[1].call(this,Xe):this[pe[0]]=pe[1]:pe.length===3?typeof pe[1]===a&&!(pe[1].exec&&pe[1].test)?this[pe[0]]=Xe?pe[1].call(this,Xe,pe[2]):n:this[pe[0]]=Xe?Xe.replace(pe[1],pe[2]):n:pe.length===4&&(this[pe[0]]=Xe?pe[3].call(this,Xe.replace(pe[1],pe[2])):n):this[pe]=Xe||n;j+=2}},M=function(J,se){for(var j in se)if(typeof se[j]===d&&se[j].length>0){for(var ge=0;ge<se[j].length;ge++)if(lt(se[j][ge],J))return j===s?n:j}else if(lt(se[j],J))return j===s?n:j;return se.hasOwnProperty("*")?se["*"]:J},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"},ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,m],[/opios[\/ ]+([\w\.]+)/i],[m,[g,Q+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[g,Q+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[g,Q]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[g,"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],[g,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[g,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[g,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+K],m],[/\bfocus\/([\w\.]+)/i],[m,[g,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[g,Q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[g,Q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[g,"MIUI"+Gt]],[/fxios\/([\w\.-]+)/i],[m,[g,ve]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+Gt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[g,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[g],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,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],[g,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[g,ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,ue+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[g,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[m,M,P]],[/(webkit|khtml)\/([\w\.]+)/i],[g,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[g,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],[g,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[C,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[C,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[C,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[C,/ower/,o,y]],[/ sun4\w[;\)]/i],[[C,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[C,y]]],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],[w,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],[w,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,le],[w,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,le],[w,O]],[/(macintosh);/i],[c,[f,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,_t],[w,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,ee],[w,O]],[/honor([-\w ]+)[;\)]/i],[c,[f,ee],[w,b]],[/\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],[w,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,z],[w,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,zt],[w,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,zt],[w,b]],[/; (\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],[w,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,M,{OnePlus:["304","403","203"],"*":Ke}],[w,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[w,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[w,b]],[/\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],[w,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,Te],[w,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,Y],[w,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,Y],[w,b]],[/(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],[w,O]],[/(nokia) (t[12][01])/i],[f,c,[w,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[w,b],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,ye],[w,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,ye],[w,b]],[/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,it],[w,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,it],[w,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,$],[w,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,me],[w,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,me],[w,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[w,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,H],[w,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,Z],[w,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,Z],[w,b]],[/(nexus 9)/i],[c,[f,"HTC"],[w,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[w,b]],[/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"],[w,O]],[/(itel) ((\w+))/i],[[f,y],c,[w,M,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[w,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[w,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[w,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[w,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[w,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[w,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[w,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[w,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[w,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[w,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,[w,b]],[/(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,[w,O]],[/(surface duo)/i],[c,[f,te],[w,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[w,b]],[/(u304aa)/i],[c,[f,"AT&T"],[w,b]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[w,b]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[w,O]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[w,O]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[w,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[w,O]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[w,O]],[/\b(k88) b/i],[c,[f,"ZTE"],[w,O]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[w,b]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[w,b]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[w,O]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[w,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[w,O]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[w,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[w,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[w,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[w,b]],[/\b(ph-1) /i],[c,[f,"Essential"],[w,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[w,O]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[w,O]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[w,O]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,re],[w,O]],[/(sprint) (\w+)/i],[f,c,[w,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,te],[w,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,mt],[w,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,mt],[w,b]],[/smart-tv.+(samsung)/i],[f,[w,D]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Je],[w,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,Y],[w,D]],[/(apple) ?tv/i],[f,[c,le+" TV"],[w,D]],[/crkey/i],[[c,ue+"cast"],[f,ye],[w,D]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,me],[w,D]],[/(shield \w+ tv)/i],[c,[f,re],[w,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,_t],[w,D]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,it],[w,D]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,zt],[w,D]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[w,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,x],[c,x],[w,D]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[w,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,D]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[w,S]],[/droid.+; (shield)( bui|\))/i],[c,[f,re],[w,S]],[/(playstation \w+)/i],[c,[f,it],[w,S]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,te],[w,S]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Je],[w,N]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[w,N]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,Ke],[w,N]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,le],[w,N]],[/(opwwe\d{3})/i],[c,[f,$],[w,N]],[/(moto 360)/i],[c,[f,Te],[w,N]],[/(smartwatch 3)/i],[c,[f,it],[w,N]],[/(g watch r)/i],[c,[f,Y],[w,N]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,mt],[w,N]],[/droid.+; (glass) \d/i],[c,[f,ye],[w,N]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[w,N]],[/; (quest( \d| pro)?)/i],[c,[f,Qt],[w,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[w,R]],[/(aeobc)\b/i],[c,[f,me],[w,R]],[/(homepod).+mac os/i],[c,[f,le],[w,R]],[/windows iot/i],[[w,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[w,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[w,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[g,ce+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[g,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[g,"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],[g,m],[/ladybird\//i],[[g,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[g,[m,M,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,M,W],[g,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Et],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,g],[/(ubuntu) ([\w\.]+) like android/i],[[g,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[g,m],[/\(bb(10);/i],[m,[g,H]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[g,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[g,ue+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,Kt],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],[g,m],[/(sunos) ?([\w\.\d]*)/i],[[g,"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],[g,m]]},G=function(J,se){if(typeof J===d&&(se=J,J=n),!(this instanceof G))return new G(J,se).getResult();var j=typeof r!==l&&r.navigator?r.navigator:n,ge=J||(j&&j.userAgent?j.userAgent:o),Ge=j&&j.userAgentData?j.userAgentData:n,Me=se?er(ne,se):ne,pe=j&&j.userAgent==ge;return this.getBrowser=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Me.browser),q[h]=T(q[m]),pe&&j&&j.brave&&typeof j.brave.isBrave==a&&(q[g]="Brave"),q},this.getCPU=function(){var q={};return q[C]=n,V.call(q,ge,Me.cpu),q},this.getDevice=function(){var q={};return q[f]=n,q[c]=n,q[w]=n,V.call(q,ge,Me.device),pe&&!q[w]&&Ge&&Ge.mobile&&(q[w]=b),pe&&q[c]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(q[c]="iPad",q[w]=O),q},this.getEngine=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Me.engine),q},this.getOS=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Me.os),pe&&!q[g]&&Ge&&Ge.platform&&Ge.platform!="Unknown"&&(q[g]=Ge.platform.replace(/chrome os/i,Kt).replace(/macos/i,Et)),q},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(q){return ge=typeof q===p&&q.length>fe?x(q,fe):q,this},this.setUA(ge),this};G.VERSION=i,G.BROWSER=Tt([g,m,h]),G.CPU=Tt([C]),G.DEVICE=Tt([c,f,w,S,b,D,O,N,R]),G.ENGINE=G.OS=Tt([g,m]),t.exports&&(e=t.exports=G),e.UAParser=G;var we=typeof r!==l&&(r.jQuery||r.Zepto);if(we&&!we.ua){var He=new G;we.ua=He.getResult(),we.ua.get=function(){return He.getUA()},we.ua.set=function(J){He.setUA(J);var se=He.getResult();for(var j in se)we.ua[j]=se[j]}}})(typeof window=="object"?window:vc)})(en,en.exports)),en.exports}var aa;function bc(){if(aa)return B;aa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=wc,r=t(e),n=yc(),i=new n,o=i.getBrowser(),s=i.getCPU(),a=i.getDevice(),l=i.getEngine(),d=i.getOS(),p=i.getUA(),h=function(_){return i.setUA(_)},c=function(_){if(!_){console.error("No userAgent string was provided");return}var v=new n(_);return{UA:v,browser:v.getBrowser(),cpu:v.getCPU(),device:v.getDevice(),engine:v.getEngine(),os:v.getOS(),ua:v.getUA(),setUserAgent:function(k){return v.setUA(k)}}},g=Object.freeze({ClientUAInstance:i,browser:o,cpu:s,device:a,engine:l,os:d,ua:p,setUa:h,parseUserAgent:c});function w(E,_){var v=Object.keys(E);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);_&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(E,k).enumerable})),v.push.apply(v,A)}return v}function f(E){for(var _=1;_<arguments.length;_++){var v=arguments[_]!=null?arguments[_]:{};_%2?w(Object(v),!0).forEach(function(A){O(E,A,v[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(v)):w(Object(v)).forEach(function(A){Object.defineProperty(E,A,Object.getOwnPropertyDescriptor(v,A))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(_){return typeof _}:m=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},m(E)}function C(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function S(E,_){for(var v=0;v<_.length;v++){var A=_[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}function b(E,_,v){return _&&S(E.prototype,_),E}function O(E,_,v){return _ in E?Object.defineProperty(E,_,{value:v,enumerable:!0,configurable:!0,writable:!0}):E[_]=v,E}function D(){return D=Object.assign||function(E){for(var _=1;_<arguments.length;_++){var v=arguments[_];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(E[A]=v[A])}return E},D.apply(this,arguments)}function N(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),_&&fe(E,_)}function R(E){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},R(E)}function fe(E,_){return fe=Object.setPrototypeOf||function(A,k){return A.__proto__=k,A},fe(E,_)}function me(E,_){if(E==null)return{};var v={},A=Object.keys(E),k,_e;for(_e=0;_e<A.length;_e++)k=A[_e],!(_.indexOf(k)>=0)&&(v[k]=E[k]);return v}function le(E,_){if(E==null)return{};var v=me(E,_),A,k;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(E);for(k=0;k<_e.length;k++)A=_e[k],!(_.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(E,A)&&(v[A]=E[A])}return v}function Z(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function H(E,_){if(_&&(typeof _=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z(E)}function K(E,_){return ue(E)||ce(E,_)||ve(E,_)||ee()}function ue(E){if(Array.isArray(E))return E}function ce(E,_){var v=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(v!=null){var A=[],k=!0,_e=!1,Pe,tt;try{for(v=v.call(E);!(k=(Pe=v.next()).done)&&(A.push(Pe.value),!(_&&A.length===_));k=!0);}catch(di){_e=!0,tt=di}finally{try{!k&&v.return!=null&&v.return()}finally{if(_e)throw tt}}return A}}function ve(E,_){if(E){if(typeof E=="string")return ye(E,_);var v=Object.prototype.toString.call(E).slice(8,-1);if(v==="Object"&&E.constructor&&(v=E.constructor.name),v==="Map"||v==="Set")return Array.from(E);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return ye(E,_)}}function ye(E,_){(_==null||_>E.length)&&(_=E.length);for(var v=0,A=new Array(_);v<_;v++)A[v]=E[v];return A}function ee(){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"},Y={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},te={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Te=function(_){switch(_){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 te}},re=function(_){return h(_)},$=function(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return _||v},Q=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(_){var v=Q();return v&&v.platform&&(v.platform.indexOf(_)!==-1||v.platform==="MacIntel"&&v.maxTouchPoints>1&&!window.MSStream)},Je=function(_,v,A,k,_e){return{isBrowser:_,browserMajorVersion:$(v.major),browserFullVersion:$(v.version),browserName:$(v.name),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(_e)}},_t=function(_,v,A,k){return f({},_,{vendor:$(v.vendor),model:$(v.model),os:$(A.name),osVersion:$(A.version),ua:$(k)})},it=function(_,v,A,k){return{isSmartTV:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},zt=function(_,v,A,k){return{isConsole:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},mt=function(_,v,A,k){return{isWearable:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Qt=function(_,v,A,k,_e){return{isEmbedded:_,vendor:$(v.vendor),model:$(v.model),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(_e)}};function Kt(E){var _=E?c(E):g,v=_.device,A=_.browser,k=_.engine,_e=_.os,Pe=_.ua,tt=Te(v.type),di=tt.isBrowser,v1=tt.isMobile,y1=tt.isTablet,al=tt.isSmartTV,ll=tt.isConsole,cl=tt.isWearable,dl=tt.isEmbedded;if(di)return Je(di,A,k,_e,Pe);if(al)return it(al,k,_e,Pe);if(ll)return zt(ll,k,_e,Pe);if(v1||y1)return _t(tt,v,_e,Pe);if(cl)return mt(cl,k,_e,Pe);if(dl)return Qt(dl,v,k,_e,Pe)}var Et=function(_){var v=_.type;return v===z.Mobile},Gt=function(_){var v=_.type;return v===z.Tablet},er=function(_){var v=_.type;return v===z.Mobile||v===z.Tablet},Tt=function(_){var v=_.type;return v===z.SmartTv},lt=function(_){var v=_.type;return v===z.Browser},y=function(_){var v=_.type;return v===z.Wearable},T=function(_){var v=_.type;return v===z.Console},x=function(_){var v=_.type;return v===z.Embedded},V=function(_){var v=_.vendor;return $(v)},M=function(_){var v=_.model;return $(v)},P=function(_){var v=_.type;return $(v,"browser")},W=function(_){var v=_.name;return v===Y.Android},ne=function(_){var v=_.name;return v===Y.Windows},G=function(_){var v=_.name;return v===Y.MAC_OS},we=function(_){var v=_.name;return v===Y.WindowsPhone},He=function(_){var v=_.name;return v===Y.IOS},J=function(_){var v=_.version;return $(v)},se=function(_){var v=_.name;return $(v)},j=function(_){var v=_.name;return v===U.Chrome},ge=function(_){var v=_.name;return v===U.Firefox},Ge=function(_){var v=_.name;return v===U.Chromium},Me=function(_){var v=_.name;return v===U.Edge},pe=function(_){var v=_.name;return v===U.Yandex},q=function(_){var v=_.name;return v===U.Safari||v===U.MobileSafari},Xe=function(_){var v=_.name;return v===U.MobileSafari},tr=function(_){var v=_.name;return v===U.Opera},pr=function(_){var v=_.name;return v===U.InternetExplorer||v===U.Ie},Ln=function(_){var v=_.name;return v===U.MIUI},Vn=function(_){var v=_.name;return v===U.SamsungBrowser},$n=function(_){var v=_.version;return $(v)},Bn=function(_){var v=_.major;return $(v)},Hn=function(_){var v=_.name;return $(v)},Wn=function(_){var v=_.name;return $(v)},jn=function(_){var v=_.version;return $(v)},zn=function(){var _=Q(),v=_&&_.userAgent&&_.userAgent.toLowerCase();return typeof v=="string"?/electron/.test(v):!1},rr=function(_){return typeof _=="string"&&_.indexOf("Edg/")!==-1},Kn=function(){var _=Q();return _&&(/iPad|iPhone|iPod/.test(_.platform)||_.platform==="MacIntel"&&_.maxTouchPoints>1)&&!window.MSStream},ct=function(){return Ke("iPad")},Gn=function(){return Ke("iPhone")},qn=function(){return Ke("iPod")},Zn=function(_){return $(_)};function Yn(E){var _=E||g,v=_.device,A=_.browser,k=_.os,_e=_.engine,Pe=_.ua;return{isSmartTV:Tt(v),isConsole:T(v),isWearable:y(v),isEmbedded:x(v),isMobileSafari:Xe(A)||ct(),isChromium:Ge(A),isMobile:er(v)||ct(),isMobileOnly:Et(v),isTablet:Gt(v)||ct(),isBrowser:lt(v),isDesktop:lt(v),isAndroid:W(k),isWinPhone:we(k),isIOS:He(k)||ct(),isChrome:j(A),isFirefox:ge(A),isSafari:q(A),isOpera:tr(A),isIE:pr(A),osVersion:J(k),osName:se(k),fullBrowserVersion:$n(A),browserVersion:Bn(A),browserName:Hn(A),mobileVendor:V(v),mobileModel:M(v),engineName:Wn(_e),engineVersion:jn(_e),getUA:Zn(Pe),isEdge:Me(A)||rr(Pe),isYandex:pe(A),deviceType:P(v),isIOS13:Kn(),isIPad13:ct(),isIPhone13:Gn(),isIPod13:qn(),isElectron:zn(),isEdgeChromium:rr(Pe),isLegacyEdge:Me(A)&&!rr(Pe),isWindows:ne(k),isMacOs:G(k),isMIUI:Ln(A),isSamsungBrowser:Vn(A)}}var Jn=Tt(a),Xn=T(a),Qn=y(a),bo=x(a),So=Xe(o)||ct(),Co=Ge(o),Nr=er(a)||ct(),ei=Et(a),ti=Gt(a)||ct(),ri=lt(a),Eo=lt(a),ni=W(d),ii=we(d),oi=He(d)||ct(),To=j(o),Io=ge(o),Oo=q(o),Ao=tr(o),si=pr(o),xo=J(d),Ro=se(d),ko=$n(o),No=Bn(o),Do=Hn(o),Mo=V(a),Po=M(a),Fo=Wn(l),Uo=jn(l),Lo=Zn(p),It=Me(o)||rr(p),Vo=pe(o),ie=P(a),gt=Kn(),Dr=ct(),ai=Gn(),li=qn(),ci=zn(),Ju=rr(p),Xu=Me(o)&&!rr(p),Qu=ne(d),e1=G(d),t1=Ln(o),r1=Vn(o),n1=function(_){if(!_||typeof _!="string"){console.error("No valid user agent string was provided");return}var v=c(_),A=v.device,k=v.browser,_e=v.os,Pe=v.engine,tt=v.ua;return Yn({device:A,browser:k,os:_e,engine:Pe,ua:tt})},i1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ni?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},o1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ri?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},s1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return si?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},a1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return oi?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},l1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Nr?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},c1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ti?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},d1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ii?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},u1=function(_){var v=_.renderWithFragment,A=_.children;_.viewClassName,_.style;var k=le(_,["renderWithFragment","children","viewClassName","style"]);return ei?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},f1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Jn?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},h1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Xn?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},p1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Qn?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},_1=function(_){var v=_.renderWithFragment,A=_.children;_.viewClassName,_.style;var k=_.condition,_e=le(_,["renderWithFragment","children","viewClassName","style","condition"]);return k?v?r.createElement(e.Fragment,null,A):r.createElement("div",_e,A):null};function m1(E){return(function(_){N(v,_);function v(A){var k;return C(this,v),k=H(this,R(v).call(this,A)),k.isEventListenerAdded=!1,k.handleOrientationChange=k.handleOrientationChange.bind(Z(k)),k.onOrientationChange=k.onOrientationChange.bind(Z(k)),k.onPageLoad=k.onPageLoad.bind(Z(k)),k.state={isLandscape:!1,isPortrait:!1},k}return b(v,[{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,D({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),v})(r.Component)}function g1(){var E=e.useState(function(){var _e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"}}),_=K(E,2),v=_[0],A=_[1],k=e.useCallback(function(){var _e=window.innerWidth>window.innerHeight?90:0,Pe={isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"};v.orientation!==Pe.orientation&&A(Pe)},[v.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]),v}function sl(E){var _=E||window.navigator.userAgent;return c(_)}function w1(E){var _=E||window.navigator.userAgent,v=sl(_),A=Yn(v);return[A,v]}return B.AndroidView=i1,B.BrowserTypes=U,B.BrowserView=o1,B.ConsoleView=h1,B.CustomView=_1,B.IEView=s1,B.IOSView=a1,B.MobileOnlyView=u1,B.MobileView=l1,B.OsTypes=Y,B.SmartTVView=f1,B.TabletView=c1,B.WearableView=p1,B.WinPhoneView=d1,B.browserName=Do,B.browserVersion=No,B.deviceDetect=Kt,B.deviceType=ie,B.engineName=Fo,B.engineVersion=Uo,B.fullBrowserVersion=ko,B.getSelectorsByUserAgent=n1,B.getUA=Lo,B.isAndroid=ni,B.isBrowser=ri,B.isChrome=To,B.isChromium=Co,B.isConsole=Xn,B.isDesktop=Eo,B.isEdge=It,B.isEdgeChromium=Ju,B.isElectron=ci,B.isEmbedded=bo,B.isFirefox=Io,B.isIE=si,B.isIOS=oi,B.isIOS13=gt,B.isIPad13=Dr,B.isIPhone13=ai,B.isIPod13=li,B.isLegacyEdge=Xu,B.isMIUI=t1,B.isMacOs=e1,B.isMobile=Nr,B.isMobileOnly=ei,B.isMobileSafari=So,B.isOpera=Ao,B.isSafari=Oo,B.isSamsungBrowser=r1,B.isSmartTV=Jn,B.isTablet=ti,B.isWearable=Qn,B.isWinPhone=ii,B.isWindows=Qu,B.isYandex=Vo,B.mobileModel=Po,B.mobileVendor=Mo,B.osName=Ro,B.osVersion=xo,B.parseUserAgent=c,B.setUserAgent=re,B.useDeviceData=sl,B.useDeviceSelectors=w1,B.useMobileOrientation=g1,B.withOrientationChange=m1,B}var Qe=bc();const Sc=(t,e)=>Gi(t,e),Gi=(t,e)=>{const r=qi(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]=qi(i,e);else if(Array.isArray(i)){const o=i.map(s=>typeof s=="object"?Gi(s,e):s);r[n]=o}}return r},qi=(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&&Ec(s,i):i=s}),i){const o=qi(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 Gi(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},Ec=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ve=[];for(let t=0;t<256;++t)Ve.push((t+256).toString(16).slice(1));function Tc(t,e=0){return(Ve[t[e+0]]+Ve[t[e+1]]+Ve[t[e+2]]+Ve[t[e+3]]+"-"+Ve[t[e+4]]+Ve[t[e+5]]+"-"+Ve[t[e+6]]+Ve[t[e+7]]+"-"+Ve[t[e+8]]+Ve[t[e+9]]+"-"+Ve[t[e+10]]+Ve[t[e+11]]+Ve[t[e+12]]+Ve[t[e+13]]+Ve[t[e+14]]+Ve[t[e+15]]).toLowerCase()}let Zi;const Ic=new Uint8Array(16);function Oc(){if(!Zi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zi=crypto.getRandomValues.bind(crypto)}return Zi(Ic)}const la={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ac(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:Oc();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,Tc(n)}function xc(t,e,r){return la.randomUUID&&!t?la.randomUUID():Ac(t)}function Yi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const ca=(t,e)=>{if(!t||!e)return null;let r=null;return r=Yi(t),r&&(r=Sc(r,e)),r};function Rc(t){return F(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function kc(i,o){return F(this,arguments,function*(t,e,r=Vl,n=$l){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield Rc(n))}return e()})}const Nc=(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)},Dc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Mc=(t,e)=>{const r=t.reduce((s,a)=>(s.push(...a.supportedTemplates),s),[]),n=Array.from(new Set(e.filter(s=>!s.releaseClientApp&&Ll.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}},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}}},Ji=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Xi=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Qi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(ar);let n={};if(r)try{const i=JSON.parse(r);Ji(i)&&(n=i)}catch(i){if(Xi(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 Ji(e)?e:null}catch(e){if(Xi(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(!Ji(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(Xi(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(ar),!0):!1}return!1}}},Pc=t=>{var n;let e;const r=xc();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Fc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Uc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Lc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Vc(){return typeof navigator!="undefined"?navigator.language:null}const $c=t=>{const e=Hl,r=typeof t=="string"?t:null,n=Lc(),i=Vc();return r||n||i||e},Bc=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function da(t){return!("error"in t)}function eo(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 ua=()=>{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}},Hc=t=>{const e=Pc(Bl);return{deviceId:e,metadata:{platform:"browser",osVersion:`${Qe.osVersion}`,hostAppId:ua(),host:ua(),sdkVersion:"3.2.258-nightly".trim(),name:navigator.userAgent,deviceModel:`${Qe.osName}/${Qe.osVersion} ${Qe.browserName}/${Qe.fullBrowserVersion}`,hostAppVersion:`${Qe.browserName}/${Qe.fullBrowserVersion}`,userID:e},deviceType:"browser",heartbeatCadence:0,serial:"",macAddress:""}};function Wc(){return F(this,null,function*(){if(typeof navigator=="undefined"||!("geolocation"in navigator))return null;try{return!("permissions"in navigator)||(yield navigator.permissions.query({name:"geolocation"})).state!=="granted"?null:yield new Promise(e=>{navigator.geolocation.getCurrentPosition(r=>{e({lat:r.coords.latitude,lon:r.coords.longitude})},()=>e(null))})}catch(t){return null}})}const fa={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:{},locale:"",listener:()=>{}},jc=(t,e)=>X(I({},fa),{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=Qi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,o=r&&r[n];return n&&o?{workflowId:n,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{Qi.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):Qi.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({},fa)),setStartConfig:r=>{t(()=>({startConfig:r}))},setLocale:r=>{t(()=>({locale: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 ha extends HTMLElement{}function pa(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 to={FORM:"form",DATA:"data"},Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Wr);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=yt,Mt.ERROR_ENUM_NAME="InitializeError",Mt.SHORT_CODE="IN";let bn=Mt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,_n);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=yt,Pt.ERROR_ENUM_NAME="TokenInitializeError",Pt.SHORT_CODE="TI";let Sn=Pt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,wt);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=yt,Ft.ERROR_ENUM_NAME="PrepareWorkflowError",Ft.SHORT_CODE="PW";let kt=Ft;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Le);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=yt,Ut.ERROR_ENUM_NAME="ConfigureError",Ut.SHORT_CODE="CFG";let $e=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,We);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=yt,Lt.ERROR_ENUM_NAME="WorkflowError",Lt.SHORT_CODE="SC";let Ze=Lt;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,At);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=yt,Vt.ERROR_ENUM_NAME="ConnectionError",Vt.SHORT_CODE="CO";let tn=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,ot);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=yt,$t.ERROR_ENUM_NAME="SessionError",$t.SHORT_CODE="SE";let rn=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Yt);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=yt,Bt.ERROR_ENUM_NAME="StartSessionError",Bt.SHORT_CODE="ST";let ur=Bt;const Ht=class Ht extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,jr);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=yt,Ht.ERROR_ENUM_NAME="DeinitializationError",Ht.SHORT_CODE="DE";let Cn=Ht;const Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,vt);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=yt,Wt.ERROR_ENUM_NAME="WorkflowPlatformError",Wt.SHORT_CODE="WPE";let En=Wt;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 ut=Ir.getInstance();var zc=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:--zc,__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 oe.vnode&&oe.vnode(d),d}const ro=ki(void 0),_a=({perform:t,children:e,setIsProcessingCallback:r})=>u(ro.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),fr=()=>{const t=Jr(ro);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},Kc=()=>{const t=Jr(ro);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},Gc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},ft={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"},no={text:"text",selector:"selector",multiSelector:"multiSelector"},ma={NOT_EMPTY:"notEmpty",REGEX:"regex"};function ga(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function io(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?io(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function qc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Zc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function ae(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const Yc=(t,e)=>t.reduce((r,n)=>{var i,o,s;if(n.answerType===no.text&&(i=n.property)!=null&&i.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return X(I({},r),{[n.id]:a.string})}if(n.answerType===no.selector&&(o=n.property)!=null&&o.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return X(I({},r),{[n.id]:a.string})}if(n.answerType===no.multiSelector&&(s=n.property)!=null&&s.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.array)return X(I({},r),{[n.id]:a.array})}return r},{}),wa=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)}),Jc=()=>F(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"}}),Xc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),va=t=>(t==null?void 0:t.some(r=>r.type==="FORM"))?to.FORM:to.DATA,ya=({indicatorColor:t})=>{const e=at(null),r=ae(t)||"#000000",n=60,i=5,o=.75,s=(n-i)/2,a=2*Math.PI*s,l=1-o,d=360/1e3;return st(()=>{if(!e.current)return;let p=!0,h=0,c=performance.now();function g(w){if(!p)return;const f=w-c;c=w,h=(h+d*f)%360,e.current&&(e.current.style.transform=`rotate(${h}deg)`),requestAnimationFrame(g)}return requestAnimationFrame(g),()=>{p=!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 Qc({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 ed({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 td({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 rd({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 nd=({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 id({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 od({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 sd({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 ad({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 ld({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 ba=({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"})}),cd=({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 dd({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 ud(){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 fd=({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"})]}),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:"9.5",stroke:"#7E57C5"}),u("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),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:"9.5",stroke:"#8C8C8C"})}),_d=()=>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"})]}),md=()=>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"})}),gd=({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})}),wd=({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})}),vd=({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)"})})})]}),yd=({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})})})]}),bd=()=>u("div",{}),Ce={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"},oo={[Ce.WARNING]:dd,[Ce.SPINNER]:ya,[Ce.ERROR]:Qc,[Ce.AGE]:ed,[Ce.ANDROID]:td,[Ce.ARROW]:rd,[Ce.APPLE]:nd,[Ce.BACK]:id,[Ce.BIOMETRIC]:od,[Ce.INFO]:sd,[Ce.TO_MOBILE]:ad,[Ce.UNDERAGE]:ld,[Ce.CROSS]:ba,[Ce.REGULA_LOGO]:cd,[Ce.DEFAULT]:bd,[Ce.POWERED_BY]:ud,[Ce.SUCCESS]:fd,[Ce.CIRCLE_SELECTED]:hd,[Ce.CIRCLE_NORMAL]:pd,[Ce.SQUARE_SELECTED]:_d,[Ce.SQUARE_NORMAL]:md,[Ce.SELECTED]:gd,[Ce.CHEVRON_DOWN]:wd,[Ce.CLOSE_ICON]:ba,[Ce.GALLERY_ICON]:vd,[Ce.CAMERA_ICON]:yd},Sd=({type:t,size:e,color:r})=>{const n=oo[t]||oo[Ce.DEFAULT];return u(n,{size:e,color:r})},Be=({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,p=()=>{l(!1)};if(r)return u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:ae(o)||"transparent",display:d?"none":"block"},src:r});if(t){const h=t in oo?t:"default";return u(Sd,{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:p})]})},Cd=({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(Be,I({},t))})}),Ed={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Td=({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:p}=fr();return u("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const g=JSON.parse(JSON.stringify(e));io(g),p(g)},className:"hover-button",style:X(I(I({},Ed),o&&{borderRadius:o}),{backgroundColor:(c=ae(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(Be,I({},r))}),n&&u("div",{style:{padding:"0 5px"},children:u(xe,I({},n))})]})},Id=({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(Td,I({dataTestId:"close-btn"},t))})});function Od(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 p=l.startsWith("http")?l:`https://${l}`;r.push(u("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:a},d)),n=d+s.length}return n<t.length&&r.push(t.slice(n)),r}function Sa(t){const e=t.split(`
|
|
91
|
-
`);return e.flatMap((r,n)=>{const i=Od(r);return n===e.length-1?i:[...i,u("br",{},"br-"+n)]})}const xe=({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:ae(n)||"#000000",textAlign:ga(i),backgroundColor:ae(o)||"transparent",borderRadius:s},d=typeof t=="string"&&t.trim()&&Sa(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})},Rn=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:l,type:d="RESPONSE_BODY",onClick:p})=>{var C,S;const[h,c]=Ue(!1),g=h&&ae(o)?o:n,{perform:w}=fr(),f=b=>{if(p&&p(b),d!=="RESPONSE_BODY")return;const O=JSON.parse(JSON.stringify(r));io(O),w(O,to.DATA)},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:(C=ae(g))!=null?C:"transparent",borderColor:(S=ae(a))!=null?S:"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(Be,I({},e)),t&&u("div",{style:{flexGrow:e?0:1},children:u(xe,I({},t))})]})},Ad=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(Rn,I({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Xc())})})},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:ae(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(Id,{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(Ad,{items:i}),r&&u("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:u(Cd,I({},r))})]})},kn=({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:ga(n),color:ae(r)||"#000000",borderRadius:s,backgroundColor:ae(o)||"transparent",whiteSpace:"pre-line"},children:t&&Sa(t)}),xd=({header:t,footer:e,image:r,title:n,description:i,buttons:o,backgroundColor:s})=>{const a=at(null),[l,d]=Ue(!1);return st(()=>{a.current&&d(a.current.scrollHeight>a.current.clientHeight+2)},[]),u(Xt,{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:Gc,children:u(Be,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(xe,I({},n))})}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:u(kn,I({},i))})]})})},Rd={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},kd={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Nd=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s})=>u(Xt,{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:X(I({},kd),{justifyContent:n?"flex-start":"center"}),children:[n&&u("div",{style:Rd,children:u(Be,I({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:u(xe,I({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400"},children:u(kn,I({},i))})]})})}),Dd=({indicatorColor:t="black"})=>u(je,{children:u(ya,{indicatorColor:t})}),Ca=({progressView:t,footer:e,backgroundColor:r})=>u(Xt,{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(Dd,{indicatorColor:ae(t==null?void 0:t.indicatorColor)||"#000000"})})}),Md=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:o})=>u("div",{className:"details-item",style:X(I({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:ae(n)||"transparent",borderRadius:i}),children:[u("div",{style:{flex:"0 1 auto"},children:[u("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:u(xe,I({},t))}),u("div",{style:{lineHeight:"21px",fontWeight:"400"},children:u(kn,I({},e))})]}),u("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:u(Be,I({},r))})]}),Pd={display:"flex",flexDirection:"column",padding:"0 16px"},Fd=({items:t,backgroundColor:e,cornerRadius:r=16})=>u("div",{className:"details",style:X(I({},Pd),{backgroundColor:ae(e)||"white",borderRadius:r}),children:t.map((n,i)=>u(Md,I({isLastChild:i===t.length-1},n),i))}),Ud=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:o})=>{const s=at(null),[a,l]=Ue(!1);return st(()=>{s.current&&l(s.current.scrollHeight>s.current.clientHeight)},[]),u(Xt,{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(xe,I({},t))}),n&&u(Fd,I({},n))]})})};var on=t=>t.type==="checkbox",hr=t=>t instanceof Date,Ye=t=>t==null;const Ea=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&Ea(t)&&!hr(t),Ta=t=>Ne(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Ld=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Ia=(t,e)=>t.has(Ld(e)),Vd=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},so=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(!(so&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Vd(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Fe(t[i]));else return t;return e}var Nn=t=>/^\w*$/.test(t),Re=t=>t===void 0,ao=t=>Array.isArray(t)?t.filter(Boolean):[],lo=t=>ao(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(Nn(e)?[e]:lo(e)).reduce((i,o)=>Ye(i)?i:i[o],t);return Re(n)||n===t?Re(t[e])?r:t[e]:n},rt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=Nn(e)?[e]:lo(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 Dn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ht={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Oa=de.createContext(null);Oa.displayName="HookFormContext";const co=()=>de.useContext(Oa);var Aa=(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]!==ht.all&&(e._proxyFormState[s]=!n||ht.all),r&&(r[s]=!0),t[s]}});return i};const uo=typeof window!="undefined"?de.useLayoutEffect:de.useEffect;function $d(t){const e=co(),{control:r=e.control,disabled:n,name:i,exact:o}=t||{},[s,a]=de.useState(r._formState),l=de.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return uo(()=>r._subscribe({name:i,formState:l.current,exact:o,callback:d=>{!n&&a(I(I({},r._formState),d))}}),[i,n,o]),de.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),de.useMemo(()=>Aa(s,r,l.current,!1),[s,r])}var nt=t=>typeof t=="string",xa=(t,e,r,n,i)=>nt(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),fo=t=>Ye(t)||!Ea(t);function Dt(t,e,r=new WeakSet){if(fo(t)||fo(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)?!Dt(s,a,r):s!==a)return!1}}return!0}function Bd(t){const e=co(),{control:r=e.control,name:n,defaultValue:i,disabled:o,exact:s,compute:a}=t||{},l=de.useRef(i),d=de.useRef(a),p=de.useRef(void 0);d.current=a;const h=de.useMemo(()=>r._getWatch(n,l.current),[r,n]),[c,g]=de.useState(d.current?d.current(h):h);return uo(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:w=>{if(!o){const f=xa(n,r._names,w.values||r._formValues,!1,l.current);if(d.current){const m=d.current(f);Dt(m,p.current)||(g(m),p.current=m)}else g(f)}}}),[r,o,n,s]),de.useEffect(()=>r._removeUnmounted()),c}function Hd(t){const e=co(),{name:r,disabled:n,control:i=e.control,shouldUnregister:o,defaultValue:s}=t,a=Ia(i._names.array,r),l=de.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,s)),[i,r,s]),d=Bd({control:i,name:r,defaultValue:l,exact:!0}),p=$d({control:i,name:r,exact:!0}),h=de.useRef(t),c=de.useRef(void 0),g=de.useRef(i.register(r,I(X(I({},t.rules),{value:d}),rt(t.disabled)?{disabled:t.disabled}:{})));h.current=t;const w=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(p.validatingFields,r)},error:{enumerable:!0,get:()=>L(p.errors,r)}}),[p,r]),f=de.useCallback(b=>g.current.onChange({target:{value:Ta(b),name:r},type:Dn.CHANGE}),[r]),m=de.useCallback(()=>g.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Dn.BLUR}),[r,i._formValues]),C=de.useCallback(b=>{const O=L(i._fields,r);O&&b&&(O._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:D=>b.setCustomValidity(D),reportValidity:()=>b.reportValidity()})},[i._fields,r]),S=de.useMemo(()=>X(I({name:r,value:d},rt(n)||p.disabled?{disabled:p.disabled||n}:{}),{onChange:f,onBlur:m,ref:C}),[r,n,p.disabled,f,m,C,d]);return de.useEffect(()=>{const b=i._options.shouldUnregister||o,O=c.current;O&&O!==r&&!a&&i.unregister(O),i.register(r,I(I({},h.current.rules),rt(h.current.disabled)?{disabled:h.current.disabled}:{}));const D=(N,R)=>{const fe=L(i._fields,N);fe&&fe._f&&(fe._f.mount=R)};if(D(r,!0),b){const N=Fe(L(i._options.defaultValues,r,h.current.defaultValue));Ee(i._defaultValues,r,N),Re(L(i._formValues,r))&&Ee(i._formValues,r,N)}return!a&&i.register(r),c.current=r,()=>{(a?b&&!i._state.action:b)?i.unregister(r):D(r,!1)}},[r,i,a,o]),de.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),de.useMemo(()=>({field:S,formState:p,fieldState:w}),[S,p,w])}const Ra=t=>t.render(Hd(t));var Wd=(t,e,r,n,i)=>e?X(I({},r[t]),{types:X(I({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},sn=t=>Array.isArray(t)?t:[t],ka=()=>{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 Na(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=Na(i,o);Ne(s)&&(r[n]=s)}else t[n]&&(r[n]=o)}return r}var et=t=>Ne(t)&&!Object.keys(t).length,ho=t=>t.type==="file",pt=t=>typeof t=="function",Mn=t=>{if(!so)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Da=t=>t.type==="select-multiple",po=t=>t.type==="radio",jd=t=>po(t)||on(t),_o=t=>Mn(t)&&t.isConnected;function zd(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Re(t)?n++:t[e[n++]];return t}function Kd(t){for(const e in t)if(t.hasOwnProperty(e)&&!Re(t[e]))return!1;return!0}function De(t,e){const r=Array.isArray(e)?e:Nn(e)?[e]:lo(e),n=r.length===1?t:zd(t,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(Ne(n)&&et(n)||Array.isArray(n)&&Kd(n))&&De(t,r.slice(0,-1)),t}var Gd=t=>{for(const e in t)if(pt(t[e]))return!0;return!1};function Ma(t){return Array.isArray(t)||Ne(t)&&!Gd(t)}function mo(t,e={}){for(const r in t)Ma(t[r])?(e[r]=Array.isArray(t[r])?[]:{},mo(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=mo(e));for(const n in t)Ma(t[n])?Re(e)||fo(r[n])?r[n]=mo(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Dt(t[n],e[n]);return r}const Pa={value:!1,isValid:!1},Fa={value:!0,isValid:!0};var Ua=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&&!Re(t[0].attributes.value)?Re(t[0].value)||t[0].value===""?Fa:{value:t[0].value,isValid:!0}:Fa:Pa}return Pa},La=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Re(t)?t:e?t===""?NaN:t&&+t:r&&nt(t)?new Date(t):n?n(t):t;const Va={isValid:!1,value:null};var $a=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Va):Va;function Ba(t){const e=t.ref;return ho(e)?e.files:po(e)?$a(t.refs).value:Da(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Ua(t.refs).value:La(Re(e.value)?t.ref.value:e.value,t)}var qd=(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=>Re(t)?t:Pn(t)?t.source:Ne(t)?Pn(t.value)?t.value.source:t.value:t,Ha=t=>({isOnSubmit:!t||t===ht.onSubmit,isOnBlur:t===ht.onBlur,isOnChange:t===ht.onChange,isOnAll:t===ht.all,isOnTouch:t===ht.onTouched});const Wa="AsyncFunction";var Zd=t=>!!t&&!!t.validate&&!!(pt(t.validate)&&t.validate.constructor.name===Wa||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Wa)),Yd=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),ja=(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 za(t,e,r){const n=L(t,r);if(n||Nn(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 Jd=(t,e,r,n)=>{r(t);const s=t,{name:i}=s,o=_r(s,["name"]);return et(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!n||ht.all))},Xd=(t,e,r)=>!t||!e||t===e||sn(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Qd=(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,eu=(t,e)=>!ao(L(t,e)).length&&De(t,e),tu=(t,e,r)=>{const n=sn(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Ka(t,e,r="validate"){if(nt(t)||Array.isArray(t)&&t.every(nt)||rt(t)&&!t)return{type:r,message:nt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Pn(t)?t:{value:t,message:""},Ga=(t,e,r,n,i,o)=>F(null,null,function*(){const{ref:s,refs:a,required:l,maxLength:d,minLength:p,min:h,max:c,pattern:g,validate:w,name:f,valueAsNumber:m,mount:C}=t._f,S=L(r,f);if(!C||e.has(f))return{};const b=a?a[0]:s,O=H=>{i&&b.reportValidity&&(b.setCustomValidity(rt(H)?"":H||""),b.reportValidity())},D={},N=po(s),R=on(s),fe=N||R,me=(m||ho(s))&&Re(s.value)&&Re(S)||Mn(s)&&s.value===""||S===""||Array.isArray(S)&&!S.length,le=Wd.bind(null,f,n,D),Z=(H,K,ue,ce=Nt.maxLength,ve=Nt.minLength)=>{const ye=H?K:ue;D[f]=I({type:H?ce:ve,message:ye,ref:s},le(H?ce:ve,ye))};if(o?!Array.isArray(S)||!S.length:l&&(!fe&&(me||Ye(S))||rt(S)&&!S||R&&!Ua(a).isValid||N&&!$a(a).isValid)){const{value:H,message:K}=nt(l)?{value:!!l,message:l}:xr(l);if(H&&(D[f]=I({type:Nt.required,message:K,ref:b},le(Nt.required,K)),!n))return O(K),D}if(!me&&(!Ye(h)||!Ye(c))){let H,K;const ue=xr(c),ce=xr(h);if(!Ye(S)&&!isNaN(S)){const ve=s.valueAsNumber||S&&+S;Ye(ue.value)||(H=ve>ue.value),Ye(ce.value)||(K=ve<ce.value)}else{const ve=s.valueAsDate||new Date(S),ye=U=>new Date(new Date().toDateString()+" "+U),ee=s.type=="time",z=s.type=="week";nt(ue.value)&&S&&(H=ee?ye(S)>ye(ue.value):z?S>ue.value:ve>new Date(ue.value)),nt(ce.value)&&S&&(K=ee?ye(S)<ye(ce.value):z?S<ce.value:ve<new Date(ce.value))}if((H||K)&&(Z(!!H,ue.message,ce.message,Nt.max,Nt.min),!n))return O(D[f].message),D}if((d||p)&&!me&&(nt(S)||o&&Array.isArray(S))){const H=xr(d),K=xr(p),ue=!Ye(H.value)&&S.length>+H.value,ce=!Ye(K.value)&&S.length<+K.value;if((ue||ce)&&(Z(ue,H.message,K.message),!n))return O(D[f].message),D}if(g&&!me&&nt(S)){const{value:H,message:K}=xr(g);if(Pn(H)&&!S.match(H)&&(D[f]=I({type:Nt.pattern,message:K,ref:s},le(Nt.pattern,K)),!n))return O(K),D}if(w){if(pt(w)){const H=yield w(S,r),K=Ka(H,b);if(K&&(D[f]=I(I({},K),le(Nt.validate,K.message)),!n))return O(K.message),D}else if(Ne(w)){let H={};for(const K in w){if(!et(H)&&!n)break;const ue=Ka(yield w[K](S,r),b,K);ue&&(H=I(I({},ue),le(K,ue.message)),O(ue.message),n&&(D[f]=H))}if(!et(H)&&(D[f]=I({ref:b},H),!n))return D}}return O(!0),D});const ru={mode:ht.onSubmit,reValidateMode:ht.onChange,shouldFocusError:!0};function nu(t={}){let e=I(I({},ru),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:pt(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 p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h=I({},p);const c={array:ka(),state:ka()},g=e.criteriaMode===ht.all,w=y=>T=>{clearTimeout(d),d=setTimeout(y,T)},f=y=>F(null,null,function*(){if(!e.disabled&&(p.isValid||h.isValid||y)){const T=e.resolver?et((yield R()).errors):yield me(n,!0);T!==r.isValid&&c.state.next({isValid:T})}}),m=(y,T)=>{!e.disabled&&(p.isValidating||p.validatingFields||h.isValidating||h.validatingFields)&&((y||Array.from(a.mount)).forEach(x=>{x&&(T?Ee(r.validatingFields,x,T):De(r.validatingFields,x))}),c.state.next({validatingFields:r.validatingFields,isValidating:!et(r.validatingFields)}))},C=(y,T=[],x,V,M=!0,P=!0)=>{if(V&&x&&!e.disabled){if(s.action=!0,P&&Array.isArray(L(n,y))){const W=x(L(n,y),V.argA,V.argB);M&&Ee(n,y,W)}if(P&&Array.isArray(L(r.errors,y))){const W=x(L(r.errors,y),V.argA,V.argB);M&&Ee(r.errors,y,W),eu(r.errors,y)}if((p.touchedFields||h.touchedFields)&&P&&Array.isArray(L(r.touchedFields,y))){const W=x(L(r.touchedFields,y),V.argA,V.argB);M&&Ee(r.touchedFields,y,W)}(p.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Ar(i,o)),c.state.next({name:y,isDirty:Z(y,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(o,y,T)},S=(y,T)=>{Ee(r.errors,y,T),c.state.next({errors:r.errors})},b=y=>{r.errors=y,c.state.next({errors:r.errors,isValid:!1})},O=(y,T,x,V)=>{const M=L(n,y);if(M){const P=L(o,y,Re(x)?L(i,y):x);Re(P)||V&&V.defaultChecked||T?Ee(o,y,T?P:Ba(M._f)):ue(y,P),s.mount&&f()}},D=(y,T,x,V,M)=>{let P=!1,W=!1;const ne={name:y};if(!e.disabled){if(!x||V){(p.isDirty||h.isDirty)&&(W=r.isDirty,r.isDirty=ne.isDirty=Z(),P=W!==ne.isDirty);const G=Dt(L(i,y),T);W=!!L(r.dirtyFields,y),G?De(r.dirtyFields,y):Ee(r.dirtyFields,y,!0),ne.dirtyFields=r.dirtyFields,P=P||(p.dirtyFields||h.dirtyFields)&&W!==!G}if(x){const G=L(r.touchedFields,y);G||(Ee(r.touchedFields,y,x),ne.touchedFields=r.touchedFields,P=P||(p.touchedFields||h.touchedFields)&&G!==x)}P&&M&&c.state.next(ne)}return P?ne:{}},N=(y,T,x,V)=>{const M=L(r.errors,y),P=(p.isValid||h.isValid)&&rt(T)&&r.isValid!==T;if(e.delayError&&x?(l=w(()=>S(y,x)),l(e.delayError)):(clearTimeout(d),l=null,x?Ee(r.errors,y,x):De(r.errors,y)),(x?!Dt(M,x):M)||!et(V)||P){const W=X(I(I({},V),P&&rt(T)?{isValid:T}:{}),{errors:r.errors,name:y});r=I(I({},r),W),c.state.next(W)}},R=y=>F(null,null,function*(){m(y,!0);const T=yield e.resolver(o,e.context,qd(y||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(y),T}),fe=y=>F(null,null,function*(){const{errors:T}=yield R(y);if(y)for(const x of y){const V=L(T,x);V?Ee(r.errors,x,V):De(r.errors,x)}else r.errors=T;return T}),me=(V,M,...P)=>F(null,[V,M,...P],function*(y,T,x={valid:!0}){for(const ne in y){const G=y[ne];if(G){const W=G,{_f:we}=W,He=_r(W,["_f"]);if(we){const J=a.array.has(we.name),se=G._f&&Zd(G._f);se&&p.validatingFields&&m([we.name],!0);const j=yield Ga(G,a.disabled,o,g,e.shouldUseNativeValidation&&!T,J);if(se&&p.validatingFields&&m([we.name]),j[we.name]&&(x.valid=!1,T))break;!T&&(L(j,we.name)?J?tu(r.errors,j,we.name):Ee(r.errors,we.name,j[we.name]):De(r.errors,we.name))}!et(He)&&(yield me(He,T,x))}}return x.valid}),le=()=>{for(const y of a.unMount){const T=L(n,y);T&&(T._f.refs?T._f.refs.every(x=>!_o(x)):!_o(T._f.ref))&&Ke(y)}a.unMount=new Set},Z=(y,T)=>!e.disabled&&(y&&T&&Ee(o,y,T),!Dt(U(),i)),H=(y,T,x)=>xa(y,a,I({},s.mount?o:Re(T)?i:nt(y)?{[y]:T}:T),x,T),K=y=>ao(L(s.mount?o:i,y,e.shouldUnregister?L(i,y,[]):[])),ue=(y,T,x={})=>{const V=L(n,y);let M=T;if(V){const P=V._f;P&&(!P.disabled&&Ee(o,y,La(T,P)),M=Mn(P.ref)&&Ye(T)?"":T,Da(P.ref)?[...P.ref.options].forEach(W=>W.selected=M.includes(W.value)):P.refs?on(P.ref)?P.refs.forEach(W=>{(!W.defaultChecked||!W.disabled)&&(Array.isArray(M)?W.checked=!!M.find(ne=>ne===W.value):W.checked=M===W.value||!!M)}):P.refs.forEach(W=>W.checked=W.value===M):ho(P.ref)?P.ref.value="":(P.ref.value=M,P.ref.type||c.state.next({name:y,values:Fe(o)})))}(x.shouldDirty||x.shouldTouch)&&D(y,M,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&z(y)},ce=(y,T,x)=>{for(const V in T){if(!T.hasOwnProperty(V))return;const M=T[V],P=y+"."+V,W=L(n,P);(a.array.has(y)||Ne(M)||W&&!W._f)&&!hr(M)?ce(P,M,x):ue(P,M,x)}},ve=(y,T,x={})=>{const V=L(n,y),M=a.array.has(y),P=Fe(T);Ee(o,y,P),M?(c.array.next({name:y,values:Fe(o)}),(p.isDirty||p.dirtyFields||h.isDirty||h.dirtyFields)&&x.shouldDirty&&c.state.next({name:y,dirtyFields:Ar(i,o),isDirty:Z(y,P)})):V&&!V._f&&!Ye(P)?ce(y,P,x):ue(y,P,x),ja(y,a)&&c.state.next(X(I({},r),{name:y})),c.state.next({name:s.mount?y:void 0,values:Fe(o)})},ye=y=>F(null,null,function*(){s.mount=!0;const T=y.target;let x=T.name,V=!0;const M=L(n,x),P=G=>{V=Number.isNaN(G)||hr(G)&&isNaN(G.getTime())||Dt(G,L(o,x,G))},W=Ha(e.mode),ne=Ha(e.reValidateMode);if(M){let G,we;const He=T.type?Ba(M._f):Ta(y),J=y.type===Dn.BLUR||y.type===Dn.FOCUS_OUT,se=!Yd(M._f)&&!e.resolver&&!L(r.errors,x)&&!M._f.deps||Qd(J,L(r.touchedFields,x),r.isSubmitted,ne,W),j=ja(x,a,J);Ee(o,x,He),J?(!T||!T.readOnly)&&(M._f.onBlur&&M._f.onBlur(y),l&&l(0)):M._f.onChange&&M._f.onChange(y);const ge=D(x,He,J),Ge=!et(ge)||j;if(!J&&c.state.next({name:x,type:y.type,values:Fe(o)}),se)return(p.isValid||h.isValid)&&(e.mode==="onBlur"?J&&f():J||f()),Ge&&c.state.next(I({name:x},j?{}:ge));if(!J&&j&&c.state.next(I({},r)),e.resolver){const{errors:Me}=yield R([x]);if(P(He),V){const pe=za(r.errors,n,x),q=za(Me,n,pe.name||x);G=q.error,x=q.name,we=et(Me)}}else m([x],!0),G=(yield Ga(M,a.disabled,o,g,e.shouldUseNativeValidation))[x],m([x]),P(He),V&&(G?we=!1:(p.isValid||h.isValid)&&(we=yield me(n,!0)));V&&(M._f.deps&&(!Array.isArray(M._f.deps)||M._f.deps.length>0)&&z(M._f.deps),N(x,we,G,ge))}}),ee=(y,T)=>{if(L(r.errors,T)&&y.focus)return y.focus(),1},z=(x,...V)=>F(null,[x,...V],function*(y,T={}){let M,P;const W=sn(y);if(e.resolver){const ne=yield fe(Re(y)?y:W);M=et(ne),P=y?!W.some(G=>L(ne,G)):M}else y?(P=(yield Promise.all(W.map(ne=>F(null,null,function*(){const G=L(n,ne);return yield me(G&&G._f?{[ne]:G}:G)})))).every(Boolean),!(!P&&!r.isValid)&&f()):P=M=yield me(n);return c.state.next(X(I(I({},!nt(y)||(p.isValid||h.isValid)&&M!==r.isValid?{}:{name:y}),e.resolver||!y?{isValid:M}:{}),{errors:r.errors})),T.shouldFocus&&!P&&ln(n,ee,y?W:a.mount),P}),U=(y,T)=>{let x=I({},s.mount?o:i);return T&&(x=Na(T.dirtyFields?r.dirtyFields:r.touchedFields,x)),Re(y)?x:nt(y)?L(x,y):y.map(V=>L(x,V))},Y=(y,T)=>({invalid:!!L((T||r).errors,y),isDirty:!!L((T||r).dirtyFields,y),error:L((T||r).errors,y),isValidating:!!L(r.validatingFields,y),isTouched:!!L((T||r).touchedFields,y)}),te=y=>{y&&sn(y).forEach(T=>De(r.errors,T)),c.state.next({errors:y?r.errors:{}})},Te=(y,T,x)=>{const V=(L(n,y,{_f:{}})._f||{}).ref,we=L(r.errors,y)||{},{ref:P,message:W,type:ne}=we,G=_r(we,["ref","message","type"]);Ee(r.errors,y,X(I(I({},G),T),{ref:V})),c.state.next({name:y,errors:r.errors,isValid:!1}),x&&x.shouldFocus&&V&&V.focus&&V.focus()},re=(y,T)=>pt(y)?c.state.subscribe({next:x=>"values"in x&&y(H(void 0,T),x)}):H(y,T,!0),$=y=>c.state.subscribe({next:T=>{Xd(y.name,T.name,y.exact)&&Jd(T,y.formState||p,er,y.reRenderRoot)&&y.callback(X(I(I({values:I({},o)},r),T),{defaultValues:i}))}}).unsubscribe,Q=y=>(s.mount=!0,h=I(I({},h),y.formState),$(X(I({},y),{formState:h}))),Ke=(y,T={})=>{for(const x of y?sn(y):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:Z()}:{})),!T.keepIsValid&&f()},Je=({disabled:y,name:T})=>{(rt(y)&&s.mount||y||a.disabled.has(T))&&(y?a.disabled.add(T):a.disabled.delete(T))},_t=(y,T={})=>{let x=L(n,y);const V=rt(T.disabled)||rt(e.disabled);return Ee(n,y,X(I({},x||{}),{_f:I(X(I({},x&&x._f?x._f:{ref:{name:y}}),{name:y,mount:!0}),T)})),a.mount.add(y),x?Je({disabled:rt(T.disabled)?T.disabled:e.disabled,name:y}):O(y,!0,T.value),X(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:y,onChange:ye,onBlur:ye,ref:M=>{if(M){_t(y,T),x=L(n,y);const P=Re(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,W=jd(P),ne=x._f.refs||[];if(W?ne.find(G=>G===P):P===x._f.ref)return;Ee(n,y,{_f:I(I({},x._f),W?{refs:[...ne.filter(_o),P,...Array.isArray(L(i,y))?[{}]:[]],ref:{type:P.type,name:y}}:{ref:P})}),O(y,!1,void 0,P)}else x=L(n,y,{}),x._f&&(x._f.mount=!1),(e.shouldUnregister||T.shouldUnregister)&&!(Ia(a.array,y)&&s.action)&&a.unMount.add(y)}})},it=()=>e.shouldFocusError&&ln(n,ee,a.mount),zt=y=>{rt(y)&&(c.state.next({disabled:y}),ln(n,(T,x)=>{const V=L(n,x);V&&(T.disabled=V._f.disabled||y,Array.isArray(V._f.refs)&&V._f.refs.forEach(M=>{M.disabled=V._f.disabled||y}))},0,!1))},mt=(y,T)=>x=>F(null,null,function*(){let V;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let M=Fe(o);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:P,values:W}=yield R();r.errors=P,M=Fe(W)}else yield me(n);if(a.disabled.size)for(const P of a.disabled)De(M,P);if(De(r.errors,"root"),et(r.errors)){c.state.next({errors:{}});try{yield y(M,x)}catch(P){V=P}}else T&&(yield T(I({},r.errors),x)),it(),setTimeout(it);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:et(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Qt=(y,T={})=>{L(n,y)&&(Re(T.defaultValue)?ve(y,Fe(L(i,y))):(ve(y,T.defaultValue),Ee(i,y,Fe(T.defaultValue))),T.keepTouched||De(r.touchedFields,y),T.keepDirty||(De(r.dirtyFields,y),r.isDirty=T.defaultValue?Z(y,Fe(L(i,y))):Z()),T.keepError||(De(r.errors,y),p.isValid&&f()),c.state.next(I({},r)))},Kt=(y,T={})=>{const x=y?Fe(y):i,V=Fe(x),M=et(y),P=M?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 ne of Array.from(W))L(r.dirtyFields,ne)?Ee(P,ne,L(o,ne)):ve(ne,L(P,ne))}else{if(so&&Re(y))for(const W of a.mount){const ne=L(n,W);if(ne&&ne._f){const G=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Mn(G)){const we=G.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=!p.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,c.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:M?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!Dt(y,i)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:M?{}:T.keepDirtyValues?T.keepDefaultValues&&o?Ar(i,o):r.dirtyFields:T.keepDefaultValues&&y?Ar(i,y):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Et=(y,T)=>Kt(pt(y)?y(o):y,T),Gt=(y,T={})=>{const x=L(n,y),V=x&&x._f;if(V){const M=V.refs?V.refs[0]:V.ref;M.focus&&(M.focus(),T.shouldSelect&&pt(M.select)&&M.select())}},er=y=>{r=I(I({},r),y)},lt={control:{register:_t,unregister:Ke,getFieldState:Y,handleSubmit:mt,setError:Te,_subscribe:$,_runSchema:R,_focusError:it,_getWatch:H,_getDirty:Z,_setValid:f,_setFieldArray:C,_setDisabledField:Je,_setErrors:b,_getFieldArray:K,_reset:Kt,_resetDefaultValues:()=>pt(e.defaultValues)&&e.defaultValues().then(y=>{Et(y,e.resetOptions),c.state.next({isLoading:!1})}),_removeUnmounted:le,_disableForm:zt,_subjects:c,_proxyFormState:p,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(y){s=y},get _defaultValues(){return i},get _names(){return a},set _names(y){a=y},get _formState(){return r},get _options(){return e},set _options(y){e=I(I({},e),y)}},subscribe:Q,trigger:z,register:_t,handleSubmit:mt,watch:re,setValue:ve,getValues:U,reset:Et,resetField:Qt,clearErrors:te,unregister:Ke,setError:Te,setFocus:Gt,getFieldState:Y};return X(I({},lt),{formControl:lt})}function iu(t={}){const e=de.useRef(void 0),r=de.useRef(void 0),[n,i]=de.useState({isDirty:!1,isValidating:!1,isLoading:pt(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:pt(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=X(I({},t.formControl),{formState:n}),t.defaultValues&&!pt(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=nu(t),{formControl:a}=s,l=_r(s,["formControl"]);e.current=X(I({},l),{formState:n})}const o=e.current.control;return o._options=t,uo(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i(I({},o._formState)),reRenderRoot:!0});return i(l=>X(I({},l),{isReady:!0})),o._formState.isReady=!0,a},[o]),de.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),de.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),de.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),de.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),de.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),de.useEffect(()=>{t.values&&!Dt(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]),de.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=Aa(n,o),e.current}const Rr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===ma.NOT_EMPTY&&(r.required=o=>e&&Zc(o)?n.message:!0),n.type===ma.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},ou=({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(Be,I({},e)):u(Be,{imageId:"chevronDown"})}),su=({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 p,h,c,g;if(!l&&!d)return(p=ae(e.layout.backgroundColor))!=null?p:"transparent";if(!l&&d)return(h=ae(e.layoutSelected.backgroundColor))!=null?h:"transparent";if(l&&!d)return(c=ae(e.layout.highlightColor))!=null?c:"#F4F4F4";if(l&&d)return(g=ae(e.layoutSelected.highlightColor))!=null?g:"#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(xe,X(I({},e.layout.title),{text:e.label})),u("div",{style:{display:"flex",flexShrink:0},children:u(Be,I({},s))})]},e.value)},qa=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:l,parentElementRef:d,controlLayout:p,pickerLayout:h})=>{var H,K,ue,ce,ve,ye,ee,z;const[c,g]=Ue(!1),[w,f]=Ue(i),[m,C]=Ue("down"),[S,b]=Ue(null),O=at(null),D=at(null);Jt(()=>{var re,$,Q;if(!c)return;const U=(re=O.current)==null?void 0:re.getBoundingClientRect(),Y=($=D.current)==null?void 0:$.getBoundingClientRect(),te=(Q=d.current)==null?void 0:Q.getBoundingClientRect();if(!U||!Y||!te)return;const Te=U.bottom+Y.height<te.bottom;C(Te?"down":"up")},[c]),st(()=>{o(w)},[w]);const N=U=>Y=>{var te;Y.stopPropagation(),(Y.type==="touchend"||((te=Y.nativeEvent)==null?void 0:te.pointerType)==="touch")&&b(null),a&&g(!1),f(Te=>r?Te.some($=>$.value===U.value)?Te.filter($=>$.value!==U.value):[...Te,U]:[U])},R=()=>{l&&l(),g(!1)},fe=U=>Y=>{Y.stopPropagation(),f(te=>te.filter(Te=>Te.value!==U.value))},me=U=>{U.stopPropagation(),f([])},le=(H=ae(p==null?void 0:p.borderColor))!=null?H:"#D9D9D9",Z=(K=ae(p==null?void 0:p.highlightBorderColor))!=null?K:"#7E57C5";return u("div",{"data-ui":"gui-custom-select",ref:O,children:u("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:ae(p==null?void 0:p.backgroundColor),borderStyle:"solid",borderColor:c?Z:le,borderWidth:(ue=p==null?void 0:p.borderWidth)!=null?ue:1,borderRadius:(ce=p==null?void 0:p.cornerRadius)!=null?ce:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:R,onClick:()=>g(!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:[!w.length&&u("span",{style:{fontSize:13,color:"#8C8C8C"},children:s}),w.map(U=>{var Y,te,Te,re,$;if(r){const Q=p==null?void 0:p.chip;return u("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(Y=ae(Q==null?void 0:Q.backgroundColor))!=null?Y:"#F2F2F2",borderRadius:(te=Q==null?void 0:Q.cornerRadius)!=null?te:4,userSelect:"none",alignItems:"center"},children:[u(xe,X(I({},Q==null?void 0:Q.title),{fontSize:(re=(Te=Q==null?void 0:Q.title)==null?void 0:Te.fontSize)!=null?re:13,text:U.label})),u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:fe(U),children:Q!=null&&Q.removeImage?u(Be,I({},Q.removeImage)):u(Be,{imageId:"cross"})})]},U.value)}else{const Q=p==null?void 0:p.title;return u("div",{style:{display:"flex",userSelect:"none"},children:u(xe,X(I({},Q),{fontSize:($=Q==null?void 0:Q.fontSize)!=null?$:13,text:U.label}))},U.value)}})]}),n&&w.length?u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:me,children:p!=null&&p.clearButton?u(Be,I({},p.clearButton)):u(Be,{imageId:"cross"})}):null,n?u("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,u(ou,{isOpen:c,image:p==null?void 0:p.expandButton}),c&&u("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:D,style:X(I({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ve=ae(h==null?void 0:h.backgroundColor))!=null?ve:"#ffffff",borderRadius:(ye=h==null?void 0:h.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(ee=ae(h==null?void 0:h.borderColor))!=null?ee:"#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 Y=w.some(te=>te.value===U.value);return u(su,{isChosen:Y,option:U,onOptionClickCallback:N,isHovered:S===U.value,onHover:()=>b(U.value),onHoverEnd:()=>b(null)},U.label)})})]})})},au=({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(xe,X(I({},e.title),{text:r.text,htmlFor:o})),u(Ra,{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(qa,{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})}})]})},lu=({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(xe,X(I({},e.title),{text:r.text,htmlFor:o})),u(Ra,{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(qa,{name:o,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:l=>{const d=l.map(p=>p.value);s.onChange(d)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Za=()=>{const[t,e]=Ue(!1);return st(()=>{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},cu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Za(),l=String(r.id),p=i(l)===String(t.id),h=e.option,c=e.optionSelected,g={backgroundColor:ae(c.backgroundColor),borderRadius:c.cornerRadius},w={backgroundColor:ae(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"},p?g:w),children:[u("div",{style:I({display:"flex",alignItems:"center",alignContent:"center"},f),children:u(Be,I({},p?c.image:h.image))}),u(xe,X(I({},p?c.title:h.title),{text:t.text})),u("input",X(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)},du=({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(xe,X(I({},t.title),{text:n.text}))}),n.options.map(i=>u(cu,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),uu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Za(),l=String(r.id),p=i(l)===String(t.id),h=e.option,c=e.optionSelected,g={borderRadius:h.cornerRadius,background:ae(h.backgroundColor),borderColor:ae(h.borderColor),borderWidth:h.borderWidth},w={borderRadius:c.cornerRadius,background:ae(c.backgroundColor),borderColor:ae(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"},p?w:g),f),children:[u("input",X(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(xe,X(I({},p?c.title:h.title),{text:t.text}))]})},t.id)},fu=({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(xe,X(I({},t.title),{text:n.text}))}),u("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>u(uu,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),hu=({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:ae(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&I(I({},ae(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return u("div",{style:a,children:[i&&u("span",{style:{color:ae(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},pu=({validationErrorsTypes:t,title:e})=>t?u("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>u(xe,X(I({},e),{text:n}),r))}):null,_u=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,l,d,p,h,c,g,w,f,m,C,S,b,O;const n=String(e.id),i=D=>D?D===On.EMAIL?"email":D===On.FREE_TEXT?"text":D===On.NUMBER?"number":D===On.SECURE?"password":"text":"text";return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(xe,X(I({},t.title),{text:e.text,htmlFor:n})),u("input",X(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=ae((p=t==null?void 0:t.textField)==null?void 0:p.fontColor))!=null?h:"#000000",height:"42px",borderWidth:(g=(c=t==null?void 0:t.textField)==null?void 0:c.borderWidth)!=null?g:1,borderColor:(f=ae((w=t==null?void 0:t.textField)==null?void 0:w.borderColor))!=null?f:"#d9d9d9",borderStyle:"solid",borderRadius:(C=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?C:8,padding:"11px",boxSizing:"border-box",backgroundColor:(b=ae((S=t==null?void 0:t.textField)==null?void 0:S.backgroundColor))!=null?b:"#FFFFFF",outlineColor:nn},placeholder:(O=e.placeholder)!=null?O:"","data-id":n}))]})},mu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,o,s,a,l,d,p,h,c,g,w,f,m;const n=String(e.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(xe,X(I({},t.title),{text:e.text,htmlFor:n})),u("textarea",X(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:C=>{C.currentTarget.style.height="auto",C.currentTarget.style.height=`${C.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=ae((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(p=(d=t==null?void 0:t.textField)==null?void 0:d.borderWidth)!=null?p:1,borderColor:(c=ae((h=t==null?void 0:t.textField)==null?void 0:h.borderColor))!=null?c:"#d9d9d9",borderStyle:"solid",borderRadius:(w=(g=t==null?void 0:t.textField)==null?void 0:g.cornerRadius)!=null?w:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=ae((f=t==null?void 0:t.textField)==null?void 0:f.backgroundColor))!=null?m:"#FFFFFF",outlineColor:nn}}))]})},jt=class jt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,xn);super({errorCode:e,errorCodeKey:o,errorEnumName:jt.ERROR_ENUM_NAME,module:jt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:jt.ERROR_ENUM_NAME,shortDomainCode:jt.SHORT_CODE})}};jt.MODULE=An,jt.ERROR_ENUM_NAME="GuiModuleError",jt.SHORT_CODE="GM";let cn=jt;const gu=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:o,properties:s,backgroundColor:a})=>{const l=va(r),{perform:d}=fr(),p=s?Yc(o.questions,s):{},h=at(null),{register:c,handleSubmit:g,formState:{errors:w},reset:f,watch:m,control:C}=iu({criteriaMode:"all",defaultValues:p});return u(Xt,{header:t,footer:n,backgroundColor:a,children:u("form",{onSubmit:g(b=>{d(qc(b),l),f()}),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:ae(i.backgroundColor)||"transparent"},ref:h,children:[e&&u("div",{style:{lineHeight:"39.2px",width:"100%"},children:u(xe,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 le;const O=o.static,D=(Z,H)=>H.find(K=>{var ue;if((ue=K.questionIds)!=null&&ue.length)return K.questionIds.find(ce=>Z===ce)}),N=(Z,H)=>H.find(K=>!K.questionIds&&K.answerType===Z),R=O?D(String(b.id),i.itemTypes)||N(b.answerType,i.itemTypes):i.itemTypes.find(Z=>Z.answerType===b.answerType);if(!R){const Z=new cn({errorCode:xn.DECODING_FAILED,message:"The question template has not been found"});d(Z);return}const fe=R==null?void 0:R.displayType,me=b.id in w&&((le=w[b.id])==null?void 0:le.types);return u(je,{children:[u(hu,{backgroundColor:R==null?void 0:R.backgroundColor,cornerRadius:R==null?void 0:R.cornerRadius,isError:!!me,isRequired:b.required,validationBorderColor:R==null?void 0:R.validationBorderColor,validationBorderWidth:R==null?void 0:R.validationBorderWidth,children:[fe===Or.TEXT_EXPANDABLE&&u(mu,{layout:R,dataSourceQuestion:b,register:c}),fe===Or.TEXT_SINGLE_LINE&&u(_u,{layout:R,dataSourceQuestion:b,register:c}),fe===Or.SELECTOR_OPTIONS&&u(du,{layout:R,dataSourceQuestion:b,watch:m,register:c}),fe===Or.SELECTOR_BUTTONS&&u(fu,{layout:R,dataSourceQuestion:b,watch:m,register:c}),fe===Or.SELECTOR_DROPDOWN&&u(au,{control:C,layout:R,dataSourceQuestion:b,parentElementRef:h}),fe===Or.MULTI_SELECTOR_DROPDOWN&&u(lu,{control:C,layout:R,dataSourceQuestion:b,parentElementRef:h})]}),me&&u(pu,{validationErrorsTypes:me,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,O)=>u(Rn,I({dataTestId:"question-button"},b),O))})]})})},wu={display:"none"},vu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},yu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},bu=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var p,h;const{perform:o}=fr(),s=at(null),a=typeof i=="number"&&(i===0||i>1),l=c=>F(null,null,function*(){var w;const g=Array.from((w=c.currentTarget.files)!=null?w:[]);if(g.length)try{const m=(yield Promise.allSettled(g.map(C=>F(null,null,function*(){return{content:yield wa(C),metadata:{name:C.name,type:C.type,size:C.size,lastModified:C.lastModified}}})))).filter(C=>C.status==="fulfilled").map(C=>C.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(Xt,{header:t,footer:e,backgroundColor:n,children:u(je,{children:u("div",{style:X(I({},yu),{justifyContent:"center"}),children:[u("input",X(I({style:wu,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:vu,onClick:d,children:u(Be,{imageId:(h=(p=r==null?void 0:r[0])==null?void 0:p.image)==null?void 0:h.imageId})})]})})})},Su={display:"none"},Cu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Eu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Tu=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var p,h;const{perform:o}=fr(),s=at(null),a=typeof i=="number"&&(i===0||i>1),l=c=>F(null,null,function*(){var w;const g=Array.from((w=c.currentTarget.files)!=null?w:[]);if(g.length)try{const m=(yield Promise.allSettled(g.map(C=>F(null,null,function*(){return{content:yield wa(C),metadata:{name:C.name,type:C.type,size:C.size,lastModified:C.lastModified}}})))).filter(C=>C.status==="fulfilled").map(C=>C.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),d=()=>F(null,null,function*(){var c;(c=s.current)==null||c.showPicker()});return st(()=>{F(null,null,function*(){if(Qe.isDesktop)return;const c=yield Jc();(c==="denied"||c==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),u(Xt,{header:t,footer:e,backgroundColor:r,children:u(je,{children:u("div",{style:X(I({},Eu),{justifyContent:"center"}),children:[u("input",X(I({style:Su,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:Cu,onClick:d,children:u(Be,{imageId:(h=(p=n==null?void 0:n[0])==null?void 0:p.image)==null?void 0:h.imageId})})]})})})};function Iu(){const t=at(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 go=()=>F(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"}}),Ou=()=>F(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),Fn=t=>F(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}});navigator.geolocation.getCurrentPosition(r=>e({location:{locationState:"ok",lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{r.code===1?e({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}}):e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}})},t)})}),Au={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},xu={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"},Ru={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},ku={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Nu={marginBottom:20,lineHeight:"39.2px",width:"100%"},Du={lineHeight:"28px",fontWeight:"400",width:"100%"},Mu={padding:"32px 24px 0 24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(400px, calc(100vw - 32px))",gridTemplateRows:"auto 1fr"},Pu={marginBottom:"10px",fontWeight:500,display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,overflow:"hidden",textOverflow:"ellipsis",lineClamp:2},Fu={marginBottom:"84px",fontWeight:400},Uu={height:"100%",overflow:"scroll",maxHeight:"calc(100dvh - 190px)"},Lu={position:"absolute",bottom:0,left:0,padding:"24px",width:"100%"},Vu=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s,popups:a})=>{const l=va(o),{perform:d}=fr(),{setIsProcessingCallback:p}=Kc(),{ref:h,isPopoverOpen:c,openPopover:g,closePopover:w}=Iu(),f={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4},m=a==null?void 0:a.find(O=>O.reason==="system_restricted");Jt(()=>{Qe.isSafari||p==null||p(!0)},[]),st(()=>{if(Qe.isSafari)return;let O=!0;return F(null,null,function*(){if((yield go())!=="granted"){p==null||p(!1);return}const N=yield Fn(f);O&&d(N,l)}),()=>{Qe.isSafari||(O=!1)}},[]),st(()=>{if(Qe.isSafari)return;let O=!0,D=null;return F(null,null,function*(){const N=yield Ou();N&&(D=N,N.onchange=()=>F(null,null,function*(){if(N.state==="denied"&&(p==null||p(!0),d({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}},l)),N.state==="granted"){p==null||p(!0);const R=yield Fn(f);if(!O)return;d(R,l)}}))}),()=>{Qe.isSafari||(O=!1,D&&(D.onchange=null))}},[]);const C=O=>F(null,null,function*(){O.preventDefault();const D=yield go();if(D==="denied"){g();return}D==="prompt"&&(yield Fn())}),S=O=>F(null,null,function*(){if(O.preventDefault(),(yield go())==="denied"){g();return}p==null||p(!0);const N=yield Fn(f);d(N,l)}),b=O=>{O.preventDefault(),w()};return u(Xt,{header:e,footer:r,backgroundColor:s,children:[u("div",{style:Au,children:[u("div",{style:xu,children:[n&&u("div",{style:ku,children:u(Be,I({},n))}),t&&u("div",{style:Nu,children:u(xe,I({},t))}),i&&u("div",{style:Du,children:u(kn,I({},i))})]}),!!(o!=null&&o.length)&&u("div",{style:{display:"flex",flexDirection:"column"},children:o.map((O,D)=>u("div",{style:{padding:"5px"},children:u(Rn,I(I({dataTestId:"question-button"},O),O.type==="FORM"?{onClick:Qe.isSafari?S:C}:{}))},D))})]}),m&&u("div",{ref:h,popover:"manual",role:"dialog","aria-modal":"true",style:X(I({},Mu),{borderRadius:m.cornerRadius||"27px",backgroundColor:m.backgroundColor||"#ffffff"}),children:[u("div",{style:Pu,children:u(xe,I({},I({fontSize:"24px"},m.title)))}),u("div",{style:Fu,children:u("div",{style:Uu,children:u(xe,I({},I({fontSize:"17px"},m.message)))})}),m.actionButton1&&u("div",{style:Lu,children:u(Rn,I(I({dataTestId:"question-button"},m.actionButton1),m.actionButton1.type==="FORM"?{onClick:b}:{}))})]}),c&&u("div",{style:Ru,onPointerDown:O=>{O.preventDefault(),O.stopPropagation(),w()}})]})},Ya=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:o}=fr();if(!e||!r)return u(Ca,{});const s=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===ft.STATUS)return u(xd,{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===ft.INFO)return u(Nd,{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===ft.GEOLOCATION)return u(Vu,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popups:r.popups});if(e===ft.PROGRESS)return u(Ca,{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===ft.INFO_DETAILS)return u(Ud,{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===ft.CAMERA)return u(Tu,{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===ft.GALLERY)return u(bu,{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===ft.QUESTIONS)return u(gu,{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===ft.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 wo=!1;const Ja=({children:t})=>u("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),$u=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:o,properties:s}=e,a=(l,d)=>{r&&r(l,d)};return n===ft.QUESTIONS?u(_a,{perform:a,children:u(Ja,{children:u(Ya,{properties:s,dataSource:o,templateId:n,templateLayout:i})})}):u(_a,{perform:a,setIsProcessingCallback:t,children:u(Ja,{children:u(Ya,I(I({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},dn=class dn extends ha{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"},Ll=Object.values({DATA:"DATA",QUESTIONARY:"QUESTIONARY"});var Qo=(t=>(t.Rtl="rtl",t.Ltr="ltr",t))(Qo||{}),Sr=(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))(Sr||{}),wt=(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))(wt||{}),Le=(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))(Le||{}),je=(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))(je||{}),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||{}),vt=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t[t.DECODING_FAILED=2]="DECODING_FAILED",t))(vt||{}),Yt=(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))(Yt||{}),ot=(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))(ot||{}),jr=(t=>(t[t.INITIALIZATION_REQUIRED=0]="INITIALIZATION_REQUIRED",t[t.SCENARIO_IN_PROGRESS=3]="SCENARIO_IN_PROGRESS",t))(jr||{}),At=(t=>(t[t.HTTP_ISSUE=0]="HTTP_ISSUE",t[t.PROVIDER_ERROR=1]="PROVIDER_ERROR",t))(At||{});const Vl=120,$l=200,Si="PROGRESS",yt="IDV",ar="idv-session-data",zr="idv-session-auth-token",Bl="rgl-uid",Hl="en",es=t=>{let e;const r=new Set,n=(d,p)=>{const h=typeof d=="function"?d(e):d;if(!Object.is(h,e)){const c=e;e=(p!=null?p:typeof h!="object"||h===null)?h:Object.assign({},e,h),r.forEach(g=>g(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},Wl=t=>t?es(t):es;var Kr,oe,ts,lr,rs,ns,is,os,Ci,Ei,Ti,ss,Gr={},as=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,qr=Array.isArray;function bt(t,e){for(var r in e)t[r]=e[r];return t}function Ii(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function St(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?++ts:i,__i:-1,__u:0};return i==null&&oe.vnode!=null&&oe.vnode(o),o}function ls(){return{current:null}}function ze(t){return t.children}function dt(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 cs(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 cs(t)}}function Oi(t){(!t.__d&&(t.__d=!0)&&lr.push(t)&&!mn.__r++||rs!=oe.debounceRendering)&&((rs=oe.debounceRendering)||ns)(mn)}function mn(){for(var t,e,r,n,i,o,s,a=1;lr.length;)lr.length>a&&lr.sort(is),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=bt({},n)).__v=n.__v+1,oe.vnode&&oe.vnode(r),Ai(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,ps(o,r,s),n.__e=n.__=null,r.__e!=i&&cs(r)));mn.__r=0}function ds(t,e,r,n,i,o,s,a,l,d,p){var h,c,g,w,f,m,C,S=n&&n.__k||as,b=e.length;for(l=zl(r,e,S,l,b),h=0;h<b;h++)(g=r.__k[h])!=null&&(c=g.__i==-1?Gr:S[g.__i]||Gr,g.__i=h,m=Ai(t,g,c,i,o,s,a,l,d,p),w=g.__e,g.ref&&c.ref!=g.ref&&(c.ref&&Ri(c.ref,null,g),p.push(g.ref,g.__c||w,g)),f==null&&w!=null&&(f=w),(C=!!(4&g.__u))||c.__k===g.__k?l=us(g,l,t,C):typeof g.type=="function"&&m!==void 0?l=m:w&&(l=w.nextSibling),g.__u&=-7);return r.__e=f,l}function zl(t,e,r,n,i){var o,s,a,l,d,p=r.length,h=p,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(ze,{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=Kl(s,r,l,h))!=-1&&(h--,(a=r[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>p?c--:i<p&&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<p;o++)(a=r[o])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=Cr(a)),ms(a,a));return n}function us(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=us(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 xt(t,e){return e=e||[],t==null||typeof t=="boolean"||(qr(t)?t.some(function(r){xt(r,e)}):e.push(t)),e}function Kl(t,e,r,n){var i,o,s,a=t.key,l=t.type,d=e[r],p=d!=null&&(2&d.__u)==0;if(d===null&&t.key==null||p&&a==d.key&&l==d.type)return r;if(n>(p?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 fs(t,e,r){e[0]=="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||jl.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||fs(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||fs(t.style,e,r[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(os,"$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?Ti:Ei,o)):t.removeEventListener(e,o?Ti:Ei,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 hs(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(oe.event?oe.event(e):e)}}}function Ai(t,e,r,n,i,o,s,a,l,d){var p,h,c,g,w,f,m,C,S,b,O,D,N,R,fe,me,le,Z=e.type;if(e.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),o=[a=e.__e=r.__e]),(p=oe.__b)&&p(e);e:if(typeof Z=="function")try{if(C=e.props,S="prototype"in Z&&Z.prototype.render,b=(p=Z.contextType)&&n[p.__c],O=p?b?b.props.value:p.__:n,r.__c?m=(h=e.__c=r.__c).__=h.__E:(S?e.__c=h=new Z(C,O):(e.__c=h=new dt(C,O),h.constructor=Z,h.render=ql),b&&b.sub(h),h.props=C,h.state||(h.state={}),h.context=O,h.__n=n,c=h.__d=!0,h.__h=[],h._sb=[]),S&&h.__s==null&&(h.__s=h.state),S&&Z.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=bt({},h.__s)),bt(h.__s,Z.getDerivedStateFromProps(C,h.__s))),g=h.props,w=h.state,h.__v=e,c)S&&Z.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),S&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(S&&Z.getDerivedStateFromProps==null&&C!==g&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(C,O),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(C,h.__s,O)===!1||e.__v==r.__v){for(e.__v!=r.__v&&(h.props=C,h.state=h.__s,h.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some(function(H){H&&(H.__=e)}),D=0;D<h._sb.length;D++)h.__h.push(h._sb[D]);h._sb=[],h.__h.length&&s.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(C,h.__s,O),S&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(g,w,f)})}if(h.context=O,h.props=C,h.__P=t,h.__e=!1,N=oe.__r,R=0,S){for(h.state=h.__s,h.__d=!1,N&&N(e),p=h.render(h.props,h.state,h.context),fe=0;fe<h._sb.length;fe++)h.__h.push(h._sb[fe]);h._sb=[]}else do h.__d=!1,N&&N(e),p=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++R<25);h.state=h.__s,h.getChildContext!=null&&(n=bt(bt({},n),h.getChildContext())),S&&!c&&h.getSnapshotBeforeUpdate!=null&&(f=h.getSnapshotBeforeUpdate(g,w)),me=p,p!=null&&p.type===ze&&p.key==null&&(me=_s(p.props.children)),a=ds(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(le=o.length;le--;)Ii(o[le]);xi(e)}else e.__e=r.__e,e.__k=r.__k,H.then||xi(e);oe.__e(H,e,r)}else o==null&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=Gl(r.__e,e,r,n,i,o,s,l,d);return(p=oe.diffed)&&p(e),128&e.__u?void 0:a}function xi(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(xi)}function ps(t,e,r){for(var n=0;n<r.length;n++)Ri(r[n],r[++n],r[++n]);oe.__c&&oe.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){oe.__e(o,i.__v)}})}function _s(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:qr(t)?t.map(_s):bt({},t)}function Gl(t,e,r,n,i,o,s,a,l){var d,p,h,c,g,w,f,m=r.props,C=e.props,S=e.type;if(S=="svg"?i="http://www.w3.org/2000/svg":S=="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((g=o[d])&&"setAttribute"in g==!!S&&(S?g.localName==S:g.nodeType==3)){t=g,o[d]=null;break}}if(t==null){if(S==null)return document.createTextNode(C);t=document.createElementNS(i,S,C.is&&C),a&&(oe.__m&&oe.__m(e,o),a=!1),o=null}if(S==null)m===C||a&&t.data==C||(t.data=C);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[(g=t.attributes[d]).name]=g.value;for(d in m)if(g=m[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=g;else if(!(d in C)){if(d=="value"&&"defaultValue"in C||d=="checked"&&"defaultChecked"in C)continue;gn(t,d,null,g,i)}}for(d in C)g=C[d],d=="children"?c=g:d=="dangerouslySetInnerHTML"?p=g:d=="value"?w=g:d=="checked"?f=g:a&&typeof g!="function"||m[d]===g||gn(t,d,g,m[d],i);if(p)a||h&&(p.__html==h.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(h&&(t.innerHTML=""),ds(e.type=="template"?t.content:t,qr(c)?c:[c],e,r,n,S=="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--;)Ii(o[d]);a||(d="value",S=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||S=="progress"&&!w||S=="option"&&w!=m[d])&&gn(t,d,w,m[d],i),d="checked",f!=null&&f!=t[d]&&gn(t,d,f,m[d],i))}return t}function Ri(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){oe.__e(i,r)}}function ms(t,e,r){var n,i;if(oe.unmount&&oe.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||Ri(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){oe.__e(o,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ms(n[i],e,r||typeof t.type!="function");r||Ii(t.__e),t.__c=t.__=t.__e=void 0}function ql(t,e,r){return this.constructor(t,r)}function cr(t,e,r){var n,i,o,s;e==document&&(e=document.documentElement),oe.__&&oe.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,o=[],s=[],Ai(e,t=(!n&&r||e).__k=St(ze,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),ps(o,t,s)}function gs(t,e){cr(t,e,gs)}function Zl(t,e,r){var n,i,o,s,a=bt({},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 ki(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,Oi(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"+ss++,e.__=t,e.Provider=e.__l=(e.Consumer=function(r,n){return r.children(n)}).contextType=e,e}Kr=as.slice,oe={__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}},ts=0,dt.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=bt({},this.state),typeof t=="function"&&(t=t(bt({},r),this.props)),t&&bt(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Oi(this))},dt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Oi(this))},dt.prototype.render=ze,lr=[],ns=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,is=function(t,e){return t.__v.__b-e.__v.__b},mn.__r=0,os=/(PointerCapture)$|Capture$/i,Ci=0,Ei=hs(!1),Ti=hs(!0),ss=0;var Rt,Se,Ni,ws,Er=0,vs=[],Oe=oe,ys=Oe.__b,bs=Oe.__r,Ss=Oe.diffed,Cs=Oe.__c,Es=Oe.unmount,Ts=Oe.__;function dr(t,e){Oe.__h&&Oe.__h(Se,t,Er||e),Er=0;var r=Se.__H||(Se.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Ue(t){return Er=1,wn(Os,t)}function wn(t,e,r){var n=dr(Rt++,2);if(n.t=t,!n.__c&&(n.__=[r?r(e):Os(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=Se,!Se.__f)){var i=function(a,l,d){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(c){return!!c.__c});if(p.every(function(c){return!c.__N}))return!o||o.call(this,a,l,d);var h=n.__c.props!==a;return p.forEach(function(c){if(c.__N){var g=c.__[0];c.__=c.__N,c.__N=void 0,g!==c.__[0]&&(h=!0)}}),o&&o.call(this,a,l,d)||h};Se.__f=!0;var o=Se.shouldComponentUpdate,s=Se.componentWillUpdate;Se.componentWillUpdate=function(a,l,d){if(this.__e){var p=o;o=void 0,i(a,l,d),o=p}s&&s.call(this,a,l,d)},Se.shouldComponentUpdate=i}return n.__N||n.__}function st(t,e){var r=dr(Rt++,3);!Oe.__s&&Li(r.__H,e)&&(r.__=t,r.u=e,Se.__H.__h.push(r))}function Jt(t,e){var r=dr(Rt++,4);!Oe.__s&&Li(r.__H,e)&&(r.__=t,r.u=e,Se.__h.push(r))}function at(t){return Er=5,Yr(function(){return{current:t}},[])}function Di(t,e,r){Er=6,Jt(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=dr(Rt++,7);return Li(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Mi(t,e){return Er=8,Yr(function(){return t},e)}function Jr(t){var e=Se.context[t.__c],r=dr(Rt++,9);return r.c=t,e?(r.__==null&&(r.__=!0,e.sub(Se)),e.props.value):t.__}function Pi(t,e){Oe.useDebugValue&&Oe.useDebugValue(e?e(t):t)}function Yl(t){var e=dr(Rt++,10),r=Ue();return e.__=t,Se.componentDidCatch||(Se.componentDidCatch=function(n,i){e.__&&e.__(n,i),r[1](n)}),[r[0],function(){r[1](void 0)}]}function Fi(){var t=dr(Rt++,11);if(!t.__){for(var e=Se.__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 Jl(){for(var t;t=vs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(vn),t.__H.__h.forEach(Ui),t.__H.__h=[]}catch(e){t.__H.__h=[],Oe.__e(e,t.__v)}}Oe.__b=function(t){Se=null,ys&&ys(t)},Oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ts&&Ts(t,e)},Oe.__r=function(t){bs&&bs(t),Rt=0;var e=(Se=t.__c).__H;e&&(Ni===Se?(e.__h=[],Se.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(e.__h.forEach(vn),e.__h.forEach(Ui),e.__h=[],Rt=0)),Ni=Se},Oe.diffed=function(t){Ss&&Ss(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(vs.push(e)!==1&&ws===Oe.requestAnimationFrame||((ws=Oe.requestAnimationFrame)||Xl)(Jl)),e.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ni=Se=null},Oe.__c=function(t,e){e.some(function(r){try{r.__h.forEach(vn),r.__h=r.__h.filter(function(n){return!n.__||Ui(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Oe.__e(n,r.__v)}}),Cs&&Cs(t,e)},Oe.unmount=function(t){Es&&Es(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 Is=typeof requestAnimationFrame=="function";function Xl(t){var e,r=function(){clearTimeout(n),Is&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);Is&&(e=requestAnimationFrame(r))}function vn(t){var e=Se,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),Se=e}function Ui(t){var e=Se;t.__c=t.__(),Se=e}function Li(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function Os(t,e){return typeof e=="function"?e(t):e}function As(t,e){for(var r in e)t[r]=e[r];return t}function Vi(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 $i(t,e){var r=e(),n=Ue({t:{__:r,u:e}}),i=n[0].t,o=n[1];return Jt(function(){i.__=r,i.u=e,Bi(i)&&o({t:i})},[t,r,e]),st(function(){return Bi(i)&&o({t:i}),t(function(){Bi(i)&&o({t:i})})},[t]),r}function Bi(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 Hi(t){t()}function Wi(t){return t}function ji(){return[!1,Hi]}var zi=Jt;function yn(t,e){this.props=t,this.context=e}function xs(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:Vi(this.props,i)}function n(i){return this.shouldComponentUpdate=r,St(t,i)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=t,n}(yn.prototype=new dt).isPureReactComponent=!0,yn.prototype.shouldComponentUpdate=function(t,e){return Vi(this.props,t)||Vi(this.state,e)};var Rs=oe.__b;oe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rs&&Rs(t)};var Ql=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ks(t){function e(r){var n=As({},r);return delete n.ref,t(n,r.ref||null)}return e.$$typeof=Ql,e.render=t,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Ns=function(t,e){return t==null?null:xt(xt(t).map(e))},Ds={map:Ns,forEach:Ns,count:function(t){return t?xt(t).length:0},only:function(t){var e=xt(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:xt},ec=oe.__e;oe.__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)}ec(t,e,r,n)};var Ms=oe.unmount;function Ps(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=As({},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 Ps(n,e,r)})),t}function Fs(t,e,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Fs(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 Us(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ls(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 St(r,o)}return i.displayName="Lazy",i.__f=!0,i}function Tr(){this.i=null,this.l=null}oe.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Ms&&Ms(t)},(Xr.prototype=new dt).__c=function(t,e){var r=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Us(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]=Fs(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]=Ps(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&St(ze,null,t.fallback);return i&&(i.__u&=-33),[St(ze,null,e.__a?null:t.children),i]};var Vs=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 tc(t){return this.getChildContext=function(){return t.context},t.children}function rc(t){var e=this,r=t.h;if(e.componentWillUnmount=function(){cr(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)}}}cr(St(tc,{context:e.context},t.__v),e.v)}function $s(t,e){var r=St(rc,{__v:t,h:e});return r.containerInfo=e,r}(Tr.prototype=new dt).__a=function(t){var e=this,r=Us(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),Vs(e,t,n)):i()};r?r(o):o()}},Tr.prototype.render=function(t){this.i=null,this.l=new Map;var e=xt(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){Vs(t,r,e)})};var Bs=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,nc=/^(?: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]/,ic=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,oc=/[A-Z0-9]/g,sc=typeof document!="undefined",ac=function(t){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Hs(t,e,r){return e.__k==null&&(e.textContent=""),cr(t,e),typeof r=="function"&&r(),t?t.__c:null}function Ws(t,e,r){return gs(t,e),typeof r=="function"&&r(),t?t.__c:null}dt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(dt.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var js=oe.event;function lc(){}function cc(){return this.cancelBubble}function dc(){return this.defaultPrevented}oe.event=function(t){return js&&(t=js(t)),t.persist=lc,t.isPropagationStopped=cc,t.isDefaultPrevented=dc,t.nativeEvent=t};var Ki,uc={enumerable:!1,configurable:!0,get:function(){return this.class}},zs=oe.vnode;oe.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||sc&&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"||ac(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":ic.test(s)&&(s=l):l=s="oninput":o&&nc.test(s)?s=s.replace(oc,"-$&").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=xt(r.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=xt(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",uc)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),e.props=i})(t),t.$$typeof=Bs,zs&&zs(t)};var Ks=oe.__r;oe.__r=function(t){Ks&&Ks(t),Ki=t.__c};var Gs=oe.diffed;oe.diffed=function(t){Gs&&Gs(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),Ki=null};var qs={ReactCurrentDispatcher:{current:{readContext:function(t){return Ki.__n[t.__c].props.value},useCallback:Mi,useContext:Jr,useDebugValue:Pi,useDeferredValue:Wi,useEffect:st,useId:Fi,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Jt,useMemo:Yr,useReducer:wn,useRef:at,useState:Ue,useSyncExternalStore:$i,useTransition:ji}}},fc="18.3.1";function Zs(t){return St.bind(null,t)}function Qr(t){return!!t&&t.$$typeof===Bs}function Ys(t){return Qr(t)&&t.type===ze}function Js(t){return!!t&&!!t.displayName&&(typeof t.displayName=="string"||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function Xs(t){return Qr(t)?Zl.apply(null,arguments):t}function Qs(t){return!!t.__k&&(cr(null,t),!0)}function ea(t){return t&&(t.base||t.nodeType===1&&t)||null}var ta=function(t,e){return t(e)},ra=function(t,e){return t(e)},na=ze,ia=Qr,de={useState:Ue,useId:Fi,useReducer:wn,useEffect:st,useLayoutEffect:Jt,useInsertionEffect:zi,useTransition:ji,useDeferredValue:Wi,useSyncExternalStore:$i,startTransition:Hi,useRef:at,useImperativeHandle:Di,useMemo:Yr,useCallback:Mi,useContext:Jr,useDebugValue:Pi,version:"18.3.1",Children:Ds,render:Hs,hydrate:Ws,unmountComponentAtNode:Qs,createPortal:$s,createElement:St,createContext:ki,createFactory:Zs,cloneElement:Xs,createRef:ls,Fragment:ze,isValidElement:Qr,isElement:ia,isFragment:Ys,isMemo:Js,findDOMNode:ea,Component:dt,PureComponent:yn,memo:xs,forwardRef:ks,flushSync:ra,unstable_batchedUpdates:ta,StrictMode:na,Suspense:Xr,SuspenseList:Tr,lazy:Ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qs};const hc=Object.freeze(Object.defineProperty({__proto__:null,Children:Ds,Component:dt,Fragment:ze,PureComponent:yn,StrictMode:na,Suspense:Xr,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qs,cloneElement:Xs,createContext:ki,createElement:St,createFactory:Zs,createPortal:$s,createRef:ls,default:de,findDOMNode:ea,flushSync:ra,forwardRef:ks,hydrate:Ws,isElement:ia,isFragment:Ys,isMemo:Js,isValidElement:Qr,lazy:Ls,memo:xs,render:Hs,startTransition:Hi,unmountComponentAtNode:Qs,unstable_batchedUpdates:ta,useCallback:Mi,useContext:Jr,useDebugValue:Pi,useDeferredValue:Wi,useEffect:st,useErrorBoundary:Yl,useId:Fi,useImperativeHandle:Di,useInsertionEffect:zi,useLayoutEffect:Jt,useMemo:Yr,useReducer:wn,useRef:at,useState:Ue,useSyncExternalStore:$i,useTransition:ji,version:fc},Symbol.toStringTag,{value:"Module"})),pc=t=>t;function _c(t,e=pc){const r=de.useSyncExternalStore(t.subscribe,()=>e(t.getState()),()=>e(t.getInitialState()));return de.useDebugValue(r),r}const oa=t=>{const e=Wl(t),r=n=>_c(e,n);return Object.assign(r,e),r},mc=t=>t?oa(t):oa;function gc(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 wc=gc(hc);var en={exports:{}},vc=en.exports,sa;function yc(){return sa||(sa=1,(function(t,e){(function(r,n){var i="1.0.41",o="",s="?",a="function",l="undefined",d="object",p="string",h="major",c="model",g="name",w="type",f="vendor",m="version",C="architecture",S="console",b="mobile",O="tablet",D="smarttv",N="wearable",R="embedded",fe=500,me="Amazon",le="Apple",Z="ASUS",H="BlackBerry",K="Browser",ue="Chrome",ce="Edge",ve="Firefox",ye="Google",ee="Honor",z="Huawei",U="Lenovo",Y="LG",te="Microsoft",Te="Motorola",re="Nvidia",$="OnePlus",Q="Opera",Ke="OPPO",Je="Samsung",_t="Sharp",it="Sony",zt="Xiaomi",mt="Zebra",Qt="Facebook",Kt="Chromium OS",Et="Mac OS",Gt=" Browser",er=function(J,se){var j={};for(var ge in J)se[ge]&&se[ge].length%2===0?j[ge]=se[ge].concat(J[ge]):j[ge]=J[ge];return j},Tt=function(J){for(var se={},j=0;j<J.length;j++)se[J[j].toUpperCase()]=J[j];return se},lt=function(J,se){return typeof J===p?y(se).indexOf(y(J))!==-1:!1},y=function(J){return J.toLowerCase()},T=function(J){return typeof J===p?J.replace(/[^\d\.]/g,o).split(".")[0]:n},x=function(J,se){if(typeof J===p)return J=J.replace(/^\s\s*/,o),typeof se===l?J:J.substring(0,fe)},V=function(J,se){for(var j=0,ge,Ge,Me,pe,q,Xe;j<se.length&&!q;){var tr=se[j],_r=se[j+1];for(ge=Ge=0;ge<tr.length&&!q&&tr[ge];)if(q=tr[ge++].exec(J),q)for(Me=0;Me<_r.length;Me++)Xe=q[++Ge],pe=_r[Me],typeof pe===d&&pe.length>0?pe.length===2?typeof pe[1]==a?this[pe[0]]=pe[1].call(this,Xe):this[pe[0]]=pe[1]:pe.length===3?typeof pe[1]===a&&!(pe[1].exec&&pe[1].test)?this[pe[0]]=Xe?pe[1].call(this,Xe,pe[2]):n:this[pe[0]]=Xe?Xe.replace(pe[1],pe[2]):n:pe.length===4&&(this[pe[0]]=Xe?pe[3].call(this,Xe.replace(pe[1],pe[2])):n):this[pe]=Xe||n;j+=2}},M=function(J,se){for(var j in se)if(typeof se[j]===d&&se[j].length>0){for(var ge=0;ge<se[j].length;ge++)if(lt(se[j][ge],J))return j===s?n:j}else if(lt(se[j],J))return j===s?n:j;return se.hasOwnProperty("*")?se["*"]:J},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"},ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,m],[/opios[\/ ]+([\w\.]+)/i],[m,[g,Q+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[g,Q+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[g,Q]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[g,"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],[g,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[g,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[g,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+K],m],[/\bfocus\/([\w\.]+)/i],[m,[g,ve+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[g,Q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[g,Q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[g,"MIUI"+Gt]],[/fxios\/([\w\.-]+)/i],[m,[g,ve]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+Gt],m],[/samsungbrowser\/([\w\.]+)/i],[m,[g,Je+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[g],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,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],[g,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[g,ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,ue+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[g,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[m,M,P]],[/(webkit|khtml)\/([\w\.]+)/i],[g,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[g,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],[g,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[C,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[C,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[C,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[C,/ower/,o,y]],[/ sun4\w[;\)]/i],[[C,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[C,y]]],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],[w,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],[w,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[f,le],[w,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,le],[w,O]],[/(macintosh);/i],[c,[f,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,_t],[w,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[f,ee],[w,O]],[/honor([-\w ]+)[;\)]/i],[c,[f,ee],[w,b]],[/\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],[w,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,z],[w,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[f,zt],[w,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,zt],[w,b]],[/; (\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],[w,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[f,M,{OnePlus:["304","403","203"],"*":Ke}],[w,O]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[w,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[f,"Realme"],[w,b]],[/\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],[w,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,Te],[w,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,Y],[w,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,Y],[w,b]],[/(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],[w,O]],[/(nokia) (t[12][01])/i],[f,c,[w,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[w,b],[f,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[f,ye],[w,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,ye],[w,b]],[/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,it],[w,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,it],[w,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,$],[w,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,me],[w,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,me],[w,b]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[w,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,H],[w,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,Z],[w,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,Z],[w,b]],[/(nexus 9)/i],[c,[f,"HTC"],[w,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[w,b]],[/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"],[w,O]],[/(itel) ((\w+))/i],[[f,y],c,[w,M,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[w,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[w,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[f,"Ulefone"],[w,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[f,"Energizer"],[w,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[f,"Cat"],[w,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[f,"Smartfren"],[w,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[f,"Nothing"],[w,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[f,"Archos"],[w,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[f,"Archos"],[w,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[f,c,[w,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,[w,b]],[/(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,[w,O]],[/(surface duo)/i],[c,[f,te],[w,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[w,b]],[/(u304aa)/i],[c,[f,"AT&T"],[w,b]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[w,b]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[w,O]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[w,O]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[w,O]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[w,O]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[w,O]],[/\b(k88) b/i],[c,[f,"ZTE"],[w,O]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[w,b]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[w,b]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[w,O]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[w,O]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[w,O]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[w,O]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[w,O]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[w,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[w,b]],[/\b(ph-1) /i],[c,[f,"Essential"],[w,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[w,O]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[w,O]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[w,O]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[f,re],[w,O]],[/(sprint) (\w+)/i],[f,c,[w,b]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,te],[w,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,mt],[w,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,mt],[w,b]],[/smart-tv.+(samsung)/i],[f,[w,D]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,Je],[w,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,Y],[w,D]],[/(apple) ?tv/i],[f,[c,le+" TV"],[w,D]],[/crkey/i],[[c,ue+"cast"],[f,ye],[w,D]],[/droid.+aft(\w+)( bui|\))/i],[c,[f,me],[w,D]],[/(shield \w+ tv)/i],[c,[f,re],[w,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,_t],[w,D]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,it],[w,D]],[/(mi(tv|box)-?\w+) bui/i],[c,[f,zt],[w,D]],[/Hbbtv.*(technisat) (.*);/i],[f,c,[w,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,x],[c,x],[w,D]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[w,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,D]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[w,S]],[/droid.+; (shield)( bui|\))/i],[c,[f,re],[w,S]],[/(playstation \w+)/i],[c,[f,it],[w,S]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,te],[w,S]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[f,Je],[w,N]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[f,c,[w,N]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[f,Ke],[w,N]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[f,le],[w,N]],[/(opwwe\d{3})/i],[c,[f,$],[w,N]],[/(moto 360)/i],[c,[f,Te],[w,N]],[/(smartwatch 3)/i],[c,[f,it],[w,N]],[/(g watch r)/i],[c,[f,Y],[w,N]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,mt],[w,N]],[/droid.+; (glass) \d/i],[c,[f,ye],[w,N]],[/(pico) (4|neo3(?: link|pro)?)/i],[f,c,[w,N]],[/; (quest( \d| pro)?)/i],[c,[f,Qt],[w,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[w,R]],[/(aeobc)\b/i],[c,[f,me],[w,R]],[/(homepod).+mac os/i],[c,[f,le],[w,R]],[/windows iot/i],[[w,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[w,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[w,O]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[g,ce+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[g,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[g,"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],[g,m],[/ladybird\//i],[[g,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[g,[m,M,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,M,W],[g,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Et],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,g],[/(ubuntu) ([\w\.]+) like android/i],[[g,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[g,m],[/\(bb(10);/i],[m,[g,H]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[g,ve+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[g,ue+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,Kt],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],[g,m],[/(sunos) ?([\w\.\d]*)/i],[[g,"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],[g,m]]},G=function(J,se){if(typeof J===d&&(se=J,J=n),!(this instanceof G))return new G(J,se).getResult();var j=typeof r!==l&&r.navigator?r.navigator:n,ge=J||(j&&j.userAgent?j.userAgent:o),Ge=j&&j.userAgentData?j.userAgentData:n,Me=se?er(ne,se):ne,pe=j&&j.userAgent==ge;return this.getBrowser=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Me.browser),q[h]=T(q[m]),pe&&j&&j.brave&&typeof j.brave.isBrave==a&&(q[g]="Brave"),q},this.getCPU=function(){var q={};return q[C]=n,V.call(q,ge,Me.cpu),q},this.getDevice=function(){var q={};return q[f]=n,q[c]=n,q[w]=n,V.call(q,ge,Me.device),pe&&!q[w]&&Ge&&Ge.mobile&&(q[w]=b),pe&&q[c]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(q[c]="iPad",q[w]=O),q},this.getEngine=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Me.engine),q},this.getOS=function(){var q={};return q[g]=n,q[m]=n,V.call(q,ge,Me.os),pe&&!q[g]&&Ge&&Ge.platform&&Ge.platform!="Unknown"&&(q[g]=Ge.platform.replace(/chrome os/i,Kt).replace(/macos/i,Et)),q},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(q){return ge=typeof q===p&&q.length>fe?x(q,fe):q,this},this.setUA(ge),this};G.VERSION=i,G.BROWSER=Tt([g,m,h]),G.CPU=Tt([C]),G.DEVICE=Tt([c,f,w,S,b,D,O,N,R]),G.ENGINE=G.OS=Tt([g,m]),t.exports&&(e=t.exports=G),e.UAParser=G;var we=typeof r!==l&&(r.jQuery||r.Zepto);if(we&&!we.ua){var We=new G;we.ua=We.getResult(),we.ua.get=function(){return We.getUA()},we.ua.set=function(J){We.setUA(J);var se=We.getResult();for(var j in se)we.ua[j]=se[j]}}})(typeof window=="object"?window:vc)})(en,en.exports)),en.exports}var aa;function bc(){if(aa)return B;aa=1,Object.defineProperty(B,"__esModule",{value:!0});function t(E){return E&&typeof E=="object"&&"default"in E?E.default:E}var e=wc,r=t(e),n=yc(),i=new n,o=i.getBrowser(),s=i.getCPU(),a=i.getDevice(),l=i.getEngine(),d=i.getOS(),p=i.getUA(),h=function(_){return i.setUA(_)},c=function(_){if(!_){console.error("No userAgent string was provided");return}var v=new n(_);return{UA:v,browser:v.getBrowser(),cpu:v.getCPU(),device:v.getDevice(),engine:v.getEngine(),os:v.getOS(),ua:v.getUA(),setUserAgent:function(k){return v.setUA(k)}}},g=Object.freeze({ClientUAInstance:i,browser:o,cpu:s,device:a,engine:l,os:d,ua:p,setUa:h,parseUserAgent:c});function w(E,_){var v=Object.keys(E);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);_&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(E,k).enumerable})),v.push.apply(v,A)}return v}function f(E){for(var _=1;_<arguments.length;_++){var v=arguments[_]!=null?arguments[_]:{};_%2?w(Object(v),!0).forEach(function(A){O(E,A,v[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(v)):w(Object(v)).forEach(function(A){Object.defineProperty(E,A,Object.getOwnPropertyDescriptor(v,A))})}return E}function m(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(_){return typeof _}:m=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},m(E)}function C(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function S(E,_){for(var v=0;v<_.length;v++){var A=_[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}function b(E,_,v){return _&&S(E.prototype,_),E}function O(E,_,v){return _ in E?Object.defineProperty(E,_,{value:v,enumerable:!0,configurable:!0,writable:!0}):E[_]=v,E}function D(){return D=Object.assign||function(E){for(var _=1;_<arguments.length;_++){var v=arguments[_];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(E[A]=v[A])}return E},D.apply(this,arguments)}function N(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),_&&fe(E,_)}function R(E){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},R(E)}function fe(E,_){return fe=Object.setPrototypeOf||function(A,k){return A.__proto__=k,A},fe(E,_)}function me(E,_){if(E==null)return{};var v={},A=Object.keys(E),k,_e;for(_e=0;_e<A.length;_e++)k=A[_e],!(_.indexOf(k)>=0)&&(v[k]=E[k]);return v}function le(E,_){if(E==null)return{};var v=me(E,_),A,k;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(E);for(k=0;k<_e.length;k++)A=_e[k],!(_.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(E,A)&&(v[A]=E[A])}return v}function Z(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function H(E,_){if(_&&(typeof _=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z(E)}function K(E,_){return ue(E)||ce(E,_)||ve(E,_)||ee()}function ue(E){if(Array.isArray(E))return E}function ce(E,_){var v=E==null?null:typeof Symbol!="undefined"&&E[Symbol.iterator]||E["@@iterator"];if(v!=null){var A=[],k=!0,_e=!1,Pe,tt;try{for(v=v.call(E);!(k=(Pe=v.next()).done)&&(A.push(Pe.value),!(_&&A.length===_));k=!0);}catch(di){_e=!0,tt=di}finally{try{!k&&v.return!=null&&v.return()}finally{if(_e)throw tt}}return A}}function ve(E,_){if(E){if(typeof E=="string")return ye(E,_);var v=Object.prototype.toString.call(E).slice(8,-1);if(v==="Object"&&E.constructor&&(v=E.constructor.name),v==="Map"||v==="Set")return Array.from(E);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return ye(E,_)}}function ye(E,_){(_==null||_>E.length)&&(_=E.length);for(var v=0,A=new Array(_);v<_;v++)A[v]=E[v];return A}function ee(){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"},Y={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},te={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Te=function(_){switch(_){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 te}},re=function(_){return h(_)},$=function(_){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return _||v},Q=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},Ke=function(_){var v=Q();return v&&v.platform&&(v.platform.indexOf(_)!==-1||v.platform==="MacIntel"&&v.maxTouchPoints>1&&!window.MSStream)},Je=function(_,v,A,k,_e){return{isBrowser:_,browserMajorVersion:$(v.major),browserFullVersion:$(v.version),browserName:$(v.name),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(_e)}},_t=function(_,v,A,k){return f({},_,{vendor:$(v.vendor),model:$(v.model),os:$(A.name),osVersion:$(A.version),ua:$(k)})},it=function(_,v,A,k){return{isSmartTV:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},zt=function(_,v,A,k){return{isConsole:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},mt=function(_,v,A,k){return{isWearable:_,engineName:$(v.name),engineVersion:$(v.version),osName:$(A.name),osVersion:$(A.version),userAgent:$(k)}},Qt=function(_,v,A,k,_e){return{isEmbedded:_,vendor:$(v.vendor),model:$(v.model),engineName:$(A.name),engineVersion:$(A.version),osName:$(k.name),osVersion:$(k.version),userAgent:$(_e)}};function Kt(E){var _=E?c(E):g,v=_.device,A=_.browser,k=_.engine,_e=_.os,Pe=_.ua,tt=Te(v.type),di=tt.isBrowser,v1=tt.isMobile,y1=tt.isTablet,al=tt.isSmartTV,ll=tt.isConsole,cl=tt.isWearable,dl=tt.isEmbedded;if(di)return Je(di,A,k,_e,Pe);if(al)return it(al,k,_e,Pe);if(ll)return zt(ll,k,_e,Pe);if(v1||y1)return _t(tt,v,_e,Pe);if(cl)return mt(cl,k,_e,Pe);if(dl)return Qt(dl,v,k,_e,Pe)}var Et=function(_){var v=_.type;return v===z.Mobile},Gt=function(_){var v=_.type;return v===z.Tablet},er=function(_){var v=_.type;return v===z.Mobile||v===z.Tablet},Tt=function(_){var v=_.type;return v===z.SmartTv},lt=function(_){var v=_.type;return v===z.Browser},y=function(_){var v=_.type;return v===z.Wearable},T=function(_){var v=_.type;return v===z.Console},x=function(_){var v=_.type;return v===z.Embedded},V=function(_){var v=_.vendor;return $(v)},M=function(_){var v=_.model;return $(v)},P=function(_){var v=_.type;return $(v,"browser")},W=function(_){var v=_.name;return v===Y.Android},ne=function(_){var v=_.name;return v===Y.Windows},G=function(_){var v=_.name;return v===Y.MAC_OS},we=function(_){var v=_.name;return v===Y.WindowsPhone},We=function(_){var v=_.name;return v===Y.IOS},J=function(_){var v=_.version;return $(v)},se=function(_){var v=_.name;return $(v)},j=function(_){var v=_.name;return v===U.Chrome},ge=function(_){var v=_.name;return v===U.Firefox},Ge=function(_){var v=_.name;return v===U.Chromium},Me=function(_){var v=_.name;return v===U.Edge},pe=function(_){var v=_.name;return v===U.Yandex},q=function(_){var v=_.name;return v===U.Safari||v===U.MobileSafari},Xe=function(_){var v=_.name;return v===U.MobileSafari},tr=function(_){var v=_.name;return v===U.Opera},_r=function(_){var v=_.name;return v===U.InternetExplorer||v===U.Ie},Ln=function(_){var v=_.name;return v===U.MIUI},Vn=function(_){var v=_.name;return v===U.SamsungBrowser},$n=function(_){var v=_.version;return $(v)},Bn=function(_){var v=_.major;return $(v)},Hn=function(_){var v=_.name;return $(v)},Wn=function(_){var v=_.name;return $(v)},jn=function(_){var v=_.version;return $(v)},zn=function(){var _=Q(),v=_&&_.userAgent&&_.userAgent.toLowerCase();return typeof v=="string"?/electron/.test(v):!1},rr=function(_){return typeof _=="string"&&_.indexOf("Edg/")!==-1},Kn=function(){var _=Q();return _&&(/iPad|iPhone|iPod/.test(_.platform)||_.platform==="MacIntel"&&_.maxTouchPoints>1)&&!window.MSStream},ct=function(){return Ke("iPad")},Gn=function(){return Ke("iPhone")},qn=function(){return Ke("iPod")},Zn=function(_){return $(_)};function Yn(E){var _=E||g,v=_.device,A=_.browser,k=_.os,_e=_.engine,Pe=_.ua;return{isSmartTV:Tt(v),isConsole:T(v),isWearable:y(v),isEmbedded:x(v),isMobileSafari:Xe(A)||ct(),isChromium:Ge(A),isMobile:er(v)||ct(),isMobileOnly:Et(v),isTablet:Gt(v)||ct(),isBrowser:lt(v),isDesktop:lt(v),isAndroid:W(k),isWinPhone:we(k),isIOS:We(k)||ct(),isChrome:j(A),isFirefox:ge(A),isSafari:q(A),isOpera:tr(A),isIE:_r(A),osVersion:J(k),osName:se(k),fullBrowserVersion:$n(A),browserVersion:Bn(A),browserName:Hn(A),mobileVendor:V(v),mobileModel:M(v),engineName:Wn(_e),engineVersion:jn(_e),getUA:Zn(Pe),isEdge:Me(A)||rr(Pe),isYandex:pe(A),deviceType:P(v),isIOS13:Kn(),isIPad13:ct(),isIPhone13:Gn(),isIPod13:qn(),isElectron:zn(),isEdgeChromium:rr(Pe),isLegacyEdge:Me(A)&&!rr(Pe),isWindows:ne(k),isMacOs:G(k),isMIUI:Ln(A),isSamsungBrowser:Vn(A)}}var Jn=Tt(a),Xn=T(a),Qn=y(a),bo=x(a),So=Xe(o)||ct(),Co=Ge(o),Nr=er(a)||ct(),ei=Et(a),ti=Gt(a)||ct(),ri=lt(a),Eo=lt(a),ni=W(d),ii=we(d),oi=We(d)||ct(),To=j(o),Io=ge(o),Oo=q(o),Ao=tr(o),si=_r(o),xo=J(d),Ro=se(d),ko=$n(o),No=Bn(o),Do=Hn(o),Mo=V(a),Po=M(a),Fo=Wn(l),Uo=jn(l),Lo=Zn(p),It=Me(o)||rr(p),Vo=pe(o),ie=P(a),gt=Kn(),Dr=ct(),ai=Gn(),li=qn(),ci=zn(),Ju=rr(p),Xu=Me(o)&&!rr(p),Qu=ne(d),e1=G(d),t1=Ln(o),r1=Vn(o),n1=function(_){if(!_||typeof _!="string"){console.error("No valid user agent string was provided");return}var v=c(_),A=v.device,k=v.browser,_e=v.os,Pe=v.engine,tt=v.ua;return Yn({device:A,browser:k,os:_e,engine:Pe,ua:tt})},i1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ni?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},o1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ri?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},s1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return si?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},a1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return oi?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},l1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Nr?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},c1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ti?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},d1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return ii?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},u1=function(_){var v=_.renderWithFragment,A=_.children;_.viewClassName,_.style;var k=le(_,["renderWithFragment","children","viewClassName","style"]);return ei?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},f1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Jn?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},h1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Xn?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},p1=function(_){var v=_.renderWithFragment,A=_.children,k=le(_,["renderWithFragment","children"]);return Qn?v?r.createElement(e.Fragment,null,A):r.createElement("div",k,A):null},_1=function(_){var v=_.renderWithFragment,A=_.children;_.viewClassName,_.style;var k=_.condition,_e=le(_,["renderWithFragment","children","viewClassName","style","condition"]);return k?v?r.createElement(e.Fragment,null,A):r.createElement("div",_e,A):null};function m1(E){return(function(_){N(v,_);function v(A){var k;return C(this,v),k=H(this,R(v).call(this,A)),k.isEventListenerAdded=!1,k.handleOrientationChange=k.handleOrientationChange.bind(Z(k)),k.onOrientationChange=k.onOrientationChange.bind(Z(k)),k.onPageLoad=k.onPageLoad.bind(Z(k)),k.state={isLandscape:!1,isPortrait:!1},k}return b(v,[{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,D({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),v})(r.Component)}function g1(){var E=e.useState(function(){var _e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"}}),_=K(E,2),v=_[0],A=_[1],k=e.useCallback(function(){var _e=window.innerWidth>window.innerHeight?90:0,Pe={isPortrait:_e===0,isLandscape:_e===90,orientation:_e===0?"portrait":"landscape"};v.orientation!==Pe.orientation&&A(Pe)},[v.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]),v}function sl(E){var _=E||window.navigator.userAgent;return c(_)}function w1(E){var _=E||window.navigator.userAgent,v=sl(_),A=Yn(v);return[A,v]}return B.AndroidView=i1,B.BrowserTypes=U,B.BrowserView=o1,B.ConsoleView=h1,B.CustomView=_1,B.IEView=s1,B.IOSView=a1,B.MobileOnlyView=u1,B.MobileView=l1,B.OsTypes=Y,B.SmartTVView=f1,B.TabletView=c1,B.WearableView=p1,B.WinPhoneView=d1,B.browserName=Do,B.browserVersion=No,B.deviceDetect=Kt,B.deviceType=ie,B.engineName=Fo,B.engineVersion=Uo,B.fullBrowserVersion=ko,B.getSelectorsByUserAgent=n1,B.getUA=Lo,B.isAndroid=ni,B.isBrowser=ri,B.isChrome=To,B.isChromium=Co,B.isConsole=Xn,B.isDesktop=Eo,B.isEdge=It,B.isEdgeChromium=Ju,B.isElectron=ci,B.isEmbedded=bo,B.isFirefox=Io,B.isIE=si,B.isIOS=oi,B.isIOS13=gt,B.isIPad13=Dr,B.isIPhone13=ai,B.isIPod13=li,B.isLegacyEdge=Xu,B.isMIUI=t1,B.isMacOs=e1,B.isMobile=Nr,B.isMobileOnly=ei,B.isMobileSafari=So,B.isOpera=Ao,B.isSafari=Oo,B.isSamsungBrowser=r1,B.isSmartTV=Jn,B.isTablet=ti,B.isWearable=Qn,B.isWinPhone=ii,B.isWindows=Qu,B.isYandex=Vo,B.mobileModel=Po,B.mobileVendor=Mo,B.osName=Ro,B.osVersion=xo,B.parseUserAgent=c,B.setUserAgent=re,B.useDeviceData=sl,B.useDeviceSelectors=w1,B.useMobileOrientation=g1,B.withOrientationChange=m1,B}var Qe=bc();const Sc=(t,e)=>Gi(t,e),Gi=(t,e)=>{const r=qi(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]=qi(i,e);else if(Array.isArray(i)){const o=i.map(s=>typeof s=="object"?Gi(s,e):s);r[n]=o}}return r},qi=(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&&Ec(s,i):i=s}),i){const o=qi(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 Gi(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},Ec=(t,e)=>{for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ve=[];for(let t=0;t<256;++t)Ve.push((t+256).toString(16).slice(1));function Tc(t,e=0){return(Ve[t[e+0]]+Ve[t[e+1]]+Ve[t[e+2]]+Ve[t[e+3]]+"-"+Ve[t[e+4]]+Ve[t[e+5]]+"-"+Ve[t[e+6]]+Ve[t[e+7]]+"-"+Ve[t[e+8]]+Ve[t[e+9]]+"-"+Ve[t[e+10]]+Ve[t[e+11]]+Ve[t[e+12]]+Ve[t[e+13]]+Ve[t[e+14]]+Ve[t[e+15]]).toLowerCase()}let Zi;const Ic=new Uint8Array(16);function Oc(){if(!Zi){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zi=crypto.getRandomValues.bind(crypto)}return Zi(Ic)}const la={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ac(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:Oc();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,Tc(n)}function xc(t,e,r){return la.randomUUID&&!t?la.randomUUID():Ac(t)}function Yi(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to copy object:",e),null}}const ca=(t,e)=>{if(!t||!e)return null;let r=null;return r=Yi(t),r&&(r=Sc(r,e)),r};function Rc(t){return F(this,null,function*(){return new Promise(e=>setTimeout(e,t))})}function kc(i,o){return F(this,arguments,function*(t,e,r=Vl,n=$l){let s=0;for(;s<r;){const a=yield t();if(a!==null)return a;s++,s<r&&(yield Rc(n))}return e()})}const Nc=(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)},Dc=(t,e)=>{if(!t||!e)return!1;const r=t.find(i=>i.id===e);return(r==null?void 0:r.type)!=="PROCESSING"},Mc=(t,e)=>{const r=t.reduce((s,a)=>(s.push(...a.supportedTemplates),s),[]),n=Array.from(new Set(e.filter(s=>!s.releaseClientApp&&Ll.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}},ur={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}}},Ji=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Xi=t=>/^[^:{}\s]+:[^:{}\s]+$/.test(t),Qi={setSessionIdWorkflowIdToLs:(t,e)=>{const r=localStorage.getItem(ar);let n={};if(r)try{const i=JSON.parse(r);Ji(i)&&(n=i)}catch(i){if(Xi(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 Ji(e)?e:null}catch(e){if(Xi(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(!Ji(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(Xi(e)){const[,n]=e.split(":");return n===t?(localStorage.removeItem(ar),!0):!1}return!1}}},Pc=t=>{var n;let e;const r=xc();try{e=(n=window.localStorage.getItem(t))!=null?n:r,window.localStorage.setItem(t,e)}catch(i){e=r}return e};function Fc(t){return Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).length>0}function Uc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function Lc(){return typeof document=="undefined"?null:document.documentElement.getAttribute("lang")||null}function Vc(){return typeof navigator!="undefined"?navigator.language:null}const $c=t=>{const e=Hl,r=typeof t=="string"?t:null,n=Lc(),i=Vc();return r||n||i||e},Bc=t=>{try{return new URL(t).searchParams.get("sessionId")}catch(e){return null}};function da(t){return!("error"in t)}function eo(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 ua=()=>{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}},Hc=t=>{const e=Pc(Bl);return{deviceId:e,metadata:{platform:"browser",osVersion:`${Qe.osVersion}`,hostAppId:ua(),host:ua(),sdkVersion:"3.2.260-nightly".trim(),name:navigator.userAgent,deviceModel:`${Qe.osName}/${Qe.osVersion} ${Qe.browserName}/${Qe.fullBrowserVersion}`,hostAppVersion:`${Qe.browserName}/${Qe.fullBrowserVersion}`,userID:e},deviceType:"browser",heartbeatCadence:0,serial:"",macAddress:""}};function Wc(){return F(this,null,function*(){if(typeof navigator=="undefined"||!("geolocation"in navigator))return null;try{return!("permissions"in navigator)||(yield navigator.permissions.query({name:"geolocation"})).state!=="granted"?null:yield new Promise(e=>{navigator.geolocation.getCurrentPosition(r=>{e({lat:r.coords.latitude,lon:r.coords.longitude})},()=>e(null))})}catch(t){return null}})}const fa={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:{},locale:"",trackLocation:!1,listener:()=>{}},jc=(t,e)=>X(I({},fa),{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=Qi.getSessionIdWorkflowIdFromLS(),n=e().workflowId,o=r&&r[n];return n&&o?{workflowId:n,sessionId:o}:null},setCurrentSessionDataLsAndStore:r=>{Qi.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?ur.removeAuthTokenLs(n):Qi.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({},fa)),setStartConfig:r=>{t(()=>({startConfig:r}))},setLocale:r=>{t(()=>({locale:r}))},setTrackLocation:r=>{t(()=>({trackLocation: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 ha extends HTMLElement{}function pa(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 to={FORM:"form",DATA:"data"},Mt=class Mt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Wr);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=yt,Mt.ERROR_ENUM_NAME="InitializeError",Mt.SHORT_CODE="IN";let bn=Mt;const Pt=class Pt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,_n);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=yt,Pt.ERROR_ENUM_NAME="TokenInitializeError",Pt.SHORT_CODE="TI";let Sn=Pt;const Ft=class Ft extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,wt);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=yt,Ft.ERROR_ENUM_NAME="PrepareWorkflowError",Ft.SHORT_CODE="PW";let kt=Ft;const Ut=class Ut extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Le);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=yt,Ut.ERROR_ENUM_NAME="ConfigureError",Ut.SHORT_CODE="CFG";let $e=Ut;const Lt=class Lt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,je);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=yt,Lt.ERROR_ENUM_NAME="WorkflowError",Lt.SHORT_CODE="SC";let Ze=Lt;const Vt=class Vt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,At);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=yt,Vt.ERROR_ENUM_NAME="ConnectionError",Vt.SHORT_CODE="CO";let tn=Vt;const $t=class $t extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,ot);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=yt,$t.ERROR_ENUM_NAME="SessionError",$t.SHORT_CODE="SE";let rn=$t;const Bt=class Bt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,Yt);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=yt,Bt.ERROR_ENUM_NAME="StartSessionError",Bt.SHORT_CODE="ST";let fr=Bt;const Ht=class Ht extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,jr);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=yt,Ht.ERROR_ENUM_NAME="DeinitializationError",Ht.SHORT_CODE="DE";let Cn=Ht;const Wt=class Wt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,vt);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=yt,Wt.ERROR_ENUM_NAME="WorkflowPlatformError",Wt.SHORT_CODE="WPE";let En=Wt;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 ut=Ir.getInstance();var zc=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:--zc,__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 oe.vnode&&oe.vnode(d),d}const ro=ki(void 0),_a=({perform:t,children:e,setIsProcessingCallback:r})=>u(ro.Provider,{value:{perform:t,setIsProcessingCallback:r},children:e}),hr=()=>{const t=Jr(ro);if(!t)throw new Error("usePerform must be used within a PerformProvider");return{perform:t.perform}},Kc=()=>{const t=Jr(ro);if(!t)throw new Error("useSetIsProcessingCallback must be used within a Context Provider");return{setIsProcessingCallback:t.setIsProcessingCallback}},Gc={width:"86px",height:"86px",flex:"0 0 86px",marginBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",alignContent:"center"},ft={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"},no={text:"text",selector:"selector",multiSelector:"multiSelector"},ma={NOT_EMPTY:"notEmpty",REGEX:"regex"};function ga(t){return t===Tn.CENTER?"center":t===Tn.RIGHT?"right":"left"}function io(t){if(typeof t=="object"&&t!==null)for(const e in t)typeof t[e]=="object"?io(t[e]):t[e]==="true"?t[e]=!0:t[e]==="false"&&(t[e]=!1);return t}function qc(t){return Object.entries(t).map(([e,r])=>({id:e,value:typeof r=="string"?r.trim():r})).filter(e=>!!e.value)}const Zc=t=>Array.isArray(t)?t.length===0:t===0?!1:!t;function ae(t){return t&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)?t:void 0}const Yc=(t,e)=>t.reduce((r,n)=>{var i,o,s;if(n.answerType===no.text&&(i=n.property)!=null&&i.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return X(I({},r),{[n.id]:a.string})}if(n.answerType===no.selector&&(o=n.property)!=null&&o.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.string)return X(I({},r),{[n.id]:a.string})}if(n.answerType===no.multiSelector&&(s=n.property)!=null&&s.id){const a=e.find(l=>l.name===n.property.id);if(a!=null&&a.array)return X(I({},r),{[n.id]:a.array})}return r},{}),wa=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)}),Jc=()=>F(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"}}),Xc=()=>String.fromCharCode(Math.floor(Math.random()*26)+97)+Number(Math.random()).toString(16).slice(2)+Date.now().toString(16).slice(4),va=t=>(t==null?void 0:t.some(r=>r.type==="FORM"))?to.FORM:to.DATA,ya=({indicatorColor:t})=>{const e=at(null),r=ae(t)||"#000000",n=60,i=5,o=.75,s=(n-i)/2,a=2*Math.PI*s,l=1-o,d=360/1e3;return st(()=>{if(!e.current)return;let p=!0,h=0,c=performance.now();function g(w){if(!p)return;const f=w-c;c=w,h=(h+d*f)%360,e.current&&(e.current.style.transform=`rotate(${h}deg)`),requestAnimationFrame(g)}return requestAnimationFrame(g),()=>{p=!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 Qc({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 ed({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 td({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 rd({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 nd=({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 id({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 od({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 sd({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 ad({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 ld({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 ba=({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"})}),cd=({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 dd({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 ud(){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 fd=({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"})]}),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:"9.5",stroke:"#7E57C5"}),u("rect",{x:"3",y:"3.5",width:"14",height:"14",rx:"7",fill:"#7E57C5"})]}),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:"9.5",stroke:"#8C8C8C"})}),_d=()=>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"})]}),md=()=>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"})}),gd=({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})}),wd=({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})}),vd=({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)"})})})]}),yd=({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})})})]}),bd=()=>u("div",{}),Ce={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"},oo={[Ce.WARNING]:dd,[Ce.SPINNER]:ya,[Ce.ERROR]:Qc,[Ce.AGE]:ed,[Ce.ANDROID]:td,[Ce.ARROW]:rd,[Ce.APPLE]:nd,[Ce.BACK]:id,[Ce.BIOMETRIC]:od,[Ce.INFO]:sd,[Ce.TO_MOBILE]:ad,[Ce.UNDERAGE]:ld,[Ce.CROSS]:ba,[Ce.REGULA_LOGO]:cd,[Ce.DEFAULT]:bd,[Ce.POWERED_BY]:ud,[Ce.SUCCESS]:fd,[Ce.CIRCLE_SELECTED]:hd,[Ce.CIRCLE_NORMAL]:pd,[Ce.SQUARE_SELECTED]:_d,[Ce.SQUARE_NORMAL]:md,[Ce.SELECTED]:gd,[Ce.CHEVRON_DOWN]:wd,[Ce.CLOSE_ICON]:ba,[Ce.GALLERY_ICON]:vd,[Ce.CAMERA_ICON]:yd},Sd=({type:t,size:e,color:r})=>{const n=oo[t]||oo[Ce.DEFAULT];return u(n,{size:e,color:r})},Be=({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,p=()=>{l(!1)};if(r)return u("img",{style:{width:"100%",height:"100%",objectFit:s(n),borderRadius:i,backgroundColor:ae(o)||"transparent",display:d?"none":"block"},src:r});if(t){const h=t in oo?t:"default";return u(Sd,{type:h})}if(e)return u(ze,{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:p})]})},Cd=({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(Be,I({},t))})}),Ed={display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"18px",height:"36px",minWidth:"36px",border:"none",cursor:"pointer"},Td=({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:p}=hr();return u("button",{"data-ui":"gui-close-button",part:"gui-close-button","data-test":t,onClick:()=>{const g=JSON.parse(JSON.stringify(e));io(g),p(g)},className:"hover-button",style:X(I(I({},Ed),o&&{borderRadius:o}),{backgroundColor:(c=ae(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(Be,I({},r))}),n&&u("div",{style:{padding:"0 5px"},children:u(xe,I({},n))})]})},Id=({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(Td,I({dataTestId:"close-btn"},t))})});function Od(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 p=l.startsWith("http")?l:`https://${l}`;r.push(u("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:a},d)),n=d+s.length}return n<t.length&&r.push(t.slice(n)),r}function Sa(t){const e=t.split(`
|
|
91
|
+
`);return e.flatMap((r,n)=>{const i=Od(r);return n===e.length-1?i:[...i,u("br",{},"br-"+n)]})}const xe=({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:ae(n)||"#000000",textAlign:ga(i),backgroundColor:ae(o)||"transparent",borderRadius:s},d=typeof t=="string"&&t.trim()&&Sa(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})},Rn=({title:t,image:e,responseBody:r,backgroundColor:n="transparent",cornerRadius:i,highlightColor:o,dataTestId:s,borderColor:a,borderWidth:l,type:d="RESPONSE_BODY",onClick:p})=>{var C,S;const[h,c]=Ue(!1),g=h&&ae(o)?o:n,{perform:w}=hr(),f=b=>{if(p&&p(b),d!=="RESPONSE_BODY")return;const O=JSON.parse(JSON.stringify(r));io(O),w(O,to.DATA)},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:(C=ae(g))!=null?C:"transparent",borderColor:(S=ae(a))!=null?S:"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(Be,I({},e)),t&&u("div",{style:{flexGrow:e?0:1},children:u(xe,I({},t))})]})},Ad=r=>{var n=r,{items:t}=n,e=mr(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(Rn,I({dataTestId:"button-"+((s=o.title)==null?void 0:s.text)},o),Xc())})})},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:ae(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(Id,{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(Ad,{items:i}),r&&u("div",{style:{position:"absolute",bottom:"0",left:"0",width:"100%",height:s},children:u(Cd,I({},r))})]})},kn=({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:ga(n),color:ae(r)||"#000000",borderRadius:s,backgroundColor:ae(o)||"transparent",whiteSpace:"pre-line"},children:t&&Sa(t)}),xd=({header:t,footer:e,image:r,title:n,description:i,buttons:o,backgroundColor:s})=>{const a=at(null),[l,d]=Ue(!1);return st(()=>{a.current&&d(a.current.scrollHeight>a.current.clientHeight+2)},[]),u(Xt,{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:Gc,children:u(Be,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(xe,I({},n))})}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400",marginTop:"16px"},children:u(kn,I({},i))})]})})},Rd={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:"1.68"},kd={position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Nd=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s})=>u(Xt,{header:e,footer:r,buttons:o,backgroundColor:s,children:u(ze,{children:u("div",{part:"gui-info-screen-container","data-ui":"gui-info-screen-container",id:"info-screen-container",style:X(I({},kd),{justifyContent:n?"flex-start":"center"}),children:[n&&u("div",{style:Rd,children:u(Be,I({},n))}),t&&u("div",{style:{marginBottom:20,lineHeight:"39.2px"},children:u(xe,I({},t))}),i&&u("div",{style:{lineHeight:"28px",fontWeight:"400"},children:u(kn,I({},i))})]})})}),Dd=({indicatorColor:t="black"})=>u(ze,{children:u(ya,{indicatorColor:t})}),Ca=({progressView:t,footer:e,backgroundColor:r})=>u(Xt,{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(Dd,{indicatorColor:ae(t==null?void 0:t.indicatorColor)||"#000000"})})}),Md=({title:t,description:e,image:r,backgroundColor:n,cornerRadius:i=0,isLastChild:o})=>u("div",{className:"details-item",style:X(I({},{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:o?"none":"1px solid #E0E0E0",padding:"16px 0",gap:16}),{backgroundColor:ae(n)||"transparent",borderRadius:i}),children:[u("div",{style:{flex:"0 1 auto"},children:[u("div",{style:{marginBottom:5,fontWeight:"bold",lineHeight:"21px"},children:u(xe,I({},t))}),u("div",{style:{lineHeight:"21px",fontWeight:"400"},children:u(kn,I({},e))})]}),u("div",{style:{aspectRatio:"1 / 1",width:120,height:120,flex:"0 0 120px"},children:u(Be,I({},r))})]}),Pd={display:"flex",flexDirection:"column",padding:"0 16px"},Fd=({items:t,backgroundColor:e,cornerRadius:r=16})=>u("div",{className:"details",style:X(I({},Pd),{backgroundColor:ae(e)||"white",borderRadius:r}),children:t.map((n,i)=>u(Md,I({isLastChild:i===t.length-1},n),i))}),Ud=({title:t,header:e,footer:r,details:n,buttons:i,backgroundColor:o})=>{const s=at(null),[a,l]=Ue(!1);return st(()=>{s.current&&l(s.current.scrollHeight>s.current.clientHeight)},[]),u(Xt,{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(xe,I({},t))}),n&&u(Fd,I({},n))]})})};var on=t=>t.type==="checkbox",pr=t=>t instanceof Date,Ye=t=>t==null;const Ea=t=>typeof t=="object";var Ne=t=>!Ye(t)&&!Array.isArray(t)&&Ea(t)&&!pr(t),Ta=t=>Ne(t)&&t.target?on(t.target)?t.target.checked:t.target.value:t,Ld=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Ia=(t,e)=>t.has(Ld(e)),Vd=t=>{const e=t.constructor&&t.constructor.prototype;return Ne(e)&&e.hasOwnProperty("isPrototypeOf")},so=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(!(so&&(t instanceof Blob||n))&&(r||Ne(t)))if(e=r?[]:Object.create(Object.getPrototypeOf(t)),!r&&!Vd(t))e=t;else for(const i in t)t.hasOwnProperty(i)&&(e[i]=Fe(t[i]));else return t;return e}var Nn=t=>/^\w*$/.test(t),Re=t=>t===void 0,ao=t=>Array.isArray(t)?t.filter(Boolean):[],lo=t=>ao(t.replace(/["|']|\]/g,"").split(/\.|\[/)),L=(t,e,r)=>{if(!e||!Ne(t))return r;const n=(Nn(e)?[e]:lo(e)).reduce((i,o)=>Ye(i)?i:i[o],t);return Re(n)||n===t?Re(t[e])?r:t[e]:n},rt=t=>typeof t=="boolean",Ee=(t,e,r)=>{let n=-1;const i=Nn(e)?[e]:lo(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 Dn={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ht={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Oa=de.createContext(null);Oa.displayName="HookFormContext";const co=()=>de.useContext(Oa);var Aa=(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]!==ht.all&&(e._proxyFormState[s]=!n||ht.all),r&&(r[s]=!0),t[s]}});return i};const uo=typeof window!="undefined"?de.useLayoutEffect:de.useEffect;function $d(t){const e=co(),{control:r=e.control,disabled:n,name:i,exact:o}=t||{},[s,a]=de.useState(r._formState),l=de.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return uo(()=>r._subscribe({name:i,formState:l.current,exact:o,callback:d=>{!n&&a(I(I({},r._formState),d))}}),[i,n,o]),de.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),de.useMemo(()=>Aa(s,r,l.current,!1),[s,r])}var nt=t=>typeof t=="string",xa=(t,e,r,n,i)=>nt(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),fo=t=>Ye(t)||!Ea(t);function Dt(t,e,r=new WeakSet){if(fo(t)||fo(e))return t===e;if(pr(t)&&pr(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(pr(s)&&pr(a)||Ne(s)&&Ne(a)||Array.isArray(s)&&Array.isArray(a)?!Dt(s,a,r):s!==a)return!1}}return!0}function Bd(t){const e=co(),{control:r=e.control,name:n,defaultValue:i,disabled:o,exact:s,compute:a}=t||{},l=de.useRef(i),d=de.useRef(a),p=de.useRef(void 0);d.current=a;const h=de.useMemo(()=>r._getWatch(n,l.current),[r,n]),[c,g]=de.useState(d.current?d.current(h):h);return uo(()=>r._subscribe({name:n,formState:{values:!0},exact:s,callback:w=>{if(!o){const f=xa(n,r._names,w.values||r._formValues,!1,l.current);if(d.current){const m=d.current(f);Dt(m,p.current)||(g(m),p.current=m)}else g(f)}}}),[r,o,n,s]),de.useEffect(()=>r._removeUnmounted()),c}function Hd(t){const e=co(),{name:r,disabled:n,control:i=e.control,shouldUnregister:o,defaultValue:s}=t,a=Ia(i._names.array,r),l=de.useMemo(()=>L(i._formValues,r,L(i._defaultValues,r,s)),[i,r,s]),d=Bd({control:i,name:r,defaultValue:l,exact:!0}),p=$d({control:i,name:r,exact:!0}),h=de.useRef(t),c=de.useRef(void 0),g=de.useRef(i.register(r,I(X(I({},t.rules),{value:d}),rt(t.disabled)?{disabled:t.disabled}:{})));h.current=t;const w=de.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!L(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!L(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!L(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!L(p.validatingFields,r)},error:{enumerable:!0,get:()=>L(p.errors,r)}}),[p,r]),f=de.useCallback(b=>g.current.onChange({target:{value:Ta(b),name:r},type:Dn.CHANGE}),[r]),m=de.useCallback(()=>g.current.onBlur({target:{value:L(i._formValues,r),name:r},type:Dn.BLUR}),[r,i._formValues]),C=de.useCallback(b=>{const O=L(i._fields,r);O&&b&&(O._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:D=>b.setCustomValidity(D),reportValidity:()=>b.reportValidity()})},[i._fields,r]),S=de.useMemo(()=>X(I({name:r,value:d},rt(n)||p.disabled?{disabled:p.disabled||n}:{}),{onChange:f,onBlur:m,ref:C}),[r,n,p.disabled,f,m,C,d]);return de.useEffect(()=>{const b=i._options.shouldUnregister||o,O=c.current;O&&O!==r&&!a&&i.unregister(O),i.register(r,I(I({},h.current.rules),rt(h.current.disabled)?{disabled:h.current.disabled}:{}));const D=(N,R)=>{const fe=L(i._fields,N);fe&&fe._f&&(fe._f.mount=R)};if(D(r,!0),b){const N=Fe(L(i._options.defaultValues,r,h.current.defaultValue));Ee(i._defaultValues,r,N),Re(L(i._formValues,r))&&Ee(i._formValues,r,N)}return!a&&i.register(r),c.current=r,()=>{(a?b&&!i._state.action:b)?i.unregister(r):D(r,!1)}},[r,i,a,o]),de.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),de.useMemo(()=>({field:S,formState:p,fieldState:w}),[S,p,w])}const Ra=t=>t.render(Hd(t));var Wd=(t,e,r,n,i)=>e?X(I({},r[t]),{types:X(I({},r[t]&&r[t].types?r[t].types:{}),{[n]:i||!0})}):{},sn=t=>Array.isArray(t)?t:[t],ka=()=>{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 Na(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=Na(i,o);Ne(s)&&(r[n]=s)}else t[n]&&(r[n]=o)}return r}var et=t=>Ne(t)&&!Object.keys(t).length,ho=t=>t.type==="file",pt=t=>typeof t=="function",Mn=t=>{if(!so)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Da=t=>t.type==="select-multiple",po=t=>t.type==="radio",jd=t=>po(t)||on(t),_o=t=>Mn(t)&&t.isConnected;function zd(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=Re(t)?n++:t[e[n++]];return t}function Kd(t){for(const e in t)if(t.hasOwnProperty(e)&&!Re(t[e]))return!1;return!0}function De(t,e){const r=Array.isArray(e)?e:Nn(e)?[e]:lo(e),n=r.length===1?t:zd(t,r),i=r.length-1,o=r[i];return n&&delete n[o],i!==0&&(Ne(n)&&et(n)||Array.isArray(n)&&Kd(n))&&De(t,r.slice(0,-1)),t}var Gd=t=>{for(const e in t)if(pt(t[e]))return!0;return!1};function Ma(t){return Array.isArray(t)||Ne(t)&&!Gd(t)}function mo(t,e={}){for(const r in t)Ma(t[r])?(e[r]=Array.isArray(t[r])?[]:{},mo(t[r],e[r])):Ye(t[r])||(e[r]=!0);return e}function Ar(t,e,r){r||(r=mo(e));for(const n in t)Ma(t[n])?Re(e)||fo(r[n])?r[n]=mo(t[n],Array.isArray(t[n])?[]:{}):Ar(t[n],Ye(e)?{}:e[n],r[n]):r[n]=!Dt(t[n],e[n]);return r}const Pa={value:!1,isValid:!1},Fa={value:!0,isValid:!0};var Ua=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&&!Re(t[0].attributes.value)?Re(t[0].value)||t[0].value===""?Fa:{value:t[0].value,isValid:!0}:Fa:Pa}return Pa},La=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:n})=>Re(t)?t:e?t===""?NaN:t&&+t:r&&nt(t)?new Date(t):n?n(t):t;const Va={isValid:!1,value:null};var $a=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,Va):Va;function Ba(t){const e=t.ref;return ho(e)?e.files:po(e)?$a(t.refs).value:Da(e)?[...e.selectedOptions].map(({value:r})=>r):on(e)?Ua(t.refs).value:La(Re(e.value)?t.ref.value:e.value,t)}var qd=(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=>Re(t)?t:Pn(t)?t.source:Ne(t)?Pn(t.value)?t.value.source:t.value:t,Ha=t=>({isOnSubmit:!t||t===ht.onSubmit,isOnBlur:t===ht.onBlur,isOnChange:t===ht.onChange,isOnAll:t===ht.all,isOnTouch:t===ht.onTouched});const Wa="AsyncFunction";var Zd=t=>!!t&&!!t.validate&&!!(pt(t.validate)&&t.validate.constructor.name===Wa||Ne(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===Wa)),Yd=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),ja=(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=mr(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 za(t,e,r){const n=L(t,r);if(n||Nn(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 Jd=(t,e,r,n)=>{r(t);const s=t,{name:i}=s,o=mr(s,["name"]);return et(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find(a=>e[a]===(!n||ht.all))},Xd=(t,e,r)=>!t||!e||t===e||sn(t).some(n=>n&&(r?n===e:n.startsWith(e)||e.startsWith(n))),Qd=(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,eu=(t,e)=>!ao(L(t,e)).length&&De(t,e),tu=(t,e,r)=>{const n=sn(L(t,r));return Ee(n,"root",e[r]),Ee(t,r,n),t};function Ka(t,e,r="validate"){if(nt(t)||Array.isArray(t)&&t.every(nt)||rt(t)&&!t)return{type:r,message:nt(t)?t:"",ref:e}}var xr=t=>Ne(t)&&!Pn(t)?t:{value:t,message:""},Ga=(t,e,r,n,i,o)=>F(null,null,function*(){const{ref:s,refs:a,required:l,maxLength:d,minLength:p,min:h,max:c,pattern:g,validate:w,name:f,valueAsNumber:m,mount:C}=t._f,S=L(r,f);if(!C||e.has(f))return{};const b=a?a[0]:s,O=H=>{i&&b.reportValidity&&(b.setCustomValidity(rt(H)?"":H||""),b.reportValidity())},D={},N=po(s),R=on(s),fe=N||R,me=(m||ho(s))&&Re(s.value)&&Re(S)||Mn(s)&&s.value===""||S===""||Array.isArray(S)&&!S.length,le=Wd.bind(null,f,n,D),Z=(H,K,ue,ce=Nt.maxLength,ve=Nt.minLength)=>{const ye=H?K:ue;D[f]=I({type:H?ce:ve,message:ye,ref:s},le(H?ce:ve,ye))};if(o?!Array.isArray(S)||!S.length:l&&(!fe&&(me||Ye(S))||rt(S)&&!S||R&&!Ua(a).isValid||N&&!$a(a).isValid)){const{value:H,message:K}=nt(l)?{value:!!l,message:l}:xr(l);if(H&&(D[f]=I({type:Nt.required,message:K,ref:b},le(Nt.required,K)),!n))return O(K),D}if(!me&&(!Ye(h)||!Ye(c))){let H,K;const ue=xr(c),ce=xr(h);if(!Ye(S)&&!isNaN(S)){const ve=s.valueAsNumber||S&&+S;Ye(ue.value)||(H=ve>ue.value),Ye(ce.value)||(K=ve<ce.value)}else{const ve=s.valueAsDate||new Date(S),ye=U=>new Date(new Date().toDateString()+" "+U),ee=s.type=="time",z=s.type=="week";nt(ue.value)&&S&&(H=ee?ye(S)>ye(ue.value):z?S>ue.value:ve>new Date(ue.value)),nt(ce.value)&&S&&(K=ee?ye(S)<ye(ce.value):z?S<ce.value:ve<new Date(ce.value))}if((H||K)&&(Z(!!H,ue.message,ce.message,Nt.max,Nt.min),!n))return O(D[f].message),D}if((d||p)&&!me&&(nt(S)||o&&Array.isArray(S))){const H=xr(d),K=xr(p),ue=!Ye(H.value)&&S.length>+H.value,ce=!Ye(K.value)&&S.length<+K.value;if((ue||ce)&&(Z(ue,H.message,K.message),!n))return O(D[f].message),D}if(g&&!me&&nt(S)){const{value:H,message:K}=xr(g);if(Pn(H)&&!S.match(H)&&(D[f]=I({type:Nt.pattern,message:K,ref:s},le(Nt.pattern,K)),!n))return O(K),D}if(w){if(pt(w)){const H=yield w(S,r),K=Ka(H,b);if(K&&(D[f]=I(I({},K),le(Nt.validate,K.message)),!n))return O(K.message),D}else if(Ne(w)){let H={};for(const K in w){if(!et(H)&&!n)break;const ue=Ka(yield w[K](S,r),b,K);ue&&(H=I(I({},ue),le(K,ue.message)),O(ue.message),n&&(D[f]=H))}if(!et(H)&&(D[f]=I({ref:b},H),!n))return D}}return O(!0),D});const ru={mode:ht.onSubmit,reValidateMode:ht.onChange,shouldFocusError:!0};function nu(t={}){let e=I(I({},ru),t),r={submitCount:0,isDirty:!1,isReady:!1,isLoading:pt(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 p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h=I({},p);const c={array:ka(),state:ka()},g=e.criteriaMode===ht.all,w=y=>T=>{clearTimeout(d),d=setTimeout(y,T)},f=y=>F(null,null,function*(){if(!e.disabled&&(p.isValid||h.isValid||y)){const T=e.resolver?et((yield R()).errors):yield me(n,!0);T!==r.isValid&&c.state.next({isValid:T})}}),m=(y,T)=>{!e.disabled&&(p.isValidating||p.validatingFields||h.isValidating||h.validatingFields)&&((y||Array.from(a.mount)).forEach(x=>{x&&(T?Ee(r.validatingFields,x,T):De(r.validatingFields,x))}),c.state.next({validatingFields:r.validatingFields,isValidating:!et(r.validatingFields)}))},C=(y,T=[],x,V,M=!0,P=!0)=>{if(V&&x&&!e.disabled){if(s.action=!0,P&&Array.isArray(L(n,y))){const W=x(L(n,y),V.argA,V.argB);M&&Ee(n,y,W)}if(P&&Array.isArray(L(r.errors,y))){const W=x(L(r.errors,y),V.argA,V.argB);M&&Ee(r.errors,y,W),eu(r.errors,y)}if((p.touchedFields||h.touchedFields)&&P&&Array.isArray(L(r.touchedFields,y))){const W=x(L(r.touchedFields,y),V.argA,V.argB);M&&Ee(r.touchedFields,y,W)}(p.dirtyFields||h.dirtyFields)&&(r.dirtyFields=Ar(i,o)),c.state.next({name:y,isDirty:Z(y,T),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ee(o,y,T)},S=(y,T)=>{Ee(r.errors,y,T),c.state.next({errors:r.errors})},b=y=>{r.errors=y,c.state.next({errors:r.errors,isValid:!1})},O=(y,T,x,V)=>{const M=L(n,y);if(M){const P=L(o,y,Re(x)?L(i,y):x);Re(P)||V&&V.defaultChecked||T?Ee(o,y,T?P:Ba(M._f)):ue(y,P),s.mount&&f()}},D=(y,T,x,V,M)=>{let P=!1,W=!1;const ne={name:y};if(!e.disabled){if(!x||V){(p.isDirty||h.isDirty)&&(W=r.isDirty,r.isDirty=ne.isDirty=Z(),P=W!==ne.isDirty);const G=Dt(L(i,y),T);W=!!L(r.dirtyFields,y),G?De(r.dirtyFields,y):Ee(r.dirtyFields,y,!0),ne.dirtyFields=r.dirtyFields,P=P||(p.dirtyFields||h.dirtyFields)&&W!==!G}if(x){const G=L(r.touchedFields,y);G||(Ee(r.touchedFields,y,x),ne.touchedFields=r.touchedFields,P=P||(p.touchedFields||h.touchedFields)&&G!==x)}P&&M&&c.state.next(ne)}return P?ne:{}},N=(y,T,x,V)=>{const M=L(r.errors,y),P=(p.isValid||h.isValid)&&rt(T)&&r.isValid!==T;if(e.delayError&&x?(l=w(()=>S(y,x)),l(e.delayError)):(clearTimeout(d),l=null,x?Ee(r.errors,y,x):De(r.errors,y)),(x?!Dt(M,x):M)||!et(V)||P){const W=X(I(I({},V),P&&rt(T)?{isValid:T}:{}),{errors:r.errors,name:y});r=I(I({},r),W),c.state.next(W)}},R=y=>F(null,null,function*(){m(y,!0);const T=yield e.resolver(o,e.context,qd(y||a.mount,n,e.criteriaMode,e.shouldUseNativeValidation));return m(y),T}),fe=y=>F(null,null,function*(){const{errors:T}=yield R(y);if(y)for(const x of y){const V=L(T,x);V?Ee(r.errors,x,V):De(r.errors,x)}else r.errors=T;return T}),me=(V,M,...P)=>F(null,[V,M,...P],function*(y,T,x={valid:!0}){for(const ne in y){const G=y[ne];if(G){const W=G,{_f:we}=W,We=mr(W,["_f"]);if(we){const J=a.array.has(we.name),se=G._f&&Zd(G._f);se&&p.validatingFields&&m([we.name],!0);const j=yield Ga(G,a.disabled,o,g,e.shouldUseNativeValidation&&!T,J);if(se&&p.validatingFields&&m([we.name]),j[we.name]&&(x.valid=!1,T))break;!T&&(L(j,we.name)?J?tu(r.errors,j,we.name):Ee(r.errors,we.name,j[we.name]):De(r.errors,we.name))}!et(We)&&(yield me(We,T,x))}}return x.valid}),le=()=>{for(const y of a.unMount){const T=L(n,y);T&&(T._f.refs?T._f.refs.every(x=>!_o(x)):!_o(T._f.ref))&&Ke(y)}a.unMount=new Set},Z=(y,T)=>!e.disabled&&(y&&T&&Ee(o,y,T),!Dt(U(),i)),H=(y,T,x)=>xa(y,a,I({},s.mount?o:Re(T)?i:nt(y)?{[y]:T}:T),x,T),K=y=>ao(L(s.mount?o:i,y,e.shouldUnregister?L(i,y,[]):[])),ue=(y,T,x={})=>{const V=L(n,y);let M=T;if(V){const P=V._f;P&&(!P.disabled&&Ee(o,y,La(T,P)),M=Mn(P.ref)&&Ye(T)?"":T,Da(P.ref)?[...P.ref.options].forEach(W=>W.selected=M.includes(W.value)):P.refs?on(P.ref)?P.refs.forEach(W=>{(!W.defaultChecked||!W.disabled)&&(Array.isArray(M)?W.checked=!!M.find(ne=>ne===W.value):W.checked=M===W.value||!!M)}):P.refs.forEach(W=>W.checked=W.value===M):ho(P.ref)?P.ref.value="":(P.ref.value=M,P.ref.type||c.state.next({name:y,values:Fe(o)})))}(x.shouldDirty||x.shouldTouch)&&D(y,M,x.shouldTouch,x.shouldDirty,!0),x.shouldValidate&&z(y)},ce=(y,T,x)=>{for(const V in T){if(!T.hasOwnProperty(V))return;const M=T[V],P=y+"."+V,W=L(n,P);(a.array.has(y)||Ne(M)||W&&!W._f)&&!pr(M)?ce(P,M,x):ue(P,M,x)}},ve=(y,T,x={})=>{const V=L(n,y),M=a.array.has(y),P=Fe(T);Ee(o,y,P),M?(c.array.next({name:y,values:Fe(o)}),(p.isDirty||p.dirtyFields||h.isDirty||h.dirtyFields)&&x.shouldDirty&&c.state.next({name:y,dirtyFields:Ar(i,o),isDirty:Z(y,P)})):V&&!V._f&&!Ye(P)?ce(y,P,x):ue(y,P,x),ja(y,a)&&c.state.next(X(I({},r),{name:y})),c.state.next({name:s.mount?y:void 0,values:Fe(o)})},ye=y=>F(null,null,function*(){s.mount=!0;const T=y.target;let x=T.name,V=!0;const M=L(n,x),P=G=>{V=Number.isNaN(G)||pr(G)&&isNaN(G.getTime())||Dt(G,L(o,x,G))},W=Ha(e.mode),ne=Ha(e.reValidateMode);if(M){let G,we;const We=T.type?Ba(M._f):Ta(y),J=y.type===Dn.BLUR||y.type===Dn.FOCUS_OUT,se=!Yd(M._f)&&!e.resolver&&!L(r.errors,x)&&!M._f.deps||Qd(J,L(r.touchedFields,x),r.isSubmitted,ne,W),j=ja(x,a,J);Ee(o,x,We),J?(!T||!T.readOnly)&&(M._f.onBlur&&M._f.onBlur(y),l&&l(0)):M._f.onChange&&M._f.onChange(y);const ge=D(x,We,J),Ge=!et(ge)||j;if(!J&&c.state.next({name:x,type:y.type,values:Fe(o)}),se)return(p.isValid||h.isValid)&&(e.mode==="onBlur"?J&&f():J||f()),Ge&&c.state.next(I({name:x},j?{}:ge));if(!J&&j&&c.state.next(I({},r)),e.resolver){const{errors:Me}=yield R([x]);if(P(We),V){const pe=za(r.errors,n,x),q=za(Me,n,pe.name||x);G=q.error,x=q.name,we=et(Me)}}else m([x],!0),G=(yield Ga(M,a.disabled,o,g,e.shouldUseNativeValidation))[x],m([x]),P(We),V&&(G?we=!1:(p.isValid||h.isValid)&&(we=yield me(n,!0)));V&&(M._f.deps&&(!Array.isArray(M._f.deps)||M._f.deps.length>0)&&z(M._f.deps),N(x,we,G,ge))}}),ee=(y,T)=>{if(L(r.errors,T)&&y.focus)return y.focus(),1},z=(x,...V)=>F(null,[x,...V],function*(y,T={}){let M,P;const W=sn(y);if(e.resolver){const ne=yield fe(Re(y)?y:W);M=et(ne),P=y?!W.some(G=>L(ne,G)):M}else y?(P=(yield Promise.all(W.map(ne=>F(null,null,function*(){const G=L(n,ne);return yield me(G&&G._f?{[ne]:G}:G)})))).every(Boolean),!(!P&&!r.isValid)&&f()):P=M=yield me(n);return c.state.next(X(I(I({},!nt(y)||(p.isValid||h.isValid)&&M!==r.isValid?{}:{name:y}),e.resolver||!y?{isValid:M}:{}),{errors:r.errors})),T.shouldFocus&&!P&&ln(n,ee,y?W:a.mount),P}),U=(y,T)=>{let x=I({},s.mount?o:i);return T&&(x=Na(T.dirtyFields?r.dirtyFields:r.touchedFields,x)),Re(y)?x:nt(y)?L(x,y):y.map(V=>L(x,V))},Y=(y,T)=>({invalid:!!L((T||r).errors,y),isDirty:!!L((T||r).dirtyFields,y),error:L((T||r).errors,y),isValidating:!!L(r.validatingFields,y),isTouched:!!L((T||r).touchedFields,y)}),te=y=>{y&&sn(y).forEach(T=>De(r.errors,T)),c.state.next({errors:y?r.errors:{}})},Te=(y,T,x)=>{const V=(L(n,y,{_f:{}})._f||{}).ref,we=L(r.errors,y)||{},{ref:P,message:W,type:ne}=we,G=mr(we,["ref","message","type"]);Ee(r.errors,y,X(I(I({},G),T),{ref:V})),c.state.next({name:y,errors:r.errors,isValid:!1}),x&&x.shouldFocus&&V&&V.focus&&V.focus()},re=(y,T)=>pt(y)?c.state.subscribe({next:x=>"values"in x&&y(H(void 0,T),x)}):H(y,T,!0),$=y=>c.state.subscribe({next:T=>{Xd(y.name,T.name,y.exact)&&Jd(T,y.formState||p,er,y.reRenderRoot)&&y.callback(X(I(I({values:I({},o)},r),T),{defaultValues:i}))}}).unsubscribe,Q=y=>(s.mount=!0,h=I(I({},h),y.formState),$(X(I({},y),{formState:h}))),Ke=(y,T={})=>{for(const x of y?sn(y):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:Z()}:{})),!T.keepIsValid&&f()},Je=({disabled:y,name:T})=>{(rt(y)&&s.mount||y||a.disabled.has(T))&&(y?a.disabled.add(T):a.disabled.delete(T))},_t=(y,T={})=>{let x=L(n,y);const V=rt(T.disabled)||rt(e.disabled);return Ee(n,y,X(I({},x||{}),{_f:I(X(I({},x&&x._f?x._f:{ref:{name:y}}),{name:y,mount:!0}),T)})),a.mount.add(y),x?Je({disabled:rt(T.disabled)?T.disabled:e.disabled,name:y}):O(y,!0,T.value),X(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:y,onChange:ye,onBlur:ye,ref:M=>{if(M){_t(y,T),x=L(n,y);const P=Re(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,W=jd(P),ne=x._f.refs||[];if(W?ne.find(G=>G===P):P===x._f.ref)return;Ee(n,y,{_f:I(I({},x._f),W?{refs:[...ne.filter(_o),P,...Array.isArray(L(i,y))?[{}]:[]],ref:{type:P.type,name:y}}:{ref:P})}),O(y,!1,void 0,P)}else x=L(n,y,{}),x._f&&(x._f.mount=!1),(e.shouldUnregister||T.shouldUnregister)&&!(Ia(a.array,y)&&s.action)&&a.unMount.add(y)}})},it=()=>e.shouldFocusError&&ln(n,ee,a.mount),zt=y=>{rt(y)&&(c.state.next({disabled:y}),ln(n,(T,x)=>{const V=L(n,x);V&&(T.disabled=V._f.disabled||y,Array.isArray(V._f.refs)&&V._f.refs.forEach(M=>{M.disabled=V._f.disabled||y}))},0,!1))},mt=(y,T)=>x=>F(null,null,function*(){let V;x&&(x.preventDefault&&x.preventDefault(),x.persist&&x.persist());let M=Fe(o);if(c.state.next({isSubmitting:!0}),e.resolver){const{errors:P,values:W}=yield R();r.errors=P,M=Fe(W)}else yield me(n);if(a.disabled.size)for(const P of a.disabled)De(M,P);if(De(r.errors,"root"),et(r.errors)){c.state.next({errors:{}});try{yield y(M,x)}catch(P){V=P}}else T&&(yield T(I({},r.errors),x)),it(),setTimeout(it);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:et(r.errors)&&!V,submitCount:r.submitCount+1,errors:r.errors}),V)throw V}),Qt=(y,T={})=>{L(n,y)&&(Re(T.defaultValue)?ve(y,Fe(L(i,y))):(ve(y,T.defaultValue),Ee(i,y,Fe(T.defaultValue))),T.keepTouched||De(r.touchedFields,y),T.keepDirty||(De(r.dirtyFields,y),r.isDirty=T.defaultValue?Z(y,Fe(L(i,y))):Z()),T.keepError||(De(r.errors,y),p.isValid&&f()),c.state.next(I({},r)))},Kt=(y,T={})=>{const x=y?Fe(y):i,V=Fe(x),M=et(y),P=M?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 ne of Array.from(W))L(r.dirtyFields,ne)?Ee(P,ne,L(o,ne)):ve(ne,L(P,ne))}else{if(so&&Re(y))for(const W of a.mount){const ne=L(n,W);if(ne&&ne._f){const G=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(Mn(G)){const we=G.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=!p.isValid||!!T.keepIsValid||!!T.keepDirtyValues,s.watch=!!e.shouldUnregister,c.state.next({submitCount:T.keepSubmitCount?r.submitCount:0,isDirty:M?!1:T.keepDirty?r.isDirty:!!(T.keepDefaultValues&&!Dt(y,i)),isSubmitted:T.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:M?{}:T.keepDirtyValues?T.keepDefaultValues&&o?Ar(i,o):r.dirtyFields:T.keepDefaultValues&&y?Ar(i,y):T.keepDirty?r.dirtyFields:{},touchedFields:T.keepTouched?r.touchedFields:{},errors:T.keepErrors?r.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Et=(y,T)=>Kt(pt(y)?y(o):y,T),Gt=(y,T={})=>{const x=L(n,y),V=x&&x._f;if(V){const M=V.refs?V.refs[0]:V.ref;M.focus&&(M.focus(),T.shouldSelect&&pt(M.select)&&M.select())}},er=y=>{r=I(I({},r),y)},lt={control:{register:_t,unregister:Ke,getFieldState:Y,handleSubmit:mt,setError:Te,_subscribe:$,_runSchema:R,_focusError:it,_getWatch:H,_getDirty:Z,_setValid:f,_setFieldArray:C,_setDisabledField:Je,_setErrors:b,_getFieldArray:K,_reset:Kt,_resetDefaultValues:()=>pt(e.defaultValues)&&e.defaultValues().then(y=>{Et(y,e.resetOptions),c.state.next({isLoading:!1})}),_removeUnmounted:le,_disableForm:zt,_subjects:c,_proxyFormState:p,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(y){s=y},get _defaultValues(){return i},get _names(){return a},set _names(y){a=y},get _formState(){return r},get _options(){return e},set _options(y){e=I(I({},e),y)}},subscribe:Q,trigger:z,register:_t,handleSubmit:mt,watch:re,setValue:ve,getValues:U,reset:Et,resetField:Qt,clearErrors:te,unregister:Ke,setError:Te,setFocus:Gt,getFieldState:Y};return X(I({},lt),{formControl:lt})}function iu(t={}){const e=de.useRef(void 0),r=de.useRef(void 0),[n,i]=de.useState({isDirty:!1,isValidating:!1,isLoading:pt(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:pt(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current=X(I({},t.formControl),{formState:n}),t.defaultValues&&!pt(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const s=nu(t),{formControl:a}=s,l=mr(s,["formControl"]);e.current=X(I({},l),{formState:n})}const o=e.current.control;return o._options=t,uo(()=>{const a=o._subscribe({formState:o._proxyFormState,callback:()=>i(I({},o._formState)),reRenderRoot:!0});return i(l=>X(I({},l),{isReady:!0})),o._formState.isReady=!0,a},[o]),de.useEffect(()=>o._disableForm(t.disabled),[o,t.disabled]),de.useEffect(()=>{t.mode&&(o._options.mode=t.mode),t.reValidateMode&&(o._options.reValidateMode=t.reValidateMode)},[o,t.mode,t.reValidateMode]),de.useEffect(()=>{t.errors&&(o._setErrors(t.errors),o._focusError())},[o,t.errors]),de.useEffect(()=>{t.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,t.shouldUnregister]),de.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==n.isDirty&&o._subjects.state.next({isDirty:a})}},[o,n.isDirty]),de.useEffect(()=>{t.values&&!Dt(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]),de.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=Aa(n,o),e.current}const Rr=(t,e)=>{const r={};return t.forEach((n,i)=>{if(n.type===ma.NOT_EMPTY&&(r.required=o=>e&&Zc(o)?n.message:!0),n.type===ma.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},ou=({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(Be,I({},e)):u(Be,{imageId:"chevronDown"})}),su=({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 p,h,c,g;if(!l&&!d)return(p=ae(e.layout.backgroundColor))!=null?p:"transparent";if(!l&&d)return(h=ae(e.layoutSelected.backgroundColor))!=null?h:"transparent";if(l&&!d)return(c=ae(e.layout.highlightColor))!=null?c:"#F4F4F4";if(l&&d)return(g=ae(e.layoutSelected.highlightColor))!=null?g:"#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(xe,X(I({},e.layout.title),{text:e.label})),u("div",{style:{display:"flex",flexShrink:0},children:u(Be,I({},s))})]},e.value)},qa=({name:t,options:e,isMulti:r=!1,isClearable:n=!1,value:i,onChange:o,placeholder:s,closeMenuOnSelect:a=!0,onBlur:l,parentElementRef:d,controlLayout:p,pickerLayout:h})=>{var H,K,ue,ce,ve,ye,ee,z;const[c,g]=Ue(!1),[w,f]=Ue(i),[m,C]=Ue("down"),[S,b]=Ue(null),O=at(null),D=at(null);Jt(()=>{var re,$,Q;if(!c)return;const U=(re=O.current)==null?void 0:re.getBoundingClientRect(),Y=($=D.current)==null?void 0:$.getBoundingClientRect(),te=(Q=d.current)==null?void 0:Q.getBoundingClientRect();if(!U||!Y||!te)return;const Te=U.bottom+Y.height<te.bottom;C(Te?"down":"up")},[c]),st(()=>{o(w)},[w]);const N=U=>Y=>{var te;Y.stopPropagation(),(Y.type==="touchend"||((te=Y.nativeEvent)==null?void 0:te.pointerType)==="touch")&&b(null),a&&g(!1),f(Te=>r?Te.some($=>$.value===U.value)?Te.filter($=>$.value!==U.value):[...Te,U]:[U])},R=()=>{l&&l(),g(!1)},fe=U=>Y=>{Y.stopPropagation(),f(te=>te.filter(Te=>Te.value!==U.value))},me=U=>{U.stopPropagation(),f([])},le=(H=ae(p==null?void 0:p.borderColor))!=null?H:"#D9D9D9",Z=(K=ae(p==null?void 0:p.highlightBorderColor))!=null?K:"#7E57C5";return u("div",{"data-ui":"gui-custom-select",ref:O,children:u("div",{"data-ui":"gui-select-name-"+t,style:{backgroundColor:ae(p==null?void 0:p.backgroundColor),borderStyle:"solid",borderColor:c?Z:le,borderWidth:(ue=p==null?void 0:p.borderWidth)!=null?ue:1,borderRadius:(ce=p==null?void 0:p.cornerRadius)!=null?ce:8,minHeight:"41px",position:"relative",zIndex:"auto",padding:"8px 11px 8px 8px",cursor:"pointer",display:"flex",alignItems:"center",gap:10},tabIndex:0,onBlur:R,onClick:()=>g(!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:[!w.length&&u("span",{style:{fontSize:13,color:"#8C8C8C"},children:s}),w.map(U=>{var Y,te,Te,re,$;if(r){const Q=p==null?void 0:p.chip;return u("div",{style:{padding:"0px 5px",display:"flex",gap:8,backgroundColor:(Y=ae(Q==null?void 0:Q.backgroundColor))!=null?Y:"#F2F2F2",borderRadius:(te=Q==null?void 0:Q.cornerRadius)!=null?te:4,userSelect:"none",alignItems:"center"},children:[u(xe,X(I({},Q==null?void 0:Q.title),{fontSize:(re=(Te=Q==null?void 0:Q.title)==null?void 0:Te.fontSize)!=null?re:13,text:U.label})),u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px"},onClick:fe(U),children:Q!=null&&Q.removeImage?u(Be,I({},Q.removeImage)):u(Be,{imageId:"cross"})})]},U.value)}else{const Q=p==null?void 0:p.title;return u("div",{style:{display:"flex",userSelect:"none"},children:u(xe,X(I({},Q),{fontSize:($=Q==null?void 0:Q.fontSize)!=null?$:13,text:U.label}))},U.value)}})]}),n&&w.length?u("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",width:"16px",height:"16px",zIndex:1},onClick:me,children:p!=null&&p.clearButton?u(Be,I({},p.clearButton)):u(Be,{imageId:"cross"})}):null,n?u("div",{style:{width:"1px",alignSelf:"stretch",backgroundColor:"#D9D9D9"}}):null,u(ou,{isOpen:c,image:p==null?void 0:p.expandButton}),c&&u("div",{"data-ui":"gui-custom-select-dropdown-menu",ref:D,style:X(I({position:"absolute"},m==="down"?{top:"calc(100% + 1px)"}:{bottom:"calc(100% + 1px)"}),{left:0,border:"1px solid #e8e8e8",width:"100%",backgroundColor:(ve=ae(h==null?void 0:h.backgroundColor))!=null?ve:"#ffffff",borderRadius:(ye=h==null?void 0:h.cornerRadius)!=null?ye:8,borderStyle:"solid",borderColor:(ee=ae(h==null?void 0:h.borderColor))!=null?ee:"#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 Y=w.some(te=>te.value===U.value);return u(su,{isChosen:Y,option:U,onOptionClickCallback:N,isHovered:S===U.value,onHover:()=>b(U.value),onHoverEnd:()=>b(null)},U.label)})})]})})},au=({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(xe,X(I({},e.title),{text:r.text,htmlFor:o})),u(Ra,{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(qa,{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})}})]})},lu=({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(xe,X(I({},e.title),{text:r.text,htmlFor:o})),u(Ra,{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(qa,{name:o,options:i,placeholder:r.placeholder,closeMenuOnSelect:!1,value:a,onChange:l=>{const d=l.map(p=>p.value);s.onChange(d)},parentElementRef:n,isMulti:!0,isClearable:!0,controlLayout:e.dropdownControl,pickerLayout:e.dropdownPicker})}})]})},Za=()=>{const[t,e]=Ue(!1);return st(()=>{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},cu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Za(),l=String(r.id),p=i(l)===String(t.id),h=e.option,c=e.optionSelected,g={backgroundColor:ae(c.backgroundColor),borderRadius:c.cornerRadius},w={backgroundColor:ae(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"},p?g:w),children:[u("div",{style:I({display:"flex",alignItems:"center",alignContent:"center"},f),children:u(Be,I({},p?c.image:h.image))}),u(xe,X(I({},p?c.title:h.title),{text:t.text})),u("input",X(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)},du=({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(xe,X(I({},t.title),{text:n.text}))}),n.options.map(i=>u(cu,{register:e,watch:r,layout:t,option:i,dataSourceQuestion:n},i.id))]})}),uu=({option:t,layout:e,dataSourceQuestion:r,register:n,watch:i})=>{const[o,s]=Ue(!1),a=Za(),l=String(r.id),p=i(l)===String(t.id),h=e.option,c=e.optionSelected,g={borderRadius:h.cornerRadius,background:ae(h.backgroundColor),borderColor:ae(h.borderColor),borderWidth:h.borderWidth},w={borderRadius:c.cornerRadius,background:ae(c.backgroundColor),borderColor:ae(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"},p?w:g),f),children:[u("input",X(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(xe,X(I({},p?c.title:h.title),{text:t.text}))]})},t.id)},fu=({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(xe,X(I({},t.title),{text:n.text}))}),u("div",{style:{display:"flex",justifyContent:"center",gap:5},children:n.options.map(i=>u(uu,{register:r,watch:e,layout:t,option:i,dataSourceQuestion:n},i.id))})]})}),hu=({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:ae(e)||"transparent",borderRadius:r,padding:"16px",boxSizing:"border-box",height:"auto"},n&&I(I({},ae(o)&&{borderColor:o,borderStyle:"solid"}),s&&{borderWidth:s}));return u("div",{style:a,children:[i&&u("span",{style:{color:ae(o),position:"absolute",left:"6px",top:"18px"},children:"*"}),t]})},pu=({validationErrorsTypes:t,title:e})=>t?u("div",{style:{width:"100%",fontSize:12},children:Object.entries(t).map(([r,n])=>u(xe,X(I({},e),{text:n}),r))}):null,_u=({layout:t,dataSourceQuestion:e,register:r})=>{var o,s,a,l,d,p,h,c,g,w,f,m,C,S,b,O;const n=String(e.id),i=D=>D?D===On.EMAIL?"email":D===On.FREE_TEXT?"text":D===On.NUMBER?"number":D===On.SECURE?"password":"text":"text";return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(xe,X(I({},t.title),{text:e.text,htmlFor:n})),u("input",X(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=ae((p=t==null?void 0:t.textField)==null?void 0:p.fontColor))!=null?h:"#000000",height:"42px",borderWidth:(g=(c=t==null?void 0:t.textField)==null?void 0:c.borderWidth)!=null?g:1,borderColor:(f=ae((w=t==null?void 0:t.textField)==null?void 0:w.borderColor))!=null?f:"#d9d9d9",borderStyle:"solid",borderRadius:(C=(m=t==null?void 0:t.textField)==null?void 0:m.cornerRadius)!=null?C:8,padding:"11px",boxSizing:"border-box",backgroundColor:(b=ae((S=t==null?void 0:t.textField)==null?void 0:S.backgroundColor))!=null?b:"#FFFFFF",outlineColor:nn},placeholder:(O=e.placeholder)!=null?O:"","data-id":n}))]})},mu=({layout:t,dataSourceQuestion:e,register:r})=>{var i,o,s,a,l,d,p,h,c,g,w,f,m;const n=String(e.id);return u("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[u(xe,X(I({},t.title),{text:e.text,htmlFor:n})),u("textarea",X(I({},r(n,{required:!!e.required,validate:Rr(e.validators,!!e.required)})),{id:n,placeholder:(i=e.placeholder)!=null?i:"",onInput:C=>{C.currentTarget.style.height="auto",C.currentTarget.style.height=`${C.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=ae((a=t==null?void 0:t.textField)==null?void 0:a.fontColor))!=null?l:"#000000",resize:"none",overflow:"hidden",height:"42px",minHeight:"42px",borderWidth:(p=(d=t==null?void 0:t.textField)==null?void 0:d.borderWidth)!=null?p:1,borderColor:(c=ae((h=t==null?void 0:t.textField)==null?void 0:h.borderColor))!=null?c:"#d9d9d9",borderStyle:"solid",borderRadius:(w=(g=t==null?void 0:t.textField)==null?void 0:g.cornerRadius)!=null?w:8,padding:"11px",boxSizing:"border-box",backgroundColor:(m=ae((f=t==null?void 0:t.textField)==null?void 0:f.backgroundColor))!=null?m:"#FFFFFF",outlineColor:nn}}))]})},jt=class jt extends be{constructor({errorCode:e,message:r,underlyingError:n,underlyingBaseError:i}){const o=be.getErrorKey(e,xn);super({errorCode:e,errorCodeKey:o,errorEnumName:jt.ERROR_ENUM_NAME,module:jt.MODULE,message:r,underlyingError:n,underlyingBaseError:i,domain:jt.ERROR_ENUM_NAME,shortDomainCode:jt.SHORT_CODE})}};jt.MODULE=An,jt.ERROR_ENUM_NAME="GuiModuleError",jt.SHORT_CODE="GM";let cn=jt;const gu=({header:t,title:e,buttons:r,footer:n,questions:i,dataSource:o,properties:s,backgroundColor:a})=>{const l=va(r),{perform:d}=hr(),p=s?Yc(o.questions,s):{},h=at(null),{register:c,handleSubmit:g,formState:{errors:w},reset:f,watch:m,control:C}=iu({criteriaMode:"all",defaultValues:p});return u(Xt,{header:t,footer:n,backgroundColor:a,children:u("form",{onSubmit:g(b=>{d(qc(b),l),f()}),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:ae(i.backgroundColor)||"transparent"},ref:h,children:[e&&u("div",{style:{lineHeight:"39.2px",width:"100%"},children:u(xe,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 le;const O=o.static,D=(Z,H)=>H.find(K=>{var ue;if((ue=K.questionIds)!=null&&ue.length)return K.questionIds.find(ce=>Z===ce)}),N=(Z,H)=>H.find(K=>!K.questionIds&&K.answerType===Z),R=O?D(String(b.id),i.itemTypes)||N(b.answerType,i.itemTypes):i.itemTypes.find(Z=>Z.answerType===b.answerType);if(!R){const Z=new cn({errorCode:xn.DECODING_FAILED,message:"The question template has not been found"});d(Z);return}const fe=R==null?void 0:R.displayType,me=b.id in w&&((le=w[b.id])==null?void 0:le.types);return u(ze,{children:[u(hu,{backgroundColor:R==null?void 0:R.backgroundColor,cornerRadius:R==null?void 0:R.cornerRadius,isError:!!me,isRequired:b.required,validationBorderColor:R==null?void 0:R.validationBorderColor,validationBorderWidth:R==null?void 0:R.validationBorderWidth,children:[fe===Or.TEXT_EXPANDABLE&&u(mu,{layout:R,dataSourceQuestion:b,register:c}),fe===Or.TEXT_SINGLE_LINE&&u(_u,{layout:R,dataSourceQuestion:b,register:c}),fe===Or.SELECTOR_OPTIONS&&u(du,{layout:R,dataSourceQuestion:b,watch:m,register:c}),fe===Or.SELECTOR_BUTTONS&&u(fu,{layout:R,dataSourceQuestion:b,watch:m,register:c}),fe===Or.SELECTOR_DROPDOWN&&u(au,{control:C,layout:R,dataSourceQuestion:b,parentElementRef:h}),fe===Or.MULTI_SELECTOR_DROPDOWN&&u(lu,{control:C,layout:R,dataSourceQuestion:b,parentElementRef:h})]}),me&&u(pu,{validationErrorsTypes:me,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,O)=>u(Rn,I({dataTestId:"question-button"},b),O))})]})})},wu={display:"none"},vu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",backgroundColor:"#7e57c5",cursor:"pointer"},yu={position:"relative",display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",alignContent:"center",margin:"0 auto",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},bu=({header:t,footer:e,buttons:r,backgroundColor:n,selectionLimit:i})=>{var p,h;const{perform:o}=hr(),s=at(null),a=typeof i=="number"&&(i===0||i>1),l=c=>F(null,null,function*(){var w;const g=Array.from((w=c.currentTarget.files)!=null?w:[]);if(g.length)try{const m=(yield Promise.allSettled(g.map(C=>F(null,null,function*(){return{content:yield wa(C),metadata:{name:C.name,type:C.type,size:C.size,lastModified:C.lastModified}}})))).filter(C=>C.status==="fulfilled").map(C=>C.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(Xt,{header:t,footer:e,backgroundColor:n,children:u(ze,{children:u("div",{style:X(I({},yu),{justifyContent:"center"}),children:[u("input",X(I({style:wu,ref:s,type:"file",accept:"image/*"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:vu,onClick:d,children:u(Be,{imageId:(h=(p=r==null?void 0:r[0])==null?void 0:p.image)==null?void 0:h.imageId})})]})})})},Su={display:"none"},Cu={display:"flex",alignItems:"center",justifyContent:"center",width:"250px",height:"50px",border:0,borderRadius:"16px",background:"#7e57c5",cursor:"pointer"},Eu={position:"relative",display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",minHeight:"100%",overflow:"auto"},Tu=({header:t,footer:e,backgroundColor:r,buttons:n,selectionLimit:i})=>{var p,h;const{perform:o}=hr(),s=at(null),a=typeof i=="number"&&(i===0||i>1),l=c=>F(null,null,function*(){var w;const g=Array.from((w=c.currentTarget.files)!=null?w:[]);if(g.length)try{const m=(yield Promise.allSettled(g.map(C=>F(null,null,function*(){return{content:yield wa(C),metadata:{name:C.name,type:C.type,size:C.size,lastModified:C.lastModified}}})))).filter(C=>C.status==="fulfilled").map(C=>C.value);o({cancel:!1,permissionDenied:!1,files:m})}catch(f){console.error("Error: ",f)}}),d=()=>F(null,null,function*(){var c;(c=s.current)==null||c.showPicker()});return st(()=>{F(null,null,function*(){if(Qe.isDesktop)return;const c=yield Jc();(c==="denied"||c==="error")&&o({cancel:!1,permissionDenied:!0,files:[]})})},[]),u(Xt,{header:t,footer:e,backgroundColor:r,children:u(ze,{children:u("div",{style:X(I({},Eu),{justifyContent:"center"}),children:[u("input",X(I({style:Su,ref:s,type:"file",accept:"image/*",capture:"user"},a?{multiple:!0}:{}),{onInput:l})),u("button",{style:Cu,onClick:d,children:u(Be,{imageId:(h=(p=n==null?void 0:n[0])==null?void 0:p.image)==null?void 0:h.imageId})})]})})})};function Iu(){const t=at(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 go=()=>F(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"}}),Ou=()=>F(null,null,function*(){try{return yield navigator.permissions.query({name:"geolocation"})}catch(t){return null}}),Fn=t=>F(null,null,function*(){return new Promise(e=>{if(!navigator.geolocation)return e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}});navigator.geolocation.getCurrentPosition(r=>e({location:{locationState:"ok",lat:r.coords.latitude,lon:r.coords.longitude,error:null}}),r=>{r.code===1?e({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}}):e({location:{locationState:"location_request_failed",lat:null,lon:null,error:"Requesting location failed"}})},t)})}),Au={height:"100%",fontFamily:"sans-serif",display:"flex",flexDirection:"column",gap:"15px"},xu={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"},Ru={position:"fixed",inset:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",background:"rgba(0,0,0,0.2)",zIndex:1e3,pointerEvents:"auto",cursor:"default"},ku={width:"100%",height:"auto",marginBottom:"32px",aspectRatio:1.61},Nu={marginBottom:20,lineHeight:"39.2px",width:"100%"},Du={lineHeight:"28px",fontWeight:"400",width:"100%"},Mu={padding:"32px 24px 0 24px",border:"1px solid rgba(0, 0, 0, 0.06)",width:"min(400px, calc(100vw - 32px))",gridTemplateRows:"auto 1fr"},Pu={marginBottom:"10px",fontWeight:500,display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,overflow:"hidden",textOverflow:"ellipsis",lineClamp:2},Fu={marginBottom:"84px",fontWeight:400},Uu={height:"100%",overflow:"scroll",maxHeight:"calc(100dvh - 190px)"},Lu={position:"absolute",bottom:0,left:0,padding:"24px",width:"100%"},Vu=({title:t,header:e,footer:r,image:n,description:i,buttons:o,backgroundColor:s,popups:a})=>{const l=va(o),{perform:d}=hr(),{setIsProcessingCallback:p}=Kc(),{ref:h,isPopoverOpen:c,openPopover:g,closePopover:w}=Iu(),f={enableHighAccuracy:!0,timeout:15e3,maximumAge:6e4},m=a==null?void 0:a.find(O=>O.reason==="system_restricted");Jt(()=>{Qe.isSafari||p==null||p(!0)},[]),st(()=>{if(Qe.isSafari)return;let O=!0;return F(null,null,function*(){if((yield go())!=="granted"){p==null||p(!1);return}const N=yield Fn(f);O&&d(N,l)}),()=>{Qe.isSafari||(O=!1)}},[]),st(()=>{if(Qe.isSafari)return;let O=!0,D=null;return F(null,null,function*(){const N=yield Ou();N&&(D=N,N.onchange=()=>F(null,null,function*(){if(N.state==="denied"&&(p==null||p(!0),d({location:{locationState:"application_location_restricted",lat:null,lon:null,error:"Application location services restricted or unavailable"}},l)),N.state==="granted"){p==null||p(!0);const R=yield Fn(f);if(!O)return;d(R,l)}}))}),()=>{Qe.isSafari||(O=!1,D&&(D.onchange=null))}},[]);const C=O=>F(null,null,function*(){O.preventDefault();const D=yield go();if(D==="denied"){g();return}D==="prompt"&&(yield Fn())}),S=O=>F(null,null,function*(){if(O.preventDefault(),(yield go())==="denied"){g();return}p==null||p(!0);const N=yield Fn(f);d(N,l)}),b=O=>{O.preventDefault(),w()};return u(Xt,{header:e,footer:r,backgroundColor:s,children:[u("div",{style:Au,children:[u("div",{style:xu,children:[n&&u("div",{style:ku,children:u(Be,I({},n))}),t&&u("div",{style:Nu,children:u(xe,I({},t))}),i&&u("div",{style:Du,children:u(kn,I({},i))})]}),!!(o!=null&&o.length)&&u("div",{style:{display:"flex",flexDirection:"column"},children:o.map((O,D)=>u("div",{style:{padding:"5px"},children:u(Rn,I(I({dataTestId:"question-button"},O),O.type==="FORM"?{onClick:Qe.isSafari?S:C}:{}))},D))})]}),m&&u("div",{ref:h,popover:"manual",role:"dialog","aria-modal":"true",style:X(I({},Mu),{borderRadius:m.cornerRadius||"27px",backgroundColor:m.backgroundColor||"#ffffff"}),children:[u("div",{style:Pu,children:u(xe,I({},I({fontSize:"24px"},m.title)))}),u("div",{style:Fu,children:u("div",{style:Uu,children:u(xe,I({},I({fontSize:"17px"},m.message)))})}),m.actionButton1&&u("div",{style:Lu,children:u(Rn,I(I({dataTestId:"question-button"},m.actionButton1),m.actionButton1.type==="FORM"?{onClick:b}:{}))})]}),c&&u("div",{style:Ru,onPointerDown:O=>{O.preventDefault(),O.stopPropagation(),w()}})]})},Ya=t=>{const{templateId:e,templateLayout:r,dataSource:n,properties:i}=t,{perform:o}=hr();if(!e||!r)return u(Ca,{});const s=i!=null&&i.length?JSON.stringify(i):"default-key";if(e===ft.STATUS)return u(xd,{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===ft.INFO)return u(Nd,{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===ft.GEOLOCATION)return u(Vu,{header:r.header,footer:r.footer,image:r.image,title:r.title,description:r.description,buttons:r.buttons,backgroundColor:r.backgroundColor,popups:r.popups});if(e===ft.PROGRESS)return u(Ca,{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===ft.INFO_DETAILS)return u(Ud,{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===ft.CAMERA)return u(Tu,{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===ft.GALLERY)return u(bu,{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===ft.QUESTIONS)return u(gu,{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===ft.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 wo=!1;const Ja=({children:t})=>u("div",{part:"gui-idv",id:"gui-idv-web-c",style:{backgroundColor:"white",height:"100%",width:"100%"},children:t}),$u=({isProcessing:t,moduleProps:e,perform:r})=>{const{templateId:n,templateLayout:i,dataSource:o,properties:s}=e,a=(l,d)=>{r&&r(l,d)};return n===ft.QUESTIONS?u(_a,{perform:a,children:u(Ja,{children:u(Ya,{properties:s,dataSource:o,templateId:n,templateLayout:i})})}):u(_a,{perform:a,setIsProcessingCallback:t,children:u(Ja,{children:u(Ya,I(I({templateId:n,templateLayout:i},e.backgroundColor?{backgroundColor:e.backgroundColor}:{}),typeof e.selectionLimit=="number"?{selectionLimit:e.selectionLimit}:{}))})})},dn=class dn extends ha{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)}Cr(u($u,{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 wo}static initialize(e){wo=!0}static deinitialize(){wo=!1}};dn.displayName=An,dn.getSupportedTemplates=()=>Object.values(ft),dn.getIdentifier=()=>An;let Un=dn;pa(An,Un);const Bu=(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:Yt.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:Yt.DECODING_FAILED});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>F(null,null,function*(){const{host:i,isSecure:o,port:s}=e().startConfig;if(i&&n&&(yield ut.connect({host:i,isSecure:o,port:s,token:n})),!i||!n||!ut.isConnected()){const a=new ur({errorCode:Yt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>F(null,null,function*(){var g;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 w=o.apiKey,f=dr.getAuthTokenLs(),m=f&&((g=f[w])==null?void 0:g.sessionId);if(!m)return{};m&&(d=m)}else{if(!e().sessionRestoreMode)return{};const w=e().getCurrentSessionDataLs();if(!w)return{};const f=w.sessionId,m=w.workflowId;if(!f||m!==a)return{};d=f}const p=yield e().fetchService.continueSession(d,n),h=e()._checkIsSessionDataValid(p.data);if(!da(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({workflow:h.workflow,properties:h.properties,nextStepId:c,locale:h.locale}),e().listener({eventType:Hr.MESSAGE,message:l,module:"IDV"}),h}),initialize(n){return F(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=[Un];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 F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(f=>!(n!=null&&n[f]));if(o.length>0)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=eo(n.baseUrl);if(!s)return{error:new $e({errorCode:Le.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=dr.getAuthTokenLs(),p=d&&d[n.apiKey]&&d[n.apiKey].authToken?d[n.apiKey]:null,h=p&&p.authToken,c=yield e().connectByApiKey(l);if(c.error)return{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:c.error})};h&&c.authToken!==h&&dr.removeAuthTokenLs(n.apiKey);const g=p&&c.authToken===p.authToken&&p,w=g?g.tokenExpiresAt:Date.now()+a*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,c.authToken,w),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:n.apiKey,port:s.port}),c})},configureWithUrl(n){return F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const i=Bc(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const o=yield e().connectByUrl(n);if(o.error)return{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=eo(n);if(!s)return{error:new $e({errorCode:Le.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 F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(d=>!(n!=null&&n[d]));if(o.length>0)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=eo(n.baseUrl);if(!s)return{error:new $e({errorCode:Le.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 $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:l.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),l)})},getWorkflows(){return F(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new kt({errorCode:wt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new kt({errorCode:wt.CONNECTION_ISSUE})};const i=yield e().fetchService.listWorkflows(n);if(i.code!==0){const o=i.code===4?vt.HTTP_ISSUE:vt.PROVIDER_ERROR,s=new En({errorCode:o});return{error:new kt({errorCode:wt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return F(this,null,function*(){var w;if(!e()._isInitialized)return{error:new kt({errorCode:wt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new kt({errorCode:wt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new kt({errorCode:wt.SCENARIO_IN_PROGRESS})};const i=yield e().fetchService.getWorkflow(n),o=Yi(i.data),s=((w=o.client)==null?void 0:w.steps)&&o.client.steps.some(f=>f.templateId===Si);let a=null;if(i.code===4&&(a=vt.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=vt.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=vt.DECODING_FAILED),i.code===0&&i.data.id&&o===null&&(a=vt.DECODING_FAILED),s||(a=vt.DECODING_FAILED),a!==null){const f=new En({errorCode:a});return{error:new kt({errorCode:wt.INTERNAL_ISSUE,underlyingBaseError:f})}}const l=e().externalModules,d=o.steps,{isAllTemplatesSupported:p,unsupportedSteps:h}=Mc(l,d);p||console.log("IDV:: Warning. Unsupported steps found: ",h);const c=e().workflowId;c&&n!==c&&l.forEach(f=>{f.component.deinitialize()});const g=e().modulesConfig;return l.forEach(f=>{f.component.isReady()||f.component.initialize(g)}),e().setLayout(o.client.layout),e().setProcessingTemplate(o.client.steps),e().setWorkflowId(n),{workflow:o}})},startNewSession(a){return F(this,arguments,function*({completion:n,locale:i,metadata:o,location:s}){if(!e()._isInitialized)return{error:new Ze({errorCode:We.INITIALIZATION_REQUIRED})};const l=e().workflowId;if(!l)return{error:new Ze({errorCode:We.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ze({errorCode:We.ALREADY_STARTED})};const d=O=>{ut&&ut.close(),n(O)};e().setWorkflowSessionCompletion(d);const p=e().startConfig,h="apiKey"in p&&typeof p.apiKey=="string",c=e().apiKeyAuthTokenCollection;if(h&&"tokenExpiresAt"in c){const O=c.tokenExpiresAt&&typeof c.tokenExpiresAt=="number"?c.tokenExpiresAt:0;if(Date.now()>O){const N=yield e().connectByApiKey({apiKey:p.apiKey,host:p.host,deviceDescriptor:{ttl:e()._ttl}});if(dr.removeAuthTokenLs(p.apiKey),N.error)return{error:new ur({errorCode:Yt.CONNECTION_ISSUE,underlyingBaseError:N.error})};if(N&&"authToken"in N){const R=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(p.apiKey,N.authToken,R)}}}e().setIsProcessing(!0);const g=yield e().fetchService.getConnectionToken(!1);if(!g||typeof g!="string"){const O=new ur({errorCode:Yt.TOKEN_ERROR});return{error:new Ze({errorCode:We.START_SESSION_FAILED,underlyingBaseError:O})}}e().setServiceSessionToken(g);const w=yield e()._runSocketConnection(g);if(w.error)return{error:w.error};const f=e()._sessionIdFromUrl,m=yield e()._continueSession(i,f);if("sessionId"in m)return{results:m};if("error"in m)return{error:m.error};if("id"in m)return{};const C=yield e().fetchService.startSession({workflowId:l,locale:i,metadata:o,location:s}),S=e()._checkIsSessionDataValid(C.data);if(!da(S))return{error:S.error};h?e()._checkAndSetApiTokenToLs(S.id):e().setCurrentSessionDataLsAndStore({sessionId:S.id,workflowId:l});const b=S.currentStep;return e().setCurrentStepId(b),e().setNextStep({workflow:S.workflow,properties:S.properties,nextStepId:b,locale:S.locale}),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 F(this,null,function*(){if(!e()._isInitialized)return{error:new Cn({errorCode:jr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Cn({errorCode:jr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}});class Hu{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 F(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 F(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return F(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 F(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 F(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(Hc()),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 F(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 F(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 p=this._getErrorTextFromError(d);return a.what=p,{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 F(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 p=yield this._getResponseTextFromBadResponse(a);return p&&(l.what=p),{code:5,data:l}}let d;try{if(d=yield a.json(),!(d!=null&&d.id))return{code:6,data:l}}catch(p){const h=this._getErrorTextFromError(p);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 F(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 p=yield this._getResponseTextFromBadResponse(a);return p&&(l.what=p),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(p){const h=this._getErrorTextFromError(p);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 F(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,i){return F(this,null,function*(){var p;const o="POST",s=I({stage:"0"},i&&{type:i}),l=new URLSearchParams(s).toString(),d=`${this._origin}/api/sessions/${(p=this._session)==null?void 0:p.id}/step/${r}?${l}`;try{const h=yield fetch(d,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:o}),c={httpCode:h.status,method:o,url:d};if(!h.ok){const w=yield this._getResponseTextFromBadResponse(h);return w&&(c.what=w),{code:5,data:c}}let g;try{if(g=yield h.json(),!g)return{code:6,data:c}}catch(w){const f=this._getErrorTextFromError(w);return c.what=f,{code:6,data:c}}return{code:0,data:g}}catch(h){const c=this._getErrorTextFromError(h);return{code:4,data:{httpCode:0,method:o,url:d,what:c}}}})}_fetchSessionLogs(e,r){return F(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 p=this._getErrorTextFromError(d);return a.what=p,{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 F(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 F(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 F(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 F(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(o){return F(this,arguments,function*({workflowId:e,locale:r,metadata:n,location:i}){const s={locale:r};Fc(n)&&(s.metadata=n),i&&(s.location=i);const a=yield this.getConnectionToken(!1),l=this._getAuthorizationHeaderFromConnectionToken(a),d=yield this._fetchSessionByWorkflowId(l,e,s);return d.code===0&&(this._session=d.data,this._locale=r),d})}continueSession(e,r){return F(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 F(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 F(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,n){return F(this,null,function*(){const i=yield this.getConnectionToken(!0),o=this._getAuthorizationHeaderFromConnectionToken(i);return yield this._fetchStep(o,e,r,n)})}getSessionState(){return F(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 F(this,null,function*(){const r=yield this.getConnectionToken(!0),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(n,e)})}}const Wu=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>F(null,null,function*(){const n=new Hu;t({fetchService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return F(this,null,function*(){const o=yield e().fetchService.connectByApiKey(n,!1);if(o.code!==0){const s=o.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)});return{error:new Sn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(n){return F(this,null,function*(){const i=yield e().fetchService.connectByUserPass(n);if(i.code!==0){const o=i.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR;return{error:new tn({errorCode:o,message:JSON.stringify(i.data)})}}return{workflows:i.data.workflows}})},connectByUrl(n){return F(this,null,function*(){const o=yield e().fetchService.connectByUrl(n);if(o.code!==0){const s=o.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)}),l=new Sn({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=X(I({},o.results),{sessionId:s}),l=I({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),n(l),o.error){const p=JSON.stringify(o.error);e().fetchService.pushSessionLogs({body:{log:p,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}Xo.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>F(null,null,function*(){try{const i=yield ju(n);return t(()=>({externalModules:i})),{}}catch(i){return e().resetFetchService(),e().resetProps(),{error:new bn({errorCode:Wr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Yi(n.find(o=>o.templateId===Si));i.templateLayout=ca(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i,o)=>F(null,null,function*(){let s=null;return yield kc(()=>F(null,null,function*(){const d=yield e().fetchService.pushData(n,i,o);let p=null;if(d.code===4&&(p=ot.HTTP_ISSUE),d.code!==0&&d.code!==4&&(p=ot.PROVIDER_ERROR),p!==null){const h=new rn({errorCode:ot.HTTP_ISSUE});s=new Ze({errorCode:We.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:h})}return d.code===0?(s=null,d):null}),()=>null),s?{error:s}:{}}),_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:()=>F(null,null,function*(){var w,f,m;const n=yield e().fetchService.getSessionState(),i=n.code===0,o=i?n.data:null,s=(w=o==null?void 0:o.currentStep)!=null?w:"",a=o==null?void 0:o.isProcessingFiles,l=(m=(f=o==null?void 0:o.workflow)==null?void 0:f.steps)!=null?m:[],d=Dc(l,s),p=n.code===4,h=n.code!==0&&n.code!==4,c=i&&(!n.data.workflow||!n.data.currentStep);let g=null;if(l&&!d&&(g=ot.NOT_DATA_TYPE),p&&(g=ot.HTTP_ISSUE),h&&(g=ot.PROVIDER_ERROR),a&&(g=ot.IS_PROCESSING),c&&(g=ot.DECODING_FAILED),g!==null){const C=new rn({errorCode:g});return{error:new Ze({errorCode:We.INTERNAL_ISSUE,underlyingBaseError:C})}}return d&&!a&&!p&&!h&&!c?{data:n.data}:{shouldRetry:!0}}),_waitingForNextStep:()=>F(null,null,function*(){let n={};return yield new Promise(o=>{let l=0,d;const p=h=>F(null,null,function*(){if(h){d=window.setTimeout(()=>{p(!1)},1e4);return}n=yield e()._getSessionStateNextStepConditionResult(),l++,"shouldRetry"in n&&l<6?d=window.setTimeout(()=>{p(!1)},1e4):(ut.clearSubscriptions(),o())});if(ut.isConnected()){const h=c=>{JSON.parse(atob(JSON.parse(c).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(d),p(!1))};ut.onMessage(h)}p(!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:ot.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.releaseClientApp}}}),e().resetSession(),e().listener({eventType:Hr.MESSAGE,message:br.DID_END_SESSION,module:"IDV"}))},_stepSocketListenerWhenStepIsRunning:n=>{if(ut.isConnected())if(n){const i=o=>F(null,null,function*(){if(JSON.parse(atob(JSON.parse(o).payload)).eventType==="SESSION_UPDATED"){ut.clearSubscriptions();let a={};const l=5;let d=0;for(;d<l&&(d++,a=yield e()._getSessionStateNextStepConditionResult(),!!a.shouldRetry););if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}if(a.data){const{workflow:p,properties:h,currentStep:c,locale:g}=a.data;e().setNextStep({workflow:p,properties:h,nextStepId:c,locale:g})}}});ut.onMessage(i)}else ut.clearSubscriptions()},setNextStep:({workflow:n,properties:i,nextStepId:o,locale:s})=>{e().setWorkflowId(n.id),e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i),e().setLocale(s);const a=e()._findStepById(o),l=d=>!!d&&Object.prototype.toString.call(d)==="[object Object]"&&d.templateId;if(a!=null&&a.releaseClientApp&&!l(a.client)){e().setFinalStepAndStopProcess(a.id);return}a!=null&&a.releaseClientApp&&l(a.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1),e()._stepSocketListenerWhenStepIsRunning(!0)},pushStepWaitNextStepAndSet:(n,i)=>F(null,null,function*(){e()._stepSocketListenerWhenStepIsRunning(!1);const o=e().currentStepId;if(!o)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const c=n,g=new Ze({errorCode:We.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:c});e().workflowSessionCompletion({error:g}),e().resetSession();return}const s=yield e()._pushStep(o,n,i);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const a=yield e()._waitingForNextStep();if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}const{workflow:l,properties:d,currentStep:p,locale:h}=a.sessionData;e().setNextStep({workflow:l,properties:d,nextStepId:p,locale:h})}),onChangeScreen:n=>{var l,d,p,h;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,o=e().sessionProperties;let s=null;if(n===Si&&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=X(I({},c==null?void 0:c.client),{templateId:c.client.templateId,dataSource:(d=c.dataSource)!=null?d:null,properties:o,locale:e().locale})),s&&(s.sessionId=(p=e().currentSessionData)==null?void 0:p.sessionId,s.serviceToken=e().serviceToken),s&&Uc((h=c==null?void 0:c.client)==null?void 0:h.templateLayout)){const g=ca(c.client.templateLayout,e().layout);g&&(s.templateLayout=g)}}const a=Nc(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:()=>F(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 ju(t){return F(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=mc((...t)=>I(I(I({},jc(...t)),Bu(...t)),Wu(...t))),zu=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Xa=(t,e)=>{if(!zu(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 Ku{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 vo={exports:{}},Qa;function Gu(){return Qa||(Qa=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),p=d.checkType,h=d.broPayload,c=d.mobilePayload,g=d.wearPayload,w=d.consolePayload,f=d.stvPayload,m=d.getNavigatorInstance,C=d.isIOS13Check,S=new i,b=S.getBrowser(),O=S.getDevice(),D=S.getEngine(),N=S.getOS(),R=S.getUA(),fe=s.CHROME,me=s.CHROMIUM,le=s.IE,Z=s.INTERNET_EXPLORER,H=s.OPERA,K=s.FIREFOX,ue=s.SAFARI,ce=s.EDGE,ve=s.YANDEX,ye=s.MOBILE_SAFARI,ee=l.MOBILE,z=l.TABLET,U=l.SMART_TV,Y=l.BROWSER,te=l.WEARABLE,Te=l.CONSOLE,re=a.ANDROID,$=a.WINDOWS_PHONE,Q=a.IOS,Ke=a.WINDOWS,Je=a.MAC_OS,_t=function(){return O.type===ee},it=function(){return O.type===z},zt=function(){switch(O.type){case ee:case z:return!0;default:return!1}},mt=function(){return N.name===a.WINDOWS&&N.version==="10"?typeof R=="string"&&R.indexOf("Edg/")!==-1:!1},Qt=function(){return O.type===U},Kt=function(){return O.type===Y},Et=function(){return O.type===te},Gt=function(){return O.type===Te},er=function(){return N.name===re},Tt=function(){return N.name===Ke},lt=function(){return N.name===Je},y=function(){return N.name===$},T=function(){return N.name===Q},x=function(){return b.name===fe},V=function(){return b.name===K},M=function(){return b.name===me},P=function(){return b.name===ce},W=function(){return b.name===ve},ne=function(){return b.name===ue||b.name===ye},G=function(){return b.name===ye},we=function(){return b.name===H},He=function(){return b.name===Z||b.name===le},J=function(){var gt=m(),Dr=gt&>.userAgent.toLowerCase();return typeof Dr=="string"?/electron/.test(Dr):!1},se=function(){var gt=m();return gt&&(/iPad|iPhone|iPod/.test(gt.platform)||gt.platform==="MacIntel"&>.maxTouchPoints>1)&&!window.MSStream},j=function(){return C("iPad")},ge=function(){return C("iPhone")},Ge=function(){return C("iPod")},Me=function(){return b.major},pe=function(){return b.version},q=function(){return N.version?N.version:"none"},Xe=function(){return N.name?N.name:"none"},tr=function(){return b.name},pr=function(){return O.vendor?O.vendor:"none"},Ln=function(){return O.model?O.model:"none"},Vn=function(){return D.name},$n=function(){return D.version},Bn=function(){return R},Hn=function(){return O.type},Wn=Qt(),jn=Gt(),zn=Et(),rr=G()||j(),Kn=M(),ct=zt()||j(),Gn=_t(),qn=it()||j(),Zn=Kt(),Yn=er(),Jn=y(),Xn=T()||j(),Qn=x(),bo=V(),So=ne(),Co=we(),Nr=He(),ei=q(),ti=Xe(),ri=Me(),Eo=pe(),ni=tr(),ii=pr(),oi=Ln(),To=Vn(),Io=$n(),Oo=Bn(),Ao=P()||mt(),si=W(),xo=Hn(),Ro=se(),ko=j(),No=ge(),Do=Ge(),Mo=J(),Po=mt(),Fo=P(),Uo=Tt(),Lo=lt(),It=p(O.type);function Vo(){var ie=It.isBrowser,gt=It.isMobile,Dr=It.isTablet,ai=It.isSmartTV,li=It.isConsole,ci=It.isWearable;if(ie)return h(ie,b,D,N,R);if(ai)return f(ai,D,N,R);if(li)return w(li,D,N,R);if(gt||Dr)return c(It,O,N,R);if(ci)return g(ci,D,N,R)}e.exports={deviceDetect:Vo,isSmartTV:Wn,isConsole:jn,isWearable:zn,isMobileSafari:rr,isChromium:Kn,isMobile:ct,isMobileOnly:Gn,isTablet:qn,isBrowser:Zn,isAndroid:Yn,isWinPhone:Jn,isIOS:Xn,isChrome:Qn,isFirefox:bo,isSafari:So,isOpera:Co,isIE:Nr,osVersion:ei,osName:ti,fullBrowserVersion:ri,browserVersion:Eo,browserName:ni,mobileVendor:ii,mobileModel:oi,engineName:To,engineVersion:Io,getUA:Oo,isEdge:Ao,isYandex:si,deviceType:xo,isIOS13:Ro,isIPad13:ko,isIPhone13:No,isIPod13:Do,isElectron:Mo,isEdgeChromium:Po,isLegacyEdge:Fo,isWindows:Uo,isMacOs:Lo}}),(function(e,r,n){var i;/*!
|
|
109
|
+
`,this.shadowRoot.querySelector("#idv-gui-styles")||this.shadowRoot.appendChild(e)}cr(u($u,{moduleProps:this.props.moduleProps,perform:this.props.perform,idvEventListener:this.props.idvEventListener,isProcessing:this.props.isProcessing}),this._shadowRoot)}disconnectedCallback(){cr(null,this._shadowRoot),setTimeout(()=>{this._mounted&&(this._mounted=!1)})}static isReady(){return wo}static initialize(e){wo=!0}static deinitialize(){wo=!1}};dn.displayName=An,dn.getSupportedTemplates=()=>Object.values(ft),dn.getIdentifier=()=>An;let Un=dn;pa(An,Un);const Bu=(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&&ur.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 fr(I({errorCode:Yt.HTTP_ISSUE},i?{message:i}:{}));return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:o})}}if("id"in n&&"currentStep"in n)return n;{const i=new fr({errorCode:Yt.DECODING_FAILED});return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:i})}}},_runSocketConnection:n=>F(null,null,function*(){const{host:i,isSecure:o,port:s}=e().startConfig;if(i&&n&&(yield ut.connect({host:i,isSecure:o,port:s,token:n})),!i||!n||!ut.isConnected()){const a=new fr({errorCode:Yt.CONNECTION_ISSUE,message:"WebSocket connection issue"});return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:a})}}return{}}),_continueSession:(n,i)=>F(null,null,function*(){var g;const o=e().startConfig,s="apiKey"in o&&typeof o.apiKey=="string",a=e().workflowId,l=i?Sr.DID_CONTINUE_REMOTE_SESSION:Sr.DID_START_RESTORE_SESSION;let d;if(i)d=i;else if(s){if(!e().sessionRestoreMode)return{};const w=o.apiKey,f=ur.getAuthTokenLs(),m=f&&((g=f[w])==null?void 0:g.sessionId);if(!m)return{};m&&(d=m)}else{if(!e().sessionRestoreMode)return{};const w=e().getCurrentSessionDataLs();if(!w)return{};const f=w.sessionId,m=w.workflowId;if(!f||m!==a)return{};d=f}const p=yield e().fetchService.continueSession(d,n),h=e()._checkIsSessionDataValid(p.data);if(!da(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({workflow:h.workflow,properties:h.properties,nextStepId:c,locale:h.locale}),e().listener({eventType:Hr.MESSAGE,message:l,module:"IDV"}),h}),initialize(n){return F(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=[Un];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 F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const o=["apiKey","baseUrl"].filter(m=>!(n!=null&&n[m]));if(o.length>0)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=eo(n.baseUrl);if(!s)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Invalid URL: ${n.baseUrl}`})};const a=Number(n.ttl);!Number.isNaN(a)&&a>0&&t({_ttl:a});const l=e()._ttl,d={host:s.host,isSecure:s.isSecure,port:s.port,apiKey:n.apiKey,deviceDescriptor:{ttl:l}},p=ur.getAuthTokenLs(),h=p&&p[n.apiKey]&&p[n.apiKey].authToken?p[n.apiKey]:null,c=h&&h.authToken,g=yield e().connectByApiKey(d);if(g.error)return{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:g.error})};c&&g.authToken!==c&&ur.removeAuthTokenLs(n.apiKey);const w=h&&g.authToken===h.authToken&&h,f=w?w.tokenExpiresAt:Date.now()+l*1e3;return e().setApiKeyAuthTokenCollection(n.apiKey,g.authToken,f),t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,apiKey:n.apiKey,port:s.port}),g})},configureWithUrl(n){return F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const i=Bc(n);i&&(e().removeCurrentSessionDataLsAndStore(),t({_sessionIdFromUrl:i}));const o=yield e().connectByUrl(n);if(o.error)return{error:new $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:o.error})};t({_isConnectedToPlatform:!0});try{const s=eo(n);if(!s)return{error:new $e({errorCode:Le.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 F(this,null,function*(){if(!e()._isInitialized)return{error:new $e({errorCode:Le.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new $e({errorCode:Le.SCENARIO_IN_PROGRESS})};const o=["password","userName","baseUrl"].filter(d=>!(n!=null&&n[d]));if(o.length>0)return{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:`Missing parameters: ${o.join(", ")}`})};const s=eo(n.baseUrl);if(!s)return{error:new $e({errorCode:Le.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 $e({errorCode:Le.CONNECTION_ISSUE,underlyingBaseError:l.error})}:(t({_isConnectedToPlatform:!0}),e().setStartConfig({host:s.host,isSecure:s.isSecure,port:s.port}),l)})},getWorkflows(){return F(this,arguments,function*(n={limit:100,skip:0}){if(!e()._isInitialized)return{error:new kt({errorCode:wt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new kt({errorCode:wt.CONNECTION_ISSUE})};const i=yield e().fetchService.listWorkflows(n);if(i.code!==0){const o=i.code===4?vt.HTTP_ISSUE:vt.PROVIDER_ERROR,s=new En({errorCode:o});return{error:new kt({errorCode:wt.WORKFLOW_ISSUE,message:"No workflow list",underlyingBaseError:s})}}return{results:i.data.items}})},prepareWorkflowAndPrepareUi(n){return F(this,null,function*(){var w;if(!e()._isInitialized)return{error:new kt({errorCode:wt.INITIALIZATION_REQUIRED})};if(!e()._isConnectedToPlatform)return{error:new kt({errorCode:wt.CONNECTION_ISSUE})};if(e().currentScreenConfig)return{error:new kt({errorCode:wt.SCENARIO_IN_PROGRESS})};const i=yield e().fetchService.getWorkflow(n),o=Yi(i.data),s=((w=o.client)==null?void 0:w.steps)&&o.client.steps.some(f=>f.templateId===Si);let a=null;if(i.code===4&&(a=vt.HTTP_ISSUE),i.code!==0&&i.code!==4&&(a=vt.PROVIDER_ERROR),i.code===0&&!i.data.id&&(a=vt.DECODING_FAILED),i.code===0&&i.data.id&&o===null&&(a=vt.DECODING_FAILED),s||(a=vt.DECODING_FAILED),a!==null){const f=new En({errorCode:a});return{error:new kt({errorCode:wt.INTERNAL_ISSUE,underlyingBaseError:f})}}const l=e().externalModules,d=o.steps,{isAllTemplatesSupported:p,unsupportedSteps:h}=Mc(l,d);p||console.log("IDV:: Warning. Unsupported steps found: ",h);const c=e().workflowId;c&&n!==c&&l.forEach(f=>{f.component.deinitialize()});const g=e().modulesConfig;return l.forEach(f=>{f.component.isReady()||f.component.initialize(g)}),e().setLayout(o.client.layout),e().setProcessingTemplate(o.client.steps),e().setWorkflowId(n),e().setTrackLocation(o.trackLocation),{workflow:o}})},startNewSession(a){return F(this,arguments,function*({completion:n,locale:i,metadata:o,location:s}){if(!e()._isInitialized)return{error:new Ze({errorCode:je.INITIALIZATION_REQUIRED})};const l=e().workflowId;if(!l)return{error:new Ze({errorCode:je.PREPARED_REQUIRED})};if(e().currentScreenConfig)return{error:new Ze({errorCode:je.ALREADY_STARTED})};const d=O=>{ut&&ut.close(),n(O)};e().setWorkflowSessionCompletion(d);const p=e().startConfig,h="apiKey"in p&&typeof p.apiKey=="string",c=e().apiKeyAuthTokenCollection;if(h&&"tokenExpiresAt"in c){const O=c.tokenExpiresAt&&typeof c.tokenExpiresAt=="number"?c.tokenExpiresAt:0;if(Date.now()>O){const N=yield e().connectByApiKey({apiKey:p.apiKey,host:p.host,deviceDescriptor:{ttl:e()._ttl}});if(ur.removeAuthTokenLs(p.apiKey),N.error)return{error:new fr({errorCode:Yt.CONNECTION_ISSUE,underlyingBaseError:N.error})};if(N&&"authToken"in N){const R=Date.now()+e()._ttl*1e3;e().setApiKeyAuthTokenCollection(p.apiKey,N.authToken,R)}}}e().setIsProcessing(!0);const g=yield e().fetchService.getConnectionToken(!1);if(!g||typeof g!="string"){const O=new fr({errorCode:Yt.TOKEN_ERROR});return{error:new Ze({errorCode:je.START_SESSION_FAILED,underlyingBaseError:O})}}e().setServiceSessionToken(g);const w=yield e()._runSocketConnection(g);if(w.error)return{error:w.error};const f=e()._sessionIdFromUrl,m=yield e()._continueSession(i,f);if("sessionId"in m)return{results:m};if("error"in m)return{error:m.error};if("id"in m)return{};const C=yield e().fetchService.startSession({workflowId:l,locale:i,metadata:o,location:s}),S=e()._checkIsSessionDataValid(C.data);if(!da(S))return{error:S.error};h?e()._checkAndSetApiTokenToLs(S.id):e().setCurrentSessionDataLsAndStore({sessionId:S.id,workflowId:l});const b=S.currentStep;return e().setCurrentStepId(b),e().setNextStep({workflow:S.workflow,properties:S.properties,nextStepId:b,locale:S.locale}),e().listener({eventType:Hr.MESSAGE,message:Sr.DID_START_SESSION,module:"IDV"}),{}})},playWorkflow(){const n=e().currentStepId;if(n)e().onChangeScreen(n);else{const i=new Ze({errorCode:je.UNKNOWN_STEP});e().workflowSessionCompletion({error:i})}},deinitialize(){return F(this,null,function*(){if(!e()._isInitialized)return{error:new Cn({errorCode:jr.INITIALIZATION_REQUIRED})};if(e().currentScreenConfig)return{error:new Cn({errorCode:jr.SCENARIO_IN_PROGRESS})};const n=yield e().deinitializationIdv();return e().resetProps(),t({_isInitialized:!1}),n})}});class Hu{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=ur.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 F(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 F(this,null,function*(){return yield e.text().catch(()=>"")})}_fetchPing(){return F(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 F(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 F(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(Hc()),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 F(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 F(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 p=this._getErrorTextFromError(d);return a.what=p,{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 F(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 p=yield this._getResponseTextFromBadResponse(a);return p&&(l.what=p),{code:5,data:l}}let d;try{if(d=yield a.json(),!(d!=null&&d.id))return{code:6,data:l}}catch(p){const h=this._getErrorTextFromError(p);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 F(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 p=yield this._getResponseTextFromBadResponse(a);return p&&(l.what=p),{code:5,data:l}}let d;try{if(d=yield a.json(),!d)return{code:6,data:l}}catch(p){const h=this._getErrorTextFromError(p);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 F(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,i){return F(this,null,function*(){var p;const o="POST",s=I({stage:"0"},i&&{type:i}),l=new URLSearchParams(s).toString(),d=`${this._origin}/api/sessions/${(p=this._session)==null?void 0:p.id}/step/${r}?${l}`;try{const h=yield fetch(d,{headers:{authorization:e,"content-type":"application/json"},body:JSON.stringify(n),method:o}),c={httpCode:h.status,method:o,url:d};if(!h.ok){const w=yield this._getResponseTextFromBadResponse(h);return w&&(c.what=w),{code:5,data:c}}let g;try{if(g=yield h.json(),!g)return{code:6,data:c}}catch(w){const f=this._getErrorTextFromError(w);return c.what=f,{code:6,data:c}}return{code:0,data:g}}catch(h){const c=this._getErrorTextFromError(h);return{code:4,data:{httpCode:0,method:o,url:d,what:c}}}})}_fetchSessionLogs(e,r){return F(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 p=this._getErrorTextFromError(d);return a.what=p,{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 F(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 F(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 F(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 F(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(o){return F(this,arguments,function*({workflowId:e,locale:r,metadata:n,location:i}){const s={locale:r};Fc(n)&&(s.metadata=n),i&&(s.location=i);const a=yield this.getConnectionToken(!1),l=this._getAuthorizationHeaderFromConnectionToken(a),d=yield this._fetchSessionByWorkflowId(l,e,s);return d.code===0&&(this._session=d.data,this._locale=r),d})}continueSession(e,r){return F(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 F(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 F(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,n){return F(this,null,function*(){const i=yield this.getConnectionToken(!0),o=this._getAuthorizationHeaderFromConnectionToken(i);return yield this._fetchStep(o,e,r,n)})}getSessionState(){return F(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 F(this,null,function*(){const r=yield this.getConnectionToken(!0),n=this._getAuthorizationHeaderFromConnectionToken(r);return yield this._fetchSessionLogs(n,e)})}}const Wu=(t,e)=>({fetchService:null,isProcessing:!1,isFinalWaitingUi:!1,setAndInitFetchService:()=>F(null,null,function*(){const n=new Hu;t({fetchService:n})}),setFinalWaitingUi:n=>{t({isFinalWaitingUi:n})},connectByApiKey(n){return F(this,null,function*(){const o=yield e().fetchService.connectByApiKey(n,!1);if(o.code!==0){const s=o.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)});return{error:new Sn({errorCode:_n.CONNECTION_ISSUE,underlyingBaseError:a})}}return o.data})},connectByUserPass(n){return F(this,null,function*(){const i=yield e().fetchService.connectByUserPass(n);if(i.code!==0){const o=i.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR;return{error:new tn({errorCode:o,message:JSON.stringify(i.data)})}}return{workflows:i.data.workflows}})},connectByUrl(n){return F(this,null,function*(){const o=yield e().fetchService.connectByUrl(n);if(o.code!==0){const s=o.code===4?At.HTTP_ISSUE:At.PROVIDER_ERROR,a=new tn({errorCode:s,message:JSON.stringify(o.data)}),l=new Sn({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=X(I({},o.results),{sessionId:s}),l=I({results:a},o.error&&{error:o.error});if(e().removeCurrentSessionDataLsAndStore(),n(l),o.error){const p=JSON.stringify(o.error);e().fetchService.pushSessionLogs({body:{log:p,errorCode:o.error.shortChain,deviceInfo:{platform:"Web"}}})}Xo.clearLogs()};t(()=>({workflowSessionCompletion:i}))},loadModules:n=>F(null,null,function*(){try{const i=yield ju(n);return t(()=>({externalModules:i})),{}}catch(i){return e().resetFetchService(),e().resetProps(),{error:new bn({errorCode:Wr.MODULES_INSTANTIATION_FAILURE})}}}),setProcessingTemplate:n=>{const i=Yi(n.find(o=>o.templateId===Si));i.templateLayout=ca(i.templateLayout,e().layout),t({processingTransformedTemplate:i})},setIsProcessing:n=>{t({isProcessing:n})},_pushStep:(n,i,o)=>F(null,null,function*(){let s=null;return yield kc(()=>F(null,null,function*(){const d=yield e().fetchService.pushData(n,i,o);let p=null;if(d.code===4&&(p=ot.HTTP_ISSUE),d.code!==0&&d.code!==4&&(p=ot.PROVIDER_ERROR),p!==null){const h=new rn({errorCode:ot.HTTP_ISSUE});s=new Ze({errorCode:je.INTERNAL_ISSUE,message:"Error from external module",underlyingBaseError:h})}return d.code===0?(s=null,d):null}),()=>null),s?{error:s}:{}}),_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:()=>F(null,null,function*(){var w,f,m;const n=yield e().fetchService.getSessionState(),i=n.code===0,o=i?n.data:null,s=(w=o==null?void 0:o.currentStep)!=null?w:"",a=o==null?void 0:o.isProcessingFiles,l=(m=(f=o==null?void 0:o.workflow)==null?void 0:f.steps)!=null?m:[],d=Dc(l,s),p=n.code===4,h=n.code!==0&&n.code!==4,c=i&&(!n.data.workflow||!n.data.currentStep);let g=null;if(l&&!d&&(g=ot.NOT_DATA_TYPE),p&&(g=ot.HTTP_ISSUE),h&&(g=ot.PROVIDER_ERROR),a&&(g=ot.IS_PROCESSING),c&&(g=ot.DECODING_FAILED),g!==null){const C=new rn({errorCode:g});return{error:new Ze({errorCode:je.INTERNAL_ISSUE,underlyingBaseError:C})}}return d&&!a&&!p&&!h&&!c?{data:n.data}:{shouldRetry:!0}}),_waitingForNextStep:()=>F(null,null,function*(){let n={};return yield new Promise(o=>{let l=0,d;const p=h=>F(null,null,function*(){if(h){d=window.setTimeout(()=>{p(!1)},1e4);return}n=yield e()._getSessionStateNextStepConditionResult(),l++,"shouldRetry"in n&&l<6?d=window.setTimeout(()=>{p(!1)},1e4):(ut.clearSubscriptions(),o())});if(ut.isConnected()){const h=c=>{JSON.parse(atob(JSON.parse(c).payload)).eventType==="SESSION_UPDATED"&&(clearTimeout(d),p(!1))};ut.onMessage(h)}p(!0)}),n!=null&&n.error?{error:n.error}:n!=null&&n.data?{sessionData:n.data}:{error:new Ze({errorCode:je.INTERNAL_ISSUE,underlyingBaseError:new rn({errorCode:ot.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.releaseClientApp}}}),e().resetSession(),e().listener({eventType:Hr.MESSAGE,message:Sr.DID_END_SESSION,module:"IDV"}))},_stepSocketListenerWhenStepIsRunning:n=>{if(ut.isConnected())if(n){const i=o=>F(null,null,function*(){if(JSON.parse(atob(JSON.parse(o).payload)).eventType==="SESSION_UPDATED"){ut.clearSubscriptions();let a={};const l=5;let d=0;for(;d<l&&(d++,a=yield e()._getSessionStateNextStepConditionResult(),!!a.shouldRetry););if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}if(a.data){const{workflow:p,properties:h,currentStep:c,locale:g}=a.data;e().setNextStep({workflow:p,properties:h,nextStepId:c,locale:g})}}});ut.onMessage(i)}else ut.clearSubscriptions()},setNextStep:({workflow:n,properties:i,nextStepId:o,locale:s})=>{e().setWorkflowId(n.id),e().setWorkflow(n),e().setLayout(n.client.layout),e().setProcessingTemplate(n.client.steps),e().setSessionProperties(i),e().setLocale(s);const a=e()._findStepById(o),l=d=>!!d&&Object.prototype.toString.call(d)==="[object Object]"&&d.templateId;if(a!=null&&a.releaseClientApp&&!l(a.client)){e().setFinalStepAndStopProcess(a.id);return}a!=null&&a.releaseClientApp&&l(a.client)&&e().setFinalWaitingUi(!0),e().onChangeScreen(o),e().setIsProcessing(!1),e()._stepSocketListenerWhenStepIsRunning(!0)},pushStepWaitNextStepAndSet:(n,i)=>F(null,null,function*(){e()._stepSocketListenerWhenStepIsRunning(!1);const o=e().currentStepId;if(!o)return;if(e().setIsProcessing(!0),e().isFinalWaitingUi){e().setFinalStepAndStopProcess();return}if(n.errorCode){const c=n,g=new Ze({errorCode:je.MODULES_ISSUE,message:"Error from external module",underlyingBaseError:c});e().workflowSessionCompletion({error:g}),e().resetSession();return}const s=yield e()._pushStep(o,n,i);if(s.error){e().workflowSessionCompletion({error:s.error}),e().resetSession();return}const a=yield e()._waitingForNextStep();if(a.error){e().workflowSessionCompletion({error:a.error}),e().resetSession();return}const{workflow:l,properties:d,currentStep:p,locale:h}=a.sessionData;e().setNextStep({workflow:l,properties:d,nextStepId:p,locale:h})}),onChangeScreen:n=>{var l,d,p,h;if(!n)return t(()=>({currentScreenConfig:null}));const i=e().workflow,o=e().sessionProperties;let s=null;if(n===Si&&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=X(I({},c==null?void 0:c.client),{templateId:c.client.templateId,dataSource:(d=c.dataSource)!=null?d:null,properties:o,locale:e().locale})),s&&(s.sessionId=(p=e().currentSessionData)==null?void 0:p.sessionId,s.serviceToken=e().serviceToken),s&&Uc((h=c==null?void 0:c.client)==null?void 0:h.templateLayout)){const g=ca(c.client.templateLayout,e().layout);g&&(s.templateLayout=g)}}const a=Nc(e().externalModules,i.steps,n);if(s===null||!a){const c=new Ze({errorCode:je.UNKNOWN_STEP,message:"Unsupported step template"});e().workflowSessionCompletion({error:c}),t(()=>({currentScreenConfig:null})),e().resetSession();return}e().setCurrentStepId(n),t(()=>({currentScreenConfig:s}))},deinitializationIdv:()=>F(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 ju(t){return F(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 He=mc((...t)=>I(I(I({},jc(...t)),Bu(...t)),Wu(...t))),zu=t=>/^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)&&t.length<=100,Xa=(t,e)=>{if(!zu(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 Ku{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 vo={exports:{}},Qa;function Gu(){return Qa||(Qa=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),p=d.checkType,h=d.broPayload,c=d.mobilePayload,g=d.wearPayload,w=d.consolePayload,f=d.stvPayload,m=d.getNavigatorInstance,C=d.isIOS13Check,S=new i,b=S.getBrowser(),O=S.getDevice(),D=S.getEngine(),N=S.getOS(),R=S.getUA(),fe=s.CHROME,me=s.CHROMIUM,le=s.IE,Z=s.INTERNET_EXPLORER,H=s.OPERA,K=s.FIREFOX,ue=s.SAFARI,ce=s.EDGE,ve=s.YANDEX,ye=s.MOBILE_SAFARI,ee=l.MOBILE,z=l.TABLET,U=l.SMART_TV,Y=l.BROWSER,te=l.WEARABLE,Te=l.CONSOLE,re=a.ANDROID,$=a.WINDOWS_PHONE,Q=a.IOS,Ke=a.WINDOWS,Je=a.MAC_OS,_t=function(){return O.type===ee},it=function(){return O.type===z},zt=function(){switch(O.type){case ee:case z:return!0;default:return!1}},mt=function(){return N.name===a.WINDOWS&&N.version==="10"?typeof R=="string"&&R.indexOf("Edg/")!==-1:!1},Qt=function(){return O.type===U},Kt=function(){return O.type===Y},Et=function(){return O.type===te},Gt=function(){return O.type===Te},er=function(){return N.name===re},Tt=function(){return N.name===Ke},lt=function(){return N.name===Je},y=function(){return N.name===$},T=function(){return N.name===Q},x=function(){return b.name===fe},V=function(){return b.name===K},M=function(){return b.name===me},P=function(){return b.name===ce},W=function(){return b.name===ve},ne=function(){return b.name===ue||b.name===ye},G=function(){return b.name===ye},we=function(){return b.name===H},We=function(){return b.name===Z||b.name===le},J=function(){var gt=m(),Dr=gt&>.userAgent.toLowerCase();return typeof Dr=="string"?/electron/.test(Dr):!1},se=function(){var gt=m();return gt&&(/iPad|iPhone|iPod/.test(gt.platform)||gt.platform==="MacIntel"&>.maxTouchPoints>1)&&!window.MSStream},j=function(){return C("iPad")},ge=function(){return C("iPhone")},Ge=function(){return C("iPod")},Me=function(){return b.major},pe=function(){return b.version},q=function(){return N.version?N.version:"none"},Xe=function(){return N.name?N.name:"none"},tr=function(){return b.name},_r=function(){return O.vendor?O.vendor:"none"},Ln=function(){return O.model?O.model:"none"},Vn=function(){return D.name},$n=function(){return D.version},Bn=function(){return R},Hn=function(){return O.type},Wn=Qt(),jn=Gt(),zn=Et(),rr=G()||j(),Kn=M(),ct=zt()||j(),Gn=_t(),qn=it()||j(),Zn=Kt(),Yn=er(),Jn=y(),Xn=T()||j(),Qn=x(),bo=V(),So=ne(),Co=we(),Nr=We(),ei=q(),ti=Xe(),ri=Me(),Eo=pe(),ni=tr(),ii=_r(),oi=Ln(),To=Vn(),Io=$n(),Oo=Bn(),Ao=P()||mt(),si=W(),xo=Hn(),Ro=se(),ko=j(),No=ge(),Do=Ge(),Mo=J(),Po=mt(),Fo=P(),Uo=Tt(),Lo=lt(),It=p(O.type);function Vo(){var ie=It.isBrowser,gt=It.isMobile,Dr=It.isTablet,ai=It.isSmartTV,li=It.isConsole,ci=It.isWearable;if(ie)return h(ie,b,D,N,R);if(ai)return f(ai,D,N,R);if(li)return w(li,D,N,R);if(gt||Dr)return c(It,O,N,R);if(ci)return g(ci,D,N,R)}e.exports={deviceDetect:Vo,isSmartTV:Wn,isConsole:jn,isWearable:zn,isMobileSafari:rr,isChromium:Kn,isMobile:ct,isMobileOnly:Gn,isTablet:qn,isBrowser:Zn,isAndroid:Yn,isWinPhone:Jn,isIOS:Xn,isChrome:Qn,isFirefox:bo,isSafari:So,isOpera:Co,isIE:Nr,osVersion:ei,osName:ti,fullBrowserVersion:ri,browserVersion:Eo,browserName:ni,mobileVendor:ii,mobileModel:oi,engineName:To,engineVersion:Io,getUA:Oo,isEdge:Ao,isYandex:si,deviceType:xo,isIOS13:Ro,isIPad13:ko,isIPhone13:No,isIPod13:Do,isElectron:Mo,isEdgeChromium:Po,isLegacyEdge:Fo,isWindows:Uo,isMacOs:Lo}}),(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="?",p="function",h="undefined",c="object",g="string",w="major",f="model",m="name",C="type",S="vendor",b="version",O="architecture",D="console",N="mobile",R="tablet",fe="smarttv",me="wearable",le="embedded",Z={extend:function(ee,z){var U={};for(var Y in ee)z[Y]&&z[Y].length%2===0?U[Y]=z[Y].concat(ee[Y]):U[Y]=ee[Y];return U},has:function(ee,z){return typeof ee=="string"?z.toLowerCase().indexOf(ee.toLowerCase())!==-1:!1},lowerize:function(ee){return ee.toLowerCase()},major:function(ee){return typeof ee===g?ee.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(ee){return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={rgx:function(ee,z){for(var U=0,Y,te,Te,re,$,Q;U<z.length&&!$;){var Ke=z[U],Je=z[U+1];for(Y=te=0;Y<Ke.length&&!$;)if($=Ke[Y++].exec(ee),$)for(Te=0;Te<Je.length;Te++)Q=$[++te],re=Je[Te],typeof re===c&&re.length>0?re.length==2?typeof re[1]==p?this[re[0]]=re[1].call(this,Q):this[re[0]]=re[1]:re.length==3?typeof re[1]===p&&!(re[1].exec&&re[1].test)?this[re[0]]=Q?re[1].call(this,Q,re[2]):s:this[re[0]]=Q?Q.replace(re[1],re[2]):s:re.length==4&&(this[re[0]]=Q?re[3].call(this,Q.replace(re[1],re[2])):s):this[re]=Q||s;U+=2}},str:function(ee,z){for(var U in z)if(typeof z[U]===c&&z[U].length>0){for(var Y=0;Y<z[U].length;Y++)if(Z.has(z[U][Y],ee))return U===d?s:U}else if(Z.has(z[U],ee))return U===d?s:U;return ee}},K={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"}}}},ue={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,b],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],b],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],b],[/(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,b],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],b],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],b],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],b],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],b],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],b],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],b],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],b],[/(qqbrowserlite)\/([\w\.]+)/i],[m,b],[/(QQ)\/([\d\.]+)/i],[m,b],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,b],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,b],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,b],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[b,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[b,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[b,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],b],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],b],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[b,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,b],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],b],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],b],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],b],[/fxios\/([\w\.-]+)/i],[b,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[b,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[b,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],b],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[b,H.str,K.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,b],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],b],[/(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,b]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Z.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[O,/ower/,"",Z.lowerize]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[O,Z.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[f,S,[C,R]],[/applecoremedia\/[\w\.]+ \((ipad)/],[f,[S,"Apple"],[C,R]],[/(apple\s{0,1}tv)/i],[[f,"Apple TV"],[S,"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],[S,f,[C,R]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[f,[S,"Amazon"],[C,R]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[f,H.str,K.device.amazon.model],[S,"Amazon"],[C,N]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[f,S,[C,N]],[/\((ip[honed|\s\w*]+);/i],[f,[S,"Apple"],[C,N]],[/(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],[S,f,[C,N]],[/\(bb10;\s(\w+)/i],[f,[S,"BlackBerry"],[C,N]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[f,[S,"Asus"],[C,R]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[S,"Sony"],[f,"Xperia Tablet"],[C,R]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[f,[S,"Sony"],[C,N]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[S,f,[C,D]],[/android.+;\s(shield)\sbuild/i],[f,[S,"Nvidia"],[C,D]],[/(playstation\s[34portablevi]+)/i],[f,[S,"Sony"],[C,D]],[/(sprint\s(\w+))/i],[[S,H.str,K.device.sprint.vendor],[f,H.str,K.device.sprint.model],[C,N]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[S,f,[C,R]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[S,[f,/_/g," "],[C,N]],[/(nexus\s9)/i],[f,[S,"HTC"],[C,R]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[f,[S,"Huawei"],[C,N]],[/(microsoft);\s(lumia[\s\w]+)/i],[S,f,[C,N]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[f,[S,"Microsoft"],[C,D]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[S,"Microsoft"],[C,N]],[/\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,[S,"Motorola"],[C,N]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[f,[S,"Motorola"],[C,R]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[S,Z.trim],[f,Z.trim],[C,fe]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[S,"Samsung"],[C,fe]],[/\(dtv[\);].+(aquos)/i],[f,[S,"Sharp"],[C,fe]],[/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],[[S,"Samsung"],f,[C,R]],[/smart-tv.+(samsung)/i],[S,[C,fe],f],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[S,"Samsung"],f,[C,N]],[/sie-(\w*)/i],[f,[S,"Siemens"],[C,N]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[S,"Nokia"],f,[C,N]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[f,[S,"Acer"],[C,R]],[/android.+([vl]k\-?\d{3})\s+build/i],[f,[S,"LG"],[C,R]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[S,"LG"],f,[C,R]],[/(lg) netcast\.tv/i],[S,f,[C,fe]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[f,[S,"LG"],[C,N]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[f,[S,"Lenovo"],[C,R]],[/linux;.+((jolla));/i],[S,f,[C,N]],[/((pebble))app\/[\d\.]+\s/i],[S,f,[C,me]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[S,f,[C,N]],[/crkey/i],[[f,"Chromecast"],[S,"Google"]],[/android.+;\s(glass)\s\d/i],[f,[S,"Google"],[C,me]],[/android.+;\s(pixel c)\s/i],[f,[S,"Google"],[C,R]],[/android.+;\s(pixel xl|pixel)\s/i],[f,[S,"Google"],[C,N]],[/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," "],[S,"Xiaomi"],[C,N]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[S,"Xiaomi"],[C,R]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[f,[S,"Meizu"],[C,R]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[f,[S,"OnePlus"],[C,N]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[f,[S,"RCA"],[C,R]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[f,[S,"Dell"],[C,R]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[f,[S,"Verizon"],[C,R]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[S,"Barnes & Noble"],f,[C,R]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[f,[S,"NuVision"],[C,R]],[/android.+;\s(k88)\sbuild/i],[f,[S,"ZTE"],[C,R]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[f,[S,"Swiss"],[C,N]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[f,[S,"Swiss"],[C,R]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[f,[S,"Zeki"],[C,R]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[S,"Dragon Touch"],f,[C,R]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[f,[S,"Insignia"],[C,R]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[f,[S,"NextBook"],[C,R]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[S,"Voice"],f,[C,N]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[S,"LvTel"],f,[C,N]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[f,[S,"Envizen"],[C,R]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[S,f,[C,R]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[f,[S,"MachSpeed"],[C,R]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[S,f,[C,R]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[f,[S,"Rotor"],[C,R]],[/android.+(KS(.+))\s+build/i],[f,[S,"Amazon"],[C,R]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[S,f,[C,R]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[C,Z.lowerize],S,f],[/(android[\w\.\s\-]{0,9});.+build/i],[f,[S,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[b,[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,b],[/rv\:([\w\.]{1,9}).+(gecko)/i],[b,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,b],[/(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,[b,H.str,K.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[b,H.str,K.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],b],[/(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,b],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],b],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],b],[/(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,b],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],b],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],b],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,b],[/(haiku)\s(\w+)/i],[m,b],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[b,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[b,/_/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,b]]},ce=function(ee,z){if(typeof ee=="object"&&(z=ee,ee=s),!(this instanceof ce))return new ce(ee,z).getResult();var U=ee||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:l),Y=z?Z.extend(ue,z):ue;return this.getBrowser=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.browser),te.major=Z.major(te.version),te},this.getCPU=function(){var te={architecture:s};return H.rgx.call(te,U,Y.cpu),te},this.getDevice=function(){var te={vendor:s,model:s,type:s};return H.rgx.call(te,U,Y.device),te},this.getEngine=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.engine),te},this.getOS=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.os),te},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(te){return U=te,this},this};ce.VERSION=a,ce.BROWSER={NAME:m,MAJOR:w,VERSION:b},ce.CPU={ARCHITECTURE:O},ce.DEVICE={MODEL:f,VENDOR:S,TYPE:C,CONSOLE:D,MOBILE:N,SMARTTV:fe,TABLET:R,WEARABLE:me,EMBEDDED:le},ce.ENGINE={NAME:m,VERSION:b},ce.OS={NAME:m,VERSION:b},typeof r!==h?(typeof e!==h&&e.exports&&(r=e.exports=ce),r.UAParser=ce):n(3)?(i=(function(){return ce}).call(r,n,r,e),i!==s&&(e.exports=i)):o&&(o.UAParser=ce);var ve=o&&(o.jQuery||o.Zepto);if(typeof ve!==h){var ye=new ce;ve.ua=ye.getResult(),ve.ua.get=function(){return ye.getUA()},ve.ua.set=function(ee){ye.setUA(ee);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 C=1;C<arguments.length;C++){var S=arguments[C];for(var b in S)Object.prototype.hasOwnProperty.call(S,b)&&(m[b]=S[b])}return m},o=n(0),s=o.DEVICE_TYPES,a=o.defaultData,l=function(C){switch(C){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(C,S,b,O,D){return{isBrowser:C,browserMajorVersion:S.major,browserFullVersion:S.version,browserName:S.name,engineName:b.name||!1,engineVersion:b.version,osName:O.name,osVersion:O.version,userAgent:D}},p=function(C,S,b,O){return i({},C,{vendor:S.vendor,model:S.model,os:b.name,osVersion:b.version,ua:O})},h=function(C,S,b,O){return{isSmartTV:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},c=function(C,S,b,O){return{isConsole:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},g=function(C,S,b,O){return{isWearable:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},w=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},f=r.isIOS13Check=function(C){var S=w();return S&&S.platform&&(S.platform.indexOf(C)!==-1||S.platform==="MacIntel"&&S.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:l,broPayload:d,mobilePayload:p,stvPayload:h,consolePayload:c,wearPayload:g,getNavigatorInstance:w,isIOS13Check:f}})])})(vo)),vo.exports}var qu=Gu(),Zu=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&&Zu(e,r,i),i};const yo=class yo extends Br{constructor(){super(),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Ku(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,r)=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e,r)},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 gi`Processing...`;const r={perform:this._performFromModule,moduleProps:X(I({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return this._currentProgressElement||(this._currentProgressElement=Xa(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 ke;const e=this.loadedModules.find(n=>n.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return ke;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=Xa(e.id,r),this._currentScreenModuleId=e.id,this._currentScreenConfig=this.currentScreenConfig),this._currentScreenElement}get version(){return`${"3.2.258-nightly".trim()}`}disconnectedCallback(){Xo.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:gi`<div
|
|
116
|
+
*/(function(o,s){var a="0.7.18",l="",d="?",p="function",h="undefined",c="object",g="string",w="major",f="model",m="name",C="type",S="vendor",b="version",O="architecture",D="console",N="mobile",R="tablet",fe="smarttv",me="wearable",le="embedded",Z={extend:function(ee,z){var U={};for(var Y in ee)z[Y]&&z[Y].length%2===0?U[Y]=z[Y].concat(ee[Y]):U[Y]=ee[Y];return U},has:function(ee,z){return typeof ee=="string"?z.toLowerCase().indexOf(ee.toLowerCase())!==-1:!1},lowerize:function(ee){return ee.toLowerCase()},major:function(ee){return typeof ee===g?ee.replace(/[^\d\.]/g,"").split(".")[0]:s},trim:function(ee){return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={rgx:function(ee,z){for(var U=0,Y,te,Te,re,$,Q;U<z.length&&!$;){var Ke=z[U],Je=z[U+1];for(Y=te=0;Y<Ke.length&&!$;)if($=Ke[Y++].exec(ee),$)for(Te=0;Te<Je.length;Te++)Q=$[++te],re=Je[Te],typeof re===c&&re.length>0?re.length==2?typeof re[1]==p?this[re[0]]=re[1].call(this,Q):this[re[0]]=re[1]:re.length==3?typeof re[1]===p&&!(re[1].exec&&re[1].test)?this[re[0]]=Q?re[1].call(this,Q,re[2]):s:this[re[0]]=Q?Q.replace(re[1],re[2]):s:re.length==4&&(this[re[0]]=Q?re[3].call(this,Q.replace(re[1],re[2])):s):this[re]=Q||s;U+=2}},str:function(ee,z){for(var U in z)if(typeof z[U]===c&&z[U].length>0){for(var Y=0;Y<z[U].length;Y++)if(Z.has(z[U][Y],ee))return U===d?s:U}else if(Z.has(z[U],ee))return U===d?s:U;return ee}},K={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"}}}},ue={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[m,b],[/(opios)[\/\s]+([\w\.]+)/i],[[m,"Opera Mini"],b],[/\s(opr)\/([\w\.]+)/i],[[m,"Opera"],b],[/(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,b],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[m,"IE"],b],[/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i],[[m,"Edge"],b],[/(yabrowser)\/([\w\.]+)/i],[[m,"Yandex"],b],[/(puffin)\/([\w\.]+)/i],[[m,"Puffin"],b],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[m,"UCBrowser"],b],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],b],[/(micromessenger)\/([\w\.]+)/i],[[m,"WeChat"],b],[/(qqbrowserlite)\/([\w\.]+)/i],[m,b],[/(QQ)\/([\d\.]+)/i],[m,b],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[m,b],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[m,b],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[m,b],[/(MetaSr)[\/\s]?([\w\.]+)/i],[m],[/(LBBROWSER)/i],[m],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[b,[m,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[b,[m,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[b,[m,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[m,/(.+)/,"$1 WebView"],b],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[m,/(.+(?:g|us))(.+)/,"$1 $2"],b],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[b,[m,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[m,b],[/(dolfin)\/([\w\.]+)/i],[[m,"Dolphin"],b],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[m,"Chrome"],b],[/(coast)\/([\w\.]+)/i],[[m,"Opera Coast"],b],[/fxios\/([\w\.-]+)/i],[b,[m,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[b,[m,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[b,m],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[m,"GSA"],b],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[m,[b,H.str,K.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[m,b],[/(navigator|netscape)\/([\w\.-]+)/i],[[m,"Netscape"],b],[/(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,b]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[O,"amd64"]],[/(ia32(?=;))/i],[[O,Z.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[O,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[O,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[O,/ower/,"",Z.lowerize]],[/(sun4\w)[;\)]/i],[[O,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[O,Z.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[f,S,[C,R]],[/applecoremedia\/[\w\.]+ \((ipad)/],[f,[S,"Apple"],[C,R]],[/(apple\s{0,1}tv)/i],[[f,"Apple TV"],[S,"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],[S,f,[C,R]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[f,[S,"Amazon"],[C,R]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[f,H.str,K.device.amazon.model],[S,"Amazon"],[C,N]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[f,S,[C,N]],[/\((ip[honed|\s\w*]+);/i],[f,[S,"Apple"],[C,N]],[/(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],[S,f,[C,N]],[/\(bb10;\s(\w+)/i],[f,[S,"BlackBerry"],[C,N]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[f,[S,"Asus"],[C,R]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[S,"Sony"],[f,"Xperia Tablet"],[C,R]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[f,[S,"Sony"],[C,N]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[S,f,[C,D]],[/android.+;\s(shield)\sbuild/i],[f,[S,"Nvidia"],[C,D]],[/(playstation\s[34portablevi]+)/i],[f,[S,"Sony"],[C,D]],[/(sprint\s(\w+))/i],[[S,H.str,K.device.sprint.vendor],[f,H.str,K.device.sprint.model],[C,N]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[S,f,[C,R]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[S,[f,/_/g," "],[C,N]],[/(nexus\s9)/i],[f,[S,"HTC"],[C,R]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[f,[S,"Huawei"],[C,N]],[/(microsoft);\s(lumia[\s\w]+)/i],[S,f,[C,N]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[f,[S,"Microsoft"],[C,D]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[S,"Microsoft"],[C,N]],[/\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,[S,"Motorola"],[C,N]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[f,[S,"Motorola"],[C,R]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[S,Z.trim],[f,Z.trim],[C,fe]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[S,"Samsung"],[C,fe]],[/\(dtv[\);].+(aquos)/i],[f,[S,"Sharp"],[C,fe]],[/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],[[S,"Samsung"],f,[C,R]],[/smart-tv.+(samsung)/i],[S,[C,fe],f],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[S,"Samsung"],f,[C,N]],[/sie-(\w*)/i],[f,[S,"Siemens"],[C,N]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[S,"Nokia"],f,[C,N]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[f,[S,"Acer"],[C,R]],[/android.+([vl]k\-?\d{3})\s+build/i],[f,[S,"LG"],[C,R]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[S,"LG"],f,[C,R]],[/(lg) netcast\.tv/i],[S,f,[C,fe]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[f,[S,"LG"],[C,N]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[f,[S,"Lenovo"],[C,R]],[/linux;.+((jolla));/i],[S,f,[C,N]],[/((pebble))app\/[\d\.]+\s/i],[S,f,[C,me]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[S,f,[C,N]],[/crkey/i],[[f,"Chromecast"],[S,"Google"]],[/android.+;\s(glass)\s\d/i],[f,[S,"Google"],[C,me]],[/android.+;\s(pixel c)\s/i],[f,[S,"Google"],[C,R]],[/android.+;\s(pixel xl|pixel)\s/i],[f,[S,"Google"],[C,N]],[/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," "],[S,"Xiaomi"],[C,N]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[f,/_/g," "],[S,"Xiaomi"],[C,R]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[f,[S,"Meizu"],[C,R]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[f,[S,"OnePlus"],[C,N]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[f,[S,"RCA"],[C,R]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[f,[S,"Dell"],[C,R]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[f,[S,"Verizon"],[C,R]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[S,"Barnes & Noble"],f,[C,R]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[f,[S,"NuVision"],[C,R]],[/android.+;\s(k88)\sbuild/i],[f,[S,"ZTE"],[C,R]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[f,[S,"Swiss"],[C,N]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[f,[S,"Swiss"],[C,R]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[f,[S,"Zeki"],[C,R]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[S,"Dragon Touch"],f,[C,R]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[f,[S,"Insignia"],[C,R]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[f,[S,"NextBook"],[C,R]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[S,"Voice"],f,[C,N]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[S,"LvTel"],f,[C,N]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[f,[S,"Envizen"],[C,R]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[S,f,[C,R]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[f,[S,"MachSpeed"],[C,R]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[S,f,[C,R]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[f,[S,"Rotor"],[C,R]],[/android.+(KS(.+))\s+build/i],[f,[S,"Amazon"],[C,R]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[S,f,[C,R]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[C,Z.lowerize],S,f],[/(android[\w\.\s\-]{0,9});.+build/i],[f,[S,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[b,[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,b],[/rv\:([\w\.]{1,9}).+(gecko)/i],[b,m]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[m,b],[/(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,[b,H.str,K.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[m,"Windows"],[b,H.str,K.os.windows.version]],[/\((bb)(10);/i],[[m,"BlackBerry"],b],[/(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,b],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[m,"Symbian"],b],[/\((series40);/i],[m],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[m,"Firefox OS"],b],[/(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,b],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[m,"Chromium OS"],b],[/(sunos)\s?([\w\.\d]*)/i],[[m,"Solaris"],b],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[m,b],[/(haiku)\s(\w+)/i],[m,b],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[b,/_/g,"."],[m,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[m,"Mac OS"],[b,/_/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,b]]},ce=function(ee,z){if(typeof ee=="object"&&(z=ee,ee=s),!(this instanceof ce))return new ce(ee,z).getResult();var U=ee||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:l),Y=z?Z.extend(ue,z):ue;return this.getBrowser=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.browser),te.major=Z.major(te.version),te},this.getCPU=function(){var te={architecture:s};return H.rgx.call(te,U,Y.cpu),te},this.getDevice=function(){var te={vendor:s,model:s,type:s};return H.rgx.call(te,U,Y.device),te},this.getEngine=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.engine),te},this.getOS=function(){var te={name:s,version:s};return H.rgx.call(te,U,Y.os),te},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(te){return U=te,this},this};ce.VERSION=a,ce.BROWSER={NAME:m,MAJOR:w,VERSION:b},ce.CPU={ARCHITECTURE:O},ce.DEVICE={MODEL:f,VENDOR:S,TYPE:C,CONSOLE:D,MOBILE:N,SMARTTV:fe,TABLET:R,WEARABLE:me,EMBEDDED:le},ce.ENGINE={NAME:m,VERSION:b},ce.OS={NAME:m,VERSION:b},typeof r!==h?(typeof e!==h&&e.exports&&(r=e.exports=ce),r.UAParser=ce):n(3)?(i=(function(){return ce}).call(r,n,r,e),i!==s&&(e.exports=i)):o&&(o.UAParser=ce);var ve=o&&(o.jQuery||o.Zepto);if(typeof ve!==h){var ye=new ce;ve.ua=ye.getResult(),ve.ua.get=function(){return ye.getUA()},ve.ua.set=function(ee){ye.setUA(ee);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 C=1;C<arguments.length;C++){var S=arguments[C];for(var b in S)Object.prototype.hasOwnProperty.call(S,b)&&(m[b]=S[b])}return m},o=n(0),s=o.DEVICE_TYPES,a=o.defaultData,l=function(C){switch(C){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(C,S,b,O,D){return{isBrowser:C,browserMajorVersion:S.major,browserFullVersion:S.version,browserName:S.name,engineName:b.name||!1,engineVersion:b.version,osName:O.name,osVersion:O.version,userAgent:D}},p=function(C,S,b,O){return i({},C,{vendor:S.vendor,model:S.model,os:b.name,osVersion:b.version,ua:O})},h=function(C,S,b,O){return{isSmartTV:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},c=function(C,S,b,O){return{isConsole:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},g=function(C,S,b,O){return{isWearable:C,engineName:S.name,engineVersion:S.version,osName:b.name,osVersion:b.version,userAgent:O}},w=r.getNavigatorInstance=function(){return typeof window!="undefined"&&(window.navigator||navigator)?window.navigator||navigator:!1},f=r.isIOS13Check=function(C){var S=w();return S&&S.platform&&(S.platform.indexOf(C)!==-1||S.platform==="MacIntel"&&S.maxTouchPoints>1&&!window.MSStream)};e.exports={checkType:l,broPayload:d,mobilePayload:p,stvPayload:h,consolePayload:c,wearPayload:g,getNavigatorInstance:w,isIOS13Check:f}})])})(vo)),vo.exports}var qu=Gu(),Zu=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&&Zu(e,r,i),i};const yo=class yo extends Br{constructor(){super(),this._currentProgressElement=null,this._currentScreenElement=null,this._currentScreenModuleId="",this._currentScreenConfig=null,this.orientation=new Ku(this),this.store=He.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,r)=>{this.store.setIsProcessing(!1),this.store.pushStepWaitNextStepAndSet(e,r)},He.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 gi`Processing...`;const r={perform:this._performFromModule,moduleProps:X(I({},this.processingScreenFromWorkflow),{templateId:"PROGRESS"}),modulesConfig:this.modulesConfig,idvEventListener:this._listenerFromModule,isProcessing:this._isProcessingCallback};return this._currentProgressElement||(this._currentProgressElement=Xa(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 ke;const e=this.loadedModules.find(n=>n.supportedTemplates.includes(this.currentScreenConfig.templateId));if(!e)return ke;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=Xa(e.id,r),this._currentScreenModuleId=e.id,this._currentScreenConfig=this.currentScreenConfig),this._currentScreenElement}get version(){return`${"3.2.260-nightly".trim()}`}disconnectedCallback(){Xo.clearLogs()}render(){return!this.currentScreenConfig&&!this.processingScreenFromWorkflow?null:gi`<div
|
|
117
117
|
part="idv"
|
|
118
118
|
class="idv"
|
|
119
119
|
data-device="${qu.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?gi`<div class="processing-overlay">${this._processingScreen()}</div>`:""}
|
|
124
124
|
${this._currentScreen()}
|
|
125
125
|
</div>
|
|
126
|
-
</div>`}};yo.styles=[Ul];let Ct=yo;kr([
|
|
126
|
+
</div>`}};yo.styles=[Ul];let Ct=yo;kr([br()],Ct.prototype,"store"),kr([br()],Ct.prototype,"currentScreenConfig"),kr([br()],Ct.prototype,"processingScreenFromWorkflow"),kr([br()],Ct.prototype,"isProcessing"),kr([br()],Ct.prototype,"loadedModules"),kr([br()],Ct.prototype,"modulesConfig");class Yu{initialize(e){return F(this,null,function*(){return He.getState().initialize(e)})}configure(e){return F(this,null,function*(){return"userName"in e?yield He.getState().configureByUserPass(e):"apiKey"in e?yield He.getState().configureByApiKey(e):"url"in e&&Object.keys(e).length===1?yield He.getState().configureWithUrl(e.url):{error:new $e({errorCode:Le.CONFIG_MISSED_OR_INVALID,message:"No valid config found"})}})}getWorkFlows(e){return F(this,null,function*(){return yield He.getState().getWorkflows(e)})}prepareWorkflow(r){return F(this,arguments,function*({workflowId:e}){return yield He.getState().prepareWorkflowAndPrepareUi(e)})}startWorkflow(e){return F(this,null,function*(){const n=He.getState().trackLocation?yield Wc():null;return new Promise(i=>{const o=d=>{i(d)},s=e==null?void 0:e.locale,a=e==null?void 0:e.metadata,l=$c(s);He.getState().startNewSession({completion:o,locale:l,metadata:a,location:n}).then(d=>{d.error&&(He.getState().removeCurrentSessionDataLsAndStore(),o(d)),d.results&&(He.getState().removeCurrentSessionDataLsAndStore(),o(d)),He.getState().playWorkflow()})})})}deinitialize(){return F(this,null,function*(){return yield He.getState().deinitialize()})}get version(){return"3.2.260-nightly"}set nonce(e){He.getState().setNonce(e)}set eventListener(e){if(!e||typeof e!="function"){console.warn("IdvIntegrationService:: listener is not a function");return}He.getState().setListener(e)}set sessionRestoreMode(e){He.getState().setSessionRestoreMode(e)}}return window.customElements.get("idv-flow")||window.customElements.define("idv-flow",Ct),he.BaseError=be,he.BaseModule=ha,he.ConnectionError=At,he.DeinitializationError=jr,he.IdvEventTypesEnum=Hr,he.IdvIntegrationService=Yu,he.IdvServiceMessages=Sr,he.IdvWebComponent=Ct,he.InitializeError=Wr,he.PrepareWorkflowError=wt,he.SessionError=ot,he.StartSessionError=Yt,he.WorkflowError=je,he.WorkflowPlatformError=vt,he.registerModule=pa,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}),he})({});
|