@verdocs/web-sdk 6.9.12 → 6.10.0

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.
Files changed (113) hide show
  1. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +1 -1
  2. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js.map +1 -1
  3. package/dist/cjs/verdocs-auth.cjs.entry.js +3 -0
  4. package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -1
  5. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +422 -115
  6. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  7. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +6 -5
  8. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js.map +1 -1
  9. package/dist/cjs/verdocs-preview_6.cjs.entry.js +3 -0
  10. package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -1
  11. package/dist/cjs/verdocs-sign.cjs.entry.js +79 -20
  12. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  13. package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js +6 -5
  14. package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js.map +1 -1
  15. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -0
  16. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  17. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +3 -0
  18. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
  19. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +79 -20
  20. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  21. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +1 -1
  22. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
  23. package/dist/components/{p-Ce29XBfJ.js → p-CBKrl6B7.js} +2 -2
  24. package/dist/components/{p-Ce29XBfJ.js.map → p-CBKrl6B7.js.map} +1 -1
  25. package/dist/components/p-CPYFXW2q.js +3 -0
  26. package/dist/components/p-CPYFXW2q.js.map +1 -0
  27. package/dist/components/{p-Bpe5Awxh.js → p-CnoHN1S8.js} +2 -2
  28. package/dist/components/p-CnoHN1S8.js.map +1 -0
  29. package/dist/components/{p-BVhOFpVZ.js → p-DfaM_cug.js} +2 -2
  30. package/dist/components/p-DfaM_cug.js.map +1 -0
  31. package/dist/components/verdocs-auth.js +1 -1
  32. package/dist/components/verdocs-auth.js.map +1 -1
  33. package/dist/components/verdocs-build.js +1 -1
  34. package/dist/components/verdocs-contact-picker.js +1 -1
  35. package/dist/components/verdocs-download-dialog.js +1 -1
  36. package/dist/components/verdocs-send.js +1 -1
  37. package/dist/components/verdocs-sign.js +1 -1
  38. package/dist/components/verdocs-sign.js.map +1 -1
  39. package/dist/components/verdocs-view.js +1 -1
  40. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  41. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
  42. package/dist/esm/verdocs-auth.entry.js +3 -0
  43. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  44. package/dist/esm/verdocs-contact-picker.entry.js +422 -115
  45. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  46. package/dist/esm/verdocs-download-dialog_4.entry.js +6 -5
  47. package/dist/esm/verdocs-download-dialog_4.entry.js.map +1 -1
  48. package/dist/esm/verdocs-preview_6.entry.js +3 -0
  49. package/dist/esm/verdocs-preview_6.entry.js.map +1 -1
  50. package/dist/esm/verdocs-sign.entry.js +80 -21
  51. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  52. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  53. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
  54. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  55. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  56. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  57. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  58. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  59. package/dist/esm-es5/verdocs-download-dialog_4.entry.js.map +1 -1
  60. package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
  61. package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -1
  62. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  63. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  64. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +5 -0
  65. package/dist/verdocs-web-sdk/p-11c3e5bb.entry.js +2 -0
  66. package/dist/verdocs-web-sdk/p-11c3e5bb.entry.js.map +1 -0
  67. package/dist/verdocs-web-sdk/p-16d655d4.system.entry.js +2 -0
  68. package/dist/verdocs-web-sdk/p-16d655d4.system.entry.js.map +1 -0
  69. package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js +4 -0
  70. package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js.map +1 -0
  71. package/dist/verdocs-web-sdk/p-2d72560a.entry.js +2 -0
  72. package/dist/verdocs-web-sdk/p-2d72560a.entry.js.map +1 -0
  73. package/dist/verdocs-web-sdk/p-33cfc977.system.entry.js +2 -0
  74. package/dist/verdocs-web-sdk/p-33cfc977.system.entry.js.map +1 -0
  75. package/dist/verdocs-web-sdk/p-43ee0267.entry.js +2 -0
  76. package/dist/verdocs-web-sdk/p-43ee0267.entry.js.map +1 -0
  77. package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js +3 -0
  78. package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js.map +1 -0
  79. package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
  80. package/dist/verdocs-web-sdk/{p-9756028f.entry.js → p-d0e8419b.entry.js} +2 -2
  81. package/dist/verdocs-web-sdk/p-d0e8419b.entry.js.map +1 -0
  82. package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js → p-d60cfa3e.system.entry.js} +2 -2
  83. package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js.map → p-d60cfa3e.system.entry.js.map} +1 -1
  84. package/dist/verdocs-web-sdk/p-e608d2bc.system.entry.js +2 -0
  85. package/dist/verdocs-web-sdk/p-e608d2bc.system.entry.js.map +1 -0
  86. package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js → p-e95723ac.entry.js} +2 -2
  87. package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js.map → p-e95723ac.entry.js.map} +1 -1
  88. package/dist/verdocs-web-sdk/{p-f85f8560.system.entry.js → p-edab1fed.system.entry.js} +2 -2
  89. package/dist/verdocs-web-sdk/p-edab1fed.system.entry.js.map +1 -0
  90. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  91. package/package.json +2 -2
  92. package/dist/components/p-BVhOFpVZ.js.map +0 -1
  93. package/dist/components/p-Bpe5Awxh.js.map +0 -1
  94. package/dist/components/p-DeQsR41s.js +0 -3
  95. package/dist/components/p-DeQsR41s.js.map +0 -1
  96. package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js +0 -2
  97. package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js.map +0 -1
  98. package/dist/verdocs-web-sdk/p-12676649.entry.js +0 -2
  99. package/dist/verdocs-web-sdk/p-12676649.entry.js.map +0 -1
  100. package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js +0 -2
  101. package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js.map +0 -1
  102. package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js +0 -4
  103. package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +0 -1
  104. package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js +0 -2
  105. package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js.map +0 -1
  106. package/dist/verdocs-web-sdk/p-9756028f.entry.js.map +0 -1
  107. package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js +0 -2
  108. package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js.map +0 -1
  109. package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +0 -3
  110. package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +0 -1
  111. package/dist/verdocs-web-sdk/p-c89d74b2.entry.js +0 -2
  112. package/dist/verdocs-web-sdk/p-c89d74b2.entry.js.map +0 -1
  113. package/dist/verdocs-web-sdk/p-f85f8560.system.entry.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ import{r as e,c as t,h as n,F as o}from"./p-CjTHbolG.js";import{VerdocsEndpoint as r,formatFullName as i,getActiveEntitlements as s,isValidEmail as c}from"@verdocs/js-sdk";import{c as a,g as l}from"./p-BFTU3MAI.js";import{B as u}from"./p-C_Xku1v2.js";import{f}from"./p-T412l3FU.js";import"./p-BglCURB-.js";import"./p-CIxfEdV7.js";
2
+ /*! Axios v1.18.1 Copyright (c) 2026 Matt Zabriskie and contributors */var d;var h;function p(){if(h)return d;h=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const{iterator:o,toStringTag:r}=Symbol;const i=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const s=(e,t)=>{let o=e;const r=[];while(o!=null&&o!==Object.prototype){if(r.indexOf(o)!==-1){return false}r.push(o);if(i(o,t)){return true}o=n(o)}return false};const c=(e,t)=>e!=null&&s(e,t)?e[t]:undefined;const l=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const u=e=>{e=e.toLowerCase();return t=>l(t)===e};const f=e=>t=>typeof t===e;const{isArray:p}=Array;const b=f("undefined");function m(e){return e!==null&&!b(e)&&e.constructor!==null&&!b(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w=u("ArrayBuffer");function y(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&w(e.buffer)}return t}const g=f("string");const v=f("function");const x=f("number");const k=e=>e!==null&&typeof e==="object";const O=e=>e===true||e===false;const R=e=>{if(!k(e)){return false}const t=n(e);return(t===null||t===Object.prototype||n(t)===null)&&!s(e,r)&&!s(e,o)};const S=e=>{if(!k(e)||m(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const E=u("Date");const _=u("File");const j=e=>!!(e&&typeof e.uri!=="undefined");const T=e=>e&&typeof e.getParts!=="undefined";const C=u("Blob");const A=u("FileList");const N=e=>k(e)&&v(e.pipe);function F(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof a!=="undefined")return a;return{}}const U=F();const P=typeof U.FormData!=="undefined"?U.FormData:undefined;const I=e=>{if(!e)return false;if(P&&e instanceof P)return true;const t=n(e);if(!t||t===Object.prototype)return false;if(!v(e.append))return false;const o=l(e);return o==="formdata"||o==="object"&&v(e.toString)&&e.toString()==="[object FormData]"};const B=u("URLSearchParams");const[L,D,z,M]=["ReadableStream","Request","Response","Headers"].map(u);const q=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let r;if(typeof e!=="object"){e=[e]}if(p(e)){for(o=0,r=e.length;o<r;o++){t.call(null,e[o],o,e)}}else{if(m(e)){return}const r=n?Object.getOwnPropertyNames(e):Object.keys(e);const i=r.length;let s;for(o=0;o<i;o++){s=r[o];t.call(null,e[s],s,e)}}}function H(e,t){if(m(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let r;while(o-- >0){r=n[o];if(t===r.toLowerCase()){return r}}return null}const J=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:a})();const K=e=>!b(e)&&e!==J;function W(...e){const{caseless:t,skipUndefined:n}=K(this)&&this||{};const o={};const r=(e,r)=>{if(r==="__proto__"||r==="constructor"||r==="prototype"){return}const s=t&&typeof r==="string"&&H(o,r)||r;const c=i(o,s)?o[s]:undefined;if(R(c)&&R(e)){o[s]=W(c,e)}else if(R(e)){o[s]=W({},e)}else if(p(e)){o[s]=e.slice()}else if(!n||!b(e)){o[s]=e}};for(let t=0,n=e.length;t<n;t++){const n=e[t];if(!n||m(n)){continue}$(n,r);if(typeof n!=="object"||p(n)){continue}const o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){const t=o[e];if(ie.call(n,t)){r(n[t],t)}}}return o}const X=(t,n,o,{allOwnKeys:r}={})=>{$(n,((n,r)=>{if(o&&v(n)){Object.defineProperty(t,r,{__proto__:null,value:e(n,o),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(t,r,{__proto__:null,value:n,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:r});return t};const V=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const G=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{__proto__:null,value:t.prototype});n&&Object.assign(e.prototype,n)};const Z=(e,t,o,r)=>{let i;let s;let c;const a={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);s=i.length;while(s-- >0){c=i[s];if((!r||r(c,e,t))&&!a[c]){t[c]=e[c];a[c]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const Q=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n};const Y=e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!x(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const ee=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const te=(e,t)=>{const n=e&&e[o];const r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const ne=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const oe=u("HTMLFormElement");const re=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const{propertyIsEnumerable:ie}=Object.prototype;const se=u("RegExp");const ce=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};$(n,((n,r)=>{let i;if((i=t(n,r,e))!==false){o[r]=i||n}}));Object.defineProperties(e,o)};const ae=e=>{ce(e,((t,n)=>{if(v(e)&&["arguments","caller","callee"].includes(n)){return false}const o=e[n];if(!v(o))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const le=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};p(e)?o(e):o(String(e).split(t));return n};const ue=()=>{};const fe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function de(e){return!!(e&&v(e.append)&&e[r]==="FormData"&&e[o])}const he=e=>{const t=new WeakSet;const n=e=>{if(k(e)){if(t.has(e)){return}if(m(e)){return e}if(!("toJSON"in e)){t.add(e);const o=p(e)?[]:{};$(e,((e,t)=>{const r=n(e);!b(r)&&(o[t]=r)}));t.delete(e);return o}}return e};return n(e)};const pe=u("AsyncFunction");const be=e=>e&&(k(e)||v(e))&&v(e.then)&&v(e.catch);const me=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{J.addEventListener("message",(({source:n,data:o})=>{if(n===J&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);J.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",v(J.postMessage));const we=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(J):typeof process!=="undefined"&&process.nextTick||me;const ye=e=>e!=null&&v(e[o]);const ge=e=>e!=null&&s(e,o)&&ye(e);var ve={isArray:p,isArrayBuffer:w,isBuffer:m,isFormData:I,isArrayBufferView:y,isString:g,isNumber:x,isBoolean:O,isObject:k,isPlainObject:R,isEmptyObject:S,isReadableStream:L,isRequest:D,isResponse:z,isHeaders:M,isUndefined:b,isDate:E,isFile:_,isReactNativeBlob:j,isReactNative:T,isBlob:C,isRegExp:se,isFunction:v,isStream:N,isURLSearchParams:B,isTypedArray:ee,isFileList:A,forEach:$,merge:W,extend:X,trim:q,stripBOM:V,inherits:G,toFlatObject:Z,kindOf:l,kindOfTest:u,endsWith:Q,toArray:Y,forEachEntry:te,matchAll:ne,isHTMLForm:oe,hasOwnProperty:i,hasOwnProp:i,hasOwnInPrototypeChain:s,getSafeProp:c,reduceDescriptors:ce,freezeMethods:ae,toObjectSet:le,toCamelCase:re,noop:ue,toFiniteNumber:fe,findKey:H,global:J,isContextDefined:K,isSpecCompliantForm:de,toJSONObject:he,isAsyncFn:pe,isThenable:be,setImmediate:me,asap:we,isIterable:ye,isSafeIterable:ge};const xe=ve.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 ke=e=>{const t={};let n;let o;let r;e&&e.split("\n").forEach((function e(i){r=i.indexOf(":");n=i.substring(0,r).trim().toLowerCase();o=i.substring(r+1).trim();if(!n||t[n]&&xe[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};function Oe(e){let t=0;let n=e.length;while(t<n){const n=e.charCodeAt(t);if(n!==9&&n!==32){break}t+=1}while(n>t){const t=e.charCodeAt(n-1);if(t!==9&&t!==32){break}n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Re=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g");const Se=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ee(e,t){if(ve.isArray(e)){return e.map((e=>Ee(e,t)))}return Oe(String(e).replace(t,""))}const _e=e=>Ee(e,Re);const je=e=>Ee(e,Se);function Te(e){const t=Object.create(null);ve.forEach(e.toJSON(),((e,n)=>{t[n]=je(e)}));return t}const Ce=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Ne(e){if(e===false||e==null){return e}return ve.isArray(e)?e.map(Ne):_e(String(e))}function Fe(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(e)){t[o[1]]=o[2]}return t}const Ue=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pe(e,t,n,o,r){if(ve.isFunction(o)){return o.call(this,t,n)}if(r){t=n}if(!ve.isString(t))return;if(ve.isString(o)){return t.indexOf(o)!==-1}if(ve.isRegExp(o)){return o.test(t)}}function Ie(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Be(e,t){const n=ve.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{__proto__:null,value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:true})}))}class Le{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ae(t);if(!r){return}const i=ve.findKey(o,r);if(!i||o[i]===undefined||n===true||n===undefined&&o[i]!==false){o[i||t]=Ne(e)}}const i=(e,t)=>ve.forEach(e,((e,n)=>r(e,n,t)));if(ve.isPlainObject(e)||e instanceof this.constructor){i(e,t)}else if(ve.isString(e)&&(e=e.trim())&&!Ue(e)){i(ke(e),t)}else if(ve.isObject(e)&&ve.isSafeIterable(e)){let n=Object.create(null),o,r;for(const t of e){if(!ve.isArray(t)){throw new TypeError("Object iterator must return a key-value pair")}r=t[0];if(ve.hasOwnProp(n,r)){o=n[r];n[r]=ve.isArray(o)?[...o,t[1]]:[o,t[1]]}else{n[r]=t[1]}}i(n,t)}else{e!=null&&r(t,e,n)}return this}get(e,t){e=Ae(e);if(e){const n=ve.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Fe(e)}if(ve.isFunction(t)){return t.call(this,e,n)}if(ve.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Ae(e);if(e){const n=ve.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||Pe(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function r(e){e=Ae(e);if(e){const r=ve.findKey(n,e);if(r&&(!t||Pe(n,n[r],r,t))){delete n[r];o=true}}}if(ve.isArray(e)){e.forEach(r)}else{r(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const r=t[n];if(!e||Pe(this,this[r],r,e,true)){delete this[r];o=true}}return o}normalize(e){const t=this;const n={};ve.forEach(this,((o,r)=>{const i=ve.findKey(n,r);if(i){t[i]=Ne(o);delete t[r];return}const s=e?Ie(r):String(r).trim();if(s!==r){delete t[r]}t[s]=Ne(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);ve.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&ve.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[Ce]=this[Ce]={accessors:{}};const n=t.accessors;const o=this.prototype;function r(e){const t=Ae(e);if(!n[t]){Be(o,e);n[t]=true}}ve.isArray(e)?e.forEach(r):r(e);return this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(Le.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));ve.freezeMethods(Le);const De="[REDACTED ****]";function ze(e){if(ve.hasOwnProp(e,"toJSON")){return true}let t=Object.getPrototypeOf(e);while(t&&t!==Object.prototype){if(ve.hasOwnProp(t,"toJSON")){return true}t=Object.getPrototypeOf(t)}return false}function Me(e,t){const n=new Set(t.map((e=>String(e).toLowerCase())));const o=[];const r=e=>{if(e===null||typeof e!=="object")return e;if(ve.isBuffer(e))return e;if(o.indexOf(e)!==-1)return undefined;if(e instanceof Le){e=e.toJSON()}o.push(e);let t;if(ve.isArray(e)){t=[];e.forEach(((e,n)=>{const o=r(e);if(!ve.isUndefined(o)){t[n]=o}}))}else{if(!ve.isPlainObject(e)&&ze(e)){o.pop();return e}t=Object.create(null);for(const[o,i]of Object.entries(e)){const e=n.has(o.toLowerCase())?De:r(i);if(!ve.isUndefined(e)){t[o]=e}}}o.pop();return t};return r(e)}class qe extends Error{static from(e,t,n,o,r,i){const s=new qe(e.message,t||e.code,n,o,r);Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:true,enumerable:false,configurable:true});s.name=e.name;if(e.status!=null&&s.status==null){s.status=e.status}i&&Object.assign(s,i);return s}constructor(e,t,n,o,r){super(e);Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:true,writable:true,configurable:true});this.name="AxiosError";this.isAxiosError=true;t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(r){this.response=r;this.status=r.status}}toJSON(){const e=this.config;const t=e&&ve.hasOwnProp(e,"redact")?e.redact:undefined;const n=ve.isArray(t)&&t.length>0?Me(e,t):ve.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:n,code:this.code,status:this.status}}}qe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";qe.ERR_BAD_OPTION="ERR_BAD_OPTION";qe.ECONNABORTED="ECONNABORTED";qe.ETIMEDOUT="ETIMEDOUT";qe.ECONNREFUSED="ECONNREFUSED";qe.ERR_NETWORK="ERR_NETWORK";qe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";qe.ERR_DEPRECATED="ERR_DEPRECATED";qe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";qe.ERR_BAD_REQUEST="ERR_BAD_REQUEST";qe.ERR_CANCELED="ERR_CANCELED";qe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";qe.ERR_INVALID_URL="ERR_INVALID_URL";qe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var $e=null;const He=100;function Je(e){return ve.isPlainObject(e)||ve.isArray(e)}function Ke(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function We(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=Ke(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function Xe(e){return ve.isArray(e)&&!e.some(Je)}const Ve=ve.toFlatObject(ve,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Ge(e,t,n){if(!ve.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=ve.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!ve.isUndefined(n[t])}));const o=n.metaTokens;const r=n.visitor||p;const i=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=n.maxDepth===undefined?He:n.maxDepth;const l=c&&ve.isSpecCompliantForm(t);const u=[];if(!ve.isFunction(r)){throw new TypeError("visitor must be a function")}function f(e){if(e===null)return"";if(ve.isDate(e)){return e.toISOString()}if(ve.isBoolean(e)){return e.toString()}if(!l&&ve.isBlob(e)){throw new qe("Blob is not supported. Use a Buffer instead.")}if(ve.isArrayBuffer(e)||ve.isTypedArray(e)){if(l&&typeof c==="function"){return new c([e])}if(typeof Buffer!=="undefined"){return Buffer.from(e)}throw new qe("Blob is not supported. Use a Buffer instead.",qe.ERR_NOT_SUPPORT)}return e}function d(e){if(e>a){throw new qe("Object is too deeply nested ("+e+" levels). Max depth: "+a,qe.ERR_FORM_DATA_DEPTH_EXCEEDED)}}function h(e,t){if(a===Infinity){return JSON.stringify(e)}const n=[];return JSON.stringify(e,(function e(o,r){if(!ve.isObject(r)){return r}while(n.length&&n[n.length-1]!==this){n.pop()}n.push(r);d(t+n.length-1);return r}))}function p(e,n,r){let c=e;if(ve.isReactNative(t)&&ve.isReactNativeBlob(e)){t.append(We(r,n,i),f(e));return false}if(e&&!r&&typeof e==="object"){if(ve.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=h(e,1)}else if(ve.isArray(e)&&Xe(e)||(ve.isFileList(e)||ve.endsWith(n,"[]"))&&(c=ve.toArray(e))){n=Ke(n);c.forEach((function e(o,r){!(ve.isUndefined(o)||o===null)&&t.append(s===true?We([n],r,i):s===null?n:n+"[]",f(o))}));return false}}if(Je(e)){return true}t.append(We(r,n,i),f(e));return false}const b=Object.assign(Ve,{defaultVisitor:p,convertValue:f,isVisitable:Je});function m(e,n,o=0){if(ve.isUndefined(e))return;d(o);if(u.indexOf(e)!==-1){throw new Error("Circular reference detected in "+n.join("."))}u.push(e);ve.forEach(e,(function e(i,s){const c=!(ve.isUndefined(i)||i===null)&&r.call(t,i,ve.isString(s)?s.trim():s,n,b);if(c===true){m(i,n?n.concat(s):[s],o+1)}}));u.pop()}if(!ve.isObject(e)){throw new TypeError("data must be an object")}m(e);return t}function Ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function e(n){return t[n]}))}function Qe(e,t){this._pairs=[];e&&Ge(e,this,t)}const Ye=Qe.prototype;Ye.append=function e(t,n){this._pairs.push([t,n])};Ye.toString=function e(t){const n=t?e=>t.call(this,e,Ze):Ze;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,n){if(!t){return e}e=e||"";const o=ve.isFunction(n)?{serialize:n}:n;const r=ve.getSafeProp(o,"encode")||et;const i=ve.getSafeProp(o,"serialize");let s;if(i){s=i(t,o)}else{s=ve.isURLSearchParams(t)?t.toString():new Qe(t,o).toString(r)}if(s){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class nt{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){ve.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var ot={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true,advertiseZstdAcceptEncoding:false,validateStatusUndefinedResolves:true};var rt=typeof URLSearchParams!=="undefined"?URLSearchParams:Qe;var it=typeof FormData!=="undefined"?FormData:null;var st=typeof Blob!=="undefined"?Blob:null;var ct={isBrowser:true,classes:{URLSearchParams:rt,FormData:it,Blob:st},protocols:["http","https","file","blob","url","data"]};const at=typeof window!=="undefined"&&typeof document!=="undefined";const lt=typeof navigator==="object"&&navigator||undefined;const ut=at&&(!lt||["ReactNative","NativeScript","NS"].indexOf(lt.product)<0);const ft=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const dt=at&&window.location.href||"http://localhost";var ht=Object.freeze({__proto__:null,hasBrowserEnv:at,hasStandardBrowserEnv:ut,hasStandardBrowserWebWorkerEnv:ft,navigator:lt,origin:dt});var pt={...ht,...ct};function bt(e,t){return Ge(e,new pt.classes.URLSearchParams,{visitor:function(e,t,n,o){if(pt.isNode&&ve.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}const mt=He;function wt(e){if(e>mt){throw new qe("FormData field is too deeply nested ("+e+" levels). Max depth: "+mt,qe.ERR_FORM_DATA_DEPTH_EXCEEDED)}}function yt(e){const t=[];const n=/\w+|\[(\w*)]/g;let o;while((o=n.exec(e))!==null){wt(t.length);t.push(o[0]==="[]"?"":o[1]||o[0])}return t}function gt(e){const t={};const n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++){i=n[o];t[i]=e[i]}return t}function vt(e){function t(e,n,o,r){wt(r);let i=e[r++];if(i==="__proto__")return true;const s=Number.isFinite(+i);const c=r>=e.length;i=!i&&ve.isArray(o)?o.length:i;if(c){if(ve.hasOwnProp(o,i)){o[i]=ve.isArray(o[i])?o[i].concat(n):[o[i],n]}else{o[i]=n}return!s}if(!ve.hasOwnProp(o,i)||!ve.isObject(o[i])){o[i]=[]}const a=t(e,n,o[i],r);if(a&&ve.isArray(o[i])){o[i]=gt(o[i])}return!s}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};ve.forEachEntry(e,((e,o)=>{t(yt(e),o,n,0)}));return n}return null}const xt=(e,t)=>e!=null&&ve.hasOwnProp(e,t)?e[t]:undefined;function kt(e,t,n){if(ve.isString(e)){try{(0,JSON.parse)(e);return ve.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Ot={transitional:ot,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const r=o.indexOf("application/json")>-1;const i=ve.isObject(t);if(i&&ve.isHTMLForm(t)){t=new FormData(t)}const s=ve.isFormData(t);if(s){return r?JSON.stringify(vt(t)):t}if(ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t)||ve.isReadableStream(t)){return t}if(ve.isArrayBufferView(t)){return t.buffer}if(ve.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(i){const e=xt(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1){return bt(t,e).toString()}if((c=ve.isFileList(t))||o.indexOf("multipart/form-data")>-1){const n=xt(this,"env");const o=n&&n.FormData;return Ge(c?{"files[]":t}:t,o&&new o,e)}}if(i||r){n.setContentType("application/json",false);return kt(t)}return t}],transformResponse:[function e(t){const n=xt(this,"transitional")||Ot.transitional;const o=n&&n.forcedJSONParsing;const r=xt(this,"responseType");const i=r==="json";if(ve.isResponse(t)||ve.isReadableStream(t)){return t}if(t&&ve.isString(t)&&(o&&!r||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t,xt(this,"parseReviver"))}catch(e){if(o){if(e.name==="SyntaxError"){throw qe.from(e,qe.ERR_BAD_RESPONSE,this,null,xt(this,"response"))}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ve.forEach(["delete","get","head","post","put","patch","query"],(e=>{Ot.headers[e]={}}));function Rt(e,t){const n=this||Ot;const o=t||n;const r=Le.from(o.headers);let i=o.data;ve.forEach(e,(function e(o){i=o.call(n,i,r.normalize(),t?t.status:undefined)}));r.normalize();return i}function St(e){return!!(e&&e.__CANCEL__)}class Et extends qe{constructor(e,t,n){super(e==null?"canceled":e,qe.ERR_CANCELED,t,n);this.name="CanceledError";this.__CANCEL__=true}}function _t(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new qe("Request failed with status code "+n.status,n.status>=400&&n.status<500?qe.ERR_BAD_REQUEST:qe.ERR_BAD_RESPONSE,n.config,n.request,n))}}function jt(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Tt(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let r=0;let i=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const u=o[i];if(!s){s=l}n[r]=a;o[r]=l;let f=i;let d=0;while(f!==r){d+=n[f++];f=f%e}r=(r+1)%e;if(r===i){i=(i+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function Ct(e,t){let n=0;let o=1e3/t;let r;let i;const s=(t,o=Date.now())=>{n=o;r=null;if(i){clearTimeout(i);i=null}e(...t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{r=e;if(!i){i=setTimeout((()=>{i=null;s(r)}),o-c)}}};const a=()=>r&&s(r);return[c,a]}const At=(e,t,n=3)=>{let o=0;const r=Tt(50,250);return Ct((n=>{if(!n||typeof n.loaded!=="number"){return}const i=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=s!=null?Math.min(i,s):i;const a=Math.max(0,c-o);const l=r(a);o=Math.max(o,c);const u={loaded:c,total:s,progress:s?c/s:undefined,bytes:a,rate:l?l:undefined,estimated:l&&s?(s-c)/l:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const Nt=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const Ft=e=>(...t)=>ve.asap((()=>e(...t)));var Ut=pt.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,pt.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(pt.origin),pt.navigator&&/(msie|trident)/i.test(pt.navigator.userAgent)):()=>true;var Pt=pt.hasStandardBrowserEnv?{write(e,t,n,o,r,i,s){if(typeof document==="undefined")return;const c=[`${e}=${encodeURIComponent(t)}`];if(ve.isNumber(n)){c.push(`expires=${new Date(n).toUTCString()}`)}if(ve.isString(o)){c.push(`path=${o}`)}if(ve.isString(r)){c.push(`domain=${r}`)}if(i===true){c.push("secure")}if(ve.isString(s)){c.push(`SameSite=${s}`)}document.cookie=c.join("; ")},read(e){if(typeof document==="undefined")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const o=t[n].replace(/^\s+/,"");const r=o.indexOf("=");if(r!==-1&&o.slice(0,r)===e){try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function It(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Lt=/^https?:(?!\/\/)/i;const Dt=/[\t\n\r]/g;function zt(e){let t=0;while(t<e.length&&e.charCodeAt(t)<=32){t++}return e.slice(t)}function Mt(e){return zt(e).replace(Dt,"")}function qt(e,t){if(typeof e==="string"&&Lt.test(Mt(e))){throw new qe('Invalid URL: missing "//" after protocol',qe.ERR_INVALID_URL,t)}}function $t(e,t,n,o){qt(t,o);let r=!It(t);if(e&&(r||n===false)){qt(e,o);return Bt(e,t)}return t}const Ht=e=>e instanceof Le?{...e}:e;function Jt(e,t){e=e||{};t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:false,writable:true,configurable:true});function o(e,t,n,o){if(ve.isPlainObject(e)&&ve.isPlainObject(t)){return ve.merge.call({caseless:o},e,t)}else if(ve.isPlainObject(t)){return ve.merge({},t)}else if(ve.isArray(t)){return t.slice()}return t}function r(e,t,n,r){if(!ve.isUndefined(t)){return o(e,t,n,r)}else if(!ve.isUndefined(e)){return o(undefined,e,n,r)}}function i(e,t){if(!ve.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!ve.isUndefined(t)){return o(undefined,t)}else if(!ve.isUndefined(e)){return o(undefined,e)}}function c(n){const o=ve.hasOwnProp(t,"transitional")?t.transitional:undefined;if(!ve.isUndefined(o)){if(ve.isPlainObject(o)){if(ve.hasOwnProp(o,n)){return o[n]}}else{return undefined}}const r=ve.hasOwnProp(e,"transitional")?e.transitional:undefined;if(ve.isPlainObject(r)&&ve.hasOwnProp(r,n)){return r[n]}return undefined}function a(n,r,i){if(ve.hasOwnProp(t,i)){return o(n,r)}else if(ve.hasOwnProp(e,i)){return o(undefined,n)}}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>r(Ht(e),Ht(t),n,true)};ve.forEach(Object.keys({...e,...t}),(function o(i){if(i==="__proto__"||i==="constructor"||i==="prototype")return;const s=ve.hasOwnProp(l,i)?l[i]:r;const c=ve.hasOwnProp(e,i)?e[i]:undefined;const u=ve.hasOwnProp(t,i)?t[i]:undefined;const f=s(c,u,i);ve.isUndefined(f)&&s!==a||(n[i]=f)}));if(ve.hasOwnProp(t,"validateStatus")&&ve.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===false){if(ve.hasOwnProp(e,"validateStatus")){n.validateStatus=o(undefined,e.validateStatus)}else{delete n.validateStatus}}return n}const Kt=["content-type","content-length"];function Wt(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach((([t,n])=>{if(Kt.includes(t.toLowerCase())){e.set(t,n)}}))}const Xt=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))));function Vt(e){const t=Jt({},e);const n=e=>ve.hasOwnProp(t,e)?t[e]:undefined;const o=n("data");let r=n("withXSRFToken");const i=n("xsrfHeaderName");const s=n("xsrfCookieName");let c=n("headers");const a=n("auth");const l=n("baseURL");const u=n("allowAbsoluteUrls");const f=n("url");t.headers=c=Le.from(c);t.url=tt($t(l,f,u,t),n("params"),n("paramsSerializer"));if(a){const t=ve.getSafeProp(a,"username")||"";const n=ve.getSafeProp(a,"password")||"";try{c.set("Authorization","Basic "+btoa(t+":"+(n?Xt(n):"")))}catch(t){throw qe.from(t,qe.ERR_BAD_OPTION_VALUE,e)}}if(ve.isFormData(o)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv||ve.isReactNative(o)){c.setContentType(undefined)}else if(ve.isFunction(o.getHeaders)){Wt(c,o.getHeaders(),n("formDataHeaderPolicy"))}}if(pt.hasStandardBrowserEnv){if(ve.isFunction(r)){r=r(t)}const e=r===true||r==null&&Ut(t.url);if(e){const e=i&&s&&Pt.read(s);if(e){c.set(i,e)}}}return t}const Gt=typeof XMLHttpRequest!=="undefined";var Zt=Gt&&function(e){return new Promise((function t(n,o){const r=Vt(e);let i=r.data;const s=Le.from(r.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=r;let u;let f,d;let h,p;function b(){h&&h();p&&p();r.cancelToken&&r.cancelToken.unsubscribe(u);r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,true);m.timeout=r.timeout;function w(){if(!m){return}const t=Le.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());const r=!c||c==="text"||c==="json"?m.responseText:m.response;const i={data:r,status:m.status,statusText:m.statusText,headers:t,config:e,request:m};_t((function e(t){n(t);b()}),(function e(t){o(t);b()}),i);m=null}if("onloadend"in m){m.onloadend=w}else{m.onreadystatechange=function e(){if(!m||m.readyState!==4){return}if(m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))){return}setTimeout(w)}}m.onabort=function t(){if(!m){return}o(new qe("Request aborted",qe.ECONNABORTED,e,m));b();m=null};m.onerror=function t(n){const r=n&&n.message?n.message:"Network Error";const i=new qe(r,qe.ERR_NETWORK,e,m);i.event=n||null;o(i);b();m=null};m.ontimeout=function t(){let n=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ot;if(r.timeoutErrorMessage){n=r.timeoutErrorMessage}o(new qe(n,i.clarifyTimeoutError?qe.ETIMEDOUT:qe.ECONNABORTED,e,m));b();m=null};i===undefined&&s.setContentType(null);if("setRequestHeader"in m){ve.forEach(Te(s),(function e(t,n){m.setRequestHeader(n,t)}))}if(!ve.isUndefined(r.withCredentials)){m.withCredentials=!!r.withCredentials}if(c&&c!=="json"){m.responseType=r.responseType}if(l){[d,p]=At(l,true);m.addEventListener("progress",d)}if(a&&m.upload){[f,h]=At(a);m.upload.addEventListener("progress",f);m.upload.addEventListener("loadend",h)}if(r.cancelToken||r.signal){u=t=>{if(!m){return}o(!t||t.type?new Et(null,e,m):t);m.abort();b();m=null};r.cancelToken&&r.cancelToken.subscribe(u);if(r.signal){r.signal.aborted?u():r.signal.addEventListener("abort",u)}}const y=jt(r.url);if(y&&!pt.protocols.includes(y)){o(new qe("Unsupported protocol "+y+":",qe.ERR_BAD_REQUEST,e));b();return}m.send(i||null)}))};const Qt=(e,t)=>{e=e?e.filter(Boolean):[];if(!t&&!e.length){return}const n=new AbortController;let o=false;const r=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof qe?t:new Et(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null;r(new qe(`timeout of ${t}ms exceeded`,qe.ETIMEDOUT))}),t);const s=()=>{if(!e){return}i&&clearTimeout(i);i=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}));e=null};e.forEach((e=>e.addEventListener("abort",r,{once:true})));const{signal:c}=n;c.unsubscribe=()=>ve.asap(s);return c};const Yt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let r;while(o<n){r=o+t;yield e.slice(o,r);o=r}};const en=async function*(e,t){for await(const n of tn(e)){yield*Yt(n,t)}};const tn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e){break}yield n}}finally{await t.cancel()}};const nn=(e,t,n,o)=>{const r=en(e,t);let i=0;let s;let c=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return r.return()}},{highWaterMark:2})};const on=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;const rn=(e,t,n)=>t+2<n&&on(e.charCodeAt(t+1))&&on(e.charCodeAt(t+2));function sn(e){if(!e||typeof e!=="string")return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t);const o=e.slice(t+1);const r=/;base64/i.test(n);if(r){let e=o.length;const t=o.length;for(let n=0;n<t;n++){if(o.charCodeAt(n)===37&&n+2<t){const t=o.charCodeAt(n+1);const r=o.charCodeAt(n+2);const i=on(t)&&on(r);if(i){e-=2;n+=2}}}let n=0;let r=t-1;const i=e=>e>=2&&o.charCodeAt(e-2)===37&&o.charCodeAt(e-1)===51&&(o.charCodeAt(e)===68||o.charCodeAt(e)===100);if(r>=0){if(o.charCodeAt(r)===61){n++;r--}else if(i(r)){n++;r-=3}}if(n===1&&r>=0){if(o.charCodeAt(r)===61){n++}else if(i(r)){n++}}const s=Math.floor(e/4);const c=s*3-(n||0);return c>0?c:0}let i=0;for(let e=0,t=o.length;e<t;e++){const n=o.charCodeAt(e);if(n===37&&rn(o,e,t)){i+=1;e+=2}else if(n<128){i+=1}else if(n<2048){i+=2}else if(n>=55296&&n<=56319&&e+1<t){const t=o.charCodeAt(e+1);if(t>=56320&&t<=57343){i+=4;e++}else{i+=3}}else{i+=3}}return i}const cn="1.18.1";const an=64*1024;const{isFunction:ln}=ve;const un=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))));const fn=e=>{if(!ve.isString(e)){return e}try{return decodeURIComponent(e)}catch(t){return e}};const dn=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const hn=e=>{const t=e.indexOf("://");let n=e;if(t!==-1){n=n.slice(t+3)}return n.includes("@")||n.includes(":")};const pn=e=>{const t=ve.global!==undefined&&ve.global!==null?ve.global:globalThis;const{ReadableStream:n,TextEncoder:o}=t;e=ve.merge.call({skipUndefined:true},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:i,Response:s}=e;const c=r?ln(r):typeof fetch==="function";const a=ln(i);const l=ln(s);if(!c){return false}const u=c&&ln(n);const f=c&&(typeof o==="function"?(e=>t=>e.encode(t))(new o):async e=>new Uint8Array(await new i(e).arrayBuffer()));const d=a&&u&&dn((()=>{let e=false;const t=new i(pt.origin,{body:new n,method:"POST",get duplex(){e=true;return"half"}});const o=t.headers.has("Content-Type");if(t.body!=null){t.body.cancel()}return e&&!o}));const h=l&&u&&dn((()=>ve.isReadableStream(new s("").body)));const p={stream:h&&(e=>e.body)};c&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o){return o.call(t)}throw new qe(`Response type '${e}' is not supported`,qe.ERR_NOT_SUPPORT,n)})}))})();const b=async e=>{if(e==null){return 0}if(ve.isBlob(e)){return e.size}if(ve.isSpecCompliantForm(e)){const t=new i(pt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(ve.isArrayBufferView(e)||ve.isArrayBuffer(e)){return e.byteLength}if(ve.isURLSearchParams(e)){e=e+""}if(ve.isString(e)){return(await f(e)).byteLength}};const m=async(e,t)=>{const n=ve.toFiniteNumber(e.getContentLength());return n==null?b(t):n};return async e=>{let{url:t,method:n,data:c,signal:l,cancelToken:f,timeout:w,onDownloadProgress:y,onUploadProgress:g,responseType:v,headers:x,withCredentials:k="same-origin",fetchOptions:O,maxContentLength:R,maxBodyLength:S}=Vt(e);const E=ve.isNumber(R)&&R>-1;const _=ve.isNumber(S)&&S>-1;const j=t=>ve.hasOwnProp(e,t)?e[t]:undefined;let T=r||fetch;v=v?(v+"").toLowerCase():"text";let C=Qt([l,f&&f.toAbortSignal()],w);let A=null;const N=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let F;let U=null;const P=()=>new qe("Request body larger than maxBodyLength limit",qe.ERR_BAD_REQUEST,e,A);try{let r=undefined;const l=j("auth");if(l){const e=ve.getSafeProp(l,"username")||"";const t=ve.getSafeProp(l,"password")||"";r={username:e,password:t}}if(hn(t)){const e=new URL(t,pt.origin);if(!r&&(e.username||e.password)){const t=fn(e.username);const n=fn(e.password);r={username:t,password:n}}if(e.username||e.password){e.username="";e.password="";t=e.href}}if(r){x.delete("authorization");x.set("Authorization","Basic "+btoa(un((r.username||"")+":"+(r.password||""))))}if(E&&typeof t==="string"&&t.startsWith("data:")){const n=sn(t);if(n>R){throw new qe("maxContentLength size of "+R+" exceeded",qe.ERR_BAD_RESPONSE,e,A)}}if(_&&n!=="get"&&n!=="head"){const e=await b(c);if(typeof e==="number"&&isFinite(e)){F=e;if(e>S){throw P()}}}const f=_&&(ve.isReadableStream(c)||ve.isStream(c));const w=(e,t,n)=>nn(e,an,(e=>{if(_&&e>S){throw U=P()}t&&t(e)}),n);if(d&&n!=="get"&&n!=="head"&&(g||f)){F=F==null?await m(x,c):F;if(F!==0||f){let e=new i(t,{method:"POST",body:c,duplex:"half"});let n;if(ve.isFormData(c)&&(n=e.headers.get("content-type"))){x.setContentType(n)}if(e.body){const[t,n]=g&&Nt(F,At(Ft(g)))||[];c=w(e.body,t,n)}}}else if(f&&!a&&u&&n!=="get"&&n!=="head"){c=w(c)}else if(f&&a&&!d&&n!=="get"&&n!=="head"){throw new qe("Stream request bodies are not supported by the current fetch implementation",qe.ERR_NOT_SUPPORT,e,A)}if(!ve.isString(k)){k=k?"include":"omit"}const I=a&&"credentials"in i.prototype;if(ve.isFormData(c)){const e=x.getContentType();if(e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)){x.delete("content-type")}}x.set("User-Agent","axios/"+cn,false);const B={...O,signal:C,method:n.toUpperCase(),headers:Te(x.normalize()),body:c,duplex:"half",credentials:I?k:undefined};A=a&&new i(t,B);let L=await(a?T(A,O):T(t,B));const D=Le.from(L.headers);if(E){const t=ve.toFiniteNumber(D.getContentLength());if(t!=null&&t>R){throw new qe("maxContentLength size of "+R+" exceeded",qe.ERR_BAD_RESPONSE,e,A)}}const z=h&&(v==="stream"||v==="response");if(h&&L.body&&(y||E||z&&N)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=L[e]}));const n=ve.toFiniteNumber(D.getContentLength());const[o,r]=y&&Nt(n,At(Ft(y),true))||[];let i=0;const c=t=>{if(E){i=t;if(i>R){throw new qe("maxContentLength size of "+R+" exceeded",qe.ERR_BAD_RESPONSE,e,A)}}o&&o(t)};L=new s(nn(L.body,an,c,(()=>{r&&r();N&&N()})),t)}v=v||"text";let M=await p[ve.findKey(p,v)||"text"](L,e);if(E&&!h&&!z){let t;if(M!=null){if(typeof M.byteLength==="number"){t=M.byteLength}else if(typeof M.size==="number"){t=M.size}else if(typeof M==="string"){t=typeof o==="function"?(new o).encode(M).byteLength:M.length}}if(typeof t==="number"&&t>R){throw new qe("maxContentLength size of "+R+" exceeded",qe.ERR_BAD_RESPONSE,e,A)}}!z&&N&&N();return await new Promise(((t,n)=>{_t(t,n,{data:M,headers:Le.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:A})}))}catch(t){N&&N();if(C&&C.aborted&&C.reason instanceof qe){const n=C.reason;n.config=e;A&&(n.request=A);if(t!==n){Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:true,enumerable:false,configurable:true})}throw n}if(U){A&&!U.request&&(U.request=A);throw U}if(t instanceof qe){A&&!t.request&&(t.request=A);throw t}if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){const n=new qe("Network Error",qe.ERR_NETWORK,e,A,t&&t.response);Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:true,enumerable:false,configurable:true});throw n}throw qe.from(t,t&&t.code,e,A,t&&t.response)}}};const bn=new Map;const mn=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t;const i=[o,r,n];let s=i.length,c=s,a,l,u=bn;while(c--){a=i[c];l=u.get(a);l===undefined&&u.set(a,l=c?new Map:pn(t));u=l}return l};mn();const wn={http:$e,xhr:Zt,fetch:{get:mn}};ve.forEach(wn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));const yn=e=>`- ${e}`;const gn=e=>ve.isFunction(e)||e===null||e===false;function vn(e,t){e=ve.isArray(e)?e:[e];const{length:n}=e;let o;let r;const i={};for(let s=0;s<n;s++){o=e[s];let n;r=o;if(!gn(o)){r=wn[(n=String(o)).toLowerCase()];if(r===undefined){throw new qe(`Unknown adapter '${n}'`)}}if(r&&(ve.isFunction(r)||(r=r.get(t)))){break}i[n||"#"+s]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(yn).join("\n"):" "+yn(e[0]):"as no adapter specified";throw new qe(`There is no suitable adapter to dispatch the request `+t,qe.ERR_NOT_SUPPORT)}return r}var xn={getAdapter:vn,adapters:wn};function kn(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new Et(null,e)}}function On(e){kn(e);e.headers=Le.from(e.headers);e.data=Rt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=xn.getAdapter(e.adapter||Ot.adapter,e);return t(e).then((function t(n){kn(e);e.response=n;try{n.data=Rt.call(e,e.transformResponse,n)}finally{delete e.response}n.headers=Le.from(n.headers);return n}),(function t(n){if(!St(n)){kn(e);if(n&&n.response){e.response=n.response;try{n.response.data=Rt.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=Le.from(n.response.headers)}}return Promise.reject(n)}))}const Rn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Rn[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Sn={};Rn.transitional=function e(t,n,o){function r(e,t){return"[Axios v"+cn+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,i)=>{if(t===false){throw new qe(r(o," has been removed"+(n?" in "+n:"")),qe.ERR_DEPRECATED)}if(n&&!Sn[o]){Sn[o]=true;console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,i):true}};Rn.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function En(e,t,n){if(typeof e!=="object"||e===null){throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let r=o.length;while(r-- >0){const i=o[r];const s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:undefined;if(s){const t=e[i];const n=t===undefined||s(t,i,e);if(n!==true){throw new qe("option "+i+" must be "+n,qe.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new qe("Unknown option "+i,qe.ERR_BAD_OPTION)}}}var _n={assertOptions:En,validators:Rn};const jn=_n.validators;class Tn{constructor(e){this.defaults=e||{};this.interceptors={request:new nt,response:new nt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack){return""}const e=t.stack.indexOf("\n");return e===-1?"":t.stack.slice(e+1)})();try{if(!e.stack){e.stack=n}else if(n){const t=n.indexOf("\n");const o=t===-1?-1:n.indexOf("\n",t+1);const r=o===-1?"":n.slice(o+1);if(!String(e.stack).endsWith(r)){e.stack+="\n"+n}}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Jt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;if(n!==undefined){_n.assertOptions(n,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean),legacyInterceptorReqResOrdering:jn.transitional(jn.boolean),advertiseZstdAcceptEncoding:jn.transitional(jn.boolean),validateStatusUndefinedResolves:jn.transitional(jn.boolean)},false)}if(o!=null){if(ve.isFunction(o)){t.paramsSerializer={serialize:o}}else{_n.assertOptions(o,{encode:jn.function,serialize:jn.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}_n.assertOptions(t,{baseUrl:jn.spelling("baseURL"),withXsrfToken:jn.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&ve.merge(r.common,r[t.method]);r&&ve.forEach(["delete","get","head","post","put","patch","query","common"],(e=>{delete r[e]}));t.headers=Le.concat(i,r);const s=[];let c=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}c=c&&n.synchronous;const o=t.transitional||ot;const r=o&&o.legacyInterceptorReqResOrdering;if(r){s.unshift(n.fulfilled,n.rejected)}else{s.push(n.fulfilled,n.rejected)}}));const a=[];this.interceptors.response.forEach((function e(t){a.push(t.fulfilled,t.rejected)}));let l;let u=0;let f;if(!c){const e=[On.bind(this),undefined];e.unshift(...s);e.push(...a);f=e.length;l=Promise.resolve(t);while(u<f){l=l.then(e[u++],e[u++])}return l}f=s.length;let d=t;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=On.call(this,d)}catch(e){return Promise.reject(e)}u=0;f=a.length;while(u<f){l=l.then(a[u++],a[u++])}return l}getUri(e){e=Jt(this.defaults,e);const t=$t(e.baseURL,e.url,e.allowAbsoluteUrls,e);return tt(t,e.params,e.paramsSerializer)}}ve.forEach(["delete","get","head","options"],(function e(t){Tn.prototype[t]=function(e,n){return this.request(Jt(n||{},{method:t,url:e,data:n&&ve.hasOwnProp(n,"data")?n.data:undefined}))}}));ve.forEach(["post","put","patch","query"],(function e(t){function n(e){return function n(o,r,i){return this.request(Jt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Tn.prototype[t]=n();if(t!=="query"){Tn.prototype[t+"Form"]=n(true)}}));class Cn{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,r,i){if(n.reason){return}n.reason=new Et(o,r,i);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new Cn((function t(n){e=n}));return{token:t,cancel:e}}}function An(e){return function t(n){return e.apply(null,n)}}function Nn(e){return ve.isObject(e)&&e.isAxiosError===true}const Fn={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(Fn).forEach((([e,t])=>{Fn[t]=e}));function Un(t){const n=new Tn(t);const o=e(Tn.prototype.request,n);ve.extend(o,Tn.prototype,n,{allOwnKeys:true});ve.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return Un(Jt(t,n))};return o}const Pn=Un(Ot);Pn.Axios=Tn;Pn.CanceledError=Et;Pn.CancelToken=Cn;Pn.isCancel=St;Pn.VERSION=cn;Pn.toFormData=Ge;Pn.AxiosError=qe;Pn.Cancel=Pn.CanceledError;Pn.all=function e(t){return Promise.all(t)};Pn.spread=An;Pn.isAxiosError=Nn;Pn.mergeConfig=Jt;Pn.AxiosHeaders=Le;Pn.formToJSON=e=>vt(ve.isHTMLForm(e)?new FormData(e):e);Pn.getAdapter=xn.getAdapter;Pn.HttpStatusCode=Fn;Pn.default=Pn;d=Pn;return d}var b=p();var m=l(b);const w=u.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const y=()=>m.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:w}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const g=()=>`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}`;const v=`<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>`;const x=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.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-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.featureFlags=null;this.activeEntitlements={}}componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=i(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;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||""}s(this.endpoint).then((e=>{this.activeEntitlements=e;console.log("[CONTACT PICKER] Loaded entitlements",e)})).catch((e=>console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)));y().then((e=>{this.featureFlags=e;console.log("[CONTACT PICKER] Loaded feature flags",e)})).catch((e=>{console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(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})}handleSelectSuggestion(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}render(){var e,t,r,s,a,l,u,d,h,p,b,m,w,y,g,x,k,O;const R=this.first_name&&this.last_name&&c(this.email);const S=!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;const E=R&&S;const _=((r=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||r===void 0?void 0:r.enabled)===true;const j=[];if(((l=(a=(s=this.featureFlags)===null||s===void 0?void 0:s.toggles)===null||a===void 0?void 0:a.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){j.push({label:"Passcode",value:"passcode"})}if(((h=(d=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||d===void 0?void 0:d.find((e=>e.name==="email-verification")))===null||h===void 0?void 0:h.enabled)===true){j.push({label:"Email",value:"email"})}if(_&&((m=(b=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||b===void 0?void 0:b.find((e=>e.name==="sms-verification")))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.sms_auth){j.push({label:"SMS (One-Time Code)",value:"sms"})}if(((g=(y=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||y===void 0?void 0:y.find((e=>e.name==="kba-verification")))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.kba_auth){j.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((O=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((e=>e.name==="id-verification")))===null||O===void 0?void 0:O.enabled)===true&&!!this.activeEntitlements.id_auth){j.push({label:"ID Check",value:"id"})}return n("form",{key:"374d6f0907e09a4c312bcd666eaabf578f8671b5",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"bbdb01e7229992ff75b3b124fde6a8606769d53c",class:"row"},n("label",{key:"546da7ec599b17cc2e514dcaf47fe41d7107ec11",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"e5819a8cb2c261c302a4923561578c5928063e64",class:"names-row"},n("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:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)}),n("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:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)})),this.showSuggestions&&n("verdocs-portal",{key:"0a856517832b4dc417627675a0327e5a5e9e4710",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"6c0c1747e5ed512ad463c26f220b34db395e8f2c",class:"dropdown"},this.contactSuggestions.filter((e=>!this.first_name||e.first_name.toLowerCase().includes(this.first_name.toLowerCase()))).map((e=>{var t;return n("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?n("img",{alt:"Avatar",class:"avatar",src:e.picture}):n("div",{class:"avatar",innerHTML:v}),n("div",{class:"details"},n("div",{class:"name"},i(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"85552b20424fb4884fa88d22c78375fe5c6513e0",class:"row"},n("label",{key:"2b438ee30f3c0115d0445e3f5bfe4ae8b7635073",htmlFor:this.emailFieldId},"Email:"),n("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:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),_&&n("div",{key:"f015a535d0a37d94eb73b145342d00dde7b63a50",class:"row"},n("label",{key:"eff877e183e38de65ca11e535b81e11b5ee1bd92",htmlFor:this.phoneFieldId},"Phone:"),n("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:()=>this.showSuggestions=false,onInput:e=>{this.phone=f(e.target.value)}})),n(o,{key:"c037e234e206b1cd45bf91649f211ebe42f885fe"},j.length>0&&n("div",{key:"23fa9db672498199d7c053b258669e0676852322",class:"row pin-code"},n("label",{key:"d5208d3cd083716589aa6c18dbd85ba88ca208b3"},"Verification Methods:"),n("div",{key:"f239551b28d2ca51b8f9ab5ec64bfdfdce4bf823"},j.map(((e,t)=>n("div",{class:"option"},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.auth_methods.includes(e.value),onInput:t=>{if(t.target.checked){this.auth_methods=[...this.auth_methods,e.value]}else{this.auth_methods=this.auth_methods.filter((t=>t!==e.value))}}}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label)))))),this.auth_methods.includes("passcode")&&n("div",{key:"d57e7078dfefb1c816a15c52a8aa44eae62a5557",class:"row pin-code"},n("label",{key:"df97978ae0e4c176c7d6ca38850537d3d6db5ce3",htmlFor:this.phoneFieldId},"Passcode:"),n("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:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"7de2d50963399db273bd1d38941ea967a2d92827",class:"row pin-code"},n("label",{key:"d0202a6e0969b405d303cdc291dee95048460b43",style:{marginTop:"6px"}},"Options:"),n("div",{key:"52f68972a5fee697972fa9baa284ca6a37830ab9"},n("div",{key:"8e15a3caa1e4ce0cbb943fb7bfaaf274d4410de3",class:"option"},n("verdocs-checkbox",{key:"7d21cafec340458f1c6a06b577fad30bbd5680eb",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:e=>{this.delegator=e.target.checked;if(this.delegator)this.name_locked=false}}),n("label",{key:"2b96fb477ce41038cf9d115e9fabf102d670d801",htmlFor:"verdocs-delegator"},"May delegate signing")),n("div",{key:"7f616562ee03e6026bf09b355ae20720b45655b0",class:"option"},n("verdocs-checkbox",{key:"47bfa40e403ddf6da8cba33fda8ebff05625d353",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:e=>{this.name_locked=e.target.checked;if(this.name_locked)this.delegator=false}}),n("label",{key:"382d0b92f8999dc1a0adaa91d00c6c0f95a17552",htmlFor:"verdocs-name-locked"},"Name locked")))),n("div",{key:"6797886d95d1e08dc0c018e89cf6040aa60b02ff",class:"row message"},n("label",{key:"cb6f04c40e1b6601d0292e248b26cb4f2519e7d9",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("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:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"d2f04563ad450f4c6c0c19735a064d01182cf458",class:"buttons"},n("div",{key:"43f240077f3c5b3e252c60a277668c94c9163b24",class:"flex-fill"}),n("verdocs-button",{key:"f758cb6d10b3deb58d13aaf54c212e6455933104",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"3aa451a2d6d23ada4a7a5ddb5843b22954b69161",label:"OK",size:"small",disabled:!E,onClick:!E?()=>{}:e=>this.handleSubmit(e)})))}};x.style=g();export{x as verdocs_contact_picker};
3
+ //# sourceMappingURL=p-4e84a5b6.entry.js.map