Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

persona

Package Overview
Dependencies
Maintainers
7
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona - npm Package Compare versions

Comparing version 4.12.1 to 4.13.0-alpha.0

dist/lib/baseUrlOfHost.d.ts

6

dist/components/Inquiry.d.ts

@@ -1,5 +0,5 @@

/// <reference types="react" />
import * as React from 'react';
import { InquiryOptions } from '../lib/interfaces';
export declare type InquiryProps = InquiryOptions;
declare const _default: (props: InquiryProps) => JSX.Element;
export type InquiryProps = InquiryOptions;
declare const _default: (props: InquiryProps) => React.JSX.Element;
export default _default;

@@ -1,1 +0,1 @@

export {};
import '@testing-library/jest-dom';

@@ -6,9 +6,13 @@ import { BaseUrl, InquiryOptions } from './interfaces';

export default class Client {
private options;
private readonly options;
private _isLoading;
private _isOpen;
private containerId;
private container;
private containerElement;
private containerParent;
private refIframe;
private personaCSS;
private globalCSS;
private loadingElement;
private iframeElement;
private unsubscribeFromMessages;
constructor(options: InquiryOptions);

@@ -15,0 +19,0 @@ render(): void;

@@ -1,3 +0,3 @@

declare type Json = string | number | boolean | null | JsonObject | Json[];
declare type JsonObject = {
type Json = string | number | boolean | null | JsonObject | Json[];
type JsonObject = {
[key: string]: Json;

@@ -4,0 +4,0 @@ };

@@ -5,3 +5,3 @@ import { CSSProperties } from 'react';

*/
export declare type InquiryAttributes = {
export type InquiryAttributes = {
nameFirst?: string;

@@ -20,4 +20,4 @@ nameLast?: string;

};
export declare type FieldType = 'boolean' | 'choices' | 'date' | 'datetime' | 'integer' | 'json' | 'multi_choices' | 'number' | 'string' | 'generic' | 'mobile_drivers_license' | 'nfc_passport' | 'government_id' | 'selfie';
export declare type FieldValue = string | string[] | boolean | number | {
export type FieldType = 'boolean' | 'choices' | 'date' | 'datetime' | 'integer' | 'json' | 'multi_choices' | 'number' | 'string' | 'generic' | 'mobile_drivers_license' | 'nfc_passport' | 'government_id' | 'selfie';
export type FieldValue = string | string[] | boolean | number | {
id: string;

@@ -103,4 +103,4 @@ type: string;

}
export declare type Field = FieldBoolean | FieldChoices | FieldDate | FieldDatetime | FieldInteger | FieldJson | FieldMultiChoices | FieldNumber | FieldString | FieldDocumentGeneric | FieldDocumentMobileDriversLicense | FieldDocumentNfcPassport | FieldGovernmentId | FieldSelfie;
export declare type Fields = {
export type Field = FieldBoolean | FieldChoices | FieldDate | FieldDatetime | FieldInteger | FieldJson | FieldMultiChoices | FieldNumber | FieldString | FieldDocumentGeneric | FieldDocumentMobileDriversLicense | FieldDocumentNfcPassport | FieldGovernmentId | FieldSelfie;
export type Fields = {
[fieldKey: string]: FieldValue;

@@ -433,3 +433,3 @@ };

}
export declare type ServerMessageData = ServerMessageDataLoad | ServerMessageDataReady | ServerMessageDataComplete | ServerMessageDataFail | ServerMessageDataCancel | ServerMessageDataError;
export type ServerMessageData = ServerMessageDataLoad | ServerMessageDataReady | ServerMessageDataComplete | ServerMessageDataFail | ServerMessageDataCancel | ServerMessageDataError;
interface InquiryErrorBase {

@@ -467,3 +467,3 @@ status: number;

}
export declare type InquiryError = InquiryErrorApplication | InquiryErrorInvalidConfig | InquiryErrorInactiveTemplate | InquiryErrorInvalidInquiryId | InquiryErrorUnauthenticated | InquiryErrorUnknown;
export type InquiryError = InquiryErrorApplication | InquiryErrorInvalidConfig | InquiryErrorInactiveTemplate | InquiryErrorInvalidInquiryId | InquiryErrorUnauthenticated | InquiryErrorUnknown;
export {};

@@ -1,2 +0,2 @@

declare type Level = 'info' | 'warn' | 'error';
type Level = 'info' | 'warn' | 'error';
declare class Logger {

@@ -3,0 +3,0 @@ static log(message: string, level?: Level): void;

@@ -5,10 +5,10 @@ /// <reference types="react" />

import { InquiryOptions as _InquiryOptions, Event as _Event, InquiryAttributes as _InquiryAttributes } from './lib/interfaces';
export declare type ClientOptions = _InquiryOptions;
export declare type Event = _Event;
export declare type PrefillAttributes = _InquiryAttributes;
export type ClientOptions = _InquiryOptions;
export type Event = _Event;
export type PrefillAttributes = _InquiryAttributes;
declare const _default: {
Client: typeof Client;
Inquiry: (props: _InquiryOptions) => JSX.Element;
Inquiry: (props: _InquiryOptions) => import("react").JSX.Element;
};
export default _default;
export { Client, Inquiry };

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("styled-components")):"function"==typeof define&&define.amd?define(["react","react-dom","styled-components"],t):"object"==typeof exports?exports.Persona=t(require("react"),require("react-dom"),require("styled-components")):e.Persona=t(e.react,e["react-dom"],e["styled-components"])}(self,(function(e,t,n){return(()=>{var r={937:(e,t,n)=>{var r=n(158).Symbol;e.exports=r},41:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},276:e=>{e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},28:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},194:(e,t,n)=>{var r=n(937),o=n(401),i=n(445),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},653:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},430:(e,t,n)=>{var r=n(937),o=n(41),i=n(706),a=n(878),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},292:(e,t,n)=>{var r=n(276),o=n(567),i=n(973),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},64:(e,t,n)=>{var r=n(653)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=r},528:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},401:(e,t,n)=>{var r=n(937),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},405:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},445:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},158:(e,t,n)=>{var r=n(528),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},667:e=>{var t="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="["+r+"]",i="\\d+",a="["+t+"]",l="[^\\ud800-\\udfff"+r+i+"\\u2700-\\u27bf"+t+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="["+n+"]",f="(?:"+a+"|"+l+")",d="(?:"+u+"|"+l+")",p="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",g=y+h+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",s,c].join("|")+")"+y+h+")*",b="(?:"+["[\\u2700-\\u27bf]",s,c].join("|")+")"+g,v=RegExp([u+"?"+a+"+"+p+"(?="+[o,u,"$"].join("|")+")",d+"+"+m+"(?="+[o,u+f,"$"].join("|")+")",u+"?"+f+"+"+p,u+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,b].join("|"),"g");e.exports=function(e){return e.match(v)||[]}},567:(e,t,n)=>{var r=n(64),o=n(270),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},706:e=>{var t=Array.isArray;e.exports=t},288:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},878:(e,t,n)=>{var r=n(194),o=n(288);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},277:(e,t,n)=>{var r=n(292)((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));e.exports=r},270:(e,t,n)=>{var r=n(430);e.exports=function(e){return null==e?"":r(e)}},973:(e,t,n)=>{var r=n(28),o=n(405),i=n(270),a=n(667);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},663:e=>{"use strict";var t=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},907:(e,t,n)=>{"use strict";var r=n(38),o=n(186),i=n(663);e.exports={formats:i,parse:o,stringify:r}},186:(e,t,n)=>{"use strict";var r=n(304),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),l=a?r.slice(0,a.index):r,s=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;s.push(l)}for(var c=0;null!==(a=i.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(a[1])}return a&&s.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,s=parseInt(l,10);n.parseArrays||""!==l?!isNaN(s)&&a!==l&&String(s)===l&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[])[s]=r:i[l]=r:i={0:r}}r=i}return r}(s,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,l={},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=s.split(t.delimiter,c),f=-1,d=t.charset;if(t.charsetSentinel)for(n=0;n<u.length;++n)0===u[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[n]?d="utf-8":"utf8=%26%2310003%3B"===u[n]&&(d="iso-8859-1"),f=n,n=u.length);for(n=0;n<u.length;++n)if(n!==f){var p,m,h=u[n],y=h.indexOf("]="),g=-1===y?h.indexOf("="):y+1;-1===g?(p=t.decoder(h,i.decoder,d),m=t.strictNullHandling?null:""):(p=t.decoder(h.slice(0,g),i.decoder,d),m=t.decoder(h.slice(g+1),i.decoder,d)),m&&t.interpretNumericEntities&&"iso-8859-1"===d&&(m=a(m)),m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),o.call(l,p)?l[p]=r.combine(l[p],m):l[p]=m}return l}(e,n):e,c=n.plainObjects?Object.create(null):{},u=Object.keys(s),f=0;f<u.length;++f){var d=u[f],p=l(d,s[d],n);c=r.merge(c,p,n)}return r.compact(c)}},38:(e,t,n)=>{"use strict";var r=n(304),o=n(663),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,l(t)?t:[t])},u=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,o,i,a,s,u,d,p,m,h,y,g){var b=t;if("function"==typeof u?b=u(n,b):b instanceof Date?b=m(b):"comma"===o&&l(b)&&(b=b.join(",")),null===b){if(i)return s&&!y?s(n,f.encoder,g):n;b=""}if("string"==typeof b||"number"==typeof b||"boolean"==typeof b||r.isBuffer(b))return s?[h(y?n:s(n,f.encoder,g))+"="+h(s(b,f.encoder,g))]:[h(n)+"="+h(String(b))];var v,x=[];if(void 0===b)return x;if(l(u))v=u;else{var w=Object.keys(b);v=d?w.sort(d):w}for(var O=0;O<v.length;++O){var j=v[O];a&&null===b[j]||(l(b)?c(x,e(b[j],"function"==typeof o?o(n,j):n,o,i,a,s,u,d,p,m,h,y,g)):c(x,e(b[j],n+(p?"."+j:"["+j+"]"),o,i,a,s,u,d,p,m,h,y,g)))}return x};e.exports=function(e,t){var n,r=e,s=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=f.filter;return("function"==typeof e.filter||l(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof s.filter?r=(0,s.filter)("",r):l(s.filter)&&(n=s.filter);var u,p=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[u];n||(n=Object.keys(r)),s.sort&&n.sort(s.sort);for(var h=0;h<n.length;++h){var y=n[h];s.skipNulls&&null===r[y]||c(p,d(r[y],y,m,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var g=p.join(s.delimiter),b=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),g.length>0?b+g:""}},304:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],u=a[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)void 0!==r[i]&&o.push(r[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var o="string"==typeof e?e:String(e);if("iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<o.length;++a){var l=o.charCodeAt(a);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?i+=o.charAt(a):l<128?i+=r[l]:l<2048?i+=r[192|l>>6]+r[128|63&l]:l<55296||l>=57344?i+=r[224|l>>12]+r[128|l>>6&63]+r[128|63&l]:(a+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(a)),i+=r[240|l>>18]+r[128|l>>12&63]+r[128|l>>6&63]+r[128|63&l])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(r,i,a){if(!i)return r;if("object"!=typeof i){if(n(r))r.push(i);else{if(!r||"object"!=typeof r)return[r,i];(a&&(a.plainObjects||a.allowPrototypes)||!t.call(Object.prototype,i))&&(r[i]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(i);var l=r;return n(r)&&!n(i)&&(l=o(r,a)),n(r)&&n(i)?(i.forEach((function(n,o){if(t.call(r,o)){var i=r[o];i&&"object"==typeof i&&n&&"object"==typeof n?r[o]=e(i,n,a):r.push(n)}else r[o]=n})),r):Object.keys(i).reduce((function(n,r){var o=i[r];return t.call(n,r)?n[r]=e(n[r],o,a):n[r]=o,n}),l)}}},407:(e,t,n)=>{"use strict";n.d(t,{default:()=>Y});var r,o=n(297),i=n(268),a=n(914),l=n.n(a);function s(){return"persona-widget-"+new Array(16).fill(void 0).map((function(){return Math.floor(35*Math.random()).toString(35)})).join("")}!function(e){e.Embedded="embedded",e.Inline="inline"}(r||(r={}));var c=n(907),u=n.n(c);var f,d,p;!function(e){e.Cancel="exit",e.Complete="complete",e.Error="error",e.Fail="fail",e.Load="load",e.Ready="ready",e.Start="start",e.Success="success",e.DocumentCameraSelect="document-camera-select",e.DocumentCameraCapture="document-camera-capture",e.DocumentUpload="document-upload",e.OneTimeLinkSent="one-time-link-sent",e.OneTimeLinkStart="one-time-link-start",e.OneTimeLinkExit="one-time-link-exit",e.SelfieCameraSelect="selfie-camera-select",e.SelfieCameraCapture="selfie-camera-capture",e.SelfieRecordUpload="selfie-record-upload",e.LoadCameraFailed="load-camera-failed",e.PageChange="page-change",e.InquiryLoad="inquiry-load",e.CountrySelect="country-select",e.VerificationChange="verification-change"}(f||(f={})),function(e){e.Open="open",e.Exit="exit",e.Destroy="destroy"}(d||(d={})),function(e){e.Development="http://localhost:3000",e.Staging="https://inquiry.withpersona-staging.com",e.Canary="https://canary.withpersona.com",e.Production="https://inquiry.withpersona.com"}(p||(p={}));var m=n(277),h=n.n(m),y=function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function g(e){return Array.isArray(e)?e.map(g):function(e){return null!=e&&e.constructor===Object}(e)?Object.keys(e).reduce((function(t,n){var r;return y(y({},t),((r={})[h()(n)]=g(e[n]),r))}),{}):e}var b=function(e){return e.split(".").slice(-2).join(".")},v=["allow-scripts","allow-same-origin","allow-popups"],x=["allow-forms","allow-modals","allow-top-navigation-by-user-activation"];const w=function(e){var t,n=e.accountId,r=e.accountTypeId,i=e.containerId,a=e.environment,l=e.environmentId,s=e.fields,c=e.flowType,d=e.frameAncestors,m=e.frameHeight,h=e.frameWidth,y=e.host,w=e.iframeTitle,O=e.inquiryId,j=e.language,I=e.lockedAttributes,E=e.messageTargetOrigin,k=e.onCancel,C=e.onComplete,S=e.onError,A=e.onEvent,L=e.onLoad,P=e.onReady,N=e.prefill,D=e.refIframe,T=e.referenceId,R=e.routingCountry,q=e.sandboxAttributes,U=void 0===q?x:q,z=e.sessionToken,_=e.styleVariant,H=e.templateId,F=e.templateVersionId,V=e.themeId,M=e.themeSetId,Q=!(!H&&!F),W=null==H?void 0:H.startsWith("itmpl_");if(!Q&&!O)throw new Error("Either templateId/templateVersionId or inquiryId must be specified to start a flow");if(Q&&O)throw new Error("Only one of templateId/templateVersionId or inquiryId should be specified to start a flow");if(n){if(T)throw new Error("Cannot pass both accountId and referenceId");if(r)throw new Error("Cannot pass both accountId and accountTypeId")}switch(y){case"development":t=p.Development;break;case"staging":t=p.Staging;break;case"canary":t=p.Canary;break;default:t=p.Production}o.useEffect((function(){window.addEventListener("message",(function(e){var n;if((""===e.origin||b(new URL(e.origin).host)===b(new URL(t).host))&&!(H&&H!==e.data.templateId||F&&F!==e.data.templateVersionId||e.data.containerId&&i!==e.data.containerId))switch(null==A||A(e.data.name,e.data.metadata),e.data.name){case f.Load:null==L||L();break;case f.Ready:null==P||P();break;case f.Complete:case f.Fail:null==C||C({inquiryId:e.data.metadata.inquiryId,status:e.data.metadata.status,fields:null!==(n=e.data.metadata.fields)&&void 0!==n?n:e.data.metadata.scopes});break;case f.Cancel:null==k||k({inquiryId:e.data.metadata.inquiryId,sessionToken:e.data.metadata.sessionToken});break;case f.Error:null==S||S(e.data.error)}}))}),[]);var Z=u().stringify({"client-version":"4.12.1","container-id":i,"flow-type":c,"routing-country":R,"template-id":(W?null:H)||null,"inquiry-template-id":(W?H:null)||null,"inquiry-template-version-id":F||null,environment:a,"environment-id":l,"iframe-origin":window.location.origin,"frame-ancestors":null!=d?d:null,"message-target-origin":E||null,"inquiry-id":O||null,language:j,"session-token":z,"reference-id":T,"account-id":n,"account-type-id":r,fields:g(null!=s?s:{}),"style-variant":_||null,"theme-set-id":M,"theme-id":V,prefill:g(null!=N?N:{}),"locked-attributes":g(null!=I?I:{})},{addQueryPrefix:!0,skipNulls:!0});return o.createElement("iframe",{style:{maxHeight:m,maxWidth:h},title:null!=w?w:"Verify your identity",className:"persona-widget__iframe",allow:"camera;microphone",sandbox:v.concat(U).join(" "),frameBorder:"0",ref:D,src:t+"/widget"+Z,onLoad:function(){}})};var O=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},j=l()("svg")(k||(k=O(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"],["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"]))),I=l()("div")(C||(C=O(["\n position: relative;\n width: 120px;\n height: 120px;\n"],["\n position: relative;\n width: 120px;\n height: 120px;\n"])));const E=function(){return o.createElement(I,null,o.createElement(j,{xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114"},o.createElement("path",{fill:"none",stroke:"#0F2B72",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M25.887 10.432a56.275 56.275 0 0 0-15.455 15.455 55.86 55.86 0 0 0-5.183 9.678A55.576 55.576 0 0 0 2.066 46.07m-.8 5.438A56.678 56.678 0 0 0 1 57m4.249 21.435a55.86 55.86 0 0 0 5.183 9.678 56.275 56.275 0 0 0 6.97 8.485m8.485 6.97a55.86 55.86 0 0 0 9.678 5.183 55.576 55.576 0 0 0 10.506 3.183c3.535.7 7.19 1.066 10.929 1.066 3.74 0 7.394-.367 10.929-1.066a55.576 55.576 0 0 0 10.506-3.183 55.86 55.86 0 0 0 9.678-5.183 56.275 56.275 0 0 0 15.455-15.455 55.86 55.86 0 0 0 5.183-9.678 55.576 55.576 0 0 0 3.183-10.506A56.274 56.274 0 0 0 113 57c0-3.74-.367-7.394-1.066-10.929a55.576 55.576 0 0 0-3.183-10.506M96.598 17.402a56.275 56.275 0 0 0-8.485-6.97 55.86 55.86 0 0 0-9.678-5.183A55.576 55.576 0 0 0 67.93 2.066 56.274 56.274 0 0 0 57 1c-3.74 0-7.394.367-10.929 1.066m-34.94 30.418A51.76 51.76 0 0 0 7.225 41.9a51.633 51.633 0 0 0-1.98 10 52.63 52.63 0 0 0 .744 15.247 51.633 51.633 0 0 0 7.768 18.743 52.188 52.188 0 0 0 10.254 11.308 52.188 52.188 0 0 0 8.472 5.67m9.417 3.905a51.633 51.633 0 0 0 10 1.98 52.63 52.63 0 0 0 10.197 0 51.939 51.939 0 0 0 10-1.98 51.61 51.61 0 0 0 9.418-3.904 51.984 51.984 0 0 0 8.472-5.671m3.782-3.43a52.308 52.308 0 0 0 3.429-3.78m9.575-17.89a51.633 51.633 0 0 0 1.98-10 52.63 52.63 0 0 0-.744-15.247 51.633 51.633 0 0 0-7.768-18.743 52.188 52.188 0 0 0-10.254-11.308m-4.097-3.043a51.984 51.984 0 0 0-4.375-2.628M67.148 5.99a51.939 51.939 0 0 0-5.05-.743 52.63 52.63 0 0 0-15.246.743 51.633 51.633 0 0 0-18.743 7.768M24.012 16.8a52.308 52.308 0 0 0-3.782 3.43"})))};var k,C,S=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},A=function(){return(A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},L=(0,a.keyframes)(z||(z=S(["\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n background-color: rgba(0, 0, 0, ",");\n opacity: 1;\n }\n"],["\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n background-color: rgba(0, 0, 0, ",");\n opacity: 1;\n }\n"])),.7),P=l()("div")(_||(_=S(["\n animation: "," 0.3s;\n background-color: rgba(0, 0, 0, ",");\n display: ",";\n\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n"],["\n animation: "," 0.3s;\n background-color: rgba(0, 0, 0, ",");\n display: ",";\n\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n"])),L,.7,(function(e){return e.isOpen?"block":"none"})),N=l()("div")(H||(H=S(["\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n"],["\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n"]))),D=(0,a.keyframes)(F||(F=S(["\n from {\n transform: translate(-50%, -40%) scale(.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n"],["\n from {\n transform: translate(-50%, -40%) scale(.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n"]))),T=(0,a.keyframes)(V||(V=S(["\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n"],["\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n"]))),R=l()("div")(M||(M=S(["\n iframe {\n animation: "," 0.3s, "," ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n }\n"],["\n iframe {\n animation: "," 0.3s, "," ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n }\n"])),D,T),q=(0,a.createGlobalStyle)(Q||(Q=S(["\n // Don't allow scrolling when widget is open\n html body {\n overflow: hidden !important;\n }\n\n // When the widget takes the full screen, hide everything else to prevent iOS scroll issues.\n @media "," {\n html body > *:not(#",") {\n display: none !important;\n }\n }\n"],["\n // Don't allow scrolling when widget is open\n html body {\n overflow: hidden !important;\n }\n\n // When the widget takes the full screen, hide everything else to prevent iOS scroll issues.\n @media "," {\n html body > *:not(#",") {\n display: none !important;\n }\n }\n"])),"(max-width: 600px), (max-height: 420px)",(function(e){return e.containerId}));const U=function(e){return o.createElement(P,{isOpen:e.isOpen,className:"persona-widget__overlay"},e.isLoading&&o.createElement(N,null,o.createElement(E,null)),o.createElement(R,null,o.createElement(w,A({},e,{flowType:r.Embedded}))),e.isOpen&&o.createElement(q,{containerId:e.containerId}))};var z,_,H,F,V,M,Q;const W=function(){function e(){}return e.log=function(e,t){void 0===t&&(t="info")},e}();var Z=function(){return(Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},B=function(){function e(e){var t,n,r=this;this._isLoading=!0,this._isOpen=!1,this.onLoad=function(){var e,t;r._isLoading=!1,r.render(),null===(t=(e=r.options).onLoad)||void 0===t||t.call(e)},this.onReady=function(){var e,t;null===(t=(e=r.options).onReady)||void 0===t||t.call(e)},this.onComplete=function(e){var t,n,o=e.inquiryId,i=e.status,a=e.fields;r._isOpen=!1,r.render(),null===(n=(t=r.options).onComplete)||void 0===n||n.call(t,{inquiryId:o,status:i,fields:a})},this.onCancel=function(e){var t,n,o=e.inquiryId,i=e.sessionToken;r._isOpen=!1,r.render(),null===(n=(t=r.options).onCancel)||void 0===n||n.call(t,{inquiryId:o,sessionToken:i})},this.options=e,this.refIframe=o.createRef(),this.container=document.createElement("div"),this.containerId=s(),this.container.setAttribute("id",this.containerId),this.containerParent=null!==(n=null!==(t=e.parent)&&void 0!==t?t:document.body)&&void 0!==n?n:document.children[0],this.containerParent.appendChild(this.container),this.render()}return e.prototype.render=function(){if(null!=this.container)try{i.render(o.createElement(U,Z({isLoading:this._isLoading,isOpen:this._isOpen,containerId:this.containerId,refIframe:this.refIframe},this.options,{onLoad:this.onLoad,onReady:this.onReady,onComplete:this.onComplete,onCancel:this.onCancel,onEvent:this.options.onEvent})),this.container)}catch(e){throw this.destroy(),e}else W.log("Cannot render client that has been destroyed","error")},e.prototype.open=function(){var e,t;null===(t=null===(e=this.refIframe.current)||void 0===e?void 0:e.contentWindow)||void 0===t||t.postMessage({action:d.Open,metadata:{}},this.baseUrl),this._isOpen=!0,this.render()},e.prototype.cancel=function(e){var t,n;null===(n=null===(t=this.refIframe.current)||void 0===t?void 0:t.contentWindow)||void 0===n||n.postMessage({action:d.Exit,metadata:{force:e}},this.baseUrl),this.render()},e.prototype.destroy=function(){var e,t;null===(t=null===(e=this.refIframe.current)||void 0===e?void 0:e.contentWindow)||void 0===t||t.postMessage({action:d.Destroy,metadata:{}},this.baseUrl),i.unmountComponentAtNode(this.container),this.containerParent.removeChild(this.container)},Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){switch(this.options.host){case"development":return p.Development;case"staging":return p.Staging;case"canary":return p.Canary;default:return p.Production}},enumerable:!1,configurable:!0}),e}(),G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};const Y={Client:B,Inquiry:function(e){var t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(o.useState(s()),2),n=t[0];return t[1],o.createElement(w,G({},e,{containerId:n,flowType:r.Inline}))}}},297:t=>{"use strict";t.exports=e},268:e=>{"use strict";e.exports=t},914:e=>{"use strict";e.exports=n}},o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={exports:{}};return r[e](t,t.exports,i),t.exports}return i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i(407)})().default}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Persona=t(require("react")):e.Persona=t(e.react)}(self,(e=>(()=>{var t={913:(e,t,r)=>{"use strict";var n=r(651),o=r(601),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},601:(e,t,r)=>{"use strict";var n=r(49),o=r(651),i=r(255),a=r(785),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(u,l),p=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var s=function(){return c(n,l,arguments)};p?p(e.exports,"apply",{value:s}):e.exports.apply=s},295:(e,t,r)=>{"use strict";var n=r(890)(),o=r(651),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var a=r(770),l=r(785),u=r(109);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(i)i(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===n&&f?f.enumerable:!n,value:r,writable:null===o&&f?f.writable:!o});else{if(!p&&(n||o||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},55:e=>{"use strict";e.exports=EvalError},293:e=>{"use strict";e.exports=Error},888:e=>{"use strict";e.exports=RangeError},900:e=>{"use strict";e.exports=ReferenceError},770:e=>{"use strict";e.exports=SyntaxError},785:e=>{"use strict";e.exports=TypeError},436:e=>{"use strict";e.exports=URIError},719:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=1,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments),l=r(0,o.length-a.length),u=[],c=0;c<l;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var p=function(){};p.prototype=o.prototype,i.prototype=new p,p.prototype=null}return i}},49:(e,t,r)=>{"use strict";var n=r(719);e.exports=Function.prototype.bind||n},651:(e,t,r)=>{"use strict";var n,o=r(293),i=r(55),a=r(888),l=r(900),u=r(770),c=r(785),p=r(436),f=Function,s=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch(e){y=null}var d=function(){throw new c},m=y?function(){try{return d}catch(e){try{return y(arguments,"callee").get}catch(e){return d}}}():d,h=r(257)(),g=r(726)(),b=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,S={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&b?b(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var x=b(b(e));S["%Error.prototype%"]=x}var j=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return S[t]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(49),E=r(215),I=O.call(Function.call,Array.prototype.concat),P=O.call(Function.apply,Array.prototype.splice),k=O.call(Function.call,String.prototype.replace),_=O.call(Function.call,String.prototype.slice),C=O.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,M=function(e,t){var r,n=e;if(E(A,n)&&(n="%"+(r=A[n])[0]+"%"),E(S,n)){var o=S[n];if(o===v&&(o=j(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(e,R,(function(e,t,r,o){n[n.length]=r?k(o,F,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=M("%"+n+"%",t),i=o.name,a=o.value,l=!1,p=o.alias;p&&(n=p[0],P(r,I([0,1],p)));for(var f=1,s=!0;f<r.length;f+=1){var d=r[f],m=_(d,0,1),h=_(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&s||(l=!0),E(S,i="%"+(n+="."+d)+"%"))a=S[i];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&f+1>=r.length){var g=y(a,d);a=(s=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else s=E(a,d),a=a[d];s&&!l&&(S[i]=a)}}return a}},109:(e,t,r)=>{"use strict";var n=r(651)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},890:(e,t,r)=>{"use strict";var n=r(651)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},726:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},257:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(843);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},843:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},215:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(49);e.exports=i.call(n,o)},709:(e,t,r)=>{var n,o=1/0,i="[object Symbol]",a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u="\\ud800-\\udfff",c="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",y="["+s+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",m="\\d+",h="["+c+"]",g="["+p+"]",b="[^"+u+s+m+c+p+f+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",S="["+f+"]",x="(?:"+g+"|"+b+")",j="(?:"+S+"|"+b+")",A="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",E="(?:"+d+"|\\ud83c[\\udffb-\\udfff])?",I="[\\ufe0e\\ufe0f]?",P=I+E+"(?:\\u200d(?:"+["[^"+u+"]",v,w].join("|")+")"+I+E+")*",k="(?:"+[h,v,w].join("|")+")"+P,_=RegExp("['’]","g"),C=RegExp(d,"g"),R=RegExp([S+"?"+g+"+"+A+"(?="+[y,S,"$"].join("|")+")",j+"+"+O+"(?="+[y,S+x,"$"].join("|")+")",S+"?"+x+"+"+A,S+"+"+O,m,k].join("|"),"g"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,M="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,U="object"==typeof self&&self&&self.Object===Object&&self,T=M||U||Function("return this")(),N=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==n?void 0:n[e]}),D=Object.prototype.toString,L=T.Symbol,W=L?L.prototype:void 0,B=W?W.toString:void 0;function q(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&D.call(e)==i}(e))return B?B.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(e)}var V,z=(V=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r,n){for(var o=-1,i=e?e.length:0;++o<i;)r=t(r,e[o],o,e);return r}(function(e,t,r){return e=q(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(R)||[]}(e):function(e){return e.match(a)||[]}(e):e.match(t)||[]}(function(e){return(e=q(e))&&e.replace(l,N).replace(C,"")}(e).replace(_,"")),V,"")});e.exports=z},937:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&u&&"function"==typeof u.get?u.get:null,p=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,x=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,E=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-E(-e):E(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var U=r(634),T=U.custom,N=q(T)?T:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return v.call(String(e),/"/g,"&quot;")}function W(e){return!("[object Array]"!==G(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==G(e)||C&&"object"==typeof e&&C in e)}function q(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return H(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?M(t,x):x}if("bigint"==typeof t){var E=String(t)+"n";return w?M(t,E):E}var P=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var T,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(u,o);if(void 0===l)l=[];else if($(l,t)>=0)return"[Circular]";function J(t,r,n){if(r&&(l=O.call(l)).push(r),n){var i={depth:u.depth};return z(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),e(t,i,o+1,l)}return e(t,u,o+1,l)}if("function"==typeof t&&!B(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,J);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+A.call(te,", ")+" }":"")}if(q(t)){var re=_?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||_?re:Z(re)}if((T=t)&&"object"==typeof T&&("undefined"!=typeof HTMLElement&&T instanceof HTMLElement||"string"==typeof T.nodeName&&"function"==typeof T.getAttribute)){for(var ne="<"+S.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)ne+=" "+oe[ie].name+"="+D(L(oe[ie].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+S.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var ae=X(t,J);return V&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+K(ae,V)+"]":"[ "+A.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)){var le=X(t,J);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(le,", ")+" }":"{ ["+String(t)+"] "+A.call(j.call("[cause]: "+J(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(N&&"function"==typeof t[N]&&U)return U(t,{depth:P-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,r){ue.push(J(r,t,!0)+" => "+J(e,t))})),Y("Map",i.call(t),ue,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return p&&p.call(t,(function(e){ce.push(J(e,t))})),Y("Set",c.call(t),ce,V)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return Z(J(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(e){}return!1}(t))return Z(J(I.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return Z(d.call(t));if(function(e){return!("[object String]"!==G(e)||C&&"object"==typeof e&&C in e)}(t))return Z(J(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var pe=X(t,J),fe=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,se=t instanceof Object?"":"null prototype",ye=!fe&&C&&Object(t)===t&&C in t?b.call(G(t),8,-1):se?"Object":"",de=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ye||se?"["+A.call(j.call([],ye||[],se||[]),": ")+"] ":"");return 0===pe.length?de+"{}":V?de+"{"+K(pe,V)+"}":de+"{ "+A.call(pe,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function G(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function H(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(b.call(e,0,t.maxStringLength),t)+n}return D(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):A.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=z(e,o)?t(e[o],e):""}var i,a="function"==typeof P?P(e):[];if(_){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in e)z(e,u)&&(r&&String(Number(u))===u&&u<e.length||_&&i["$"+u]instanceof Symbol||(x.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof P)for(var c=0;c<a.length;c++)R.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},647:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},882:(e,t,r)=>{"use strict";var n=r(402),o=r(662),i=r(647),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,p=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},m=function e(t,r,i,a,l,c,f,s,m,h,g,b,v,w,S,x){for(var j,A=t,O=x,E=0,I=!1;void 0!==(O=O.get(d))&&!I;){var P=O.get(t);if(E+=1,void 0!==P){if(P===E)throw new RangeError("Cyclic object value");I=!0}void 0===O.get(d)&&(E=0)}if("function"==typeof s?A=s(r,A):A instanceof Date?A=g(A):"comma"===i&&u(A)&&(A=o.maybeMap(A,(function(e){return e instanceof Date?g(e):e}))),null===A){if(l)return f&&!w?f(r,y.encoder,S,"key",b):r;A=""}if("string"==typeof(j=A)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(A))return f?[v(w?r:f(r,y.encoder,S,"key",b))+"="+v(f(A,y.encoder,S,"value",b))]:[v(r)+"="+v(String(A))];var k,_=[];if(void 0===A)return _;if("comma"===i&&u(A))w&&f&&(A=o.maybeMap(A,f)),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(s))k=s;else{var C=Object.keys(A);k=m?C.sort(m):C}for(var R=a&&u(A)&&1===A.length?r+"[]":r,F=0;F<k.length;++F){var M=k[F],U="object"==typeof M&&void 0!==M.value?M.value:A[M];if(!c||null!==U){var T=u(A)?"function"==typeof i?i(R,M):R:R+(h?"."+M:"["+M+"]");x.set(t,E);var N=n();N.set(d,x),p(_,e(U,T,i,a,l,c,"comma"===i&&w&&u(A)?null:f,s,m,h,g,b,v,w,S,N))}}return _};e.exports=function(e,t){var r,o=e,c=function(e){if(!e)return y;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=y.filter;return("function"==typeof e.filter||u(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===e.allowDots?y.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(r=c.filter);var f,s=[];if("object"!=typeof o||null===o)return"";f=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=l[f];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h="comma"===d&&t&&t.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var g=n(),b=0;b<r.length;++b){var v=r[b];c.skipNulls&&null===o[v]||p(s,m(o[v],v,d,h,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=s.join(c.delimiter),S=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},662:(e,t,r)=>{"use strict";var n=r(647),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],l=Object.keys(a),u=0;u<l.length;++u){var c=l[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(t.push({obj:a,prop:c}),r.push(p))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<l.length;++c){var p=l.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===n.RFC1738&&(40===p||41===p)?u+=l.charAt(c):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&l.charCodeAt(c)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=l(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},255:(e,t,r)=>{"use strict";var n=r(651),o=r(295),i=r(890)(),a=r(109),l=r(785),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var p=a(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},402:(e,t,r)=>{"use strict";var n=r(651),o=r(913),i=r(937),a=r(785),l=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),p=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),s=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return s(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,o)):u?(t||(t=new u),y(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},155:t=>{"use strict";t.exports=e},634:()=>{}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{"use strict";n.d(o,{default:()=>k});var e=n(882),t=n.n(e);const r=JSON.parse('{"rE":"4.13.0-alpha.0"}');var i,a,l;function u(e){switch(e){case"development":return l.Development;case"staging":return l.Staging;case"canary":return l.Canary;default:return l.Production}}!function(e){e.Cancel="exit",e.Complete="complete",e.Error="error",e.Fail="fail",e.Load="load",e.Ready="ready",e.Start="start",e.Success="success",e.DocumentCameraSelect="document-camera-select",e.DocumentCameraCapture="document-camera-capture",e.DocumentUpload="document-upload",e.OneTimeLinkSent="one-time-link-sent",e.OneTimeLinkStart="one-time-link-start",e.OneTimeLinkExit="one-time-link-exit",e.SelfieCameraSelect="selfie-camera-select",e.SelfieCameraCapture="selfie-camera-capture",e.SelfieRecordUpload="selfie-record-upload",e.LoadCameraFailed="load-camera-failed",e.PageChange="page-change",e.InquiryLoad="inquiry-load",e.CountrySelect="country-select",e.VerificationChange="verification-change"}(i||(i={})),function(e){e.Open="open",e.Exit="exit",e.Destroy="destroy"}(a||(a={})),function(e){e.Development="http://localhost:3000",e.Staging="https://inquiry.withpersona-staging.com",e.Canary="https://canary.withpersona.com",e.Production="https://inquiry.withpersona.com"}(l||(l={}));var c=n(709),p=n.n(c),f=function(){return f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};function s(e){return Array.isArray(e)?e.map(s):function(e){return null!=e&&e.constructor===Object}(e)?Object.keys(e).reduce((function(t,r){var n;return f(f({},t),((n={})[p()(r)]=s(e[r]),n))}),{}):e}var y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},m=function(){function e(e){this.id=e}return e.prototype.isMounted=function(){return null!=document.getElementById(this.id)},e.prototype.mount=function(e){if(document.getElementById(this.id))console.warn("persona: stylesheet ".concat(this.id," already appended. skipping."));else{var t=g("style",{id:this.id},[document.createTextNode(e)]);document.head.appendChild(t)}},e.prototype.unmount=function(){var e,t=document.getElementById(this.id);null!=t?null===(e=t.parentNode)||void 0===e||e.removeChild(t):console.warn("persona: no stylesheet ".concat(this.id," to remove. skipping."))},e}();function h(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElementNS("http://www.w3.org/2000/svg",e);try{for(var u=y(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),f=p[0],s=p[1];"className"===f&&(f="class"),l.setAttribute(f,s)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=y(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&l.appendChild(g)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function g(e,t,r){var n,o,i,a;void 0===r&&(r=[]);var l=document.createElement(e);try{for(var u=y(Object.entries(t)),c=u.next();!c.done;c=u.next()){var p=d(c.value,2),f=p[0],s=p[1];"className"===f&&(f="class"),l.setAttribute(f,s)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}try{for(var m=y(r),h=m.next();!h.done;h=m.next()){var g=h.value;!1!==g&&("string"==typeof g?l.appendChild(document.createTextNode(g)):l.appendChild(g))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}return l}function b(e){return"string"==typeof e?e:"number"==typeof e?"".concat(e,"px"):""}var v,w=["allow-scripts","allow-same-origin","allow-popups"],S=["allow-forms","allow-modals","allow-top-navigation-by-user-activation"];function x(e,n,o,i){var a=i.accountId,l=i.accountTypeId,c=i.environment,p=i.environmentId,f=i.fields,y=i.frameAncestors,d=i.frameHeight,m=i.frameWidth,h=i.host,g=i.iframeTitle,v=i.inquiryId,x=i.language,j=i.lockedAttributes,A=i.messageTargetOrigin,O=i.prefill,E=i.referenceId,I=i.routingCountry,P=i.sandboxAttributes,k=void 0===P?S:P,_=i.sessionToken,C=i.styleVariant,R=i.templateId,F=i.templateVersionId,M=i.themeId,U=i.themeSetId,T=!(!R&&!F),N=null==R?void 0:R.startsWith("itmpl_");if(!T&&!v)throw new Error("Either templateId/templateVersionId or inquiryId must be specified to start a flow");if(T&&v)throw new Error("Only one of templateId/templateVersionId or inquiryId should be specified to start a flow");if(a){if(E)throw new Error("Cannot pass both accountId and referenceId");if(l)throw new Error("Cannot pass both accountId and accountTypeId")}var D=u(h),L=t()({"client-version":r.rE,"container-id":n,"flow-type":o,"routing-country":I,"template-id":(N?null:R)||null,"inquiry-template-id":(N?R:null)||null,"inquiry-template-version-id":F||null,environment:c,"environment-id":p,"iframe-origin":window.location.origin,"frame-ancestors":null!=y?y:null,"message-target-origin":A||null,"inquiry-id":v||null,language:x,"session-token":_,"reference-id":E,"account-id":a,"account-type-id":l,fields:s(null!=f?f:{}),"style-variant":C||null,"theme-set-id":U,"theme-id":M,prefill:s(null!=O?O:{}),"locked-attributes":s(null!=j?j:{})},{addQueryPrefix:!0,skipNulls:!0});return e.style.maxHeight=b(d),e.style.maxWidth=b(m),e.setAttribute("data-testid","persona-widget__iframe"),e.title=null!=g?g:"Verify your identity",e.className="persona-widget__iframe",e.allow="camera;microphone",e.setAttribute("sandbox",w.concat(k).join(" ")),e.frameBorder="0",e.src=D+"/widget"+L,e.onload=function(){},e}function j(){return"persona-widget-"+new Array(16).fill(void 0).map((function(){return Math.floor(35*Math.random()).toString(35)})).join("")}!function(e){e.Embedded="embedded",e.Inline="inline"}(v||(v={}));const A=function(){function e(){}return e.log=function(e,t){void 0===t&&(t="info")},e}();var O=function(e){return e.split(".").slice(-2).join(".")};function E(e,t,r){var n=r.onReady,o=r.onLoad,a=r.onComplete,l=r.onEvent,u=r.onCancel,c=r.onError,p=r.templateId,f=r.templateVersionId,s=function(r){var s;if((""===r.origin||O(new URL(r.origin).host)===O(new URL(e).host))&&!(p&&p!==r.data.templateId||f&&f!==r.data.templateVersionId||r.data.containerId&&t!==r.data.containerId))switch(null==l||l(r.data.name,r.data.metadata),r.data.name){case i.Load:null==o||o();break;case i.Ready:null==n||n();break;case i.Complete:case i.Fail:null==a||a({inquiryId:r.data.metadata.inquiryId,status:r.data.metadata.status,fields:null!==(s=r.data.metadata.fields)&&void 0!==s?s:r.data.metadata.scopes});break;case i.Cancel:null==u||u({inquiryId:r.data.metadata.inquiryId,sessionToken:r.data.metadata.sessionToken});break;case i.Error:null==c||c(r.data.error)}};return window.addEventListener("message",s),function(){window.removeEventListener("message",s)}}const I=function(){function e(e){var t,r,n,o,i,a,l,u,c,p,f=this;this._isLoading=!0,this._isOpen=!1,this.personaCSS=new m("persona-widget-styles"),this.globalCSS=new m("persona-global-styles"),this.onLoad=function(){var e,t;f._isLoading=!1,f.render(),null===(t=(e=f.options).onLoad)||void 0===t||t.call(e)},this.onReady=function(){var e,t;null===(t=(e=f.options).onReady)||void 0===t||t.call(e)},this.onComplete=function(e){var t,r,n=e.inquiryId,o=e.status,i=e.fields;f._isOpen=!1,f.render(),null===(r=(t=f.options).onComplete)||void 0===r||r.call(t,{inquiryId:n,status:o,fields:i})},this.onCancel=function(e){var t,r,n=e.inquiryId,o=e.sessionToken;f._isOpen=!1,f.render(),null===(r=(t=f.options).onCancel)||void 0===r||r.call(t,{inquiryId:n,sessionToken:o})},this.options=e,this.containerParent=null!==(r=null!==(t=e.parent)&&void 0!==t?t:document.body)&&void 0!==r?r:document.children[0],this.containerElement=g("div",{class:"persona-widget__overlay",style:"display: ".concat(this._isOpen?"block":"none")}),this.containerId=j(),this.containerElement.setAttribute("id",this.containerId),this.loadingElement=g("div",{class:"persona-widget__centered-frame"},[h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"114",height:"114",class:"persona-widget__loading-spinner"},[h("path",{fill:"none",stroke:"#0F2B72",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M25.887 10.432a56.275 56.275 0 0 0-15.455 15.455 55.86 55.86 0 0 0-5.183 9.678A55.576 55.576 0 0 0 2.066 46.07m-.8 5.438A56.678 56.678 0 0 0 1 57m4.249 21.435a55.86 55.86 0 0 0 5.183 9.678 56.275 56.275 0 0 0 6.97 8.485m8.485 6.97a55.86 55.86 0 0 0 9.678 5.183 55.576 55.576 0 0 0 10.506 3.183c3.535.7 7.19 1.066 10.929 1.066 3.74 0 7.394-.367 10.929-1.066a55.576 55.576 0 0 0 10.506-3.183 55.86 55.86 0 0 0 9.678-5.183 56.275 56.275 0 0 0 15.455-15.455 55.86 55.86 0 0 0 5.183-9.678 55.576 55.576 0 0 0 3.183-10.506A56.274 56.274 0 0 0 113 57c0-3.74-.367-7.394-1.066-10.929a55.576 55.576 0 0 0-3.183-10.506M96.598 17.402a56.275 56.275 0 0 0-8.485-6.97 55.86 55.86 0 0 0-9.678-5.183A55.576 55.576 0 0 0 67.93 2.066 56.274 56.274 0 0 0 57 1c-3.74 0-7.394.367-10.929 1.066m-34.94 30.418A51.76 51.76 0 0 0 7.225 41.9a51.633 51.633 0 0 0-1.98 10 52.63 52.63 0 0 0 .744 15.247 51.633 51.633 0 0 0 7.768 18.743 52.188 52.188 0 0 0 10.254 11.308 52.188 52.188 0 0 0 8.472 5.67m9.417 3.905a51.633 51.633 0 0 0 10 1.98 52.63 52.63 0 0 0 10.197 0 51.939 51.939 0 0 0 10-1.98 51.61 51.61 0 0 0 9.418-3.904 51.984 51.984 0 0 0 8.472-5.671m3.782-3.43a52.308 52.308 0 0 0 3.429-3.78m9.575-17.89a51.633 51.633 0 0 0 1.98-10 52.63 52.63 0 0 0-.744-15.247 51.633 51.633 0 0 0-7.768-18.743 52.188 52.188 0 0 0-10.254-11.308m-4.097-3.043a51.984 51.984 0 0 0-4.375-2.628M67.148 5.99a51.939 51.939 0 0 0-5.05-.743 52.63 52.63 0 0 0-15.246.743 51.633 51.633 0 0 0-18.743 7.768M24.012 16.8a52.308 52.308 0 0 0-3.782 3.43"})])]),this.containerElement.append(this.loadingElement),this.isLoading?this.loadingElement.style.display="block":this.loadingElement.style.display="none",this.iframeElement=document.createElement("iframe"),this.unsubscribeFromMessages=E(this.baseUrl,this.containerId,{onLoad:null!==(n=this.onLoad)&&void 0!==n?n:null,onReady:null!==(o=this.onReady)&&void 0!==o?o:null,onComplete:null!==(i=this.onComplete)&&void 0!==i?i:null,onCancel:null!==(a=this.onCancel)&&void 0!==a?a:null,onEvent:null!==(l=this.options.onEvent)&&void 0!==l?l:null,onError:null!==(u=this.options.onError)&&void 0!==u?u:null,templateId:null!==(c=this.options.templateId)&&void 0!==c?c:null,templateVersionId:null!==(p=this.options.templateVersionId)&&void 0!==p?p:null}),this.containerElement.appendChild(this.iframeElement),this.containerParent.appendChild(this.containerElement),this.personaCSS.mount("@keyframes persona-widget__fadeIn {\n from {\n background-color: rgba(0, 0, 0, 0);\n opacity: 0;\n }\n to {\n /* persona-widget__overlay opacity = 0.7 */\n background-color: rgba(0, 0, 0, 0.7);\n opacity: 1;\n }\n}\n\n@keyframes persona-widget__genieSlideIn {\n from {\n transform: translate(-50%, -40%) scale(0.8);\n }\n 90% {\n transform: translate(-50%, -51%) scale(1.01);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n@keyframes persona-widget__slideDown {\n from {\n transform: translate(-50%, -55%);\n }\n to {\n transform: translate(-50%, -50%);\n }\n}\n\n.persona-widget__overlay {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 9999;\n animation: persona-widget__fadeIn 0.3s;\n background-color: rgba(0, 0, 0, 0.7);\n}\n\n.persona-widget__overlay .persona-widget__centered-frame {\n width: 120px;\n height: 120px;\n position: absolute;\n left: calc(50% - 60px);\n top: calc(50% - 60px);\n z-index: 9999;\n}\n\n.persona-widget__overlay .persona-widget__loading-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.persona-widget__overlay .persona-widget__iframe {\n animation: persona-widget__genieSlideIn 0.3s, persona-widget__slideDown ease-out 0.3s;\n\n width: 100%;\n height: 100%;\n\n margin-left: auto;\n margin-right: auto;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n background-color: #ffffff;\n border: none;\n border-radius: 4px;\n box-shadow: 0px 12px 40px 2px rgba(0, 0, 0, 0.4);\n\n @media only screen and (min-width: 600.02px) and (min-height: 600.02px) {\n max-width: 400px;\n max-height: 650px;\n }\n}\n");try{this.iframeElement=x(this.iframeElement,this.containerId,v.Embedded,this.options)}catch(e){throw console.error("Persona",e),this.destroy(),e}this.render()}return e.prototype.render=function(){var e;null!=this.containerElement?(this.loadingElement.style.display=this.isLoading?"block":"none",this.containerElement.style.display=this.isOpen?"block":"none",this.isOpen&&!this.globalCSS.isMounted()?this.globalCSS.mount((e=this.containerId,"\n /* Don't allow scrolling when widget is open */\n html body {\n overflow: hidden !important;\n }\n\n /* When the widget takes the full screen, hide everything else to prevent iOS scroll issues. */\n @media ".concat("(max-width: 600px), (max-height: 420px)"," {\n html body > *:not(#").concat(e,") {\n display: none !important;\n }\n }\n"))):!this.isOpen&&this.globalCSS.isMounted()&&this.globalCSS.unmount()):A.log("Cannot render client that has been destroyed","error")},e.prototype.open=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Open,metadata:{}},this.baseUrl),this._isOpen=!0,this.render()},e.prototype.cancel=function(e){var t;null===(t=this.iframeElement.contentWindow)||void 0===t||t.postMessage({action:a.Exit,metadata:{force:e}},this.baseUrl),this.render()},e.prototype.destroy=function(){var e;null===(e=this.iframeElement.contentWindow)||void 0===e||e.postMessage({action:a.Destroy,metadata:{}},this.baseUrl),this.personaCSS.unmount(),this.globalCSS.unmount(),this.containerParent.removeChild(this.containerElement),this.unsubscribeFromMessages()},Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return u(this.options.host)},enumerable:!1,configurable:!0}),e}();var P=n(155);const k={Client:I,Inquiry:function(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(P.useState(j()),2),r=t[0],n=(t[1],P.createRef());return P.useEffect((function(){var t,n,o,i,a,l,c,p;return E(u(e.host),r,{onLoad:null!==(t=e.onLoad)&&void 0!==t?t:null,onReady:null!==(n=e.onReady)&&void 0!==n?n:null,onComplete:null!==(o=e.onComplete)&&void 0!==o?o:null,onCancel:null!==(i=e.onCancel)&&void 0!==i?i:null,onEvent:null!==(a=e.onEvent)&&void 0!==a?a:null,onError:null!==(l=e.onError)&&void 0!==l?l:null,templateId:null!==(c=e.templateId)&&void 0!==c?c:null,templateVersionId:null!==(p=e.templateVersionId)&&void 0!==p?p:null})}),[]),P.useLayoutEffect((function(){null!=n.current&&""===n.current.src&&x(n.current,r,v.Inline,e)}),[r,n]),P.createElement("iframe",{ref:n})}}})(),o.default})()));

@@ -1,1 +0,4 @@

export {};
declare const originalConsoleError: {
(...data: any[]): void;
(message?: any, ...optionalParams: any[]): void;
};

@@ -1,3 +0,3 @@

/// <reference types="react" />
declare const _default: () => JSX.Element;
import * as React from 'react';
declare const _default: () => React.JSX.Element;
export default _default;
{
"name": "persona",
"version": "4.12.1",
"version": "4.13.0-alpha.0",
"description": "The official web client library for the Persona API.",

@@ -20,21 +20,26 @@ "main": "./dist/persona.js",

"dependencies": {
"core-js": "^3.0.0",
"lodash": "^4.17.21",
"qs": "^6.7.0"
"lodash.kebabcase": "^4.1.1",
"qs": "^6.11.2"
},
"devDependencies": {
"@babel/preset-env": "^7.4.2",
"@types/enzyme": "^3.10.8",
"@babel/preset-env": "^7.23.9",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.168",
"@types/qs": "^6.5.3",
"@types/lodash.kebabcase": "^4.1.9",
"@types/qs": "^6.9.11",
"@types/react": "^16.8.2",
"@types/react-dom": "^18.0.0",
"@types/styled-components": "^4.1.9",
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"babel-loader": "^8.0.5",
"conventional-changelog-core": "^4.2.4",
"cypress": "^10.8.0",
"enzyme": "^3.11.0",
"jest": "^27.1.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"cypress": "^13.6.4",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^2.2.1",

@@ -46,9 +51,9 @@ "react": ">= 16",

"standard-version": "^9.3.1",
"styled-components": ">= 4",
"ts-jest": "^27.0.5",
"string-replace-loader": "^3.1.0",
"ts-jest": "^29.1.2",
"ts-loader": "^9.0.0",
"typescript": "^4.0.5",
"webpack": "^5.0.0-rc.6",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-cli": "^4.2.0"
"typescript": "^5.3.3",
"webpack": "^5.90.2",
"webpack-bundle-analyzer": "^4.10.1",
"webpack-cli": "^5.1.4"
},

@@ -61,4 +66,3 @@ "files": [

"react": ">= 16",
"react-dom": ">= 16",
"styled-components": ">= 4"
"react-dom": ">= 16"
},

@@ -71,3 +75,3 @@ "jest": {

"node_modules",
"./"
"<rootDir>"
],

@@ -87,5 +91,8 @@ "moduleFileExtensions": [

"testEnvironment": "jsdom",
"testURL": "http://localhost",
"testEnvironmentOptions": {
"url": "http://localhost"
},
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
"^.+\\.(ts|tsx)$": "ts-jest",
"^.+\\.(css)$": "<rootDir>/src/spec/rawFile.js"
},

@@ -97,3 +104,4 @@ "globals": {

}
}
},
"packageManager": "yarn@3.6.4"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc