@verdocs/web-sdk 6.9.10 → 6.9.12
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/cjs/verdocs-contact-picker.cjs.entry.js +121 -15
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/components/{p-D_8TNtkM.js → p-Bpe5Awxh.js} +2 -2
- package/dist/components/p-DeQsR41s.js +3 -0
- package/dist/components/p-DeQsR41s.js.map +1 -0
- package/dist/components/verdocs-build.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +121 -15
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-CT0DHyPw.js +0 -3
- package/dist/components/p-CT0DHyPw.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-b464b598.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-b464b598.entry.js.map +0 -1
- /package/dist/components/{p-D_8TNtkM.js.map → p-Bpe5Awxh.js.map} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t
|
|
2
|
-
/*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors */var axios_1;var hasRequiredAxios;function requireAxios(){var e=this;if(hasRequiredAxios)return axios_1;hasRequiredAxios=1;function t(e,t){return function r(){return e.apply(t,arguments)}}var r=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,a=Symbol.toStringTag;var o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(t){return o(t)===e}};var s=function(e){return function(t){return typeof t===e}};var f=Array.isArray;var c=s("undefined");function l(e){return e!==null&&!c(e)&&e.constructor!==null&&!c(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var d=u("ArrayBuffer");function v(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&d(e.buffer)}return t}var h=s("string");var p=s("function");var m=s("number");var b=function(e){return e!==null&&typeof e==="object"};var w=function(e){return e===true||e===false};var y=function(e){if(o(e)!=="object"){return false}var t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(a in e)&&!(i in e)};var g=function(e){if(!b(e)||l(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};var x=u("Date");var _=u("File");var k=function(e){return!!(e&&typeof e.uri!=="undefined")};var O=function(e){return e&&typeof e.getParts!=="undefined"};var E=u("Blob");var R=u("FileList");var j=function(e){return b(e)&&p(e.pipe)};function S(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof commonjsGlobal!=="undefined")return commonjsGlobal;return{}}var T=S();var A=typeof T.FormData!=="undefined"?T.FormData:undefined;var C=function(e){if(!e)return false;if(A&&e instanceof A)return true;var t=n(e);if(!t||t===Object.prototype)return false;if(!p(e.append))return false;var r=o(e);return r==="formdata"||r==="object"&&p(e.toString)&&e.toString()==="[object FormData]"};var F=u("URLSearchParams");var N=["ReadableStream","Request","Response","Headers"].map(u),P=N[0],I=N[1],B=N[2],U=N[3];var D=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function M(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,a=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var o;var u;if(typeof e!=="object"){e=[e]}if(f(e)){for(o=0,u=e.length;o<u;o++){t.call(null,e[o],o,e)}}else{if(l(e)){return}var s=a?Object.getOwnPropertyNames(e):Object.keys(e);var c=s.length;var d=void 0;for(o=0;o<c;o++){d=s[o];t.call(null,e[d],d,e)}}}function L(e,t){if(l(e)){return null}t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var q=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:commonjsGlobal}();var z=function(e){return!c(e)&&e!==q};function H(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=z(this)&&this||{},n=r.caseless,i=r.skipUndefined;var a={};var o=function(e,t){if(t==="__proto__"||t==="constructor"||t==="prototype"){return}var r=n&&L(a,t)||t;var o=te(a,r)?a[r]:undefined;if(y(o)&&y(e)){a[r]=H(o,e)}else if(y(e)){a[r]=H({},e)}else if(f(e)){a[r]=e.slice()}else if(!i||!c(e)){a[r]=e}};for(var u=0,s=e.length;u<s;u++){e[u]&&M(e[u],o)}return a}var V=function(e,r,n,i){var a=i===void 0?{}:i,o=a.allOwnKeys;M(r,(function(r,i){if(n&&p(r)){Object.defineProperty(e,i,{__proto__:null,value:t(r,n),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(e,i,{__proto__:null,value:r,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:o});return e};var G=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var K=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{__proto__:null,value:t.prototype});r&&Object.assign(e.prototype,r)};var J=function(e,t,r,i){var a;var o;var u;var s={};t=t||{};if(e==null)return t;do{a=Object.getOwnPropertyNames(e);o=a.length;while(o-- >0){u=a[o];if((!i||i(u,e,t))&&!s[u]){t[u]=e[u];s[u]=true}}e=r!==false&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var X=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var W=function(e){if(!e)return null;if(f(e))return e;var t=e.length;if(!m(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var $=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var Y=function(e,t){var r=e&&e[i];var n=r.call(e);var a;while((a=n.next())&&!a.done){var o=a.value;t.call(e,o[0],o[1])}};var Z=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var Q=u("HTMLFormElement");var ee=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var te=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var re=u("RegExp");var ne=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};M(r,(function(r,i){var a;if((a=t(r,i,e))!==false){n[i]=a||r}}));Object.defineProperties(e,n)};var ie=function(e){ne(e,(function(t,r){if(p(e)&&["arguments","caller","callee"].includes(r)){return false}var n=e[r];if(!p(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var ae=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};f(e)?n(e):n(String(e).split(t));return r};var oe=function(){};var ue=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function se(e){return!!(e&&p(e.append)&&e[a]==="FormData"&&e[i])}var fe=function(e){var t=new WeakSet;var r=function(e){if(b(e)){if(t.has(e)){return}if(l(e)){return e}if(!("toJSON"in e)){t.add(e);var n=f(e)?[]:{};M(e,(function(e,t){var i=r(e);!c(i)&&(n[t]=i)}));t.delete(e);return n}}return e};return r(e)};var ce=u("AsyncFunction");var le=function(e){return e&&(b(e)||p(e))&&p(e.then)&&p(e.catch)};var de=function(e,t){if(e){return setImmediate}return t?function(e,t){q.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===q&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);q.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",p(q.postMessage));var ve=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(q):typeof process!=="undefined"&&process.nextTick||de;var he=function(e){return e!=null&&p(e[i])};var pe={isArray:f,isArrayBuffer:d,isBuffer:l,isFormData:C,isArrayBufferView:v,isString:h,isNumber:m,isBoolean:w,isObject:b,isPlainObject:y,isEmptyObject:g,isReadableStream:P,isRequest:I,isResponse:B,isHeaders:U,isUndefined:c,isDate:x,isFile:_,isReactNativeBlob:k,isReactNative:O,isBlob:E,isRegExp:re,isFunction:p,isStream:j,isURLSearchParams:F,isTypedArray:$,isFileList:R,forEach:M,merge:H,extend:V,trim:D,stripBOM:G,inherits:K,toFlatObject:J,kindOf:o,kindOfTest:u,endsWith:X,toArray:W,forEachEntry:Y,matchAll:Z,isHTMLForm:Q,hasOwnProperty:te,hasOwnProp:te,reduceDescriptors:ne,freezeMethods:ie,toObjectSet:ae,toCamelCase:ee,noop:oe,toFiniteNumber:ue,findKey:L,global:q,isContextDefined:z,isSpecCompliantForm:se,toJSONObject:fe,isAsyncFn:ce,isThenable:le,setImmediate:de,asap:ve,isIterable:he};var me=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var be=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(a){i=a.indexOf(":");r=a.substring(0,i).trim().toLowerCase();n=a.substring(i+1).trim();if(!r||t[r]&&me[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};function we(e){var t=0;var r=e.length;while(t<r){var n=e.charCodeAt(t);if(n!==9&&n!==32){break}t+=1}while(r>t){var n=e.charCodeAt(r-1);if(n!==9&&n!==32){break}r-=1}return t===0&&r===e.length?e:e.slice(t,r)}var ye=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g");var ge=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function xe(e,t){if(pe.isArray(e)){return e.map((function(e){return xe(e,t)}))}return we(String(e).replace(t,""))}var _e=function(e){return xe(e,ye)};var ke=function(e){return xe(e,ge)};function Oe(e){var t=Object.create(null);pe.forEach(e.toJSON(),(function(e,r){t[r]=ke(e)}));return t}var Ee=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function je(e){if(e===false||e==null){return e}return pe.isArray(e)?e.map(je):_e(String(e))}function Se(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var Te=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Ae(e,t,r,n,i){if(pe.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!pe.isString(t))return;if(pe.isString(n)){return t.indexOf(n)!==-1}if(pe.isRegExp(n)){return n.test(t)}}function Ce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function Fe(e,t){var r=pe.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var Ne=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=Re(t);if(!i){throw new Error("header name must be a non-empty string")}var a=pe.findKey(n,i);if(!a||n[a]===undefined||r===true||r===undefined&&n[a]!==false){n[a||t]=je(e)}}var a=function(e,t){return pe.forEach(e,(function(e,r){return i(e,r,t)}))};if(pe.isPlainObject(e)||e instanceof this.constructor){a(e,t)}else if(pe.isString(e)&&(e=e.trim())&&!Te(e)){a(be(e),t)}else if(pe.isObject(e)&&pe.isIterable(e)){var o={},u=void 0,s=void 0;for(var f=0,c=e;f<c.length;f++){var l=c[f];if(!pe.isArray(l)){throw TypeError("Object iterator must return a key-value pair")}o[s=l[0]]=(u=o[s])?pe.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}a(o,t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=Re(e);if(e){var r=pe.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Se(n)}if(pe.isFunction(t)){return t.call(this,n,r)}if(pe.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=Re(e);if(e){var r=pe.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||Ae(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=Re(e);if(e){var i=pe.findKey(r,e);if(i&&(!t||Ae(r,r[i],i,t))){delete r[i];n=true}}}if(pe.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||Ae(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};pe.forEach(this,(function(n,i){var a=pe.findKey(r,i);if(a){t[a]=je(n);delete t[i];return}var o=e?Ce(i):String(i).trim();if(o!==i){delete t[i]}t[o]=je(n);r[o]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);pe.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&pe.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[Ee]=this[Ee]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=Re(e);if(!r[t]){Fe(n,e);r[t]=true}}pe.isArray(e)?e.forEach(i):i(e);return this};return e}();Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(Ne.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));pe.freezeMethods(Ne);var Pe="[REDACTED ****]";function Ie(e){if(pe.hasOwnProp(e,"toJSON")){return true}var t=Object.getPrototypeOf(e);while(t&&t!==Object.prototype){if(pe.hasOwnProp(t,"toJSON")){return true}t=Object.getPrototypeOf(t)}return false}function Be(e,t){var r=new Set(t.map((function(e){return String(e).toLowerCase()})));var n=[];var i=function(e){if(e===null||typeof e!=="object")return e;if(pe.isBuffer(e))return e;if(n.indexOf(e)!==-1)return undefined;if(e instanceof Ne){e=e.toJSON()}n.push(e);var t;if(pe.isArray(e)){t=[];e.forEach((function(e,r){var n=i(e);if(!pe.isUndefined(n)){t[r]=n}}))}else{if(!pe.isPlainObject(e)&&Ie(e)){n.pop();return e}t=Object.create(null);for(var a=0,o=Object.entries(e);a<o.length;a++){var u=o[a],s=u[0],f=u[1];var c=r.has(s.toLowerCase())?Pe:i(f);if(!pe.isUndefined(c)){t[s]=c}}}n.pop();return t};return i(e)}var Ue=function(e){__extends(t,e);function t(t,r,n,i,a){var o=e.call(this,t)||this;Object.defineProperty(o,"message",{__proto__:null,value:t,enumerable:true,writable:true,configurable:true});o.name="AxiosError";o.isAxiosError=true;r&&(o.code=r);n&&(o.config=n);i&&(o.request=i);if(a){o.response=a;o.status=a.status}return o}t.from=function(e,r,n,i,a,o){var u=new t(e.message,r||e.code,n,i,a);u.cause=e;u.name=e.name;if(e.status!=null&&u.status==null){u.status=e.status}o&&Object.assign(u,o);return u};t.prototype.toJSON=function(){var e=this.config;var t=e&&pe.hasOwnProp(e,"redact")?e.redact:undefined;var r=pe.isArray(t)&&t.length>0?Be(e,t):pe.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}};return t}(Error);Ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ue.ERR_BAD_OPTION="ERR_BAD_OPTION";Ue.ECONNABORTED="ECONNABORTED";Ue.ETIMEDOUT="ETIMEDOUT";Ue.ECONNREFUSED="ECONNREFUSED";Ue.ERR_NETWORK="ERR_NETWORK";Ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ue.ERR_DEPRECATED="ERR_DEPRECATED";Ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ue.ERR_CANCELED="ERR_CANCELED";Ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ue.ERR_INVALID_URL="ERR_INVALID_URL";Ue.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var De=null;function Me(e){return pe.isPlainObject(e)||pe.isArray(e)}function Le(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=Le(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function ze(e){return pe.isArray(e)&&!e.some(Me)}var He=pe.toFlatObject(pe,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Ve(e,t,r){if(!pe.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=pe.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!pe.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||l;var a=r.dots;var o=r.indexes;var u=r.Blob||typeof Blob!=="undefined"&&Blob;var s=r.maxDepth===undefined?100:r.maxDepth;var f=u&&pe.isSpecCompliantForm(t);if(!pe.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(pe.isDate(e)){return e.toISOString()}if(pe.isBoolean(e)){return e.toString()}if(!f&&pe.isBlob(e)){throw new Ue("Blob is not supported. Use a Buffer instead.")}if(pe.isArrayBuffer(e)||pe.isTypedArray(e)){return f&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function l(e,r,i){var u=e;if(pe.isReactNative(t)&&pe.isReactNativeBlob(e)){t.append(qe(i,r,a),c(e));return false}if(e&&!i&&typeof e==="object"){if(pe.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(pe.isArray(e)&&ze(e)||(pe.isFileList(e)||pe.endsWith(r,"[]"))&&(u=pe.toArray(e))){r=Le(r);u.forEach((function e(n,i){!(pe.isUndefined(n)||n===null)&&t.append(o===true?qe([r],i,a):o===null?r:r+"[]",c(n))}));return false}}if(Me(e)){return true}t.append(qe(i,r,a),c(e));return false}var d=[];var v=Object.assign(He,{defaultVisitor:l,convertValue:c,isVisitable:Me});function h(e,r,n){if(n===void 0){n=0}if(pe.isUndefined(e))return;if(n>s){throw new Ue("Object is too deeply nested ("+n+" levels). Max depth: "+s,Ue.ERR_FORM_DATA_DEPTH_EXCEEDED)}if(d.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}d.push(e);pe.forEach(e,(function e(a,o){var u=!(pe.isUndefined(a)||a===null)&&i.call(t,a,pe.isString(o)?o.trim():o,r,v);if(u===true){h(a,r?r.concat(o):[o],n+1)}}));d.pop()}if(!pe.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function Ge(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function e(r){return t[r]}))}function Ke(e,t){this._pairs=[];e&&Ve(e,this,t)}var Je=Ke.prototype;Je.append=function e(t,r){this._pairs.push([t,r])};Je.toString=function e(t){var r=t?function(e){return t.call(this,e,Ge)}:Ge;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function Xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function We(e,t,r){if(!t){return e}var n=r&&r.encode||Xe;var i=pe.isFunction(r)?{serialize:r}:r;var a=i&&i.serialize;var o;if(a){o=a(t,i)}else{o=pe.isURLSearchParams(t)?t.toString():new Ke(t,i).toString(n)}if(o){var u=e.indexOf("#");if(u!==-1){e=e.slice(0,u)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var $e=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){pe.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var Ye={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true};var Ze=typeof URLSearchParams!=="undefined"?URLSearchParams:Ke;var Qe=typeof FormData!=="undefined"?FormData:null;var et=typeof Blob!=="undefined"?Blob:null;var tt={isBrowser:true,classes:{URLSearchParams:Ze,FormData:Qe,Blob:et},protocols:["http","https","file","blob","url","data"]};var rt=typeof window!=="undefined"&&typeof document!=="undefined";var nt=typeof navigator==="object"&&navigator||undefined;var it=rt&&(!nt||["ReactNative","NativeScript","NS"].indexOf(nt.product)<0);var at=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var ot=rt&&window.location.href||"http://localhost";var ut=Object.freeze({__proto__:null,hasBrowserEnv:rt,hasStandardBrowserEnv:it,hasStandardBrowserWebWorkerEnv:at,navigator:nt,origin:ot});var st=__assign(__assign({},ut),tt);function ft(e,t){return Ve(e,new st.classes.URLSearchParams,__assign({visitor:function(e,t,r,n){if(st.isNode&&pe.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function ct(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function lt(e){var t={};var r=Object.keys(e);var n;var i=r.length;var a;for(n=0;n<i;n++){a=r[n];t[a]=e[a]}return t}function dt(e){function t(e,r,n,i){var a=e[i++];if(a==="__proto__")return true;var o=Number.isFinite(+a);var u=i>=e.length;a=!a&&pe.isArray(n)?n.length:a;if(u){if(pe.hasOwnProp(n,a)){n[a]=pe.isArray(n[a])?n[a].concat(r):[n[a],r]}else{n[a]=r}return!o}if(!pe.hasOwnProp(n,a)||!pe.isObject(n[a])){n[a]=[]}var s=t(e,r,n[a],i);if(s&&pe.isArray(n[a])){n[a]=lt(n[a])}return!o}if(pe.isFormData(e)&&pe.isFunction(e.entries)){var r={};pe.forEachEntry(e,(function(e,n){t(ct(e),n,r,0)}));return r}return null}var vt=function(e,t){return e!=null&&pe.hasOwnProp(e,t)?e[t]:undefined};function ht(e,t,r){if(pe.isString(e)){try{(0,JSON.parse)(e);return pe.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var pt={transitional:Ye,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var a=pe.isObject(t);if(a&&pe.isHTMLForm(t)){t=new FormData(t)}var o=pe.isFormData(t);if(o){return i?JSON.stringify(dt(t)):t}if(pe.isArrayBuffer(t)||pe.isBuffer(t)||pe.isStream(t)||pe.isFile(t)||pe.isBlob(t)||pe.isReadableStream(t)){return t}if(pe.isArrayBufferView(t)){return t.buffer}if(pe.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var u;if(a){var s=vt(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1){return ft(t,s).toString()}if((u=pe.isFileList(t))||n.indexOf("multipart/form-data")>-1){var f=vt(this,"env");var c=f&&f.FormData;return Ve(u?{"files[]":t}:t,c&&new c,s)}}if(a||i){r.setContentType("application/json",false);return ht(t)}return t}],transformResponse:[function e(t){var r=vt(this,"transitional")||pt.transitional;var n=r&&r.forcedJSONParsing;var i=vt(this,"responseType");var a=i==="json";if(pe.isResponse(t)||pe.isReadableStream(t)){return t}if(t&&pe.isString(t)&&(n&&!i||a)){var o=r&&r.silentJSONParsing;var u=!o&&a;try{return JSON.parse(t,vt(this,"parseReviver"))}catch(e){if(u){if(e.name==="SyntaxError"){throw Ue.from(e,Ue.ERR_BAD_RESPONSE,this,null,vt(this,"response"))}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};pe.forEach(["delete","get","head","post","put","patch","query"],(function(e){pt.headers[e]={}}));function mt(e,t){var r=this||pt;var n=t||r;var i=Ne.from(n.headers);var a=n.data;pe.forEach(e,(function e(n){a=n.call(r,a,i.normalize(),t?t.status:undefined)}));i.normalize();return a}function bt(e){return!!(e&&e.__CANCEL__)}var wt=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t==null?"canceled":t,Ue.ERR_CANCELED,r,n)||this;i.name="CanceledError";i.__CANCEL__=true;return i}return t}(Ue);function yt(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new Ue("Request failed with status code "+r.status,r.status>=400&&r.status<500?Ue.ERR_BAD_REQUEST:Ue.ERR_BAD_RESPONSE,r.config,r.request,r))}}function gt(e){var t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function xt(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var a=0;var o;t=t!==undefined?t:1e3;return function u(s){var f=Date.now();var c=n[a];if(!o){o=f}r[i]=s;n[i]=f;var l=a;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===a){a=(a+1)%e}if(f-o<t){return}var v=c&&f-c;return v?Math.round(d*1e3/v):undefined}}function _t(e,t){var r=0;var n=1e3/t;var i;var a;var o=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(a){clearTimeout(a);a=null}e.apply(void 0,t)};var u=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var u=Date.now();var s=u-r;if(s>=n){o(e,u)}else{i=e;if(!a){a=setTimeout((function(){a=null;o(i)}),n-s)}}};var s=function(){return i&&o(i)};return[u,s]}var kt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=xt(50,250);return _t((function(r){var a;if(!r||typeof r.loaded!=="number"){return}var o=r.loaded;var u=r.lengthComputable?r.total:undefined;var s=u!=null?Math.min(o,u):o;var f=Math.max(0,s-n);var c=i(f);n=Math.max(n,s);var l=(a={loaded:s,total:u,progress:u?s/u:undefined,bytes:f,rate:c?c:undefined,estimated:c&&u?(u-s)/c:undefined,event:r,lengthComputable:u!=null},a[t?"download":"upload"]=true,a);e(l)}),r)};var Ot=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var Et=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return pe.asap((function(){return e.apply(void 0,t)}))}};var Rt=st.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,st.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(st.origin),st.navigator&&/(msie|trident)/i.test(st.navigator.userAgent)):function(){return true};var jt=st.hasStandardBrowserEnv?{write:function(e,t,r,n,i,a,o){if(typeof document==="undefined")return;var u=["".concat(e,"=").concat(encodeURIComponent(t))];if(pe.isNumber(r)){u.push("expires=".concat(new Date(r).toUTCString()))}if(pe.isString(n)){u.push("path=".concat(n))}if(pe.isString(i)){u.push("domain=".concat(i))}if(a===true){u.push("secure")}if(pe.isString(o)){u.push("SameSite=".concat(o))}document.cookie=u.join("; ")},read:function(e){if(typeof document==="undefined")return null;var t=document.cookie.split(";");for(var r=0;r<t.length;r++){var n=t[r].replace(/^\s+/,"");var i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===e){return decodeURIComponent(n.slice(i+1))}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function St(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function At(e,t,r){var n=!St(t);if(e&&(n||r===false)){return Tt(e,t)}return t}var Ct=function(e){return e instanceof Ne?__assign({},e):e};function Ft(e,t){t=t||{};var r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:false,writable:true,configurable:true});function n(e,t,r,n){if(pe.isPlainObject(e)&&pe.isPlainObject(t)){return pe.merge.call({caseless:n},e,t)}else if(pe.isPlainObject(t)){return pe.merge({},t)}else if(pe.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!pe.isUndefined(t)){return n(e,t,r,i)}else if(!pe.isUndefined(e)){return n(undefined,e,r,i)}}function a(e,t){if(!pe.isUndefined(t)){return n(undefined,t)}}function o(e,t){if(!pe.isUndefined(t)){return n(undefined,t)}else if(!pe.isUndefined(e)){return n(undefined,e)}}function u(r,i,a){if(pe.hasOwnProp(t,a)){return n(r,i)}else if(pe.hasOwnProp(e,a)){return n(undefined,r)}}var s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:u,headers:function(e,t,r){return i(Ct(e),Ct(t),r,true)}};pe.forEach(Object.keys(__assign(__assign({},e),t)),(function n(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;var o=pe.hasOwnProp(s,a)?s[a]:i;var f=pe.hasOwnProp(e,a)?e[a]:undefined;var c=pe.hasOwnProp(t,a)?t[a]:undefined;var l=o(f,c,a);pe.isUndefined(l)&&o!==u||(r[a]=l)}));return r}var Nt=["content-type","content-length"];function Pt(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach((function(t){var r=t[0],n=t[1];if(Nt.includes(r.toLowerCase())){e.set(r,n)}}))}var It=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))};var Bt=function(e){var t=Ft({},e);var r=function(e){return pe.hasOwnProp(t,e)?t[e]:undefined};var n=r("data");var i=r("withXSRFToken");var a=r("xsrfHeaderName");var o=r("xsrfCookieName");var u=r("headers");var s=r("auth");var f=r("baseURL");var c=r("allowAbsoluteUrls");var l=r("url");t.headers=u=Ne.from(u);t.url=We(At(f,l,c),e.params,e.paramsSerializer);if(s){u.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?It(s.password):"")))}if(pe.isFormData(n)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv){u.setContentType(undefined)}else if(pe.isFunction(n.getHeaders)){Pt(u,n.getHeaders(),r("formDataHeaderPolicy"))}}if(st.hasStandardBrowserEnv){if(pe.isFunction(i)){i=i(t)}var d=i===true||i==null&&Rt(t.url);if(d){var v=a&&o&&jt.read(o);if(v){u.set(a,v)}}}return t};var Ut=typeof XMLHttpRequest!=="undefined";var Dt=Ut&&function(e){return new Promise((function t(r,n){var i,a;var o=Bt(e);var u=o.data;var s=Ne.from(o.headers).normalize();var f=o.responseType,c=o.onUploadProgress,l=o.onDownloadProgress;var d;var v,h;var p,m;function b(){p&&p();m&&m();o.cancelToken&&o.cancelToken.unsubscribe(d);o.signal&&o.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,true);w.timeout=o.timeout;function y(){if(!w){return}var t=Ne.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!f||f==="text"||f==="json"?w.responseText:w.response;var a={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};yt((function e(t){r(t);b()}),(function e(t){n(t);b()}),a);w=null}if("onloadend"in w){w.onloadend=y}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.startsWith("file:"))){return}setTimeout(y)}}w.onabort=function t(){if(!w){return}n(new Ue("Request aborted",Ue.ECONNABORTED,e,w));b();w=null};w.onerror=function t(r){var i=r&&r.message?r.message:"Network Error";var a=new Ue(i,Ue.ERR_NETWORK,e,w);a.event=r||null;n(a);b();w=null};w.ontimeout=function t(){var r=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||Ye;if(o.timeoutErrorMessage){r=o.timeoutErrorMessage}n(new Ue(r,i.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,w));b();w=null};u===undefined&&s.setContentType(null);if("setRequestHeader"in w){pe.forEach(Oe(s),(function e(t,r){w.setRequestHeader(r,t)}))}if(!pe.isUndefined(o.withCredentials)){w.withCredentials=!!o.withCredentials}if(f&&f!=="json"){w.responseType=o.responseType}if(l){i=kt(l,true),h=i[0],m=i[1];w.addEventListener("progress",h)}if(c&&w.upload){a=kt(c),v=a[0],p=a[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(o.cancelToken||o.signal){d=function(t){if(!w){return}n(!t||t.type?new wt(null,e,w):t);w.abort();b();w=null};o.cancelToken&&o.cancelToken.subscribe(d);if(o.signal){o.signal.aborted?d():o.signal.addEventListener("abort",d)}}var g=gt(o.url);if(g&&!st.protocols.includes(g)){n(new Ue("Unsupported protocol "+g+":",Ue.ERR_BAD_REQUEST,e));return}w.send(u||null)}))};var Mt=function(e,t){e=e?e.filter(Boolean):[];if(!t&&!e.length){return}var r=new AbortController;var n=false;var i=function(e){if(!n){n=true;o();var t=e instanceof Error?e:this.reason;r.abort(t instanceof Ue?t:new wt(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;i(new Ue("timeout of ".concat(t,"ms exceeded"),Ue.ETIMEDOUT))}),t);var o=function(){if(!e){return}a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null};e.forEach((function(e){return e.addEventListener("abort",i)}));var u=r.signal;u.unsubscribe=function(){return pe.asap(o)};return u};var Lt=function(e,t){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:r=e.byteLength;if(!(r<t))return[3,2];return[4,e];case 1:a.sent();return[2];case 2:n=0;a.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:a.sent();n=i;return[3,3];case 5:return[2]}}))};var qt=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,a,o;var u,s,f,c;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(zt(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];c=i.value;r=false;a=c;return[5,__values(__asyncDelegator(__asyncValues(Lt(a,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:o=l.sent();s={error:o};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!u&&(f=n.return)))return[3,10];return[4,__await(f.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var zt=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[a.sent()])];case 2:a.sent();return[4,__await(void 0)];case 3:return[2,a.sent()];case 4:t=e.getReader();a.label=5;case 5:a.trys.push([5,,12,14]);a.label=6;case 6:return[4,__await(t.read())];case 7:r=a.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,a.sent()];case 9:a.sent();a.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:a.sent();return[7];case 14:return[2]}}))}))};var Ht=function(e,t,r,n){var i=qt(e,t);var a=0;var o;var u=function(e){if(!o){o=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,s,f,c;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,o=t.value;if(n){u();e.close();return[2]}s=o.byteLength;if(r){f=a+=s;r(f)}e.enqueue(new Uint8Array(o));return[3,3];case 2:c=l.sent();u(c);throw c;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};function Vt(e){if(!e||typeof e!=="string")return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var r=e.slice(5,t);var n=e.slice(t+1);var i=/;base64/i.test(r);if(i){var a=n.length;var o=n.length;for(var u=0;u<o;u++){if(n.charCodeAt(u)===37&&u+2<o){var s=n.charCodeAt(u+1);var f=n.charCodeAt(u+2);var c=(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)&&(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102);if(c){a-=2;u+=2}}}var l=0;var d=o-1;var v=function(e){return e>=2&&n.charCodeAt(e-2)===37&&n.charCodeAt(e-1)===51&&(n.charCodeAt(e)===68||n.charCodeAt(e)===100)};if(d>=0){if(n.charCodeAt(d)===61){l++;d--}else if(v(d)){l++;d-=3}}if(l===1&&d>=0){if(n.charCodeAt(d)===61){l++}else if(v(d)){l++}}var h=Math.floor(a/4);var p=h*3-(l||0);return p>0?p:0}if(typeof Buffer!=="undefined"&&typeof Buffer.byteLength==="function"){return Buffer.byteLength(n,"utf8")}var m=0;for(var u=0,o=n.length;u<o;u++){var b=n.charCodeAt(u);if(b<128){m+=1}else if(b<2048){m+=2}else if(b>=55296&&b<=56319&&u+1<o){var w=n.charCodeAt(u+1);if(w>=56320&&w<=57343){m+=4;u++}else{m+=3}}else{m+=3}}return m}var Gt="1.16.1";var Kt=64*1024;var Jt=pe.isFunction;var Xt=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Wt=function(t){var r=pe.global!==undefined&&pe.global!==null?pe.global:globalThis;var n=r.ReadableStream,i=r.TextEncoder;t=pe.merge.call({skipUndefined:true},{Request:r.Request,Response:r.Response},t);var a=t.fetch,o=t.Request,u=t.Response;var s=a?Jt(a):typeof fetch==="function";var f=Jt(o);var c=Jt(u);if(!s){return false}var l=s&&Jt(n);var d=s&&(typeof i==="function"?function(e){return function(t){return e.encode(t)}}(new i):function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:e=Uint8Array.bind;return[4,new o(t).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var v=f&&l&&Xt((function(){var e=false;var t=new o(st.origin,{body:new n,method:"POST",get duplex(){e=true;return"half"}});var r=t.headers.has("Content-Type");if(t.body!=null){t.body.cancel()}return e&&!r}));var h=c&&l&&Xt((function(){return pe.isReadableStream(new u("").body)}));var p={stream:h&&function(e){return e.body}};s&&function(){["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!p[e]&&(p[e]=function(t,r){var n=t&&t[e];if(n){return n.call(t)}throw new Ue("Response type '".concat(e,"' is not supported"),Ue.ERR_NOT_SUPPORT,r)})}))}();var m=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(t==null){return[2,0]}if(pe.isBlob(t)){return[2,t.size]}if(!pe.isSpecCompliantForm(t))return[3,2];e=new o(st.origin,{method:"POST",body:t});return[4,e.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(pe.isArrayBufferView(t)||pe.isArrayBuffer(t)){return[2,t.byteLength]}if(pe.isURLSearchParams(t)){t=t+""}if(!pe.isString(t))return[3,4];return[4,d(t)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var b=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=pe.toFiniteNumber(t.getContentLength());return[2,e==null?m(r):e]}))}))};return function(t){return __awaiter(e,void 0,void 0,(function(){var e,r,n,s,c,l,d,m,w,y,g,x,_,k,O,E,R,j,S,T,A,C,F,N,P,I,B,U,D,M,L,q,z,H,V,G,K,J,X,W,$,Y,Z,Q,ee,te,re,ne;return __generator(this,(function(ie){switch(ie.label){case 0:e=Bt(t),r=e.url,n=e.method,s=e.data,c=e.signal,l=e.cancelToken,d=e.timeout,m=e.onDownloadProgress,w=e.onUploadProgress,y=e.responseType,g=e.headers,x=e.withCredentials,_=x===void 0?"same-origin":x,k=e.fetchOptions,O=e.maxContentLength,E=e.maxBodyLength;R=pe.isNumber(O)&&O>-1;j=pe.isNumber(E)&&E>-1;S=a||fetch;y=y?(y+"").toLowerCase():"text";T=Mt([c,l&&l.toAbortSignal()],d);A=null;C=T&&T.unsubscribe&&function(){T.unsubscribe()};ie.label=1;case 1:ie.trys.push([1,9,,10]);if(R&&typeof r==="string"&&r.startsWith("data:")){N=Vt(r);if(N>O){throw new Ue("maxContentLength size of "+O+" exceeded",Ue.ERR_BAD_RESPONSE,t,A)}}if(!(j&&n!=="get"&&n!=="head"))return[3,3];return[4,b(g,s)];case 2:P=ie.sent();if(typeof P==="number"&&isFinite(P)&&P>E){throw new Ue("Request body larger than maxBodyLength limit",Ue.ERR_BAD_REQUEST,t,A)}ie.label=3;case 3:I=w&&v&&n!=="get"&&n!=="head";if(!I)return[3,5];return[4,b(g,s)];case 4:I=(F=ie.sent())!==0;ie.label=5;case 5:if(I){B=new o(r,{method:"POST",body:s,duplex:"half"});U=void 0;if(pe.isFormData(s)&&(U=B.headers.get("content-type"))){g.setContentType(U)}if(B.body){D=Ot(F,kt(Et(w))),M=D[0],L=D[1];s=Ht(B.body,Kt,M,L)}}if(!pe.isString(_)){_=_?"include":"omit"}q=f&&"credentials"in o.prototype;if(pe.isFormData(s)){z=g.getContentType();if(z&&/^multipart\/form-data/i.test(z)&&!/boundary=/i.test(z)){g.delete("content-type")}}g.set("User-Agent","axios/"+Gt,false);H=__assign(__assign({},k),{signal:T,method:n.toUpperCase(),headers:Oe(g.normalize()),body:s,duplex:"half",credentials:q?_:undefined});A=f&&new o(r,H);return[4,f?S(A,k):S(r,H)];case 6:V=ie.sent();if(R){G=pe.toFiniteNumber(V.headers.get("content-length"));if(G!=null&&G>O){throw new Ue("maxContentLength size of "+O+" exceeded",Ue.ERR_BAD_RESPONSE,t,A)}}K=h&&(y==="stream"||y==="response");if(h&&V.body&&(m||R||K&&C)){J={};["status","statusText","headers"].forEach((function(e){J[e]=V[e]}));X=pe.toFiniteNumber(V.headers.get("content-length"));W=m&&Ot(X,kt(Et(m),true))||[],$=W[0],Y=W[1];Z=0;Q=function(e){if(R){Z=e;if(Z>O){throw new Ue("maxContentLength size of "+O+" exceeded",Ue.ERR_BAD_RESPONSE,t,A)}}$&&$(e)};V=new u(Ht(V.body,Kt,Q,(function(){Y&&Y();C&&C()})),J)}y=y||"text";return[4,p[pe.findKey(p,y)||"text"](V,t)];case 7:ee=ie.sent();if(R&&!h&&!K){te=void 0;if(ee!=null){if(typeof ee.byteLength==="number"){te=ee.byteLength}else if(typeof ee.size==="number"){te=ee.size}else if(typeof ee==="string"){te=typeof i==="function"?(new i).encode(ee).byteLength:ee.length}}if(typeof te==="number"&&te>O){throw new Ue("maxContentLength size of "+O+" exceeded",Ue.ERR_BAD_RESPONSE,t,A)}}!K&&C&&C();return[4,new Promise((function(e,r){yt(e,r,{data:ee,headers:Ne.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:A})}))];case 8:return[2,ie.sent()];case 9:re=ie.sent();C&&C();if(T&&T.aborted&&T.reason instanceof Ue){ne=T.reason;ne.config=t;A&&(ne.request=A);re!==ne&&(ne.cause=re);throw ne}if(re&&re.name==="TypeError"&&/Load failed|fetch/i.test(re.message)){throw Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,t,A,re&&re.response),{cause:re.cause||re})}throw Ue.from(re,re&&re.code,t,A,re&&re.response);case 10:return[2]}}))}))}};var $t=new Map;var Yt=function(e){var t=e&&e.env||{};var r=t.fetch,n=t.Request,i=t.Response;var a=[n,i,r];var o=a.length,u=o,s,f,c=$t;while(u--){s=a[u];f=c.get(s);f===undefined&&c.set(s,f=u?new Map:Wt(t));c=f}return f};Yt();var Zt={http:De,xhr:Dt,fetch:{get:Yt}};pe.forEach(Zt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var Qt=function(e){return"- ".concat(e)};var er=function(e){return pe.isFunction(e)||e===null||e===false};function tr(e,t){e=pe.isArray(e)?e:[e];var r=e.length;var n;var i;var a={};for(var o=0;o<r;o++){n=e[o];var u=void 0;i=n;if(!er(n)){i=Zt[(u=String(n)).toLowerCase()];if(i===undefined){throw new Ue("Unknown adapter '".concat(u,"'"))}}if(i&&(pe.isFunction(i)||(i=i.get(t)))){break}a[u||"#"+o]=i}if(!i){var s=Object.entries(a).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var f=r?s.length>1?"since :\n"+s.map(Qt).join("\n"):" "+Qt(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i}var rr={getAdapter:tr,adapters:Zt};function nr(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new wt(null,e)}}function ir(e){nr(e);e.headers=Ne.from(e.headers);e.data=mt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=rr.getAdapter(e.adapter||pt.adapter,e);return t(e).then((function t(r){nr(e);e.response=r;try{r.data=mt.call(e,e.transformResponse,r)}finally{delete e.response}r.headers=Ne.from(r.headers);return r}),(function t(r){if(!bt(r)){nr(e);if(r&&r.response){e.response=r.response;try{r.response.data=mt.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Ne.from(r.response.headers)}}return Promise.reject(r)}))}var ar={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ar[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var or={};ar.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+Gt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,a){if(t===false){throw new Ue(i(n," has been removed"+(r?" in "+r:"")),Ue.ERR_DEPRECATED)}if(r&&!or[n]){or[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,a):true}};ar.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function ur(e,t,r){if(typeof e!=="object"){throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var a=n[i];var o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:undefined;if(o){var u=e[a];var s=u===undefined||o(u,a,e);if(s!==true){throw new Ue("option "+a+" must be "+s,Ue.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new Ue("Unknown option "+a,Ue.ERR_BAD_OPTION)}}}var sr={assertOptions:ur,validators:ar};var fr=sr.validators;var cr=function(){function e(e){this.defaults=e||{};this.interceptors={request:new $e,response:new $e}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a,o,u;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,s.sent()];case 2:r=s.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=function(){if(!n.stack){return""}var e=n.stack.indexOf("\n");return e===-1?"":n.stack.slice(e+1)}();try{if(!r.stack){r.stack=i}else if(i){a=i.indexOf("\n");o=a===-1?-1:i.indexOf("\n",a+1);u=o===-1?"":i.slice(o+1);if(!String(r.stack).endsWith(u)){r.stack+="\n"+i}}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Ft(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){sr.assertOptions(r,{silentJSONParsing:fr.transitional(fr.boolean),forcedJSONParsing:fr.transitional(fr.boolean),clarifyTimeoutError:fr.transitional(fr.boolean),legacyInterceptorReqResOrdering:fr.transitional(fr.boolean)},false)}if(n!=null){if(pe.isFunction(n)){t.paramsSerializer={serialize:n}}else{sr.assertOptions(n,{encode:fr.function,serialize:fr.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}sr.assertOptions(t,{baseUrl:fr.spelling("baseURL"),withXsrfToken:fr.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&pe.merge(i.common,i[t.method]);i&&pe.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete i[e]}));t.headers=Ne.concat(a,i);var o=[];var u=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}u=u&&r.synchronous;var n=t.transitional||Ye;var i=n&&n.legacyInterceptorReqResOrdering;if(i){o.unshift(r.fulfilled,r.rejected)}else{o.push(r.fulfilled,r.rejected)}}));var s=[];this.interceptors.response.forEach((function e(t){s.push(t.fulfilled,t.rejected)}));var f;var c=0;var l;if(!u){var d=[ir.bind(this),undefined];d.unshift.apply(d,o);d.push.apply(d,s);l=d.length;f=Promise.resolve(t);while(c<l){f=f.then(d[c++],d[c++])}return f}l=o.length;var v=t;while(c<l){var h=o[c++];var p=o[c++];try{v=h(v)}catch(e){p.call(this,e);break}}try{f=ir.call(this,v)}catch(e){return Promise.reject(e)}c=0;l=s.length;while(c<l){f=f.then(s[c++],s[c++])}return f};e.prototype.getUri=function(e){e=Ft(this.defaults,e);var t=At(e.baseURL,e.url,e.allowAbsoluteUrls);return We(t,e.params,e.paramsSerializer)};return e}();pe.forEach(["delete","get","head","options"],(function e(t){cr.prototype[t]=function(e,r){return this.request(Ft(r||{},{method:t,url:e,data:(r||{}).data}))}}));pe.forEach(["post","put","patch","query"],(function e(t){function r(e){return function r(n,i,a){return this.request(Ft(a||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}cr.prototype[t]=r();if(t!=="query"){cr.prototype[t+"Form"]=r(true)}}));var lr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,a){if(r.reason){return}r.reason=new wt(n,i,a);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();function dr(e){return function t(r){return e.apply(null,r)}}function vr(e){return pe.isObject(e)&&e.isAxiosError===true}var hr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hr).forEach((function(e){var t=e[0],r=e[1];hr[r]=t}));function pr(e){var r=new cr(e);var n=t(cr.prototype.request,r);pe.extend(n,cr.prototype,r,{allOwnKeys:true});pe.extend(n,r,null,{allOwnKeys:true});n.create=function t(r){return pr(Ft(e,r))};return n}var mr=pr(pt);mr.Axios=cr;mr.CanceledError=wt;mr.CancelToken=lr;mr.isCancel=bt;mr.VERSION=Gt;mr.toFormData=Ve;mr.AxiosError=Ue;mr.Cancel=mr.CanceledError;mr.all=function e(t){return Promise.all(t)};mr.spread=dr;mr.isAxiosError=vr;mr.mergeConfig=Ft;mr.AxiosHeaders=Ne;mr.formToJSON=function(e){return dt(pe.isHTMLForm(e)?new FormData(e):e)};mr.getAdapter=rr.getAdapter;mr.HttpStatusCode=hr;mr.default=mr;axios_1=mr;return axios_1}var axiosExports=requireAxios();var axios=getDefaultExportFromCjs(axiosExports);var API_KEY=BETA_ORIGINS.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var getFeatureFlags=function(){return axios.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:API_KEY}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var verdocsContactPickerCss=function(){return'verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}'};var addrBookIcon='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var VerdocsContactPicker=function(){function e(e){registerInstance(this,e);this.searchContacts=createEvent(this,"searchContacts");this.exit=createEvent(this,"exit");this.next=createEvent(this,"next");this.endpoint=VerdocsEndpoint.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=formatFullName(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.name_locked=this.delegator?false:this.templateRole.name_locked||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}getActiveEntitlements(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));getFeatureFlags().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,name_locked:this.name_locked,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,n,i,a,o,u,s,f,c,l,d,v,p,m,b,w,y;var g=this.first_name&&this.last_name&&isValidEmail(this.email);var x=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var _=g&&x;var k=((n=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||n===void 0?void 0:n.enabled)===true;var O=[];if(((o=(a=(i=this.featureFlags)===null||i===void 0?void 0:i.toggles)===null||a===void 0?void 0:a.find((function(e){return e.name==="passcode-verification"})))===null||o===void 0?void 0:o.enabled)===true){O.push({label:"Passcode",value:"passcode"})}if(((f=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="email-verification"})))===null||f===void 0?void 0:f.enabled)===true){O.push({label:"Email",value:"email"})}if(k&&((d=(l=(c=this.featureFlags)===null||c===void 0?void 0:c.toggles)===null||l===void 0?void 0:l.find((function(e){return e.name==="sms-verification"})))===null||d===void 0?void 0:d.enabled)===true&&!!this.activeEntitlements.sms_auth){O.push({label:"SMS (One-Time Code)",value:"sms"})}if(((m=(p=(v=this.featureFlags)===null||v===void 0?void 0:v.toggles)===null||p===void 0?void 0:p.find((function(e){return e.name==="kba-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.kba_auth){O.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((y=(w=(b=this.featureFlags)===null||b===void 0?void 0:b.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="id-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.id_auth){O.push({label:"ID Check",value:"id"})}return h("form",{key:"374d6f0907e09a4c312bcd666eaabf578f8671b5",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},h("div",{key:"bbdb01e7229992ff75b3b124fde6a8606769d53c",class:"row"},h("label",{key:"546da7ec599b17cc2e514dcaf47fe41d7107ec11",htmlFor:this.firstNameFieldId},"Name:"),h("div",{key:"e5819a8cb2c261c302a4923561578c5928063e64",class:"names-row"},h("input",{key:"05a471f19b8018993d50f4ba9776864392c13c9d",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),h("input",{key:"4e56ab4161e6bd7894c636619282915243c8aeec",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&h("verdocs-portal",{key:"0a856517832b4dc417627675a0327e5a5e9e4710",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},h("div",{key:"6c0c1747e5ed512ad463c26f220b34db395e8f2c",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return h("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?h("img",{alt:"Avatar",class:"avatar",src:t.picture}):h("div",{class:"avatar",innerHTML:addrBookIcon}),h("div",{class:"details"},h("div",{class:"name"},formatFullName(t)),t.email&&h("div",{class:"destination"},t.email),t.phone&&h("div",{class:"destination"},t.phone)))}))))),h("div",{key:"85552b20424fb4884fa88d22c78375fe5c6513e0",class:"row"},h("label",{key:"2b438ee30f3c0115d0445e3f5bfe4ae8b7635073",htmlFor:this.emailFieldId},"Email:"),h("input",{key:"a349fb9e534ed7786268d9aac9184fc38a8a102e",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),k&&h("div",{key:"f015a535d0a37d94eb73b145342d00dde7b63a50",class:"row"},h("label",{key:"eff877e183e38de65ca11e535b81e11b5ee1bd92",htmlFor:this.phoneFieldId},"Phone:"),h("input",{key:"41db6e4607189c0b0da0ef658b1fbafcfeab92ba",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=convertToE164(t.target.value)}})),h(Fragment,{key:"c037e234e206b1cd45bf91649f211ebe42f885fe"},O.length>0&&h("div",{key:"23fa9db672498199d7c053b258669e0676852322",class:"row pin-code"},h("label",{key:"d5208d3cd083716589aa6c18dbd85ba88ca208b3"},"Verification Methods:"),h("div",{key:"f239551b28d2ca51b8f9ab5ec64bfdfdce4bf823"},O.map((function(t,r){return h("div",{class:"option"},h("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(r){if(r.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),h("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))})))),this.auth_methods.includes("passcode")&&h("div",{key:"d57e7078dfefb1c816a15c52a8aa44eae62a5557",class:"row pin-code"},h("label",{key:"df97978ae0e4c176c7d6ca38850537d3d6db5ce3",htmlFor:this.phoneFieldId},"Passcode:"),h("input",{key:"7791e5a2d856bdd9dbbfcf8c339531e3e5c5e52b",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),h("div",{key:"7de2d50963399db273bd1d38941ea967a2d92827",class:"row pin-code"},h("label",{key:"d0202a6e0969b405d303cdc291dee95048460b43",style:{marginTop:"6px"}},"Options:"),h("div",{key:"52f68972a5fee697972fa9baa284ca6a37830ab9"},h("div",{key:"8e15a3caa1e4ce0cbb943fb7bfaaf274d4410de3",class:"option"},h("verdocs-checkbox",{key:"7d21cafec340458f1c6a06b577fad30bbd5680eb",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:function(t){e.delegator=t.target.checked;if(e.delegator)e.name_locked=false}}),h("label",{key:"2b96fb477ce41038cf9d115e9fabf102d670d801",htmlFor:"verdocs-delegator"},"May delegate signing")),h("div",{key:"7f616562ee03e6026bf09b355ae20720b45655b0",class:"option"},h("verdocs-checkbox",{key:"47bfa40e403ddf6da8cba33fda8ebff05625d353",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:function(t){e.name_locked=t.target.checked;if(e.name_locked)e.delegator=false}}),h("label",{key:"382d0b92f8999dc1a0adaa91d00c6c0f95a17552",htmlFor:"verdocs-name-locked"},"Name locked")))),h("div",{key:"6797886d95d1e08dc0c018e89cf6040aa60b02ff",class:"row message"},h("label",{key:"cb6f04c40e1b6601d0292e248b26cb4f2519e7d9",htmlFor:"verdocs-contact-picker-message"},"Message:"),h("textarea",{key:"018a9162f52e73650283a7f2271a99352008085c",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),h("div",{key:"d2f04563ad450f4c6c0c19735a064d01182cf458",class:"buttons"},h("div",{key:"43f240077f3c5b3e252c60a277668c94c9163b24",class:"flex-fill"}),h("verdocs-button",{key:"f758cb6d10b3deb58d13aaf54c212e6455933104",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),h("verdocs-button",{key:"3aa451a2d6d23ada4a7a5ddb5843b22954b69161",label:"OK",size:"small",disabled:!_,onClick:!_?function(){}:function(t){return e.handleSubmit(t)}})))};return e}();VerdocsContactPicker.style=verdocsContactPickerCss();export{VerdocsContactPicker as verdocs_contact_picker};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i))e[i]=r[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,u)}s((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(r){return s([e,r])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=r.call(e,t)}catch(e){u=[6,e];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){t=e[r](t),i(n,a,t.done,t.value)}))}}function i(e,r,t,n){Promise.resolve(n).then((function(r){e({value:r,done:t})}),r)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var r,t;return r={},n("next"),n("throw",(function(e){throw e})),n("return"),r[Symbol.iterator]=function(){return this},r;function n(n,i){r[n]=e[n]?function(r){return(t=!t)?{value:__await(e[n](r)),done:false}:i?i(r):r}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,r||[]),i,a=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(r){return Promise.resolve(r).then(e,l)}}function u(e,r){if(n[e]){i[e]=function(r){return new Promise((function(t,n){a.push([e,r,t,n])>1||s(e,r)}))};if(r)i[e]=r(i[e])}}function s(e,r){try{f(n[e](r))}catch(e){d(a[0][3],e)}}function f(e){e.value instanceof __await?Promise.resolve(e.value.v).then(c,l):d(a[0][2],e)}function c(e){s("next",e)}function l(e){s("throw",e)}function d(e,r){if(e(r),a.shift(),a.length)s(a[0][0],a[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var __values=this&&this.__values||function(e){var r=typeof Symbol==="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};import{r as registerInstance,c as createEvent,h,F as Fragment}from"./index-CjTHbolG.js";import{VerdocsEndpoint,formatFullName,getActiveEntitlements,isValidEmail}from"@verdocs/js-sdk";import{c as commonjsGlobal,g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{B as BETA_ORIGINS}from"./Environment-C_Xku1v2.js";import{f as convertToE164}from"./utils-D9l-GFdv.js";import"./index-BglCURB-.js";import"./Types-CIxfEdV7.js";
|
|
2
|
+
/*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors */var axios_1;var hasRequiredAxios;function requireAxios(){var e=this;if(hasRequiredAxios)return axios_1;hasRequiredAxios=1;function r(e,r){return function t(){return e.apply(r,arguments)}}var t=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,a=Symbol.toStringTag;var o=function(e){return function(r){var n=t.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(r){return o(r)===e}};var s=function(e){return function(r){return typeof r===e}};var f=Array.isArray;var c=s("undefined");function l(e){return e!==null&&!c(e)&&e.constructor!==null&&!c(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var d=u("ArrayBuffer");function v(e){var r;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){r=ArrayBuffer.isView(e)}else{r=e&&e.buffer&&d(e.buffer)}return r}var h=s("string");var p=s("function");var m=s("number");var b=function(e){return e!==null&&typeof e==="object"};var w=function(e){return e===true||e===false};var y=function(e){if(o(e)!=="object"){return false}var r=n(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(a in e)&&!(i in e)};var g=function(e){if(!b(e)||l(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};var x=u("Date");var _=u("File");var k=function(e){return!!(e&&typeof e.uri!=="undefined")};var O=function(e){return e&&typeof e.getParts!=="undefined"};var E=u("Blob");var R=u("FileList");var j=function(e){return b(e)&&p(e.pipe)};function S(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof commonjsGlobal!=="undefined")return commonjsGlobal;return{}}var A=S();var T=typeof A.FormData!=="undefined"?A.FormData:undefined;var C=function(e){if(!e)return false;if(T&&e instanceof T)return true;var r=n(e);if(!r||r===Object.prototype)return false;if(!p(e.append))return false;var t=o(e);return t==="formdata"||t==="object"&&p(e.toString)&&e.toString()==="[object FormData]"};var F=u("URLSearchParams");var N=["ReadableStream","Request","Response","Headers"].map(u),P=N[0],I=N[1],B=N[2],U=N[3];var D=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function L(e,r,t){var n=t===void 0?{}:t,i=n.allOwnKeys,a=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var o;var u;if(typeof e!=="object"){e=[e]}if(f(e)){for(o=0,u=e.length;o<u;o++){r.call(null,e[o],o,e)}}else{if(l(e)){return}var s=a?Object.getOwnPropertyNames(e):Object.keys(e);var c=s.length;var d=void 0;for(o=0;o<c;o++){d=s[o];r.call(null,e[d],d,e)}}}function M(e,r){if(l(e)){return null}r=r.toLowerCase();var t=Object.keys(e);var n=t.length;var i;while(n-- >0){i=t[n];if(r===i.toLowerCase()){return i}}return null}var z=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:commonjsGlobal}();var q=function(e){return!c(e)&&e!==z};function H(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t=q(this)&&this||{},n=t.caseless,i=t.skipUndefined;var a={};var o=function(e,r){if(r==="__proto__"||r==="constructor"||r==="prototype"){return}var t=n&&typeof r==="string"&&M(a,r)||r;var o=re(a,t)?a[t]:undefined;if(y(o)&&y(e)){a[t]=H(o,e)}else if(y(e)){a[t]=H({},e)}else if(f(e)){a[t]=e.slice()}else if(!i||!c(e)){a[t]=e}};for(var u=0,s=e.length;u<s;u++){var d=e[u];if(!d||l(d)){continue}L(d,o);if(typeof d!=="object"||f(d)){continue}var v=Object.getOwnPropertySymbols(d);for(var h=0;h<v.length;h++){var p=v[h];if(te.call(d,p)){o(d[p],p)}}}return a}var V=function(e,t,n,i){var a=i===void 0?{}:i,o=a.allOwnKeys;L(t,(function(t,i){if(n&&p(t)){Object.defineProperty(e,i,{__proto__:null,value:r(t,n),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(e,i,{__proto__:null,value:t,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:o});return e};var G=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var K=function(e,r,t,n){e.prototype=Object.create(r.prototype,n);Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{__proto__:null,value:r.prototype});t&&Object.assign(e.prototype,t)};var J=function(e,r,t,i){var a;var o;var u;var s={};r=r||{};if(e==null)return r;do{a=Object.getOwnPropertyNames(e);o=a.length;while(o-- >0){u=a[o];if((!i||i(u,e,r))&&!s[u]){r[u]=e[u];s[u]=true}}e=t!==false&&n(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r};var X=function(e,r,t){e=String(e);if(t===undefined||t>e.length){t=e.length}t-=r.length;var n=e.indexOf(r,t);return n!==-1&&n===t};var W=function(e){if(!e)return null;if(f(e))return e;var r=e.length;if(!m(r))return null;var t=new Array(r);while(r-- >0){t[r]=e[r]}return t};var $=function(e){return function(r){return e&&r instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var Z=function(e,r){var t=e&&e[i];var n=t.call(e);var a;while((a=n.next())&&!a.done){var o=a.value;r.call(e,o[0],o[1])}};var Y=function(e,r){var t;var n=[];while((t=e.exec(r))!==null){n.push(t)}return n};var Q=u("HTMLFormElement");var ee=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(r,t,n){return t.toUpperCase()+n}))};var re=function(e){var r=e.hasOwnProperty;return function(e,t){return r.call(e,t)}}(Object.prototype);var te=Object.prototype.propertyIsEnumerable;var ne=u("RegExp");var ie=function(e,r){var t=Object.getOwnPropertyDescriptors(e);var n={};L(t,(function(t,i){var a;if((a=r(t,i,e))!==false){n[i]=a||t}}));Object.defineProperties(e,n)};var ae=function(e){ie(e,(function(r,t){if(p(e)&&["arguments","caller","callee"].includes(t)){return false}var n=e[t];if(!p(n))return;r.enumerable=false;if("writable"in r){r.writable=false;return}if(!r.set){r.set=function(){throw Error("Can not rewrite read-only method '"+t+"'")}}}))};var oe=function(e,r){var t={};var n=function(e){e.forEach((function(e){t[e]=true}))};f(e)?n(e):n(String(e).split(r));return t};var ue=function(){};var se=function(e,r){return e!=null&&Number.isFinite(e=+e)?e:r};function fe(e){return!!(e&&p(e.append)&&e[a]==="FormData"&&e[i])}var ce=function(e){var r=new WeakSet;var t=function(e){if(b(e)){if(r.has(e)){return}if(l(e)){return e}if(!("toJSON"in e)){r.add(e);var n=f(e)?[]:{};L(e,(function(e,r){var i=t(e);!c(i)&&(n[r]=i)}));r.delete(e);return n}}return e};return t(e)};var le=u("AsyncFunction");var de=function(e){return e&&(b(e)||p(e))&&p(e.then)&&p(e.catch)};var ve=function(e,r){if(e){return setImmediate}return r?function(e,r){z.addEventListener("message",(function(t){var n=t.source,i=t.data;if(n===z&&i===e){r.length&&r.shift()()}}),false);return function(t){r.push(t);z.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",p(z.postMessage));var he=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(z):typeof process!=="undefined"&&process.nextTick||ve;var pe=function(e){return e!=null&&p(e[i])};var me={isArray:f,isArrayBuffer:d,isBuffer:l,isFormData:C,isArrayBufferView:v,isString:h,isNumber:m,isBoolean:w,isObject:b,isPlainObject:y,isEmptyObject:g,isReadableStream:P,isRequest:I,isResponse:B,isHeaders:U,isUndefined:c,isDate:x,isFile:_,isReactNativeBlob:k,isReactNative:O,isBlob:E,isRegExp:ne,isFunction:p,isStream:j,isURLSearchParams:F,isTypedArray:$,isFileList:R,forEach:L,merge:H,extend:V,trim:D,stripBOM:G,inherits:K,toFlatObject:J,kindOf:o,kindOfTest:u,endsWith:X,toArray:W,forEachEntry:Z,matchAll:Y,isHTMLForm:Q,hasOwnProperty:re,hasOwnProp:re,reduceDescriptors:ie,freezeMethods:ae,toObjectSet:oe,toCamelCase:ee,noop:ue,toFiniteNumber:se,findKey:M,global:z,isContextDefined:q,isSpecCompliantForm:fe,toJSONObject:ce,isAsyncFn:le,isThenable:de,setImmediate:ve,asap:he,isIterable:pe};var be=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var we=function(e){var r={};var t;var n;var i;e&&e.split("\n").forEach((function e(a){i=a.indexOf(":");t=a.substring(0,i).trim().toLowerCase();n=a.substring(i+1).trim();if(!t||r[t]&&be[t]){return}if(t==="set-cookie"){if(r[t]){r[t].push(n)}else{r[t]=[n]}}else{r[t]=r[t]?r[t]+", "+n:n}}));return r};function ye(e){var r=0;var t=e.length;while(r<t){var n=e.charCodeAt(r);if(n!==9&&n!==32){break}r+=1}while(t>r){var n=e.charCodeAt(t-1);if(n!==9&&n!==32){break}t-=1}return r===0&&t===e.length?e:e.slice(r,t)}var ge=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g");var xe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _e(e,r){if(me.isArray(e)){return e.map((function(e){return _e(e,r)}))}return ye(String(e).replace(r,""))}var ke=function(e){return _e(e,ge)};var Oe=function(e){return _e(e,xe)};function Ee(e){var r=Object.create(null);me.forEach(e.toJSON(),(function(e,t){r[t]=Oe(e)}));return r}var Re=Symbol("internals");function je(e){return e&&String(e).trim().toLowerCase()}function Se(e){if(e===false||e==null){return e}return me.isArray(e)?e.map(Se):ke(String(e))}function Ae(e){var r=Object.create(null);var t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=t.exec(e)){r[n[1]]=n[2]}return r}var Te=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Ce(e,r,t,n,i){if(me.isFunction(n)){return n.call(this,r,t)}if(i){r=t}if(!me.isString(r))return;if(me.isString(n)){return r.indexOf(n)!==-1}if(me.isRegExp(n)){return n.test(r)}}function Fe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,r,t){return r.toUpperCase()+t}))}function Ne(e,r){var t=me.toCamelCase(" "+r);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+t,{__proto__:null,value:function(e,t,i){return this[n].call(this,r,e,t,i)},configurable:true})}))}var Pe=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,r,t){var n=this;function i(e,r,t){var i=je(r);if(!i){return}var a=me.findKey(n,i);if(!a||n[a]===undefined||t===true||t===undefined&&n[a]!==false){n[a||r]=Se(e)}}var a=function(e,r){return me.forEach(e,(function(e,t){return i(e,t,r)}))};if(me.isPlainObject(e)||e instanceof this.constructor){a(e,r)}else if(me.isString(e)&&(e=e.trim())&&!Te(e)){a(we(e),r)}else if(me.isObject(e)&&me.isIterable(e)){var o={},u=void 0,s=void 0;for(var f=0,c=e;f<c.length;f++){var l=c[f];if(!me.isArray(l)){throw new TypeError("Object iterator must return a key-value pair")}o[s=l[0]]=(u=o[s])?me.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}a(o,r)}else{e!=null&&i(r,e,t)}return this};e.prototype.get=function(e,r){e=je(e);if(e){var t=me.findKey(this,e);if(t){var n=this[t];if(!r){return n}if(r===true){return Ae(n)}if(me.isFunction(r)){return r.call(this,n,t)}if(me.isRegExp(r)){return r.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,r){e=je(e);if(e){var t=me.findKey(this,e);return!!(t&&this[t]!==undefined&&(!r||Ce(this,this[t],t,r)))}return false};e.prototype.delete=function(e,r){var t=this;var n=false;function i(e){e=je(e);if(e){var i=me.findKey(t,e);if(i&&(!r||Ce(t,t[i],i,r))){delete t[i];n=true}}}if(me.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var r=Object.keys(this);var t=r.length;var n=false;while(t--){var i=r[t];if(!e||Ce(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var r=this;var t={};me.forEach(this,(function(n,i){var a=me.findKey(t,i);if(a){r[a]=Se(n);delete r[i];return}var o=e?Fe(i):String(i).trim();if(o!==i){delete r[i]}r[o]=Se(n);t[o]=true}));return this};e.prototype.concat=function(){var e;var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}return(e=this.constructor).concat.apply(e,__spreadArray([this],r,false))};e.prototype.toJSON=function(e){var r=Object.create(null);me.forEach(this,(function(t,n){t!=null&&t!==false&&(r[n]=e&&me.isArray(t)?t.join(", "):t)}));return r};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var r=e[0],t=e[1];return r+": "+t})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var r=[];for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}var n=new this(e);r.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var r=this[Re]=this[Re]={accessors:{}};var t=r.accessors;var n=this.prototype;function i(e){var r=je(e);if(!t[r]){Ne(n,e);t[r]=true}}me.isArray(e)?e.forEach(i):i(e);return this};return e}();Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(Pe.prototype,(function(e,r){var t=e.value;var n=r[0].toUpperCase()+r.slice(1);return{get:function(){return t},set:function(e){this[n]=e}}}));me.freezeMethods(Pe);var Ie="[REDACTED ****]";function Be(e){if(me.hasOwnProp(e,"toJSON")){return true}var r=Object.getPrototypeOf(e);while(r&&r!==Object.prototype){if(me.hasOwnProp(r,"toJSON")){return true}r=Object.getPrototypeOf(r)}return false}function Ue(e,r){var t=new Set(r.map((function(e){return String(e).toLowerCase()})));var n=[];var i=function(e){if(e===null||typeof e!=="object")return e;if(me.isBuffer(e))return e;if(n.indexOf(e)!==-1)return undefined;if(e instanceof Pe){e=e.toJSON()}n.push(e);var r;if(me.isArray(e)){r=[];e.forEach((function(e,t){var n=i(e);if(!me.isUndefined(n)){r[t]=n}}))}else{if(!me.isPlainObject(e)&&Be(e)){n.pop();return e}r=Object.create(null);for(var a=0,o=Object.entries(e);a<o.length;a++){var u=o[a],s=u[0],f=u[1];var c=t.has(s.toLowerCase())?Ie:i(f);if(!me.isUndefined(c)){r[s]=c}}}n.pop();return r};return i(e)}var De=function(e){__extends(r,e);function r(r,t,n,i,a){var o=e.call(this,r)||this;Object.defineProperty(o,"message",{__proto__:null,value:r,enumerable:true,writable:true,configurable:true});o.name="AxiosError";o.isAxiosError=true;t&&(o.code=t);n&&(o.config=n);i&&(o.request=i);if(a){o.response=a;o.status=a.status}return o}r.from=function(e,t,n,i,a,o){var u=new r(e.message,t||e.code,n,i,a);u.cause=e;u.name=e.name;if(e.status!=null&&u.status==null){u.status=e.status}o&&Object.assign(u,o);return u};r.prototype.toJSON=function(){var e=this.config;var r=e&&me.hasOwnProp(e,"redact")?e.redact:undefined;var t=me.isArray(r)&&r.length>0?Ue(e,r):me.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:t,code:this.code,status:this.status}};return r}(Error);De.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";De.ERR_BAD_OPTION="ERR_BAD_OPTION";De.ECONNABORTED="ECONNABORTED";De.ETIMEDOUT="ETIMEDOUT";De.ECONNREFUSED="ECONNREFUSED";De.ERR_NETWORK="ERR_NETWORK";De.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";De.ERR_DEPRECATED="ERR_DEPRECATED";De.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";De.ERR_BAD_REQUEST="ERR_BAD_REQUEST";De.ERR_CANCELED="ERR_CANCELED";De.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";De.ERR_INVALID_URL="ERR_INVALID_URL";De.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Le=null;function Me(e){return me.isPlainObject(e)||me.isArray(e)}function ze(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function qe(e,r,t){if(!e)return r;return e.concat(r).map((function e(r,n){r=ze(r);return!t&&n?"["+r+"]":r})).join(t?".":"")}function He(e){return me.isArray(e)&&!e.some(Me)}var Ve=me.toFlatObject(me,{},null,(function e(r){return/^is[A-Z]/.test(r)}));function Ge(e,r,t){if(!me.isObject(e)){throw new TypeError("target must be an object")}r=r||new FormData;t=me.toFlatObject(t,{metaTokens:true,dots:false,indexes:false},false,(function e(r,t){return!me.isUndefined(t[r])}));var n=t.metaTokens;var i=t.visitor||l;var a=t.dots;var o=t.indexes;var u=t.Blob||typeof Blob!=="undefined"&&Blob;var s=t.maxDepth===undefined?100:t.maxDepth;var f=u&&me.isSpecCompliantForm(r);if(!me.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(me.isDate(e)){return e.toISOString()}if(me.isBoolean(e)){return e.toString()}if(!f&&me.isBlob(e)){throw new De("Blob is not supported. Use a Buffer instead.")}if(me.isArrayBuffer(e)||me.isTypedArray(e)){return f&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function l(e,t,i){var u=e;if(me.isReactNative(r)&&me.isReactNativeBlob(e)){r.append(qe(i,t,a),c(e));return false}if(e&&!i&&typeof e==="object"){if(me.endsWith(t,"{}")){t=n?t:t.slice(0,-2);e=JSON.stringify(e)}else if(me.isArray(e)&&He(e)||(me.isFileList(e)||me.endsWith(t,"[]"))&&(u=me.toArray(e))){t=ze(t);u.forEach((function e(n,i){!(me.isUndefined(n)||n===null)&&r.append(o===true?qe([t],i,a):o===null?t:t+"[]",c(n))}));return false}}if(Me(e)){return true}r.append(qe(i,t,a),c(e));return false}var d=[];var v=Object.assign(Ve,{defaultVisitor:l,convertValue:c,isVisitable:Me});function h(e,t,n){if(n===void 0){n=0}if(me.isUndefined(e))return;if(n>s){throw new De("Object is too deeply nested ("+n+" levels). Max depth: "+s,De.ERR_FORM_DATA_DEPTH_EXCEEDED)}if(d.indexOf(e)!==-1){throw new Error("Circular reference detected in "+t.join("."))}d.push(e);me.forEach(e,(function e(a,o){var u=!(me.isUndefined(a)||a===null)&&i.call(r,a,me.isString(o)?o.trim():o,t,v);if(u===true){h(a,t?t.concat(o):[o],n+1)}}));d.pop()}if(!me.isObject(e)){throw new TypeError("data must be an object")}h(e);return r}function Ke(e){var r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function e(t){return r[t]}))}function Je(e,r){this._pairs=[];e&&Ge(e,this,r)}var Xe=Je.prototype;Xe.append=function e(r,t){this._pairs.push([r,t])};Xe.toString=function e(r){var t=r?function(e){return r.call(this,e,Ke)}:Ke;return this._pairs.map((function e(r){return t(r[0])+"="+t(r[1])}),"").join("&")};function We(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $e(e,r,t){if(!r){return e}var n=t&&t.encode||We;var i=me.isFunction(t)?{serialize:t}:t;var a=i&&i.serialize;var o;if(a){o=a(r,i)}else{o=me.isURLSearchParams(r)?r.toString():new Je(r,i).toString(n)}if(o){var u=e.indexOf("#");if(u!==-1){e=e.slice(0,u)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Ze=function(){function e(){this.handlers=[]}e.prototype.use=function(e,r,t){this.handlers.push({fulfilled:e,rejected:r,synchronous:t?t.synchronous:false,runWhen:t?t.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){me.forEach(this.handlers,(function r(t){if(t!==null){e(t)}}))};return e}();var Ye={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true,advertiseZstdAcceptEncoding:false};var Qe=typeof URLSearchParams!=="undefined"?URLSearchParams:Je;var er=typeof FormData!=="undefined"?FormData:null;var rr=typeof Blob!=="undefined"?Blob:null;var tr={isBrowser:true,classes:{URLSearchParams:Qe,FormData:er,Blob:rr},protocols:["http","https","file","blob","url","data"]};var nr=typeof window!=="undefined"&&typeof document!=="undefined";var ir=typeof navigator==="object"&&navigator||undefined;var ar=nr&&(!ir||["ReactNative","NativeScript","NS"].indexOf(ir.product)<0);var or=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var ur=nr&&window.location.href||"http://localhost";var sr=Object.freeze({__proto__:null,hasBrowserEnv:nr,hasStandardBrowserEnv:ar,hasStandardBrowserWebWorkerEnv:or,navigator:ir,origin:ur});var fr=__assign(__assign({},sr),tr);function cr(e,r){return Ge(e,new fr.classes.URLSearchParams,__assign({visitor:function(e,r,t,n){if(fr.isNode&&me.isBuffer(e)){this.append(r,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},r))}function lr(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function dr(e){var r={};var t=Object.keys(e);var n;var i=t.length;var a;for(n=0;n<i;n++){a=t[n];r[a]=e[a]}return r}function vr(e){function r(e,t,n,i){var a=e[i++];if(a==="__proto__")return true;var o=Number.isFinite(+a);var u=i>=e.length;a=!a&&me.isArray(n)?n.length:a;if(u){if(me.hasOwnProp(n,a)){n[a]=me.isArray(n[a])?n[a].concat(t):[n[a],t]}else{n[a]=t}return!o}if(!me.hasOwnProp(n,a)||!me.isObject(n[a])){n[a]=[]}var s=r(e,t,n[a],i);if(s&&me.isArray(n[a])){n[a]=dr(n[a])}return!o}if(me.isFormData(e)&&me.isFunction(e.entries)){var t={};me.forEachEntry(e,(function(e,n){r(lr(e),n,t,0)}));return t}return null}var hr=function(e,r){return e!=null&&me.hasOwnProp(e,r)?e[r]:undefined};function pr(e,r,t){if(me.isString(e)){try{(0,JSON.parse)(e);return me.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(t||JSON.stringify)(e)}var mr={transitional:Ye,adapter:["xhr","http","fetch"],transformRequest:[function e(r,t){var n=t.getContentType()||"";var i=n.indexOf("application/json")>-1;var a=me.isObject(r);if(a&&me.isHTMLForm(r)){r=new FormData(r)}var o=me.isFormData(r);if(o){return i?JSON.stringify(vr(r)):r}if(me.isArrayBuffer(r)||me.isBuffer(r)||me.isStream(r)||me.isFile(r)||me.isBlob(r)||me.isReadableStream(r)){return r}if(me.isArrayBufferView(r)){return r.buffer}if(me.isURLSearchParams(r)){t.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return r.toString()}var u;if(a){var s=hr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1){return cr(r,s).toString()}if((u=me.isFileList(r))||n.indexOf("multipart/form-data")>-1){var f=hr(this,"env");var c=f&&f.FormData;return Ge(u?{"files[]":r}:r,c&&new c,s)}}if(a||i){t.setContentType("application/json",false);return pr(r)}return r}],transformResponse:[function e(r){var t=hr(this,"transitional")||mr.transitional;var n=t&&t.forcedJSONParsing;var i=hr(this,"responseType");var a=i==="json";if(me.isResponse(r)||me.isReadableStream(r)){return r}if(r&&me.isString(r)&&(n&&!i||a)){var o=t&&t.silentJSONParsing;var u=!o&&a;try{return JSON.parse(r,hr(this,"parseReviver"))}catch(e){if(u){if(e.name==="SyntaxError"){throw De.from(e,De.ERR_BAD_RESPONSE,this,null,hr(this,"response"))}throw e}}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fr.classes.FormData,Blob:fr.classes.Blob},validateStatus:function e(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};me.forEach(["delete","get","head","post","put","patch","query"],(function(e){mr.headers[e]={}}));function br(e,r){var t=this||mr;var n=r||t;var i=Pe.from(n.headers);var a=n.data;me.forEach(e,(function e(n){a=n.call(t,a,i.normalize(),r?r.status:undefined)}));i.normalize();return a}function wr(e){return!!(e&&e.__CANCEL__)}var yr=function(e){__extends(r,e);function r(r,t,n){var i=e.call(this,r==null?"canceled":r,De.ERR_CANCELED,t,n)||this;i.name="CanceledError";i.__CANCEL__=true;return i}return r}(De);function gr(e,r,t){var n=t.config.validateStatus;if(!t.status||!n||n(t.status)){e(t)}else{r(new De("Request failed with status code "+t.status,t.status>=400&&t.status<500?De.ERR_BAD_REQUEST:De.ERR_BAD_RESPONSE,t.config,t.request,t))}}function xr(e){var r=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return r&&r[1]||""}function _r(e,r){e=e||10;var t=new Array(e);var n=new Array(e);var i=0;var a=0;var o;r=r!==undefined?r:1e3;return function u(s){var f=Date.now();var c=n[a];if(!o){o=f}t[i]=s;n[i]=f;var l=a;var d=0;while(l!==i){d+=t[l++];l=l%e}i=(i+1)%e;if(i===a){a=(a+1)%e}if(f-o<r){return}var v=c&&f-c;return v?Math.round(d*1e3/v):undefined}}function kr(e,r){var t=0;var n=1e3/r;var i;var a;var o=function(r,n){if(n===void 0){n=Date.now()}t=n;i=null;if(a){clearTimeout(a);a=null}e.apply(void 0,r)};var u=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var u=Date.now();var s=u-t;if(s>=n){o(e,u)}else{i=e;if(!a){a=setTimeout((function(){a=null;o(i)}),n-s)}}};var s=function(){return i&&o(i)};return[u,s]}var Or=function(e,r,t){if(t===void 0){t=3}var n=0;var i=_r(50,250);return kr((function(t){var a;if(!t||typeof t.loaded!=="number"){return}var o=t.loaded;var u=t.lengthComputable?t.total:undefined;var s=u!=null?Math.min(o,u):o;var f=Math.max(0,s-n);var c=i(f);n=Math.max(n,s);var l=(a={loaded:s,total:u,progress:u?s/u:undefined,bytes:f,rate:c?c:undefined,estimated:c&&u?(u-s)/c:undefined,event:t,lengthComputable:u!=null},a[r?"download":"upload"]=true,a);e(l)}),t)};var Er=function(e,r){var t=e!=null;return[function(n){return r[0]({lengthComputable:t,total:e,loaded:n})},r[1]]};var Rr=function(e){return function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}return me.asap((function(){return e.apply(void 0,r)}))}};var jr=fr.hasStandardBrowserEnv?function(e,r){return function(t){t=new URL(t,fr.origin);return e.protocol===t.protocol&&e.host===t.host&&(r||e.port===t.port)}}(new URL(fr.origin),fr.navigator&&/(msie|trident)/i.test(fr.navigator.userAgent)):function(){return true};var Sr=fr.hasStandardBrowserEnv?{write:function(e,r,t,n,i,a,o){if(typeof document==="undefined")return;var u=["".concat(e,"=").concat(encodeURIComponent(r))];if(me.isNumber(t)){u.push("expires=".concat(new Date(t).toUTCString()))}if(me.isString(n)){u.push("path=".concat(n))}if(me.isString(i)){u.push("domain=".concat(i))}if(a===true){u.push("secure")}if(me.isString(o)){u.push("SameSite=".concat(o))}document.cookie=u.join("; ")},read:function(e){if(typeof document==="undefined")return null;var r=document.cookie.split(";");for(var t=0;t<r.length;t++){var n=r[t].replace(/^\s+/,"");var i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===e){return decodeURIComponent(n.slice(i+1))}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function Ar(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tr(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Cr(e,r,t){var n=!Ar(r);if(e&&(n||t===false)){return Tr(e,r)}return r}var Fr=function(e){return e instanceof Pe?__assign({},e):e};function Nr(e,r){r=r||{};var t=Object.create(null);Object.defineProperty(t,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:false,writable:true,configurable:true});function n(e,r,t,n){if(me.isPlainObject(e)&&me.isPlainObject(r)){return me.merge.call({caseless:n},e,r)}else if(me.isPlainObject(r)){return me.merge({},r)}else if(me.isArray(r)){return r.slice()}return r}function i(e,r,t,i){if(!me.isUndefined(r)){return n(e,r,t,i)}else if(!me.isUndefined(e)){return n(undefined,e,t,i)}}function a(e,r){if(!me.isUndefined(r)){return n(undefined,r)}}function o(e,r){if(!me.isUndefined(r)){return n(undefined,r)}else if(!me.isUndefined(e)){return n(undefined,e)}}function u(t,i,a){if(me.hasOwnProp(r,a)){return n(t,i)}else if(me.hasOwnProp(e,a)){return n(undefined,t)}}var s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:u,headers:function(e,r,t){return i(Fr(e),Fr(r),t,true)}};me.forEach(Object.keys(__assign(__assign({},e),r)),(function n(a){if(a==="__proto__"||a==="constructor"||a==="prototype")return;var o=me.hasOwnProp(s,a)?s[a]:i;var f=me.hasOwnProp(e,a)?e[a]:undefined;var c=me.hasOwnProp(r,a)?r[a]:undefined;var l=o(f,c,a);me.isUndefined(l)&&o!==u||(t[a]=l)}));return t}var Pr=["content-type","content-length"];function Ir(e,r,t){if(t!=="content-only"){e.set(r);return}Object.entries(r).forEach((function(r){var t=r[0],n=r[1];if(Pr.includes(t.toLowerCase())){e.set(t,n)}}))}var Br=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(function(e,r){return String.fromCharCode(parseInt(r,16))}))};function Ur(e){var r=Nr({},e);var t=function(e){return me.hasOwnProp(r,e)?r[e]:undefined};var n=t("data");var i=t("withXSRFToken");var a=t("xsrfHeaderName");var o=t("xsrfCookieName");var u=t("headers");var s=t("auth");var f=t("baseURL");var c=t("allowAbsoluteUrls");var l=t("url");r.headers=u=Pe.from(u);r.url=$e(Cr(f,l,c),t("params"),t("paramsSerializer"));if(s){u.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?Br(s.password):"")))}if(me.isFormData(n)){if(fr.hasStandardBrowserEnv||fr.hasStandardBrowserWebWorkerEnv||me.isReactNative(n)){u.setContentType(undefined)}else if(me.isFunction(n.getHeaders)){Ir(u,n.getHeaders(),t("formDataHeaderPolicy"))}}if(fr.hasStandardBrowserEnv){if(me.isFunction(i)){i=i(r)}var d=i===true||i==null&&jr(r.url);if(d){var v=a&&o&&Sr.read(o);if(v){u.set(a,v)}}}return r}var Dr=typeof XMLHttpRequest!=="undefined";var Lr=Dr&&function(e){return new Promise((function r(t,n){var i,a;var o=Ur(e);var u=o.data;var s=Pe.from(o.headers).normalize();var f=o.responseType,c=o.onUploadProgress,l=o.onDownloadProgress;var d;var v,h;var p,m;function b(){p&&p();m&&m();o.cancelToken&&o.cancelToken.unsubscribe(d);o.signal&&o.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,true);w.timeout=o.timeout;function y(){if(!w){return}var r=Pe.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!f||f==="text"||f==="json"?w.responseText:w.response;var a={data:i,status:w.status,statusText:w.statusText,headers:r,config:e,request:w};gr((function e(r){t(r);b()}),(function e(r){n(r);b()}),a);w=null}if("onloadend"in w){w.onloadend=y}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.startsWith("file:"))){return}setTimeout(y)}}w.onabort=function r(){if(!w){return}n(new De("Request aborted",De.ECONNABORTED,e,w));b();w=null};w.onerror=function r(t){var i=t&&t.message?t.message:"Network Error";var a=new De(i,De.ERR_NETWORK,e,w);a.event=t||null;n(a);b();w=null};w.ontimeout=function r(){var t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||Ye;if(o.timeoutErrorMessage){t=o.timeoutErrorMessage}n(new De(t,i.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,w));b();w=null};u===undefined&&s.setContentType(null);if("setRequestHeader"in w){me.forEach(Ee(s),(function e(r,t){w.setRequestHeader(t,r)}))}if(!me.isUndefined(o.withCredentials)){w.withCredentials=!!o.withCredentials}if(f&&f!=="json"){w.responseType=o.responseType}if(l){i=Or(l,true),h=i[0],m=i[1];w.addEventListener("progress",h)}if(c&&w.upload){a=Or(c),v=a[0],p=a[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(o.cancelToken||o.signal){d=function(r){if(!w){return}n(!r||r.type?new yr(null,e,w):r);w.abort();b();w=null};o.cancelToken&&o.cancelToken.subscribe(d);if(o.signal){o.signal.aborted?d():o.signal.addEventListener("abort",d)}}var g=xr(o.url);if(g&&!fr.protocols.includes(g)){n(new De("Unsupported protocol "+g+":",De.ERR_BAD_REQUEST,e));return}w.send(u||null)}))};var Mr=function(e,r){e=e?e.filter(Boolean):[];if(!r&&!e.length){return}var t=new AbortController;var n=false;var i=function(e){if(!n){n=true;o();var r=e instanceof Error?e:this.reason;t.abort(r instanceof De?r:new yr(r instanceof Error?r.message:r))}};var a=r&&setTimeout((function(){a=null;i(new De("timeout of ".concat(r,"ms exceeded"),De.ETIMEDOUT))}),r);var o=function(){if(!e){return}a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null};e.forEach((function(e){return e.addEventListener("abort",i)}));var u=t.signal;u.unsubscribe=function(){return me.asap(o)};return u};var zr=function(e,r){var t,n,i;return __generator(this,(function(a){switch(a.label){case 0:t=e.byteLength;if(!(t<r))return[3,2];return[4,e];case 1:a.sent();return[2];case 2:n=0;a.label=3;case 3:if(!(n<t))return[3,5];i=n+r;return[4,e.slice(n,i)];case 4:a.sent();n=i;return[3,3];case 5:return[2]}}))};var qr=function(e,r){return __asyncGenerator(this,arguments,(function(){var t,n,i,a,o;var u,s,f,c;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);t=true,n=__asyncValues(Hr(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];c=i.value;t=false;a=c;return[5,__values(__asyncDelegator(__asyncValues(zr(a,r))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:t=true;return[3,1];case 6:return[3,13];case 7:o=l.sent();s={error:o};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!t&&!u&&(f=n.return)))return[3,10];return[4,__await(f.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var Hr=function(e){return __asyncGenerator(this,arguments,(function(){var r,t,n,i;return __generator(this,(function(a){switch(a.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[a.sent()])];case 2:a.sent();return[4,__await(void 0)];case 3:return[2,a.sent()];case 4:r=e.getReader();a.label=5;case 5:a.trys.push([5,,12,14]);a.label=6;case 6:return[4,__await(r.read())];case 7:t=a.sent(),n=t.done,i=t.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,a.sent()];case 9:a.sent();a.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(r.cancel())];case 13:a.sent();return[7];case 14:return[2]}}))}))};var Vr=function(e,r,t,n){var i=qr(e,r);var a=0;var o;var u=function(e){if(!o){o=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,s,f,c;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:r=l.sent(),n=r.done,o=r.value;if(n){u();e.close();return[2]}s=o.byteLength;if(t){f=a+=s;t(f)}e.enqueue(new Uint8Array(o));return[3,3];case 2:c=l.sent();u(c);throw c;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};function Gr(e){if(!e||typeof e!=="string")return 0;if(!e.startsWith("data:"))return 0;var r=e.indexOf(",");if(r<0)return 0;var t=e.slice(5,r);var n=e.slice(r+1);var i=/;base64/i.test(t);if(i){var a=n.length;var o=n.length;for(var u=0;u<o;u++){if(n.charCodeAt(u)===37&&u+2<o){var s=n.charCodeAt(u+1);var f=n.charCodeAt(u+2);var c=(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)&&(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102);if(c){a-=2;u+=2}}}var l=0;var d=o-1;var v=function(e){return e>=2&&n.charCodeAt(e-2)===37&&n.charCodeAt(e-1)===51&&(n.charCodeAt(e)===68||n.charCodeAt(e)===100)};if(d>=0){if(n.charCodeAt(d)===61){l++;d--}else if(v(d)){l++;d-=3}}if(l===1&&d>=0){if(n.charCodeAt(d)===61){l++}else if(v(d)){l++}}var h=Math.floor(a/4);var p=h*3-(l||0);return p>0?p:0}if(typeof Buffer!=="undefined"&&typeof Buffer.byteLength==="function"){return Buffer.byteLength(n,"utf8")}var m=0;for(var u=0,o=n.length;u<o;u++){var b=n.charCodeAt(u);if(b<128){m+=1}else if(b<2048){m+=2}else if(b>=55296&&b<=56319&&u+1<o){var w=n.charCodeAt(u+1);if(w>=56320&&w<=57343){m+=4;u++}else{m+=3}}else{m+=3}}return m}var Kr="1.17.0";var Jr=64*1024;var Xr=me.isFunction;var Wr=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(function(e,r){return String.fromCharCode(parseInt(r,16))}))};var $r=function(e){if(!me.isString(e)){return e}try{return decodeURIComponent(e)}catch(r){return e}};var Zr=function(e){var r=[];for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}try{return!!e.apply(void 0,r)}catch(e){return false}};var Yr=function(e){var r=e.indexOf("://");var t=e;if(r!==-1){t=t.slice(r+3)}return t.includes("@")||t.includes(":")};var Qr=function(r){var t=me.global!==undefined&&me.global!==null?me.global:globalThis;var n=t.ReadableStream,i=t.TextEncoder;r=me.merge.call({skipUndefined:true},{Request:t.Request,Response:t.Response},r);var a=r.fetch,o=r.Request,u=r.Response;var s=a?Xr(a):typeof fetch==="function";var f=Xr(o);var c=Xr(u);if(!s){return false}var l=s&&Xr(n);var d=s&&(typeof i==="function"?function(e){return function(r){return e.encode(r)}}(new i):function(r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=Uint8Array.bind;return[4,new o(r).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,t.sent()]))]}}))}))});var v=f&&l&&Zr((function(){var e=false;var r=new o(fr.origin,{body:new n,method:"POST",get duplex(){e=true;return"half"}});var t=r.headers.has("Content-Type");if(r.body!=null){r.body.cancel()}return e&&!t}));var h=c&&l&&Zr((function(){return me.isReadableStream(new u("").body)}));var p={stream:h&&function(e){return e.body}};s&&function(){["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!p[e]&&(p[e]=function(r,t){var n=r&&r[e];if(n){return n.call(r)}throw new De("Response type '".concat(e,"' is not supported"),De.ERR_NOT_SUPPORT,t)})}))}();var m=function(r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(r==null){return[2,0]}if(me.isBlob(r)){return[2,r.size]}if(!me.isSpecCompliantForm(r))return[3,2];e=new o(fr.origin,{method:"POST",body:r});return[4,e.arrayBuffer()];case 1:return[2,t.sent().byteLength];case 2:if(me.isArrayBufferView(r)||me.isArrayBuffer(r)){return[2,r.byteLength]}if(me.isURLSearchParams(r)){r=r+""}if(!me.isString(r))return[3,4];return[4,d(r)];case 3:return[2,t.sent().byteLength];case 4:return[2]}}))}))};var b=function(r,t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=me.toFiniteNumber(r.getContentLength());return[2,e==null?m(t):e]}))}))};return function(r){return __awaiter(e,void 0,void 0,(function(){var e,t,n,s,c,l,d,m,w,y,g,x,_,k,O,E,R,j,S,A,T,C,F,N,P,I,B,U,D,L,M,z,q,H,V,G,K,J,X,W,$,Z,Y,Q,ee,re,te,ne,ie,ae,oe,ue,se,fe,ce,le;return __generator(this,(function(de){switch(de.label){case 0:e=Ur(r),t=e.url,n=e.method,s=e.data,c=e.signal,l=e.cancelToken,d=e.timeout,m=e.onDownloadProgress,w=e.onUploadProgress,y=e.responseType,g=e.headers,x=e.withCredentials,_=x===void 0?"same-origin":x,k=e.fetchOptions,O=e.maxContentLength,E=e.maxBodyLength;R=me.isNumber(O)&&O>-1;j=me.isNumber(E)&&E>-1;S=function(e){return me.hasOwnProp(r,e)?r[e]:undefined};A=a||fetch;y=y?(y+"").toLowerCase():"text";T=Mr([c,l&&l.toAbortSignal()],d);C=null;F=T&&T.unsubscribe&&function(){T.unsubscribe()};de.label=1;case 1:de.trys.push([1,9,,10]);P=undefined;I=S("auth");if(I){B=I.username||"";U=I.password||"";P={username:B,password:U}}if(Yr(t)){D=new URL(t,fr.origin);if(!P&&(D.username||D.password)){L=$r(D.username);M=$r(D.password);P={username:L,password:M}}if(D.username||D.password){D.username="";D.password="";t=D.href}}if(P){g.delete("authorization");g.set("Authorization","Basic "+btoa(Wr((P.username||"")+":"+(P.password||""))))}if(R&&typeof t==="string"&&t.startsWith("data:")){z=Gr(t);if(z>O){throw new De("maxContentLength size of "+O+" exceeded",De.ERR_BAD_RESPONSE,r,C)}}if(!(j&&n!=="get"&&n!=="head"))return[3,3];return[4,b(g,s)];case 2:q=de.sent();if(typeof q==="number"&&isFinite(q)&&q>E){throw new De("Request body larger than maxBodyLength limit",De.ERR_BAD_REQUEST,r,C)}de.label=3;case 3:H=w&&v&&n!=="get"&&n!=="head";if(!H)return[3,5];return[4,b(g,s)];case 4:H=(N=de.sent())!==0;de.label=5;case 5:if(H){V=new o(t,{method:"POST",body:s,duplex:"half"});G=void 0;if(me.isFormData(s)&&(G=V.headers.get("content-type"))){g.setContentType(G)}if(V.body){K=Er(N,Or(Rr(w))),J=K[0],X=K[1];s=Vr(V.body,Jr,J,X)}}if(!me.isString(_)){_=_?"include":"omit"}W=f&&"credentials"in o.prototype;if(me.isFormData(s)){$=g.getContentType();if($&&/^multipart\/form-data/i.test($)&&!/boundary=/i.test($)){g.delete("content-type")}}g.set("User-Agent","axios/"+Kr,false);Z=__assign(__assign({},k),{signal:T,method:n.toUpperCase(),headers:Ee(g.normalize()),body:s,duplex:"half",credentials:W?_:undefined});C=f&&new o(t,Z);return[4,f?A(C,k):A(t,Z)];case 6:Y=de.sent();if(R){Q=me.toFiniteNumber(Y.headers.get("content-length"));if(Q!=null&&Q>O){throw new De("maxContentLength size of "+O+" exceeded",De.ERR_BAD_RESPONSE,r,C)}}ee=h&&(y==="stream"||y==="response");if(h&&Y.body&&(m||R||ee&&F)){re={};["status","statusText","headers"].forEach((function(e){re[e]=Y[e]}));te=me.toFiniteNumber(Y.headers.get("content-length"));ne=m&&Er(te,Or(Rr(m),true))||[],ie=ne[0],ae=ne[1];oe=0;ue=function(e){if(R){oe=e;if(oe>O){throw new De("maxContentLength size of "+O+" exceeded",De.ERR_BAD_RESPONSE,r,C)}}ie&&ie(e)};Y=new u(Vr(Y.body,Jr,ue,(function(){ae&&ae();F&&F()})),re)}y=y||"text";return[4,p[me.findKey(p,y)||"text"](Y,r)];case 7:se=de.sent();if(R&&!h&&!ee){fe=void 0;if(se!=null){if(typeof se.byteLength==="number"){fe=se.byteLength}else if(typeof se.size==="number"){fe=se.size}else if(typeof se==="string"){fe=typeof i==="function"?(new i).encode(se).byteLength:se.length}}if(typeof fe==="number"&&fe>O){throw new De("maxContentLength size of "+O+" exceeded",De.ERR_BAD_RESPONSE,r,C)}}!ee&&F&&F();return[4,new Promise((function(e,t){gr(e,t,{data:se,headers:Pe.from(Y.headers),status:Y.status,statusText:Y.statusText,config:r,request:C})}))];case 8:return[2,de.sent()];case 9:ce=de.sent();F&&F();if(T&&T.aborted&&T.reason instanceof De){le=T.reason;le.config=r;C&&(le.request=C);ce!==le&&(le.cause=ce);throw le}if(ce&&ce.name==="TypeError"&&/Load failed|fetch/i.test(ce.message)){throw Object.assign(new De("Network Error",De.ERR_NETWORK,r,C,ce&&ce.response),{cause:ce.cause||ce})}throw De.from(ce,ce&&ce.code,r,C,ce&&ce.response);case 10:return[2]}}))}))}};var et=new Map;var rt=function(e){var r=e&&e.env||{};var t=r.fetch,n=r.Request,i=r.Response;var a=[n,i,t];var o=a.length,u=o,s,f,c=et;while(u--){s=a[u];f=c.get(s);f===undefined&&c.set(s,f=u?new Map:Qr(r));c=f}return f};rt();var tt={http:Le,xhr:Lr,fetch:{get:rt}};me.forEach(tt,(function(e,r){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:r})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:r})}}));var nt=function(e){return"- ".concat(e)};var it=function(e){return me.isFunction(e)||e===null||e===false};function at(e,r){e=me.isArray(e)?e:[e];var t=e.length;var n;var i;var a={};for(var o=0;o<t;o++){n=e[o];var u=void 0;i=n;if(!it(n)){i=tt[(u=String(n)).toLowerCase()];if(i===undefined){throw new De("Unknown adapter '".concat(u,"'"))}}if(i&&(me.isFunction(i)||(i=i.get(r)))){break}a[u||"#"+o]=i}if(!i){var s=Object.entries(a).map((function(e){var r=e[0],t=e[1];return"adapter ".concat(r," ")+(t===false?"is not supported by the environment":"is not available in the build")}));var f=t?s.length>1?"since :\n"+s.map(nt).join("\n"):" "+nt(s[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i}var ot={getAdapter:at,adapters:tt};function ut(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new yr(null,e)}}function st(e){ut(e);e.headers=Pe.from(e.headers);e.data=br.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var r=ot.getAdapter(e.adapter||mr.adapter,e);return r(e).then((function r(t){ut(e);e.response=t;try{t.data=br.call(e,e.transformResponse,t)}finally{delete e.response}t.headers=Pe.from(t.headers);return t}),(function r(t){if(!wr(t)){ut(e);if(t&&t.response){e.response=t.response;try{t.response.data=br.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Pe.from(t.response.headers)}}return Promise.reject(t)}))}var ft={};["object","boolean","number","function","string","symbol"].forEach((function(e,r){ft[e]=function t(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}}));var ct={};ft.transitional=function e(r,t,n){function i(e,r){return"[Axios v"+Kr+"] Transitional option '"+e+"'"+r+(n?". "+n:"")}return function(e,n,a){if(r===false){throw new De(i(n," has been removed"+(t?" in "+t:"")),De.ERR_DEPRECATED)}if(t&&!ct[n]){ct[n]=true;console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))}return r?r(e,n,a):true}};ft.spelling=function e(r){return function(e,t){console.warn("".concat(t," is likely a misspelling of ").concat(r));return true}};function lt(e,r,t){if(typeof e!=="object"){throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var a=n[i];var o=Object.prototype.hasOwnProperty.call(r,a)?r[a]:undefined;if(o){var u=e[a];var s=u===undefined||o(u,a,e);if(s!==true){throw new De("option "+a+" must be "+s,De.ERR_BAD_OPTION_VALUE)}continue}if(t!==true){throw new De("Unknown option "+a,De.ERR_BAD_OPTION)}}}var dt={assertOptions:lt,validators:ft};var vt=dt.validators;var ht=function(){function e(e){this.defaults=e||{};this.interceptors={request:new Ze,response:new Ze}}e.prototype.request=function(e,r){return __awaiter(this,void 0,void 0,(function(){var t,n,i,a,o,u;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,2,,3]);return[4,this._request(e,r)];case 1:return[2,s.sent()];case 2:t=s.sent();if(t instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=function(){if(!n.stack){return""}var e=n.stack.indexOf("\n");return e===-1?"":n.stack.slice(e+1)}();try{if(!t.stack){t.stack=i}else if(i){a=i.indexOf("\n");o=a===-1?-1:i.indexOf("\n",a+1);u=o===-1?"":i.slice(o+1);if(!String(t.stack).endsWith(u)){t.stack+="\n"+i}}}catch(e){}}throw t;case 3:return[2]}}))}))};e.prototype._request=function(e,r){if(typeof e==="string"){r=r||{};r.url=e}else{r=e||{}}r=Nr(this.defaults,r);var t=r.transitional,n=r.paramsSerializer,i=r.headers;if(t!==undefined){dt.assertOptions(t,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean),legacyInterceptorReqResOrdering:vt.transitional(vt.boolean),advertiseZstdAcceptEncoding:vt.transitional(vt.boolean)},false)}if(n!=null){if(me.isFunction(n)){r.paramsSerializer={serialize:n}}else{dt.assertOptions(n,{encode:vt.function,serialize:vt.function},true)}}if(r.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{r.allowAbsoluteUrls=true}dt.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},true);r.method=(r.method||this.defaults.method||"get").toLowerCase();var a=i&&me.merge(i.common,i[r.method]);i&&me.forEach(["delete","get","head","post","put","patch","query","common"],(function(e){delete i[e]}));r.headers=Pe.concat(a,i);var o=[];var u=true;this.interceptors.request.forEach((function e(t){if(typeof t.runWhen==="function"&&t.runWhen(r)===false){return}u=u&&t.synchronous;var n=r.transitional||Ye;var i=n&&n.legacyInterceptorReqResOrdering;if(i){o.unshift(t.fulfilled,t.rejected)}else{o.push(t.fulfilled,t.rejected)}}));var s=[];this.interceptors.response.forEach((function e(r){s.push(r.fulfilled,r.rejected)}));var f;var c=0;var l;if(!u){var d=[st.bind(this),undefined];d.unshift.apply(d,o);d.push.apply(d,s);l=d.length;f=Promise.resolve(r);while(c<l){f=f.then(d[c++],d[c++])}return f}l=o.length;var v=r;while(c<l){var h=o[c++];var p=o[c++];try{v=h(v)}catch(e){p.call(this,e);break}}try{f=st.call(this,v)}catch(e){return Promise.reject(e)}c=0;l=s.length;while(c<l){f=f.then(s[c++],s[c++])}return f};e.prototype.getUri=function(e){e=Nr(this.defaults,e);var r=Cr(e.baseURL,e.url,e.allowAbsoluteUrls);return $e(r,e.params,e.paramsSerializer)};return e}();me.forEach(["delete","get","head","options"],(function e(r){ht.prototype[r]=function(e,t){return this.request(Nr(t||{},{method:r,url:e,data:(t||{}).data}))}}));me.forEach(["post","put","patch","query"],(function e(r){function t(e){return function t(n,i,a){return this.request(Nr(a||{},{method:r,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ht.prototype[r]=t();if(r!=="query"){ht.prototype[r+"Form"]=t(true)}}));var pt=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var r;this.promise=new Promise((function e(t){r=t}));var t=this;this.promise.then((function(e){if(!t._listeners)return;var r=t._listeners.length;while(r-- >0){t._listeners[r](e)}t._listeners=null}));this.promise.then=function(e){var r;var n=new Promise((function(e){t.subscribe(e);r=e})).then(e);n.cancel=function e(){t.unsubscribe(r)};return n};e((function e(n,i,a){if(t.reason){return}t.reason=new yr(n,i,a);r(t.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var r=this._listeners.indexOf(e);if(r!==-1){this._listeners.splice(r,1)}};e.prototype.toAbortSignal=function(){var e=this;var r=new AbortController;var t=function(e){r.abort(e)};this.subscribe(t);r.signal.unsubscribe=function(){return e.unsubscribe(t)};return r.signal};e.source=function(){var r;var t=new e((function e(t){r=t}));return{token:t,cancel:r}};return e}();function mt(e){return function r(t){return e.apply(null,t)}}function bt(e){return me.isObject(e)&&e.isAxiosError===true}var wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wt).forEach((function(e){var r=e[0],t=e[1];wt[t]=r}));function yt(e){var t=new ht(e);var n=r(ht.prototype.request,t);me.extend(n,ht.prototype,t,{allOwnKeys:true});me.extend(n,t,null,{allOwnKeys:true});n.create=function r(t){return yt(Nr(e,t))};return n}var gt=yt(mr);gt.Axios=ht;gt.CanceledError=yr;gt.CancelToken=pt;gt.isCancel=wr;gt.VERSION=Kr;gt.toFormData=Ge;gt.AxiosError=De;gt.Cancel=gt.CanceledError;gt.all=function e(r){return Promise.all(r)};gt.spread=mt;gt.isAxiosError=bt;gt.mergeConfig=Nr;gt.AxiosHeaders=Pe;gt.formToJSON=function(e){return vr(me.isHTMLForm(e)?new FormData(e):e)};gt.getAdapter=ot.getAdapter;gt.HttpStatusCode=wt;gt.default=gt;axios_1=gt;return axios_1}var axiosExports=requireAxios();var axios=getDefaultExportFromCjs(axiosExports);var API_KEY=BETA_ORIGINS.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var getFeatureFlags=function(){return axios.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:API_KEY}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var verdocsContactPickerCss=function(){return'verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}'};var addrBookIcon='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var VerdocsContactPicker=function(){function e(e){registerInstance(this,e);this.searchContacts=createEvent(this,"searchContacts");this.exit=createEvent(this,"exit");this.next=createEvent(this,"next");this.endpoint=VerdocsEndpoint.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var r=formatFullName(this.templateRole);var t=r.split(" ");var n=this.templateRole.first_name||t.shift()||"";var i=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.name_locked=this.delegator?false:this.templateRole.name_locked||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}getActiveEntitlements(this.endpoint).then((function(r){e.activeEntitlements=r;console.log("[CONTACT PICKER] Loaded entitlements",r)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));getFeatureFlags().then((function(r){e.featureFlags=r;console.log("[CONTACT PICKER] Loaded feature flags",r)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var r;this.first_name=e.target.value;(r=this.searchContacts)===null||r===void 0?void 0:r.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var r;this.last_name=e.target.value;(r=this.searchContacts)===null||r===void 0?void 0:r.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var r;e.stopPropagation();this.showSuggestions=false;(r=this.exit)===null||r===void 0?void 0:r.emit()};e.prototype.handleSubmit=function(e){var r;e.stopPropagation();this.showSuggestions=false;(r=this.next)===null||r===void 0?void 0:r.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,name_locked:this.name_locked,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,r){e.stopPropagation();this.first_name=r.first_name;this.last_name=r.last_name;this.email=r.email;this.phone=r.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var r,t,n,i,a,o,u,s,f,c,l,d,v,p,m,b,w,y;var g=this.first_name&&this.last_name&&isValidEmail(this.email);var x=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var _=g&&x;var k=((n=(t=(r=this.featureFlags)===null||r===void 0?void 0:r.toggles)===null||t===void 0?void 0:t.find((function(e){return e.name==="sms"})))===null||n===void 0?void 0:n.enabled)===true;var O=[];if(((o=(a=(i=this.featureFlags)===null||i===void 0?void 0:i.toggles)===null||a===void 0?void 0:a.find((function(e){return e.name==="passcode-verification"})))===null||o===void 0?void 0:o.enabled)===true){O.push({label:"Passcode",value:"passcode"})}if(((f=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="email-verification"})))===null||f===void 0?void 0:f.enabled)===true){O.push({label:"Email",value:"email"})}if(k&&((d=(l=(c=this.featureFlags)===null||c===void 0?void 0:c.toggles)===null||l===void 0?void 0:l.find((function(e){return e.name==="sms-verification"})))===null||d===void 0?void 0:d.enabled)===true&&!!this.activeEntitlements.sms_auth){O.push({label:"SMS (One-Time Code)",value:"sms"})}if(((m=(p=(v=this.featureFlags)===null||v===void 0?void 0:v.toggles)===null||p===void 0?void 0:p.find((function(e){return e.name==="kba-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.kba_auth){O.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((y=(w=(b=this.featureFlags)===null||b===void 0?void 0:b.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="id-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.id_auth){O.push({label:"ID Check",value:"id"})}return h("form",{key:"374d6f0907e09a4c312bcd666eaabf578f8671b5",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},h("div",{key:"bbdb01e7229992ff75b3b124fde6a8606769d53c",class:"row"},h("label",{key:"546da7ec599b17cc2e514dcaf47fe41d7107ec11",htmlFor:this.firstNameFieldId},"Name:"),h("div",{key:"e5819a8cb2c261c302a4923561578c5928063e64",class:"names-row"},h("input",{key:"05a471f19b8018993d50f4ba9776864392c13c9d",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var r;e.showSuggestions=((r=e.contactSuggestions)===null||r===void 0?void 0:r.length)>0}),100)},onInput:function(r){return e.handleFirstNameChange(r)}}),h("input",{key:"4e56ab4161e6bd7894c636619282915243c8aeec",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var r;e.showSuggestions=((r=e.contactSuggestions)===null||r===void 0?void 0:r.length)>0}),100)},onInput:function(r){return e.handleLastNameChange(r)}})),this.showSuggestions&&h("verdocs-portal",{key:"0a856517832b4dc417627675a0327e5a5e9e4710",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},h("div",{key:"6c0c1747e5ed512ad463c26f220b34db395e8f2c",class:"dropdown"},this.contactSuggestions.filter((function(r){return!e.first_name||r.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(r){var t;return h("div",{key:(t=r.id)!==null&&t!==void 0?t:r.email,class:"suggestion",onClick:function(t){return e.handleSelectSuggestion(t,r)}},r.picture?h("img",{alt:"Avatar",class:"avatar",src:r.picture}):h("div",{class:"avatar",innerHTML:addrBookIcon}),h("div",{class:"details"},h("div",{class:"name"},formatFullName(r)),r.email&&h("div",{class:"destination"},r.email),r.phone&&h("div",{class:"destination"},r.phone)))}))))),h("div",{key:"85552b20424fb4884fa88d22c78375fe5c6513e0",class:"row"},h("label",{key:"2b438ee30f3c0115d0445e3f5bfe4ae8b7635073",htmlFor:this.emailFieldId},"Email:"),h("input",{key:"a349fb9e534ed7786268d9aac9184fc38a8a102e",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(r){return e.email=r.target.value}})),k&&h("div",{key:"f015a535d0a37d94eb73b145342d00dde7b63a50",class:"row"},h("label",{key:"eff877e183e38de65ca11e535b81e11b5ee1bd92",htmlFor:this.phoneFieldId},"Phone:"),h("input",{key:"41db6e4607189c0b0da0ef658b1fbafcfeab92ba",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(r){e.phone=convertToE164(r.target.value)}})),h(Fragment,{key:"c037e234e206b1cd45bf91649f211ebe42f885fe"},O.length>0&&h("div",{key:"23fa9db672498199d7c053b258669e0676852322",class:"row pin-code"},h("label",{key:"d5208d3cd083716589aa6c18dbd85ba88ca208b3"},"Verification Methods:"),h("div",{key:"f239551b28d2ca51b8f9ab5ec64bfdfdce4bf823"},O.map((function(r,t){return h("div",{class:"option"},h("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(t),value:r.value,checked:e.auth_methods.includes(r.value),onInput:function(t){if(t.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[r.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==r.value}))}}}),h("label",{htmlFor:"verdocs-multi-select-option-".concat(t)},r.label))})))),this.auth_methods.includes("passcode")&&h("div",{key:"d57e7078dfefb1c816a15c52a8aa44eae62a5557",class:"row pin-code"},h("label",{key:"df97978ae0e4c176c7d6ca38850537d3d6db5ce3",htmlFor:this.phoneFieldId},"Passcode:"),h("input",{key:"7791e5a2d856bdd9dbbfcf8c339531e3e5c5e52b",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(r){return e.passcode=r.target.value}}))),h("div",{key:"7de2d50963399db273bd1d38941ea967a2d92827",class:"row pin-code"},h("label",{key:"d0202a6e0969b405d303cdc291dee95048460b43",style:{marginTop:"6px"}},"Options:"),h("div",{key:"52f68972a5fee697972fa9baa284ca6a37830ab9"},h("div",{key:"8e15a3caa1e4ce0cbb943fb7bfaaf274d4410de3",class:"option"},h("verdocs-checkbox",{key:"7d21cafec340458f1c6a06b577fad30bbd5680eb",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:function(r){e.delegator=r.target.checked;if(e.delegator)e.name_locked=false}}),h("label",{key:"2b96fb477ce41038cf9d115e9fabf102d670d801",htmlFor:"verdocs-delegator"},"May delegate signing")),h("div",{key:"7f616562ee03e6026bf09b355ae20720b45655b0",class:"option"},h("verdocs-checkbox",{key:"47bfa40e403ddf6da8cba33fda8ebff05625d353",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:function(r){e.name_locked=r.target.checked;if(e.name_locked)e.delegator=false}}),h("label",{key:"382d0b92f8999dc1a0adaa91d00c6c0f95a17552",htmlFor:"verdocs-name-locked"},"Name locked")))),h("div",{key:"6797886d95d1e08dc0c018e89cf6040aa60b02ff",class:"row message"},h("label",{key:"cb6f04c40e1b6601d0292e248b26cb4f2519e7d9",htmlFor:"verdocs-contact-picker-message"},"Message:"),h("textarea",{key:"018a9162f52e73650283a7f2271a99352008085c",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(r){return e.message=r.target.value}},this.message)),h("div",{key:"d2f04563ad450f4c6c0c19735a064d01182cf458",class:"buttons"},h("div",{key:"43f240077f3c5b3e252c60a277668c94c9163b24",class:"flex-fill"}),h("verdocs-button",{key:"f758cb6d10b3deb58d13aaf54c212e6455933104",variant:"outline",label:"Cancel",size:"small",onClick:function(r){return e.handleCancel(r)}}),h("verdocs-button",{key:"3aa451a2d6d23ada4a7a5ddb5843b22954b69161",label:"OK",size:"small",disabled:!_,onClick:!_?function(){}:function(r){return e.handleSubmit(r)}})))};return e}();VerdocsContactPicker.style=verdocsContactPickerCss();export{VerdocsContactPicker as verdocs_contact_picker};
|
|
3
3
|
//# sourceMappingURL=verdocs-contact-picker.entry.js.map
|