@verdocs/web-sdk 5.0.67 → 5.0.68

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 (135) hide show
  1. package/dist/cjs/verdocs-contact-picker.verdocs-multiselect.entry.cjs.js.map +1 -1
  2. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +13 -8
  3. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -1
  4. package/dist/cjs/verdocs-organization-card.verdocs-portal.entry.cjs.js.map +1 -1
  5. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +5 -1
  6. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  8. package/dist/cjs/verdocs-templates-list.cjs.entry.js.map +1 -1
  9. package/dist/cjs/verdocs-templates-list.entry.cjs.js.map +1 -1
  10. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.css +23 -0
  11. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
  12. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js.map +1 -1
  13. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +5 -1
  14. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js.map +1 -1
  15. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +11 -6
  16. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  17. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +17 -10
  18. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js.map +1 -1
  19. package/dist/components/{p-ChSdhofj.js → p-B8oLX6-0.js} +3 -3
  20. package/dist/components/{p-ChSdhofj.js.map → p-B8oLX6-0.js.map} +1 -1
  21. package/dist/components/{p-FMmdRAwT.js → p-BC9E1lIr.js} +14 -14
  22. package/dist/components/{p-FMmdRAwT.js.map → p-BC9E1lIr.js.map} +1 -1
  23. package/dist/components/{p-DcGAyXll.js → p-BPaxQrtW.js} +7 -3
  24. package/dist/components/p-BPaxQrtW.js.map +1 -0
  25. package/dist/components/{p-BF25av2F.js → p-BSopvRgr.js} +3 -3
  26. package/dist/components/{p-BF25av2F.js.map → p-BSopvRgr.js.map} +1 -1
  27. package/dist/components/{p-D-eXKBQK.js → p-BVwBJvZX.js} +3 -3
  28. package/dist/components/{p-D-eXKBQK.js.map → p-BVwBJvZX.js.map} +1 -1
  29. package/dist/components/{p-a2mcI8jM.js → p-BXnjauAt.js} +3 -3
  30. package/dist/components/{p-a2mcI8jM.js.map → p-BXnjauAt.js.map} +1 -1
  31. package/dist/components/{p-C_Iua_8I.js → p-Bd_tIPj6.js} +3 -3
  32. package/dist/components/{p-C_Iua_8I.js.map → p-Bd_tIPj6.js.map} +1 -1
  33. package/dist/components/{p-BiJg4trF.js → p-Blv4Px1q.js} +3 -3
  34. package/dist/components/{p-BiJg4trF.js.map → p-Blv4Px1q.js.map} +1 -1
  35. package/dist/components/{p-BK1G2TCe.js → p-BqQxZHHz.js} +3 -3
  36. package/dist/components/{p-BK1G2TCe.js.map → p-BqQxZHHz.js.map} +1 -1
  37. package/dist/components/{p-BERtpjuC.js → p-C-l2dmJo.js} +3 -3
  38. package/dist/components/{p-BERtpjuC.js.map → p-C-l2dmJo.js.map} +1 -1
  39. package/dist/components/{p-MZFye18Y.js → p-Ch6Kdfra.js} +3 -3
  40. package/dist/components/{p-MZFye18Y.js.map → p-Ch6Kdfra.js.map} +1 -1
  41. package/dist/components/{p-DL0ugSd9.js → p-CkX7jHYc.js} +14 -14
  42. package/dist/components/{p-DL0ugSd9.js.map → p-CkX7jHYc.js.map} +1 -1
  43. package/dist/components/{p-D6z0a96H.js → p-CsnQa5sQ.js} +4 -4
  44. package/dist/components/{p-D6z0a96H.js.map → p-CsnQa5sQ.js.map} +1 -1
  45. package/dist/components/{p-BXN75-nb.js → p-DC--nyvW.js} +5 -5
  46. package/dist/components/{p-BXN75-nb.js.map → p-DC--nyvW.js.map} +1 -1
  47. package/dist/components/{p-mxrRjSEM.js → p-DhrRkOUi.js} +3 -3
  48. package/dist/components/{p-mxrRjSEM.js.map → p-DhrRkOUi.js.map} +1 -1
  49. package/dist/components/{p-BRr3-bHO.js → p-DpbDLSke.js} +6 -12
  50. package/dist/components/p-DpbDLSke.js.map +1 -0
  51. package/dist/components/{p-Oos-rvdo.js → p-cJMs8iXW.js} +15 -10
  52. package/dist/components/p-cJMs8iXW.js.map +1 -0
  53. package/dist/components/{p-C7Cguo-b.js → p-eXVwQFzY.js} +3 -3
  54. package/dist/components/{p-C7Cguo-b.js.map → p-eXVwQFzY.js.map} +1 -1
  55. package/dist/components/{p-D3eafwac.js → p-r_GHGV6q.js} +13 -13
  56. package/dist/components/{p-D3eafwac.js.map → p-r_GHGV6q.js.map} +1 -1
  57. package/dist/components/verdocs-build.js +17 -17
  58. package/dist/components/verdocs-contact-picker.js +1 -1
  59. package/dist/components/verdocs-dropdown.js +1 -1
  60. package/dist/components/verdocs-envelope-sidebar.js +2 -2
  61. package/dist/components/verdocs-envelopes-list.js +2 -2
  62. package/dist/components/verdocs-field-attachment.js +1 -1
  63. package/dist/components/verdocs-field-checkbox.js +1 -1
  64. package/dist/components/verdocs-field-date.js +1 -1
  65. package/dist/components/verdocs-field-dropdown.js +1 -1
  66. package/dist/components/verdocs-field-initial.js +1 -1
  67. package/dist/components/verdocs-field-payment.js +1 -1
  68. package/dist/components/verdocs-field-radio.js +1 -1
  69. package/dist/components/verdocs-field-signature.js +1 -1
  70. package/dist/components/verdocs-field-textarea.js +1 -1
  71. package/dist/components/verdocs-field-textbox.js +1 -1
  72. package/dist/components/verdocs-field-timestamp.js +1 -1
  73. package/dist/components/verdocs-multiselect.js +1 -1
  74. package/dist/components/verdocs-organization-card.js +1 -1
  75. package/dist/components/verdocs-portal.js +1 -1
  76. package/dist/components/verdocs-preview.js +1 -1
  77. package/dist/components/verdocs-send.js +1 -1
  78. package/dist/components/verdocs-sign.js +3 -3
  79. package/dist/components/verdocs-template-document-page.js +1 -1
  80. package/dist/components/verdocs-template-fields.js +1 -1
  81. package/dist/components/verdocs-templates-list.js +9 -9
  82. package/dist/components/verdocs-templates-list.js.map +1 -1
  83. package/dist/components/verdocs-view.js +1 -1
  84. package/dist/custom-elements.json +1 -1
  85. package/dist/esm/verdocs-contact-picker.verdocs-multiselect.entry.js.map +1 -1
  86. package/dist/esm/verdocs-contact-picker_2.entry.js +13 -8
  87. package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -1
  88. package/dist/esm/verdocs-organization-card.verdocs-portal.entry.js.map +1 -1
  89. package/dist/esm/verdocs-organization-card_2.entry.js +5 -1
  90. package/dist/esm/verdocs-organization-card_2.entry.js.map +1 -1
  91. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  92. package/dist/esm/verdocs-templates-list.entry.js.map +1 -1
  93. package/dist/esm-es5/verdocs-contact-picker.verdocs-multiselect.entry.js.map +1 -1
  94. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  95. package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -1
  96. package/dist/esm-es5/verdocs-organization-card.verdocs-portal.entry.js.map +1 -1
  97. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  98. package/dist/esm-es5/verdocs-organization-card_2.entry.js.map +1 -1
  99. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  100. package/dist/esm-es5/verdocs-templates-list.entry.js.map +1 -1
  101. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +10 -3
  102. package/dist/types/components.d.ts +32 -4
  103. package/dist/verdocs-web-sdk/{p-15fdb9df.system.entry.js → p-22539b25.system.entry.js} +3 -3
  104. package/dist/verdocs-web-sdk/p-22539b25.system.entry.js.map +1 -0
  105. package/dist/verdocs-web-sdk/{p-80e61388.system.entry.js → p-289ad8d2.system.entry.js} +2 -2
  106. package/dist/verdocs-web-sdk/p-289ad8d2.system.entry.js.map +1 -0
  107. package/dist/verdocs-web-sdk/{p-4437b439.entry.js → p-5badc484.entry.js} +3 -3
  108. package/dist/verdocs-web-sdk/p-5badc484.entry.js.map +1 -0
  109. package/dist/verdocs-web-sdk/{p-e2985bcb.entry.js → p-720ceced.entry.js} +2 -2
  110. package/dist/verdocs-web-sdk/p-720ceced.entry.js.map +1 -0
  111. package/dist/verdocs-web-sdk/{p-6743a4ec.system.entry.js → p-795cb651.system.entry.js} +2 -2
  112. package/dist/verdocs-web-sdk/p-795cb651.system.entry.js.map +1 -0
  113. package/dist/verdocs-web-sdk/p-9b1b273c.entry.js +2 -0
  114. package/dist/verdocs-web-sdk/p-9b1b273c.entry.js.map +1 -0
  115. package/dist/verdocs-web-sdk/{p-C7nljRlm.system.js.map → p-BlaEjWtc.system.js.map} +1 -1
  116. package/dist/verdocs-web-sdk/p-CNuYIT4Z.system.js.map +1 -0
  117. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
  118. package/dist/verdocs-web-sdk/p-D3kzqvo2.system.js.map +1 -0
  119. package/dist/verdocs-web-sdk/verdocs-contact-picker.verdocs-multiselect.entry.esm.js.map +1 -1
  120. package/dist/verdocs-web-sdk/verdocs-organization-card.verdocs-portal.entry.esm.js.map +1 -1
  121. package/dist/verdocs-web-sdk/verdocs-templates-list.entry.esm.js.map +1 -1
  122. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  123. package/package.json +1 -1
  124. package/dist/components/p-BRr3-bHO.js.map +0 -1
  125. package/dist/components/p-DcGAyXll.js.map +0 -1
  126. package/dist/components/p-Oos-rvdo.js.map +0 -1
  127. package/dist/verdocs-web-sdk/p-15fdb9df.system.entry.js.map +0 -1
  128. package/dist/verdocs-web-sdk/p-36e094d6.entry.js +0 -2
  129. package/dist/verdocs-web-sdk/p-36e094d6.entry.js.map +0 -1
  130. package/dist/verdocs-web-sdk/p-4437b439.entry.js.map +0 -1
  131. package/dist/verdocs-web-sdk/p-6743a4ec.system.entry.js.map +0 -1
  132. package/dist/verdocs-web-sdk/p-80e61388.system.entry.js.map +0 -1
  133. package/dist/verdocs-web-sdk/p-BIoNmybA.system.js.map +0 -1
  134. package/dist/verdocs-web-sdk/p-CMYmkzNA.system.js.map +0 -1
  135. package/dist/verdocs-web-sdk/p-e2985bcb.entry.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import{r as e,c as t,h as n,F as o,H as i}from"./p-CF7i8guW.js";import{VerdocsEndpoint as r,formatFullName as s,getActiveEntitlements as c,isValidEmail as a,randomString as l}from"@verdocs/js-sdk";import{c as u,g as f}from"./p-BFTU3MAI.js";import{B as d}from"./p-C_Xku1v2.js";import{d as h}from"./p-Bf-kinKl.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";
2
- /*! Axios v1.8.4 Copyright (c) 2025 Matt Zabriskie and contributors */var p;var m;function b(){if(m)return p;m=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const o=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const i=e=>{e=e.toLowerCase();return t=>o(t)===e};const r=e=>t=>typeof t===e;const{isArray:s}=Array;const c=r("undefined");function a(e){return e!==null&&!c(e)&&e.constructor!==null&&!c(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l=i("ArrayBuffer");function f(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&l(e.buffer)}return t}const d=r("string");const h=r("function");const b=r("number");const g=e=>e!==null&&typeof e==="object";const w=e=>e===true||e===false;const v=e=>{if(o(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const y=i("Date");const x=i("File");const k=i("Blob");const R=i("FileList");const O=e=>g(e)&&h(e.pipe);const S=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||h(e.append)&&((t=o(e))==="formdata"||t==="object"&&h(e.toString)&&e.toString()==="[object FormData]"))};const E=i("URLSearchParams");const[T,C,A,j]=["ReadableStream","Request","Response","Headers"].map(i);const N=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function F(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let i;if(typeof e!=="object"){e=[e]}if(s(e)){for(o=0,i=e.length;o<i;o++){t.call(null,e[o],o,e)}}else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const r=i.length;let s;for(o=0;o<r;o++){s=i[o];t.call(null,e[s],s,e)}}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let i;while(o-- >0){i=n[o];if(t===i.toLowerCase()){return i}}return null}const U=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:u})();const B=e=>!c(e)&&e!==U;function z(){const{caseless:e}=B(this)&&this||{};const t={};const n=(n,o)=>{const i=e&&P(t,o)||o;if(v(t[i])&&v(n)){t[i]=z(t[i],n)}else if(v(n)){t[i]=z({},n)}else if(s(n)){t[i]=n.slice()}else{t[i]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&F(arguments[e],n)}return t}const I=(t,n,o,{allOwnKeys:i}={})=>{F(n,((n,i)=>{if(o&&h(n)){t[i]=e(n,o)}else{t[i]=n}}),{allOwnKeys:i});return t};const _=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const D=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const L=(e,t,o,i)=>{let r;let s;let c;const a={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);s=r.length;while(s-- >0){c=r[s];if((!i||i(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 M=e=>{if(!e)return null;if(s(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const H=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const $=(e,t)=>{const n=e&&e[Symbol.iterator];const o=n.call(e);let i;while((i=o.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const K=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const J=i("HTMLFormElement");const X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const W=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const V=i("RegExp");const G=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};F(n,((n,i)=>{let r;if((r=t(n,i,e))!==false){o[i]=r||n}}));Object.defineProperties(e,o)};const Z=e=>{G(e,((t,n)=>{if(h(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!h(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 Q=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};s(e)?o(e):o(String(e).split(t));return n};const Y=()=>{};const ee=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function te(e){return!!(e&&h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ne=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[o]=e;const i=s(e)?[]:{};F(e,((e,t)=>{const r=n(e,o+1);!c(r)&&(i[t]=r)}));t[o]=undefined;return i}}return e};return n(e,0)};const oe=i("AsyncFunction");const ie=e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch);const re=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{U.addEventListener("message",(({source:n,data:o})=>{if(n===U&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);U.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",h(U.postMessage));const se=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(U):typeof process!=="undefined"&&process.nextTick||re;var ce={isArray:s,isArrayBuffer:l,isBuffer:a,isFormData:S,isArrayBufferView:f,isString:d,isNumber:b,isBoolean:w,isObject:g,isPlainObject:v,isReadableStream:T,isRequest:C,isResponse:A,isHeaders:j,isUndefined:c,isDate:y,isFile:x,isBlob:k,isRegExp:V,isFunction:h,isStream:O,isURLSearchParams:E,isTypedArray:H,isFileList:R,forEach:F,merge:z,extend:I,trim:N,stripBOM:_,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:i,endsWith:q,toArray:M,forEachEntry:$,matchAll:K,isHTMLForm:J,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:G,freezeMethods:Z,toObjectSet:Q,toCamelCase:X,noop:Y,toFiniteNumber:ee,findKey:P,global:U,isContextDefined:B,isSpecCompliantForm:te,toJSONObject:ne,isAsyncFn:oe,isThenable:ie,setImmediate:re,asap:se};function ae(e,t,n,o,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(i){this.response=i;this.status=i.status?i.status:null}}ce.inherits(ae,Error,{toJSON:function 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:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const le=ae.prototype;const ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ue[e]={value:e}}));Object.defineProperties(ae,ue);Object.defineProperty(le,"isAxiosError",{value:true});ae.from=(e,t,n,o,i,r)=>{const s=Object.create(le);ce.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));ae.call(s,e.message,t,n,o,i);s.cause=e;s.name=e.name;r&&Object.assign(s,r);return s};var fe=null;function de(e){return ce.isPlainObject(e)||ce.isArray(e)}function he(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=he(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function me(e){return ce.isArray(e)&&!e.some(de)}const be=ce.toFlatObject(ce,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ge(e,t,n){if(!ce.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=ce.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!ce.isUndefined(n[t])}));const o=n.metaTokens;const i=n.visitor||u;const r=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=c&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(ce.isDate(e)){return e.toISOString()}if(!a&&ce.isBlob(e)){throw new ae("Blob is not supported. Use a Buffer instead.")}if(ce.isArrayBuffer(e)||ce.isTypedArray(e)){return a&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,i){let c=e;if(e&&!i&&typeof e==="object"){if(ce.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(ce.isArray(e)&&me(e)||(ce.isFileList(e)||ce.endsWith(n,"[]"))&&(c=ce.toArray(e))){n=he(n);c.forEach((function e(o,i){!(ce.isUndefined(o)||o===null)&&t.append(s===true?pe([n],i,r):s===null?n:n+"[]",l(o))}));return false}}if(de(e)){return true}t.append(pe(i,n,r),l(e));return false}const f=[];const d=Object.assign(be,{defaultVisitor:u,convertValue:l,isVisitable:de});function h(e,n){if(ce.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);ce.forEach(e,(function e(o,r){const s=!(ce.isUndefined(o)||o===null)&&i.call(t,o,ce.isString(r)?r.trim():r,n,d);if(s===true){h(o,n?n.concat(r):[r])}}));f.pop()}if(!ce.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function ve(e,t){this._pairs=[];e&&ge(e,this,t)}const ye=ve.prototype;ye.append=function e(t,n){this._pairs.push([t,n])};ye.toString=function e(t){const n=t?function(e){return t.call(this,e,we)}:we;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ke(e,t,n){if(!t){return e}const o=n&&n.encode||xe;if(ce.isFunction(n)){n={serialize:n}}const i=n&&n.serialize;let r;if(i){r=i(t,n)}else{r=ce.isURLSearchParams(t)?t.toString():new ve(t,n).toString(o)}if(r){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Re{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){ce.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Oe=Re;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ee=typeof URLSearchParams!=="undefined"?URLSearchParams:ve;var Te=typeof FormData!=="undefined"?FormData:null;var Ce=typeof Blob!=="undefined"?Blob:null;var Ae={isBrowser:true,classes:{URLSearchParams:Ee,FormData:Te,Blob:Ce},protocols:["http","https","file","blob","url","data"]};const je=typeof window!=="undefined"&&typeof document!=="undefined";const Ne=typeof navigator==="object"&&navigator||undefined;const Fe=je&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0);const Pe=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const Ue=je&&window.location.href||"http://localhost";var Be=Object.freeze({__proto__:null,hasBrowserEnv:je,hasStandardBrowserWebWorkerEnv:Pe,hasStandardBrowserEnv:Fe,navigator:Ne,origin:Ue});var ze={...Be,...Ae};function Ie(e,t){return ge(e,new ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){if(ze.isNode&&ce.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)}},t))}function _e(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function De(e){const t={};const n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++){r=n[o];t[r]=e[r]}return t}function Le(e){function t(e,n,o,i){let r=e[i++];if(r==="__proto__")return true;const s=Number.isFinite(+r);const c=i>=e.length;r=!r&&ce.isArray(o)?o.length:r;if(c){if(ce.hasOwnProp(o,r)){o[r]=[o[r],n]}else{o[r]=n}return!s}if(!o[r]||!ce.isObject(o[r])){o[r]=[]}const a=t(e,n,o[r],i);if(a&&ce.isArray(o[r])){o[r]=De(o[r])}return!s}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};ce.forEachEntry(e,((e,o)=>{t(_e(e),o,n,0)}));return n}return null}function qe(e,t,n){if(ce.isString(e)){try{(0,JSON.parse)(e);return ce.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Me={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const i=o.indexOf("application/json")>-1;const r=ce.isObject(t);if(r&&ce.isHTMLForm(t)){t=new FormData(t)}const s=ce.isFormData(t);if(s){return i?JSON.stringify(Le(t)):t}if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t)){return t}if(ce.isArrayBufferView(t)){return t.buffer}if(ce.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){return Ie(t,this.formSerializer).toString()}if((c=ce.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ge(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(r||i){n.setContentType("application/json",false);return qe(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Me.transitional;const o=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t)){return t}if(t&&ce.isString(t)&&(o&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ce.forEach(["delete","get","head","post","put","patch"],(e=>{Me.headers[e]={}}));var He=Me;const $e=ce.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 i;e&&e.split("\n").forEach((function e(r){i=r.indexOf(":");n=r.substring(0,i).trim().toLowerCase();o=r.substring(i+1).trim();if(!n||t[n]&&$e[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};const Je=Symbol("internals");function Xe(e){return e&&String(e).trim().toLowerCase()}function We(e){if(e===false||e==null){return e}return ce.isArray(e)?e.map(We):String(e)}function Ve(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 Ge=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ze(e,t,n,o,i){if(ce.isFunction(o)){return o.call(this,t,n)}if(i){t=n}if(!ce.isString(t))return;if(ce.isString(o)){return t.indexOf(o)!==-1}if(ce.isRegExp(o)){return o.test(t)}}function Qe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Ye(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:true})}))}class et{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(e,t,n){const i=Xe(t);if(!i){throw new Error("header name must be a non-empty string")}const r=ce.findKey(o,i);if(!r||o[r]===undefined||n===true||n===undefined&&o[r]!==false){o[r||t]=We(e)}}const r=(e,t)=>ce.forEach(e,((e,n)=>i(e,n,t)));if(ce.isPlainObject(e)||e instanceof this.constructor){r(e,t)}else if(ce.isString(e)&&(e=e.trim())&&!Ge(e)){r(Ke(e),t)}else if(ce.isHeaders(e)){for(const[t,o]of e.entries()){i(o,t,n)}}else{e!=null&&i(t,e,n)}return this}get(e,t){e=Xe(e);if(e){const n=ce.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ve(e)}if(ce.isFunction(t)){return t.call(this,e,n)}if(ce.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Xe(e);if(e){const n=ce.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||Ze(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function i(e){e=Xe(e);if(e){const i=ce.findKey(n,e);if(i&&(!t||Ze(n,n[i],i,t))){delete n[i];o=true}}}if(ce.isArray(e)){e.forEach(i)}else{i(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const i=t[n];if(!e||Ze(this,this[i],i,e,true)){delete this[i];o=true}}return o}normalize(e){const t=this;const n={};ce.forEach(this,((o,i)=>{const r=ce.findKey(n,i);if(r){t[r]=We(o);delete t[i];return}const s=e?Qe(i):String(i).trim();if(s!==i){delete t[i]}t[s]=We(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);ce.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&ce.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")}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[Je]=this[Je]={accessors:{}};const n=t.accessors;const o=this.prototype;function i(e){const t=Xe(e);if(!n[t]){Ye(o,e);n[t]=true}}ce.isArray(e)?e.forEach(i):i(e);return this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));ce.freezeMethods(et);var tt=et;function nt(e,t){const n=this||He;const o=t||n;const i=tt.from(o.headers);let r=o.data;ce.forEach(e,(function e(o){r=o.call(n,r,i.normalize(),t?t.status:undefined)}));i.normalize();return r}function ot(e){return!!(e&&e.__CANCEL__)}function it(e,t,n){ae.call(this,e==null?"canceled":e,ae.ERR_CANCELED,t,n);this.name="CanceledError"}ce.inherits(it,ae,{__CANCEL__:true});function rt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function st(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ct(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let i=0;let r=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const u=o[r];if(!s){s=l}n[i]=a;o[i]=l;let f=r;let d=0;while(f!==i){d+=n[f++];f=f%e}i=(i+1)%e;if(i===r){r=(r+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function at(e,t){let n=0;let o=1e3/t;let i;let r;const s=(t,o=Date.now())=>{n=o;i=null;if(r){clearTimeout(r);r=null}e.apply(null,t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{i=e;if(!r){r=setTimeout((()=>{r=null;s(i)}),o-c)}}};const a=()=>i&&s(i);return[c,a]}const lt=(e,t,n=3)=>{let o=0;const i=ct(50,250);return at((n=>{const r=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=r-o;const a=i(c);const l=r<=s;o=r;const u={loaded:r,total:s,progress:s?r/s:undefined,bytes:c,rate:a?a:undefined,estimated:a&&s&&l?(s-r)/a:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const ut=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const ft=e=>(...t)=>ce.asap((()=>e(...t)));var dt=ze.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,ze.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>true;var ht=ze.hasStandardBrowserEnv?{write(e,t,n,o,i,r){const s=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString());ce.isString(o)&&s.push("path="+o);ce.isString(i)&&s.push("domain="+i);r===true&&s.push("secure");document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bt(e,t,n){let o=!pt(t);if(e&&(o||n==false)){return mt(e,t)}return t}const gt=e=>e instanceof tt?{...e}:e;function wt(e,t){t=t||{};const n={};function o(e,t,n,o){if(ce.isPlainObject(e)&&ce.isPlainObject(t)){return ce.merge.call({caseless:o},e,t)}else if(ce.isPlainObject(t)){return ce.merge({},t)}else if(ce.isArray(t)){return t.slice()}return t}function i(e,t,n,i){if(!ce.isUndefined(t)){return o(e,t,n,i)}else if(!ce.isUndefined(e)){return o(undefined,e,n,i)}}function r(e,t){if(!ce.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!ce.isUndefined(t)){return o(undefined,t)}else if(!ce.isUndefined(e)){return o(undefined,e)}}function c(n,i,r){if(r in t){return o(n,i)}else if(r in e){return o(undefined,n)}}const a={url:r,method:r,data:r,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,responseEncoding:s,validateStatus:c,headers:(e,t,n)=>i(gt(e),gt(t),n,true)};ce.forEach(Object.keys(Object.assign({},e,t)),(function o(r){const s=a[r]||i;const l=s(e[r],t[r],r);ce.isUndefined(l)&&s!==c||(n[r]=l)}));return n}var vt=e=>{const t=wt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:c}=t;t.headers=s=tt.from(s);t.url=ke(bt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(c){s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")))}let a;if(ce.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if((a=s.getContentType())!==false){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}}if(ze.hasStandardBrowserEnv){o&&ce.isFunction(o)&&(o=o(t));if(o||o!==false&&dt(t.url)){const e=i&&r&&ht.read(r);if(e){s.set(i,e)}}}return t};const yt=typeof XMLHttpRequest!=="undefined";var xt=yt&&function(e){return new Promise((function t(n,o){const i=vt(e);let r=i.data;const s=tt.from(i.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=i;let u;let f,d;let h,p;function m(){h&&h();p&&p();i.cancelToken&&i.cancelToken.unsubscribe(u);i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,true);b.timeout=i.timeout;function g(){if(!b){return}const t=tt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const i=!c||c==="text"||c==="json"?b.responseText:b.response;const r={data:i,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};rt((function e(t){n(t);m()}),(function e(t){o(t);m()}),r);b=null}if("onloadend"in b){b.onloadend=g}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}b.onabort=function t(){if(!b){return}o(new ae("Request aborted",ae.ECONNABORTED,e,b));b=null};b.onerror=function t(){o(new ae("Network Error",ae.ERR_NETWORK,e,b));b=null};b.ontimeout=function t(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Se;if(i.timeoutErrorMessage){n=i.timeoutErrorMessage}o(new ae(n,r.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,b));b=null};r===undefined&&s.setContentType(null);if("setRequestHeader"in b){ce.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!ce.isUndefined(i.withCredentials)){b.withCredentials=!!i.withCredentials}if(c&&c!=="json"){b.responseType=i.responseType}if(l){[d,p]=lt(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[f,h]=lt(a);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(i.cancelToken||i.signal){u=t=>{if(!b){return}o(!t||t.type?new it(null,e,b):t);b.abort();b=null};i.cancelToken&&i.cancelToken.subscribe(u);if(i.signal){i.signal.aborted?u():i.signal.addEventListener("abort",u)}}const w=st(i.url);if(w&&ze.protocols.indexOf(w)===-1){o(new ae("Unsupported protocol "+w+":",ae.ERR_BAD_REQUEST,e));return}b.send(r||null)}))};const kt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const i=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ae?t:new it(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null;i(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))}),t);const s=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null}};e.forEach((e=>e.addEventListener("abort",i)));const{signal:c}=n;c.unsubscribe=()=>ce.asap(s);return c}};var Rt=kt;const Ot=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let i;while(o<n){i=o+t;yield e.slice(o,i);o=i}};const St=async function*(e,t){for await(const n of Et(e)){yield*Ot(n,t)}};const Et=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 Tt=(e,t,n,o)=>{const i=St(e,t);let r=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 i.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return i.return()}},{highWaterMark:2})};const Ct=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const At=Ct&&typeof ReadableStream==="function";const jt=Ct&&(typeof TextEncoder==="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer()));const Nt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Ft=At&&Nt((()=>{let e=false;const t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const Pt=64*1024;const Ut=At&&Nt((()=>ce.isReadableStream(new Response("").body)));const Bt={stream:Ut&&(e=>e.body)};Ct&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Bt[t]&&(Bt[t]=ce.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ae(`Response type '${t}' is not supported`,ae.ERR_NOT_SUPPORT,n)})}))})(new Response);const zt=async e=>{if(e==null){return 0}if(ce.isBlob(e)){return e.size}if(ce.isSpecCompliantForm(e)){const t=new Request(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e)){return e.byteLength}if(ce.isURLSearchParams(e)){e=e+""}if(ce.isString(e)){return(await jt(e)).byteLength}};const It=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n==null?zt(t):n};var _t=Ct&&(async e=>{let{url:t,method:n,data:o,signal:i,cancelToken:r,timeout:s,onDownloadProgress:c,onUploadProgress:a,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=vt(e);l=l?(l+"").toLowerCase():"text";let h=Rt([i,r&&r.toAbortSignal()],s);let p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(a&&Ft&&n!=="get"&&n!=="head"&&(b=await It(u,o))!==0){let e=new Request(t,{method:"POST",body:o,duplex:"half"});let n;if(ce.isFormData(o)&&(n=e.headers.get("content-type"))){u.setContentType(n)}if(e.body){const[t,n]=ut(b,lt(ft(a)));o=Tt(e.body,Pt,t,n)}}if(!ce.isString(f)){f=f?"include":"omit"}const i="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:i?f:undefined});let r=await fetch(p);const s=Ut&&(l==="stream"||l==="response");if(Ut&&(c||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=ce.toFiniteNumber(r.headers.get("content-length"));const[n,o]=c&&ut(t,lt(ft(c),true))||[];r=new Response(Tt(r.body,Pt,n,(()=>{o&&o();m&&m()})),e)}l=l||"text";let g=await Bt[ce.findKey(Bt,l)||"text"](r,e);!s&&m&&m();return await new Promise(((t,n)=>{rt(t,n,{data:g,headers:tt.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:p})}))}catch(t){m&&m();if(t&&t.name==="TypeError"&&/fetch/i.test(t.message)){throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,p),{cause:t.cause||t})}throw ae.from(t,t&&t.code,e,p)}});const Dt={http:fe,xhr:xt,fetch:_t};ce.forEach(Dt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Lt=e=>`- ${e}`;const qt=e=>ce.isFunction(e)||e===null||e===false;var Mt={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n;let o;const i={};for(let r=0;r<t;r++){n=e[r];let t;o=n;if(!qt(n)){o=Dt[(t=String(n)).toLowerCase()];if(o===undefined){throw new ae(`Unknown adapter '${t}'`)}}if(o){break}i[t||"#"+r]=o}if(!o){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 n=t?e.length>1?"since :\n"+e.map(Lt).join("\n"):" "+Lt(e[0]):"as no adapter specified";throw new ae(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return o},adapters:Dt};function Ht(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new it(null,e)}}function $t(e){Ht(e);e.headers=tt.from(e.headers);e.data=nt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Mt.getAdapter(e.adapter||He.adapter);return t(e).then((function t(n){Ht(e);n.data=nt.call(e,e.transformResponse,n);n.headers=tt.from(n.headers);return n}),(function t(n){if(!ot(n)){Ht(e);if(n&&n.response){n.response.data=nt.call(e,e.transformResponse,n.response);n.response.headers=tt.from(n.response.headers)}}return Promise.reject(n)}))}const Kt="1.8.4";const Jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Jt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Xt={};Jt.transitional=function e(t,n,o){function i(e,t){return"[Axios v"+Kt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,r)=>{if(t===false){throw new ae(i(o," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED)}if(n&&!Xt[o]){Xt[o]=true;console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,r):true}};Jt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Wt(e,t,n){if(typeof e!=="object"){throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let i=o.length;while(i-- >0){const r=o[i];const s=t[r];if(s){const t=e[r];const n=t===undefined||s(t,r,e);if(n!==true){throw new ae("option "+r+" must be "+n,ae.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new ae("Unknown option "+r,ae.ERR_BAD_OPTION)}}}var Vt={assertOptions:Wt,validators:Jt};const Gt=Vt.validators;class Zt{constructor(e){this.defaults=e;this.interceptors={request:new Oe,response:new Oe}}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=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=wt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;if(n!==undefined){Vt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},false)}if(o!=null){if(ce.isFunction(o)){t.paramsSerializer={serialize:o}}else{Vt.assertOptions(o,{encode:Gt.function,serialize:Gt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Vt.assertOptions(t,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&ce.merge(i.common,i[t.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]}));t.headers=tt.concat(r,i);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;s.unshift(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=[$t.bind(this),undefined];e.unshift.apply(e,s);e.push.apply(e,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;u=0;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=$t.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=wt(this.defaults,e);const t=bt(e.baseURL,e.url,e.allowAbsoluteUrls);return ke(t,e.params,e.paramsSerializer)}}ce.forEach(["delete","get","head","options"],(function e(t){Zt.prototype[t]=function(e,n){return this.request(wt(n||{},{method:t,url:e,data:(n||{}).data}))}}));ce.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,i,r){return this.request(wt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Zt.prototype[t]=n();Zt.prototype[t+"Form"]=n(true)}));var Qt=Zt;class Yt{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,i,r){if(n.reason){return}n.reason=new it(o,i,r);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 Yt((function t(n){e=n}));return{token:t,cancel:e}}}var en=Yt;function tn(e){return function t(n){return e.apply(null,n)}}function nn(e){return ce.isObject(e)&&e.isAxiosError===true}const on={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};Object.entries(on).forEach((([e,t])=>{on[t]=e}));var rn=on;function sn(t){const n=new Qt(t);const o=e(Qt.prototype.request,n);ce.extend(o,Qt.prototype,n,{allOwnKeys:true});ce.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return sn(wt(t,n))};return o}const cn=sn(He);cn.Axios=Qt;cn.CanceledError=it;cn.CancelToken=en;cn.isCancel=ot;cn.VERSION=Kt;cn.toFormData=ge;cn.AxiosError=ae;cn.Cancel=cn.CanceledError;cn.all=function e(t){return Promise.all(t)};cn.spread=tn;cn.isAxiosError=nn;cn.mergeConfig=wt;cn.AxiosHeaders=tt;cn.formToJSON=e=>Le(ce.isHTMLForm(e)?new FormData(e):e);cn.getAdapter=Mt.getAdapter;cn.HttpStatusCode=rn;cn.default=cn;p=cn;return p}var g=b();var w=f(g);const v=d.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const y=()=>w.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:v}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const x='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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:center;align-items:center}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:center;align-items:center;-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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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 k=`<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 R=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.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=s(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.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}c(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,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,i,r,c,l,u,f,d,p,m,b,g,w,v,y,x,R;const O=this.first_name&&this.last_name&&a(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=O&&S;const T=((i=(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||i===void 0?void 0:i.enabled)===true;const C=[];if(((l=(c=(r=this.featureFlags)===null||r===void 0?void 0:r.toggles)===null||c===void 0?void 0:c.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){C.push({label:"Passcode",value:"passcode"})}if(((d=(f=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||f===void 0?void 0:f.find((e=>e.name==="email-verification")))===null||d===void 0?void 0:d.enabled)===true){C.push({label:"Email",value:"email"})}if(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){C.push({label:"SMS (One-Time Code)",value:"sms"})}if(((v=(w=(g=this.featureFlags)===null||g===void 0?void 0:g.toggles)===null||w===void 0?void 0:w.find((e=>e.name==="kba-verification")))===null||v===void 0?void 0:v.enabled)===true&&!!this.activeEntitlements.kba_auth){C.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(x=(y=this.featureFlags)===null||y===void 0?void 0:y.toggles)===null||x===void 0?void 0:x.find((e=>e.name==="id-verification")))===null||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){C.push({label:"ID Check",value:"id"})}return n("form",{key:"cba230aed78c493105a007d965938ef36c0676c5",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},n("div",{key:"436c7454a56df0f535f3aefdfff577a88dafa22c",class:"row"},n("label",{key:"b281d4c25f7b940d50700f808cdc9e7c3e235c63",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"ef6316233086a5b6f7d5230e64134d3d4d370401",class:"names-row"},n("input",{key:"bb1114f98ee766c4da332c635e9aabfddb0ea0c5",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:"8165b6a10ccec8cc699965a0e457c4984ba7e6d9",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:"50bb3ba19b9ebedaf5dc6b42ab9ee56b49baf316",anchor:this.firstNameFieldId,onClickAway:()=>this.showSuggestions=false,id:"verdocs-contact-picker-suggestions"},n("div",{key:"06d909db8340e219f56520cba088f39d024e23c9",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:k}),n("div",{class:"details"},n("div",{class:"name"},s(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"0fd66b40717c81b65a301ced6b6bf4b6ff7b6626",class:"row"},n("label",{key:"70956784b72087d8c1868595ec40dfbdee34ca87",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"35582c90e48b6f532fc75cc51525ca06162ebcc8",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})),T&&n("div",{key:"626950e0213dbc8fab07af0ac7682db19638c73c",class:"row"},n("label",{key:"12cfdd054564af5cc3573785d884c87b7b50bae4",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"8ecb757d6ee8acf6041c75f4fc0621ece470fcdf",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=h(e.target.value)}})),n(o,{key:"2023b0c925497df85590f0294597c38bde90b1da"},C.length>0&&n("div",{key:"eb16a51636c12027f228714283bc3a045b04f364",class:"row"},n("label",{key:"c53d976fa49aa4ff32d6e176aed1a425a19befca"},"Recipient Verification:"),n("verdocs-multiselect",{key:"6b84fd7b99c4b4f9e21242d444ead7238d3b12ec",label:"",placeholder:"None",options:C,selectedOptions:this.auth_methods,onSelectionChanged:e=>{this.auth_methods=e.detail.selectedOptions}})),this.auth_methods.includes("passcode")&&n("div",{key:"6e5059ea257eef3f44090348d5b264a0d4fca331",class:"row pin-code"},n("label",{key:"3c38728d9833d750e097c96b1df655d2c624cbaf",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"c067ad0b5e64554869d382b30034ad06f3f2287c",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:"aea4f4504c415602990370c74b8cbc4888cdb9c4",class:"row message"},n("label",{key:"293b04061121e45a161299a7c67742b35450f73e",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"27b597556563377a843865cfa1205d28c5a35440",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:"cd57ffae6c1fdb990b5cee5d2f93315b1e431ae2",class:"buttons"},n("div",{key:"229c636cd7d61eaeece868f1d64a787465913223",class:"flex-fill"}),n("verdocs-button",{key:"0014bda0bcef66e26df9cfad2e4ca09bad08419a",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"cc2456cc0e493b0449750e3950e28c6c3aa69fa2",label:"OK",size:"small",disabled:!E,onClick:!E?()=>{}:e=>this.handleSubmit(e)})))}};R.style=x;const O='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';const S=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>`;const E=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 15.75 7.5-7.5 7.5 7.5" /></svg>`;const T=class{constructor(n){e(this,n);this.selectionChanged=t(this,"selectionChanged");this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}handleToggleOption(e,t){var n;if(e.target.checked){this.selectedOptions=[...this.selectedOptions,t.value]}else{this.selectedOptions=this.selectedOptions.filter((e=>e!==t.value))}(n=this.selectionChanged)===null||n===void 0?void 0:n.emit({selectedOptions:this.selectedOptions})}render(){const e=`verdocs-dropdown-${l(8)}`;return n(i,{key:"eafa54e1dae78058303d3b80391745f85cd3eae1",class:this.showPicker?"open":"closed"},n("label",{key:"a584b5df194714f0ac33cba4c249f5360ba61985"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"ba8d22afa9a3b561906fc5866c7644ef8c6c9054",class:"input-wrapper"},n("button",{key:"517b669dc1a5a95cae442f316678068862e287b2",id:e,class:"trigger",value:"",onClick:()=>this.showPicker=!this.showPicker},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((e=>{var t;return n("span",{class:"selected-option"},((t=this.options.find((t=>t.value===e)))===null||t===void 0?void 0:t.label)||"Unknown")}))),n("div",{key:"aee9c3f227a6637e4589cfb858e9219548c57661",class:"icon",innerHTML:this.showPicker?E:S}),this.showPicker&&n("verdocs-portal",{key:"be42fed554514dd62147525a96e790a37e8bf67c",anchor:e,voffset:2,onClickAway:()=>this.showPicker=false,id:"verdocs-multiselect-menu-items"},this.options.map(((e,t)=>n("div",{class:"option",onClick:()=>this.showPicker=false},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.selectedOptions.includes(e.value),onInput:t=>this.handleToggleOption(t,e)}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label))))))))}};T.style=O;export{R as verdocs_contact_picker,T as verdocs_multiselect};
3
- //# sourceMappingURL=p-4437b439.entry.js.map
1
+ import{r as e,c as t,h as n,F as o,H as i}from"./p-CF7i8guW.js";import{VerdocsEndpoint as r,formatFullName as s,getActiveEntitlements as a,isValidEmail as c,randomString as l}from"@verdocs/js-sdk";import{c as u,g as d}from"./p-BFTU3MAI.js";import{B as f}from"./p-C_Xku1v2.js";import{d as p}from"./p-Bf-kinKl.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";
2
+ /*! Axios v1.8.4 Copyright (c) 2025 Matt Zabriskie and contributors */var h;var b;function m(){if(b)return h;b=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const o=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const i=e=>{e=e.toLowerCase();return t=>o(t)===e};const r=e=>t=>typeof t===e;const{isArray:s}=Array;const a=r("undefined");function c(e){return e!==null&&!a(e)&&e.constructor!==null&&!a(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l=i("ArrayBuffer");function d(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&l(e.buffer)}return t}const f=r("string");const p=r("function");const m=r("number");const g=e=>e!==null&&typeof e==="object";const w=e=>e===true||e===false;const v=e=>{if(o(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const x=i("Date");const y=i("File");const k=i("Blob");const R=i("FileList");const O=e=>g(e)&&p(e.pipe);const S=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||p(e.append)&&((t=o(e))==="formdata"||t==="object"&&p(e.toString)&&e.toString()==="[object FormData]"))};const E=i("URLSearchParams");const[T,C,A,j]=["ReadableStream","Request","Response","Headers"].map(i);const N=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function F(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let i;if(typeof e!=="object"){e=[e]}if(s(e)){for(o=0,i=e.length;o<i;o++){t.call(null,e[o],o,e)}}else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const r=i.length;let s;for(o=0;o<r;o++){s=i[o];t.call(null,e[s],s,e)}}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let i;while(o-- >0){i=n[o];if(t===i.toLowerCase()){return i}}return null}const U=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:u})();const B=e=>!a(e)&&e!==U;function z(){const{caseless:e}=B(this)&&this||{};const t={};const n=(n,o)=>{const i=e&&P(t,o)||o;if(v(t[i])&&v(n)){t[i]=z(t[i],n)}else if(v(n)){t[i]=z({},n)}else if(s(n)){t[i]=n.slice()}else{t[i]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&F(arguments[e],n)}return t}const I=(t,n,o,{allOwnKeys:i}={})=>{F(n,((n,i)=>{if(o&&p(n)){t[i]=e(n,o)}else{t[i]=n}}),{allOwnKeys:i});return t};const _=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const D=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const L=(e,t,o,i)=>{let r;let s;let a;const c={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);s=r.length;while(s-- >0){a=r[s];if((!i||i(a,e,t))&&!c[a]){t[a]=e[a];c[a]=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 M=e=>{if(!e)return null;if(s(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const H=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const $=(e,t)=>{const n=e&&e[Symbol.iterator];const o=n.call(e);let i;while((i=o.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const K=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const J=i("HTMLFormElement");const X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const W=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const V=i("RegExp");const G=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};F(n,((n,i)=>{let r;if((r=t(n,i,e))!==false){o[i]=r||n}}));Object.defineProperties(e,o)};const Z=e=>{G(e,((t,n)=>{if(p(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!p(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 Q=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};s(e)?o(e):o(String(e).split(t));return n};const Y=()=>{};const ee=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function te(e){return!!(e&&p(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ne=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[o]=e;const i=s(e)?[]:{};F(e,((e,t)=>{const r=n(e,o+1);!a(r)&&(i[t]=r)}));t[o]=undefined;return i}}return e};return n(e,0)};const oe=i("AsyncFunction");const ie=e=>e&&(g(e)||p(e))&&p(e.then)&&p(e.catch);const re=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{U.addEventListener("message",(({source:n,data:o})=>{if(n===U&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);U.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",p(U.postMessage));const se=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(U):typeof process!=="undefined"&&process.nextTick||re;var ae={isArray:s,isArrayBuffer:l,isBuffer:c,isFormData:S,isArrayBufferView:d,isString:f,isNumber:m,isBoolean:w,isObject:g,isPlainObject:v,isReadableStream:T,isRequest:C,isResponse:A,isHeaders:j,isUndefined:a,isDate:x,isFile:y,isBlob:k,isRegExp:V,isFunction:p,isStream:O,isURLSearchParams:E,isTypedArray:H,isFileList:R,forEach:F,merge:z,extend:I,trim:N,stripBOM:_,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:i,endsWith:q,toArray:M,forEachEntry:$,matchAll:K,isHTMLForm:J,hasOwnProperty:W,hasOwnProp:W,reduceDescriptors:G,freezeMethods:Z,toObjectSet:Q,toCamelCase:X,noop:Y,toFiniteNumber:ee,findKey:P,global:U,isContextDefined:B,isSpecCompliantForm:te,toJSONObject:ne,isAsyncFn:oe,isThenable:ie,setImmediate:re,asap:se};function ce(e,t,n,o,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(i){this.response=i;this.status=i.status?i.status:null}}ae.inherits(ce,Error,{toJSON:function 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:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const le=ce.prototype;const ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ue[e]={value:e}}));Object.defineProperties(ce,ue);Object.defineProperty(le,"isAxiosError",{value:true});ce.from=(e,t,n,o,i,r)=>{const s=Object.create(le);ae.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));ce.call(s,e.message,t,n,o,i);s.cause=e;s.name=e.name;r&&Object.assign(s,r);return s};var de=null;function fe(e){return ae.isPlainObject(e)||ae.isArray(e)}function pe(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function he(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=pe(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function be(e){return ae.isArray(e)&&!e.some(fe)}const me=ae.toFlatObject(ae,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ge(e,t,n){if(!ae.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=ae.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!ae.isUndefined(n[t])}));const o=n.metaTokens;const i=n.visitor||u;const r=n.dots;const s=n.indexes;const a=n.Blob||typeof Blob!=="undefined"&&Blob;const c=a&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(ae.isDate(e)){return e.toISOString()}if(!c&&ae.isBlob(e)){throw new ce("Blob is not supported. Use a Buffer instead.")}if(ae.isArrayBuffer(e)||ae.isTypedArray(e)){return c&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,i){let a=e;if(e&&!i&&typeof e==="object"){if(ae.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(ae.isArray(e)&&be(e)||(ae.isFileList(e)||ae.endsWith(n,"[]"))&&(a=ae.toArray(e))){n=pe(n);a.forEach((function e(o,i){!(ae.isUndefined(o)||o===null)&&t.append(s===true?he([n],i,r):s===null?n:n+"[]",l(o))}));return false}}if(fe(e)){return true}t.append(he(i,n,r),l(e));return false}const d=[];const f=Object.assign(me,{defaultVisitor:u,convertValue:l,isVisitable:fe});function p(e,n){if(ae.isUndefined(e))return;if(d.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}d.push(e);ae.forEach(e,(function e(o,r){const s=!(ae.isUndefined(o)||o===null)&&i.call(t,o,ae.isString(r)?r.trim():r,n,f);if(s===true){p(o,n?n.concat(r):[r])}}));d.pop()}if(!ae.isObject(e)){throw new TypeError("data must be an object")}p(e);return t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function ve(e,t){this._pairs=[];e&&ge(e,this,t)}const xe=ve.prototype;xe.append=function e(t,n){this._pairs.push([t,n])};xe.toString=function e(t){const n=t?function(e){return t.call(this,e,we)}:we;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ke(e,t,n){if(!t){return e}const o=n&&n.encode||ye;if(ae.isFunction(n)){n={serialize:n}}const i=n&&n.serialize;let r;if(i){r=i(t,n)}else{r=ae.isURLSearchParams(t)?t.toString():new ve(t,n).toString(o)}if(r){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Re{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){ae.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Oe=Re;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ee=typeof URLSearchParams!=="undefined"?URLSearchParams:ve;var Te=typeof FormData!=="undefined"?FormData:null;var Ce=typeof Blob!=="undefined"?Blob:null;var Ae={isBrowser:true,classes:{URLSearchParams:Ee,FormData:Te,Blob:Ce},protocols:["http","https","file","blob","url","data"]};const je=typeof window!=="undefined"&&typeof document!=="undefined";const Ne=typeof navigator==="object"&&navigator||undefined;const Fe=je&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0);const Pe=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const Ue=je&&window.location.href||"http://localhost";var Be=Object.freeze({__proto__:null,hasBrowserEnv:je,hasStandardBrowserWebWorkerEnv:Pe,hasStandardBrowserEnv:Fe,navigator:Ne,origin:Ue});var ze={...Be,...Ae};function Ie(e,t){return ge(e,new ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){if(ze.isNode&&ae.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)}},t))}function _e(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function De(e){const t={};const n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++){r=n[o];t[r]=e[r]}return t}function Le(e){function t(e,n,o,i){let r=e[i++];if(r==="__proto__")return true;const s=Number.isFinite(+r);const a=i>=e.length;r=!r&&ae.isArray(o)?o.length:r;if(a){if(ae.hasOwnProp(o,r)){o[r]=[o[r],n]}else{o[r]=n}return!s}if(!o[r]||!ae.isObject(o[r])){o[r]=[]}const c=t(e,n,o[r],i);if(c&&ae.isArray(o[r])){o[r]=De(o[r])}return!s}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};ae.forEachEntry(e,((e,o)=>{t(_e(e),o,n,0)}));return n}return null}function qe(e,t,n){if(ae.isString(e)){try{(0,JSON.parse)(e);return ae.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Me={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const i=o.indexOf("application/json")>-1;const r=ae.isObject(t);if(r&&ae.isHTMLForm(t)){t=new FormData(t)}const s=ae.isFormData(t);if(s){return i?JSON.stringify(Le(t)):t}if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t)){return t}if(ae.isArrayBufferView(t)){return t.buffer}if(ae.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let a;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){return Ie(t,this.formSerializer).toString()}if((a=ae.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ge(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(r||i){n.setContentType("application/json",false);return qe(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Me.transitional;const o=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(ae.isResponse(t)||ae.isReadableStream(t)){return t}if(t&&ae.isString(t)&&(o&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw ce.from(e,ce.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ae.forEach(["delete","get","head","post","put","patch"],(e=>{Me.headers[e]={}}));var He=Me;const $e=ae.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 i;e&&e.split("\n").forEach((function e(r){i=r.indexOf(":");n=r.substring(0,i).trim().toLowerCase();o=r.substring(i+1).trim();if(!n||t[n]&&$e[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};const Je=Symbol("internals");function Xe(e){return e&&String(e).trim().toLowerCase()}function We(e){if(e===false||e==null){return e}return ae.isArray(e)?e.map(We):String(e)}function Ve(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 Ge=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ze(e,t,n,o,i){if(ae.isFunction(o)){return o.call(this,t,n)}if(i){t=n}if(!ae.isString(t))return;if(ae.isString(o)){return t.indexOf(o)!==-1}if(ae.isRegExp(o)){return o.test(t)}}function Qe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Ye(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:true})}))}class et{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(e,t,n){const i=Xe(t);if(!i){throw new Error("header name must be a non-empty string")}const r=ae.findKey(o,i);if(!r||o[r]===undefined||n===true||n===undefined&&o[r]!==false){o[r||t]=We(e)}}const r=(e,t)=>ae.forEach(e,((e,n)=>i(e,n,t)));if(ae.isPlainObject(e)||e instanceof this.constructor){r(e,t)}else if(ae.isString(e)&&(e=e.trim())&&!Ge(e)){r(Ke(e),t)}else if(ae.isHeaders(e)){for(const[t,o]of e.entries()){i(o,t,n)}}else{e!=null&&i(t,e,n)}return this}get(e,t){e=Xe(e);if(e){const n=ae.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ve(e)}if(ae.isFunction(t)){return t.call(this,e,n)}if(ae.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Xe(e);if(e){const n=ae.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||Ze(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function i(e){e=Xe(e);if(e){const i=ae.findKey(n,e);if(i&&(!t||Ze(n,n[i],i,t))){delete n[i];o=true}}}if(ae.isArray(e)){e.forEach(i)}else{i(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const i=t[n];if(!e||Ze(this,this[i],i,e,true)){delete this[i];o=true}}return o}normalize(e){const t=this;const n={};ae.forEach(this,((o,i)=>{const r=ae.findKey(n,i);if(r){t[r]=We(o);delete t[i];return}const s=e?Qe(i):String(i).trim();if(s!==i){delete t[i]}t[s]=We(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);ae.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&ae.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")}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[Je]=this[Je]={accessors:{}};const n=t.accessors;const o=this.prototype;function i(e){const t=Xe(e);if(!n[t]){Ye(o,e);n[t]=true}}ae.isArray(e)?e.forEach(i):i(e);return this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));ae.freezeMethods(et);var tt=et;function nt(e,t){const n=this||He;const o=t||n;const i=tt.from(o.headers);let r=o.data;ae.forEach(e,(function e(o){r=o.call(n,r,i.normalize(),t?t.status:undefined)}));i.normalize();return r}function ot(e){return!!(e&&e.__CANCEL__)}function it(e,t,n){ce.call(this,e==null?"canceled":e,ce.ERR_CANCELED,t,n);this.name="CanceledError"}ae.inherits(it,ce,{__CANCEL__:true});function rt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function st(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function at(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let i=0;let r=0;let s;t=t!==undefined?t:1e3;return function a(c){const l=Date.now();const u=o[r];if(!s){s=l}n[i]=c;o[i]=l;let d=r;let f=0;while(d!==i){f+=n[d++];d=d%e}i=(i+1)%e;if(i===r){r=(r+1)%e}if(l-s<t){return}const p=u&&l-u;return p?Math.round(f*1e3/p):undefined}}function ct(e,t){let n=0;let o=1e3/t;let i;let r;const s=(t,o=Date.now())=>{n=o;i=null;if(r){clearTimeout(r);r=null}e.apply(null,t)};const a=(...e)=>{const t=Date.now();const a=t-n;if(a>=o){s(e,t)}else{i=e;if(!r){r=setTimeout((()=>{r=null;s(i)}),o-a)}}};const c=()=>i&&s(i);return[a,c]}const lt=(e,t,n=3)=>{let o=0;const i=at(50,250);return ct((n=>{const r=n.loaded;const s=n.lengthComputable?n.total:undefined;const a=r-o;const c=i(a);const l=r<=s;o=r;const u={loaded:r,total:s,progress:s?r/s:undefined,bytes:a,rate:c?c:undefined,estimated:c&&s&&l?(s-r)/c:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const ut=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const dt=e=>(...t)=>ae.asap((()=>e(...t)));var ft=ze.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,ze.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>true;var pt=ze.hasStandardBrowserEnv?{write(e,t,n,o,i,r){const s=[e+"="+encodeURIComponent(t)];ae.isNumber(n)&&s.push("expires="+new Date(n).toGMTString());ae.isString(o)&&s.push("path="+o);ae.isString(i)&&s.push("domain="+i);r===true&&s.push("secure");document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ht(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mt(e,t,n){let o=!ht(t);if(e&&(o||n==false)){return bt(e,t)}return t}const gt=e=>e instanceof tt?{...e}:e;function wt(e,t){t=t||{};const n={};function o(e,t,n,o){if(ae.isPlainObject(e)&&ae.isPlainObject(t)){return ae.merge.call({caseless:o},e,t)}else if(ae.isPlainObject(t)){return ae.merge({},t)}else if(ae.isArray(t)){return t.slice()}return t}function i(e,t,n,i){if(!ae.isUndefined(t)){return o(e,t,n,i)}else if(!ae.isUndefined(e)){return o(undefined,e,n,i)}}function r(e,t){if(!ae.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!ae.isUndefined(t)){return o(undefined,t)}else if(!ae.isUndefined(e)){return o(undefined,e)}}function a(n,i,r){if(r in t){return o(n,i)}else if(r in e){return o(undefined,n)}}const c={url:r,method:r,data:r,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,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(gt(e),gt(t),n,true)};ae.forEach(Object.keys(Object.assign({},e,t)),(function o(r){const s=c[r]||i;const l=s(e[r],t[r],r);ae.isUndefined(l)&&s!==a||(n[r]=l)}));return n}var vt=e=>{const t=wt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:a}=t;t.headers=s=tt.from(s);t.url=ke(mt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(a){s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")))}let c;if(ae.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if((c=s.getContentType())!==false){const[e,...t]=c?c.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}}if(ze.hasStandardBrowserEnv){o&&ae.isFunction(o)&&(o=o(t));if(o||o!==false&&ft(t.url)){const e=i&&r&&pt.read(r);if(e){s.set(i,e)}}}return t};const xt=typeof XMLHttpRequest!=="undefined";var yt=xt&&function(e){return new Promise((function t(n,o){const i=vt(e);let r=i.data;const s=tt.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i;let u;let d,f;let p,h;function b(){p&&p();h&&h();i.cancelToken&&i.cancelToken.unsubscribe(u);i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,true);m.timeout=i.timeout;function g(){if(!m){return}const t=tt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());const i=!a||a==="text"||a==="json"?m.responseText:m.response;const r={data:i,status:m.status,statusText:m.statusText,headers:t,config:e,request:m};rt((function e(t){n(t);b()}),(function e(t){o(t);b()}),r);m=null}if("onloadend"in m){m.onloadend=g}else{m.onreadystatechange=function e(){if(!m||m.readyState!==4){return}if(m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}m.onabort=function t(){if(!m){return}o(new ce("Request aborted",ce.ECONNABORTED,e,m));m=null};m.onerror=function t(){o(new ce("Network Error",ce.ERR_NETWORK,e,m));m=null};m.ontimeout=function t(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Se;if(i.timeoutErrorMessage){n=i.timeoutErrorMessage}o(new ce(n,r.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,m));m=null};r===undefined&&s.setContentType(null);if("setRequestHeader"in m){ae.forEach(s.toJSON(),(function e(t,n){m.setRequestHeader(n,t)}))}if(!ae.isUndefined(i.withCredentials)){m.withCredentials=!!i.withCredentials}if(a&&a!=="json"){m.responseType=i.responseType}if(l){[f,h]=lt(l,true);m.addEventListener("progress",f)}if(c&&m.upload){[d,p]=lt(c);m.upload.addEventListener("progress",d);m.upload.addEventListener("loadend",p)}if(i.cancelToken||i.signal){u=t=>{if(!m){return}o(!t||t.type?new it(null,e,m):t);m.abort();m=null};i.cancelToken&&i.cancelToken.subscribe(u);if(i.signal){i.signal.aborted?u():i.signal.addEventListener("abort",u)}}const w=st(i.url);if(w&&ze.protocols.indexOf(w)===-1){o(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,e));return}m.send(r||null)}))};const kt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const i=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ce?t:new it(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null;i(new ce(`timeout ${t} of ms exceeded`,ce.ETIMEDOUT))}),t);const s=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null}};e.forEach((e=>e.addEventListener("abort",i)));const{signal:a}=n;a.unsubscribe=()=>ae.asap(s);return a}};var Rt=kt;const Ot=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let i;while(o<n){i=o+t;yield e.slice(o,i);o=i}};const St=async function*(e,t){for await(const n of Et(e)){yield*Ot(n,t)}};const Et=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 Tt=(e,t,n,o)=>{const i=St(e,t);let r=0;let s;let a=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await i.next();if(t){a();e.close();return}let s=o.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){a(e);throw e}},cancel(e){a(e);return i.return()}},{highWaterMark:2})};const Ct=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const At=Ct&&typeof ReadableStream==="function";const jt=Ct&&(typeof TextEncoder==="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer()));const Nt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Ft=At&&Nt((()=>{let e=false;const t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const Pt=64*1024;const Ut=At&&Nt((()=>ae.isReadableStream(new Response("").body)));const Bt={stream:Ut&&(e=>e.body)};Ct&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Bt[t]&&(Bt[t]=ae.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ce(`Response type '${t}' is not supported`,ce.ERR_NOT_SUPPORT,n)})}))})(new Response);const zt=async e=>{if(e==null){return 0}if(ae.isBlob(e)){return e.size}if(ae.isSpecCompliantForm(e)){const t=new Request(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(ae.isArrayBufferView(e)||ae.isArrayBuffer(e)){return e.byteLength}if(ae.isURLSearchParams(e)){e=e+""}if(ae.isString(e)){return(await jt(e)).byteLength}};const It=async(e,t)=>{const n=ae.toFiniteNumber(e.getContentLength());return n==null?zt(t):n};var _t=Ct&&(async e=>{let{url:t,method:n,data:o,signal:i,cancelToken:r,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=vt(e);l=l?(l+"").toLowerCase():"text";let p=Rt([i,r&&r.toAbortSignal()],s);let h;const b=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&Ft&&n!=="get"&&n!=="head"&&(m=await It(u,o))!==0){let e=new Request(t,{method:"POST",body:o,duplex:"half"});let n;if(ae.isFormData(o)&&(n=e.headers.get("content-type"))){u.setContentType(n)}if(e.body){const[t,n]=ut(m,lt(dt(c)));o=Tt(e.body,Pt,t,n)}}if(!ae.isString(d)){d=d?"include":"omit"}const i="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:i?d:undefined});let r=await fetch(h);const s=Ut&&(l==="stream"||l==="response");if(Ut&&(a||s&&b)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=ae.toFiniteNumber(r.headers.get("content-length"));const[n,o]=a&&ut(t,lt(dt(a),true))||[];r=new Response(Tt(r.body,Pt,n,(()=>{o&&o();b&&b()})),e)}l=l||"text";let g=await Bt[ae.findKey(Bt,l)||"text"](r,e);!s&&b&&b();return await new Promise(((t,n)=>{rt(t,n,{data:g,headers:tt.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:h})}))}catch(t){b&&b();if(t&&t.name==="TypeError"&&/fetch/i.test(t.message)){throw Object.assign(new ce("Network Error",ce.ERR_NETWORK,e,h),{cause:t.cause||t})}throw ce.from(t,t&&t.code,e,h)}});const Dt={http:de,xhr:yt,fetch:_t};ae.forEach(Dt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Lt=e=>`- ${e}`;const qt=e=>ae.isFunction(e)||e===null||e===false;var Mt={getAdapter:e=>{e=ae.isArray(e)?e:[e];const{length:t}=e;let n;let o;const i={};for(let r=0;r<t;r++){n=e[r];let t;o=n;if(!qt(n)){o=Dt[(t=String(n)).toLowerCase()];if(o===undefined){throw new ce(`Unknown adapter '${t}'`)}}if(o){break}i[t||"#"+r]=o}if(!o){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 n=t?e.length>1?"since :\n"+e.map(Lt).join("\n"):" "+Lt(e[0]):"as no adapter specified";throw new ce(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return o},adapters:Dt};function Ht(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new it(null,e)}}function $t(e){Ht(e);e.headers=tt.from(e.headers);e.data=nt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Mt.getAdapter(e.adapter||He.adapter);return t(e).then((function t(n){Ht(e);n.data=nt.call(e,e.transformResponse,n);n.headers=tt.from(n.headers);return n}),(function t(n){if(!ot(n)){Ht(e);if(n&&n.response){n.response.data=nt.call(e,e.transformResponse,n.response);n.response.headers=tt.from(n.response.headers)}}return Promise.reject(n)}))}const Kt="1.8.4";const Jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Jt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Xt={};Jt.transitional=function e(t,n,o){function i(e,t){return"[Axios v"+Kt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,r)=>{if(t===false){throw new ce(i(o," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED)}if(n&&!Xt[o]){Xt[o]=true;console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,r):true}};Jt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Wt(e,t,n){if(typeof e!=="object"){throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let i=o.length;while(i-- >0){const r=o[i];const s=t[r];if(s){const t=e[r];const n=t===undefined||s(t,r,e);if(n!==true){throw new ce("option "+r+" must be "+n,ce.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new ce("Unknown option "+r,ce.ERR_BAD_OPTION)}}}var Vt={assertOptions:Wt,validators:Jt};const Gt=Vt.validators;class Zt{constructor(e){this.defaults=e;this.interceptors={request:new Oe,response:new Oe}}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=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=wt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;if(n!==undefined){Vt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},false)}if(o!=null){if(ae.isFunction(o)){t.paramsSerializer={serialize:o}}else{Vt.assertOptions(o,{encode:Gt.function,serialize:Gt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Vt.assertOptions(t,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&ae.merge(i.common,i[t.method]);i&&ae.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]}));t.headers=tt.concat(r,i);const s=[];let a=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}a=a&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const c=[];this.interceptors.response.forEach((function e(t){c.push(t.fulfilled,t.rejected)}));let l;let u=0;let d;if(!a){const e=[$t.bind(this),undefined];e.unshift.apply(e,s);e.push.apply(e,c);d=e.length;l=Promise.resolve(t);while(u<d){l=l.then(e[u++],e[u++])}return l}d=s.length;let f=t;u=0;while(u<d){const e=s[u++];const t=s[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=$t.call(this,f)}catch(e){return Promise.reject(e)}u=0;d=c.length;while(u<d){l=l.then(c[u++],c[u++])}return l}getUri(e){e=wt(this.defaults,e);const t=mt(e.baseURL,e.url,e.allowAbsoluteUrls);return ke(t,e.params,e.paramsSerializer)}}ae.forEach(["delete","get","head","options"],(function e(t){Zt.prototype[t]=function(e,n){return this.request(wt(n||{},{method:t,url:e,data:(n||{}).data}))}}));ae.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,i,r){return this.request(wt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Zt.prototype[t]=n();Zt.prototype[t+"Form"]=n(true)}));var Qt=Zt;class Yt{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,i,r){if(n.reason){return}n.reason=new it(o,i,r);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 Yt((function t(n){e=n}));return{token:t,cancel:e}}}var en=Yt;function tn(e){return function t(n){return e.apply(null,n)}}function nn(e){return ae.isObject(e)&&e.isAxiosError===true}const on={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};Object.entries(on).forEach((([e,t])=>{on[t]=e}));var rn=on;function sn(t){const n=new Qt(t);const o=e(Qt.prototype.request,n);ae.extend(o,Qt.prototype,n,{allOwnKeys:true});ae.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return sn(wt(t,n))};return o}const an=sn(He);an.Axios=Qt;an.CanceledError=it;an.CancelToken=en;an.isCancel=ot;an.VERSION=Kt;an.toFormData=ge;an.AxiosError=ce;an.Cancel=an.CanceledError;an.all=function e(t){return Promise.all(t)};an.spread=tn;an.isAxiosError=nn;an.mergeConfig=wt;an.AxiosHeaders=tt;an.formToJSON=e=>Le(ae.isHTMLForm(e)?new FormData(e):e);an.getAdapter=Mt.getAdapter;an.HttpStatusCode=rn;an.default=an;h=an;return h}var g=m();var w=d(g);const v=f.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const x=()=>w.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:v}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const y='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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:center;align-items:center}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:center;align-items:center;-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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", 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 k=`<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 R=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.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=s(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.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}a(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)));x().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,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,i,r,a,l,u,d,f,h,b,m,g,w,v,x,y,R;const O=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=O&&S;const T=((i=(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||i===void 0?void 0:i.enabled)===true;const C=[];if(((l=(a=(r=this.featureFlags)===null||r===void 0?void 0:r.toggles)===null||a===void 0?void 0:a.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){C.push({label:"Passcode",value:"passcode"})}if(((f=(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||f===void 0?void 0:f.enabled)===true){C.push({label:"Email",value:"email"})}if(T&&((m=(b=(h=this.featureFlags)===null||h===void 0?void 0:h.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){C.push({label:"SMS (One-Time Code)",value:"sms"})}if(((v=(w=(g=this.featureFlags)===null||g===void 0?void 0:g.toggles)===null||w===void 0?void 0:w.find((e=>e.name==="kba-verification")))===null||v===void 0?void 0:v.enabled)===true&&!!this.activeEntitlements.kba_auth){C.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(y=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||y===void 0?void 0:y.find((e=>e.name==="id-verification")))===null||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){C.push({label:"ID Check",value:"id"})}return n("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},n("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},n("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",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:"30ae8e6b5c52c45bad07572a9357c575fd248df1",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:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",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:k}),n("div",{class:"details"},n("div",{class:"name"},s(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},n("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",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})),T&&n("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},n("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",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=p(e.target.value)}})),n(o,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},C.length>0&&n("div",{key:"3ed87d777cc9a086842d313a3847b53e37718b16",class:"row"},n("label",{key:"a2023551b391295f3b02b870d8a6cde114f886e1"},"Recipient Verification:"),n("verdocs-multiselect",{key:"e0c2a67e5af1e4cc180f930afdb669e193386887",label:"",placeholder:"None",options:C,selectedOptions:this.auth_methods,onSelectionChanged:e=>{this.auth_methods=e.detail.selectedOptions}})),this.auth_methods.includes("passcode")&&n("div",{key:"bb642c732810018b4cd632c4a15b96adf8418d22",class:"row pin-code"},n("label",{key:"49577405baf6648f0b45fdbdbce1f4420b9a2d3e",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"0e882262adae55eb9a4330fe50524bb4b3039bce",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:"c65a7b447f5ff83987e0711ea0574e2c0c41cbab",class:"row message"},n("label",{key:"385b7668c835fbe613f4e2f1496379039d7bb261",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"5550bba6455255244263cf6f5f6b4580c7d1af96",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:"3f65a4ad852bcd090c6fc32d407530bc6f08ef91",class:"buttons"},n("div",{key:"c025ed16ee29a5fd3c2de4b6bf64a2e94710ca14",class:"flex-fill"}),n("verdocs-button",{key:"e50b8bef83b2229eec315d0431d299140d580f62",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"47d5da21041915d12909456d26204215f6e96abc",label:"OK",size:"small",disabled:!E,onClick:!E?()=>{}:e=>this.handleSubmit(e)})))}};R.style=y;const O='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif;position:relative}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}verdocs-multiselect .verdocs-multiselect-dropdown{left:0;top:30px;width:210px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}verdocs-multiselect .verdocs-multiselect-dropdown .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-multiselect .verdocs-multiselect-dropdown label{font-size:13px}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';const S=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>`;const E=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 15.75 7.5-7.5 7.5 7.5" /></svg>`;const T=class{constructor(n){e(this,n);this.selectionChanged=t(this,"selectionChanged");this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}handleToggleOption(e,t){var n;if(e.target.checked){this.selectedOptions=[...this.selectedOptions,t.value]}else{this.selectedOptions=this.selectedOptions.filter((e=>e!==t.value))}(n=this.selectionChanged)===null||n===void 0?void 0:n.emit({selectedOptions:this.selectedOptions})}render(){const e=`verdocs-dropdown-${l(8)}`;return n(i,{key:"eafa54e1dae78058303d3b80391745f85cd3eae1",class:this.showPicker?"open":"closed"},n("label",{key:"a584b5df194714f0ac33cba4c249f5360ba61985"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"ba8d22afa9a3b561906fc5866c7644ef8c6c9054",class:"input-wrapper"},n("button",{key:"517b669dc1a5a95cae442f316678068862e287b2",id:e,class:"trigger",value:"",onClick:()=>this.showPicker=!this.showPicker},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((e=>{var t;return n("span",{class:"selected-option"},((t=this.options.find((t=>t.value===e)))===null||t===void 0?void 0:t.label)||"Unknown")}))),n("div",{key:"aee9c3f227a6637e4589cfb858e9219548c57661",class:"icon",innerHTML:this.showPicker?E:S}),this.showPicker&&n("div",{key:"6bd6ffc79bf6b09b31c7de4b367704fc1988e87d",class:"verdocs-multiselect-dropdown"},this.options.map(((e,t)=>n("div",{class:"option",onClick:()=>this.showPicker=false},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.selectedOptions.includes(e.value),onInput:t=>this.handleToggleOption(t,e)}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label))))))))}};T.style=O;export{R as verdocs_contact_picker,T as verdocs_multiselect};
3
+ //# sourceMappingURL=p-5badc484.entry.js.map