@syncfy/authentication-widget 0.0.15 → 0.0.16

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.
@@ -681,7 +681,7 @@
681
681
  */cs(Lz,Dz,"app");function $z(){const t=Gx({apiKey:"AIzaSyC9JxQ4ULW2nC-tBNwsZ52OTQnS9mIeeS8",authDomain:"syncfy-widget.firebaseapp.com",projectId:"syncfy-widget",storageBucket:"syncfy-widget.appspot.com",messagingSenderId:"406921126981",appId:"1:406921126981:web:788d7d85203868101aaf2c",measurementId:"G-FYDLPN68N8"});O6(t),Ln("load")}function Ln(e,t){const r=O6();R6(r,e,{environment:{}.NODE_ENV,eventAction:e,...t||{}})}function yl(e){this._maxSize=e,this.clear()}yl.prototype.clear=function(){this._size=0,this._values=Object.create(null)},yl.prototype.get=function(e){return this._values[e]},yl.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var zz=/[^.^\]^[]+|(?=\[\]|\.\.)/g,L6=/^\d+$/,Uz=/^\d/,Vz=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,qz=/^\s*(['"]?)(.*?)(\1)\s*$/,Bg=512,D6=new yl(Bg),$6=new yl(Bg),z6=new yl(Bg),bl={Cache:yl,split:Ng,normalizePath:kg,setter:function(e){var t=kg(e);return $6.get(e)||$6.set(e,function(n,a){for(var i=0,o=t.length,l=n;i<o-1;){var u=t[i];if(u==="__proto__"||u==="constructor"||u==="prototype")return n;l=l[t[i++]]}l[t[i]]=a})},getter:function(e,t){var r=kg(e);return z6.get(e)||z6.set(e,function(a){for(var i=0,o=r.length;i<o;)if(a!=null||!t)a=a[r[i++]];else return;return a})},join:function(e){return e.reduce(function(t,r){return t+(Og(r)||L6.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Hz(Array.isArray(e)?e:Ng(e),t,r)}};function kg(e){return D6.get(e)||D6.set(e,Ng(e).map(function(t){return t.replace(qz,"$2")}))}function Ng(e){return e.match(zz)||[""]}function Hz(e,t,r){var n=e.length,a,i,o,l;for(i=0;i<n;i++)a=e[i],a&&(Wz(a)&&(a='"'+a+'"'),l=Og(a),o=!l&&/^\d+$/.test(a),t.call(r,a,l,o,i,e))}function Og(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function jz(e){return e.match(Uz)&&!e.match(L6)}function Kz(e){return Vz.test(e)}function Wz(e){return!Og(e)&&(jz(e)||Kz(e))}const Gz=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Ed=e=>e.match(Gz)||[],xd=e=>e[0].toUpperCase()+e.slice(1),Rg=(e,t)=>Ed(e).join(t).toLowerCase(),U6=e=>Ed(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Pg={words:Ed,upperFirst:xd,camelCase:U6,pascalCase:e=>xd(U6(e)),snakeCase:e=>Rg(e,"_"),kebabCase:e=>Rg(e,"-"),sentenceCase:e=>xd(Rg(e," ")),titleCase:e=>Ed(e).map(xd).join(" ")},Fg={exports:{}};Fg.exports=function(e){return V6(Zz(e),e)},Fg.exports.array=V6;function V6(e,t){var r=e.length,n=new Array(r),a={},i=r,o=Yz(t),l=Jz(e);for(t.forEach(function(c){if(!l.has(c[0])||!l.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)a[i]||u(e[i],i,new Set);return n;function u(c,d,v){if(v.has(c)){var m;try{m=", node was:"+JSON.stringify(c)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!l.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!a[d]){a[d]=!0;var b=o.get(c)||new Set;if(b=Array.from(b),d=b.length){v.add(c);do{var _=b[--d];u(_,l.get(_),v)}while(d);v.delete(c)}n[--r]=c}}}function Zz(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}function Yz(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}function Jz(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var Xz=Fg.exports;const Qz=cd(Xz),eU=Object.prototype.toString,tU=Error.prototype.toString,rU=RegExp.prototype.toString,nU=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",iU=/^Symbol\((.*)\)(.*)$/;function aU(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function q6(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return aU(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return nU.call(e).replace(iU,"Symbol($1)");const n=eU.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+tU.call(e)+"]":n==="RegExp"?rU.call(e):null}function To(e,t){let r=q6(e,t);return r!==null?r:JSON.stringify(e,function(n,a){let i=q6(this[n],t);return i!==null?i:a},2)}function H6(e){return e==null?[]:[].concat(e)}let j6,K6,W6,oU=/\$\{\s*(\w+)\s*\}/g;j6=Symbol.toStringTag;class G6{constructor(t,r,n,a){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[j6]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=a,this.errors=[],this.inner=[],H6(t).forEach(i=>{if(Dn.isError(i)){this.errors.push(...i.errors);const o=i.inner.length?i.inner:[i];this.inner.push(...o)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}K6=Symbol.hasInstance,W6=Symbol.toStringTag;class Dn extends Error{static formatError(t,r){const n=r.label||r.path||"this";return r=Object.assign({},r,{path:n,originalPath:r.path}),typeof t=="string"?t.replace(oU,(a,i)=>To(r[i])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,a,i){const o=new G6(t,r,n,a);if(i)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[W6]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Dn)}static[K6](t){return G6[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let ja={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const a=n!=null&&n!==r?` (cast from the value \`${To(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${To(r,!0)}\``+a:`${e} must match the configured type. The validated value was: \`${To(r,!0)}\``+a}},fi={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ds={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Lg={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Dg={isValue:"${path} field must be ${value}"},Sd={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Md={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:ja,string:fi,number:ds,date:Lg,object:Sd,array:Md,boolean:Dg,tuple:{notType:e=>{const{path:t,value:r,spec:n}=e,a=n.types.length;if(Array.isArray(r)){if(r.length<a)return`${t} tuple value has too few items, expected a length of ${a} but got ${r.length} for value: \`${To(r,!0)}\``;if(r.length>a)return`${t} tuple value has too many items, expected a length of ${a} but got ${r.length} for value: \`${To(r,!0)}\``}return Dn.formatError(ja.notType,e)}}});const fc=e=>e&&e.__isYupSchema__;class Cd{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:a,otherwise:i}=r,o=typeof n=="function"?n:(...l)=>l.every(u=>u===n);return new Cd(t,(l,u)=>{var c;let d=o(...l)?a:i;return(c=d==null?void 0:d(u))!=null?c:u})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(i=>i.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),a=this.fn(n,t,r);if(a===void 0||a===t)return t;if(!fc(a))throw new TypeError("conditions must return a schema object");return a.resolve(r)}}const Td={context:"$",value:"."};class _l{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Td.context,this.isValue=this.key[0]===Td.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Td.context:this.isValue?Td.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&bl.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let a=this.isContext?n:this.isValue?t:r;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}_l.prototype.__isYupRef=!0;const ma=e=>e==null;function Fu(e){function t({value:r,path:n="",options:a,originalValue:i,schema:o},l,u){const{name:c,test:d,params:v,message:m,skipAbsent:b}=e;let{parent:_,context:S,abortEarly:T=o.spec.abortEarly,disableStackTrace:C=o.spec.disableStackTrace}=a;function I(M){return _l.isRef(M)?M.getValue(r,_,S):M}function B(M={}){const s=Object.assign({value:r,originalValue:i,label:o.spec.label,path:M.path||n,spec:o.spec,disableStackTrace:M.disableStackTrace||C},v,M.params);for(const p of Object.keys(s))s[p]=I(s[p]);const h=new Dn(Dn.formatError(M.message||m,s),r,s.path,M.type||c,s.disableStackTrace);return h.params=s,h}const N=T?l:u;let O={path:n,parent:_,type:c,from:a.from,createError:B,resolve:I,options:a,originalValue:i,schema:o};const P=M=>{Dn.isError(M)?N(M):M?u(null):N(B())},L=M=>{Dn.isError(M)?N(M):l(M)};if(b&&ma(r))return P(!0);let z;try{var K;if(z=d.call(O,r,O),typeof((K=z)==null?void 0:K.then)=="function"){if(a.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(z).then(P,L)}}catch(M){L(M);return}P(z)}return t.OPTIONS=e,t}function sU(e,t,r,n=r){let a,i,o;return t?(bl.forEach(t,(l,u,c)=>{let d=u?l.slice(1,l.length-1):l;e=e.resolve({context:n,parent:a,value:r});let v=e.type==="tuple",m=c?parseInt(d,10):0;if(e.innerType||v){if(v&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&m>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[m],e=v?e.spec.types[m]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);a=r,r=r&&r[d],e=e.fields[d]}i=d,o=u?"["+l+"]":"."+l}),{schema:e,parent:a,parentPath:i}):{parent:a,parentPath:t,schema:e}}class Ad extends Set{describe(){const t=[];for(const r of this.values())t.push(_l.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new Ad(this.values())}merge(t,r){const n=this.clone();return t.forEach(a=>n.add(a)),r.forEach(a=>n.delete(a)),n}}function Lu(e,t=new Map){if(fc(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Lu(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,a]of e.entries())r.set(n,Lu(a,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(Lu(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,a]of Object.entries(e))r[n]=Lu(a,t)}else throw Error(`Unable to clone ${e}`);return r}let ci=class{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ad,this._blacklist=new Ad,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ja.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Lu(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const a=Object.assign({},r.spec,n.spec);return n.spec=a,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(i=>{t.tests.forEach(o=>{i.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((a,i)=>i.resolve(a,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,a,i;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(a=t.recursive)!=null?a:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),a=r.assert==="ignore-optionality",i=n._cast(t,r);if(r.assert!==!1&&!n.isType(i)){if(a&&ma(i))return i;let o=To(t),l=To(i);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
682
682
 
683
683
  attempted value: ${o}
684
- `+(l!==o?`result of cast: ${l}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((a,i)=>i.call(this,a,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,a){let{path:i,originalValue:o=t,strict:l=this.spec.strict}=r,u=t;l||(u=this._cast(u,Object.assign({assert:!1},r)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:i,value:u,originalValue:o,options:r,tests:c},n,d=>{if(d.length)return a(d,u);this.runTests({path:i,value:u,originalValue:o,options:r,tests:this.tests},n,a)})}runTests(t,r,n){let a=!1,{tests:i,value:o,originalValue:l,path:u,options:c}=t,d=S=>{a||(a=!0,r(S,o))},v=S=>{a||(a=!0,n(S,o))},m=i.length,b=[];if(!m)return v([]);let _={value:o,originalValue:l,path:u,options:c,schema:this};for(let S=0;S<i.length;S++){const T=i[S];T(_,d,function(I){I&&(Array.isArray(I)?b.push(...I):b.push(I)),--m<=0&&v(b)})}}asNestedTest({key:t,index:r,parent:n,parentPath:a,originalParent:i,options:o}){const l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let c=n[l];const d=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${a||""}[${u?l:`"${l}"`}]`:(a?`${a}.`:"")+t});return(v,m,b)=>this.resolve(d)._validate(c,d,m,b)}validate(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return new Promise((o,l)=>a._validate(t,r,(u,c)=>{Dn.isError(u)&&(u.value=c),l(u)},(u,c)=>{u.length?l(new Dn(u,c,void 0,void 0,i)):o(c)}))}validateSync(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return a._validate(t,Object.assign({},r,{sync:!0}),(l,u)=>{throw Dn.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new Dn(l,t,void 0,void 0,o);i=u}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Dn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Dn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Lu(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Fu({message:r,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Fu({message:r,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=ja.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ja.notNull){return this.nullability(!1,t)}required(t=ja.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=ja.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),a=Fu(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===a.OPTIONS.test))),n.tests.push(a),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),a=H6(t).map(i=>new _l(i));return a.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new Cd(a,r):Cd.fromOptions(a,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Fu({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=ja.oneOf){let n=this.clone();return t.forEach(a=>{n._whitelist.add(a),n._blacklist.delete(a)}),n.internalTests.whiteList=Fu({message:r,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=ja.notOneOf){let n=this.clone();return t.forEach(a=>{n._blacklist.add(a),n._whitelist.delete(a)}),n.internalTests.blacklist=Fu({message:r,name:"notOneOf",test(a){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:a,optional:i,nullable:o}=r.spec;return{meta:a,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,c,d)=>d.findIndex(v=>v.name===u.name)===c)}}};ci.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ci.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=sU(this,t,r,n.context);return o[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])ci.prototype[e]=ci.prototype.oneOf;for(const e of["not","nope"])ci.prototype[e]=ci.prototype.notOneOf;const lU=()=>!0;function Z6(e){return new Y6(e)}class Y6 extends ci{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:lU},t))}}Z6.prototype=Y6.prototype;function ln(){return new J6}class J6 extends ci{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return ma(r)||r===!0}})}isFalse(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return ma(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}ln.prototype=J6.prototype;const uU=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function fU(e){const t=$g(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function $g(e){var t,r;const n=uU.exec(e);return n?{year:Ao(n[1]),month:Ao(n[2],1)-1,day:Ao(n[3],1),hour:Ao(n[4]),minute:Ao(n[5]),second:Ao(n[6]),millisecond:n[7]?Ao(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:Ao(n[10]),minuteOffset:Ao(n[11])}:null}function Ao(e,t=0){return Number(e)||t}let cU=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hU=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dU=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,pU="^\\d{4}-\\d{2}-\\d{2}",vU="\\d{2}:\\d{2}:\\d{2}",mU="(([+-]\\d{2}(:?\\d{2})?)|Z)",gU=new RegExp(`${pU}T${vU}(\\.\\d+)?${mU}$`),yU=e=>ma(e)||e===e.trim(),bU={}.toString();function br(){return new X6}class X6 extends ci{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const a=t!=null&&t.toString?t.toString():t;return a===bU?t:a})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||ja.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=fi.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=fi.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=fi.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,a,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:a,name:i}=r:a=r),this.test({name:i||"matches",message:a||fi.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=fi.email){return this.matches(cU,{name:"email",message:t,excludeEmptyString:!0})}url(t=fi.url){return this.matches(hU,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=fi.uuid){return this.matches(dU,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,a;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:a=void 0}=t:r=t),this.matches(gU,{name:"datetime",message:r||fi.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||fi.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:i=>{if(!i||n)return!0;const o=$g(i);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||fi.datetime_precision,params:{precision:a},skipAbsent:!0,test:i=>{if(!i||a==null)return!0;const o=$g(i);return o?o.precision===a:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=fi.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:yU})}lowercase(t=fi.lowercase){return this.transform(r=>ma(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ma(r)||r===r.toLowerCase()})}uppercase(t=fi.uppercase){return this.transform(r=>ma(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ma(r)||r===r.toUpperCase()})}}br.prototype=X6.prototype;let _U=e=>e!=+e;function Id(){return new Q6}class Q6 extends ci{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!_U(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let a=t;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return n.isType(a)||a===null?a:parseFloat(a)})})}min(t,r=ds.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=ds.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=ds.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=ds.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=ds.positive){return this.moreThan(0,t)}negative(t=ds.negative){return this.lessThan(0,t)}integer(t=ds.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ma(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(a=>ma(a)?a:Math[t](a))}}Id.prototype=Q6.prototype;let wU=new Date(""),EU=e=>Object.prototype.toString.call(e)==="[object Date]";class Bd extends ci{constructor(){super({type:"date",check(t){return EU(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=fU(t),isNaN(t)?Bd.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(_l.isRef(t))n=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=a}return n}min(t,r=Lg.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(n)}})}max(t,r=Lg.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(n)}})}}Bd.INVALID_DATE=wU,Bd.prototype;function xU(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([o,l])=>`${o}-${l}`));function i(o,l){let u=bl.split(o)[0];n.add(u),a.has(`${l}-${u}`)||r.push([l,u])}for(const o of Object.keys(e)){let l=e[o];n.add(o),_l.isRef(l)&&l.isSibling?i(l.path,o):fc(l)&&"deps"in l&&l.deps.forEach(u=>i(u,o))}return Qz.array(Array.from(n),r).reverse()}function e4(e,t){let r=1/0;return e.some((n,a)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=a,!0}),r}function t4(e){return(t,r)=>e4(e,t)-e4(e,r)}const r4=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function kd(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=kd(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=kd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(kd)}):"optional"in e?e.optional():e}const SU=(e,t)=>{const r=[...bl.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),a=bl.getter(bl.join(r),!0)(e);return!!(a&&n in a)};let n4=e=>Object.prototype.toString.call(e)==="[object Object]";function i4(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const MU=t4([]);function Li(e){return new a4(e)}class a4 extends ci{constructor(t){super({type:"object",check(r){return n4(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=MU,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let a=super._cast(t,r);if(a===void 0)return this.getDefault(r);if(!this._typeCheck(a))return a;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),u={},c=Object.assign({},r,{parent:u,__validating:r.__validating||!1}),d=!1;for(const v of l){let m=i[v],b=v in a;if(m){let _,S=a[v];c.path=(r.path?`${r.path}.`:"")+v,m=m.resolve({value:S,context:r.context,parent:u});let T=m instanceof ci?m.spec:void 0,C=T==null?void 0:T.strict;if(T!=null&&T.strip){d=d||v in a;continue}_=!r.__validating||!C?m.cast(a[v],c):a[v],_!==void 0&&(u[v]=_)}else b&&!o&&(u[v]=a[v]);(b!==v in u||u[v]!==a[v])&&(d=!0)}return d?u:a}_validate(t,r={},n,a){let{from:i=[],originalValue:o=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(u,c)=>{if(!l||!n4(c)){a(u,c);return}o=o||c;let d=[];for(let v of this._nodes){let m=this.fields[v];!m||_l.isRef(m)||d.push(m.asNestedTest({options:r,key:v,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:r},n,v=>{a(v.sort(this._sortErrors).concat(u),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[a,i]of Object.entries(this.fields)){const o=n[a];n[a]=o===void 0?i:o}return r.withMutation(a=>a.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var a;const i=this.fields[n];let o=t;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xU(t,r),n._sortErrors=t4(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let a=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),a=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),a)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return kd(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,a])=>t.includes(n)&&t.includes(a)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let a=bl.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return SU(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=a(i)),o})}json(){return this.transform(r4)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Sd.exact,test(r){if(r==null)return!0;const n=i4(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Sd.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(a){if(a==null)return!0;const i=i4(this.schema,a);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Sd.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const a of Object.keys(r))n[t(a)]=r[a];return n})}camelCase(){return this.transformKeys(Pg.camelCase)}snakeCase(){return this.transformKeys(Pg.snakeCase)}constantCase(){return this.transformKeys(t=>Pg.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(r.fields)){var a;let l=t;(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.fields[i]=o.describe(l)}return n}}Li.prototype=a4.prototype;function ps(e){return new o4(e)}class o4 extends ci{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const i=n.map((o,l)=>{const u=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==o&&(a=!0),u});return a?i:n}_validate(t,r={},n,a){var i;let o=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(u,c)=>{var d;if(!l||!o||!this._typeCheck(c)){a(u,c);return}let v=new Array(c.length);for(let b=0;b<c.length;b++){var m;v[b]=o.asNestedTest({options:r,index:b,parent:c,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:c,tests:v,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,b=>a(b.concat(u),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(r4)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!fc(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+To(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Md.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||Md.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||Md.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,a,i)=>!t(n,a,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var a;let i=t;(a=i)!=null&&a.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=r.innerType.describe(i)}return n}}ps.prototype=o4.prototype;function s4(e){return new zg(e)}class zg{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let a=this.builder(r,n);if(!fc(a))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(a=a.optional()),a.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new zg(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:a,options:i}=t,o=a[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:a})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}const Ug=Li().noUnknown().shape({client:Li().noUnknown().shape({logo:br(),name:br()}),entrypoint:Li().noUnknown().shape({account:br(),country:br(),credential:br(),site:br(),siteOrganizationType:br()}),locale:br().oneOf(["es","en"]),navigation:Li().noUnknown().shape({disableFormAutocomplete:ln(),displayAccountsSelection:ln(),displayBusinessSites:ln(),displayCredentialInModal:ln(),displayErrorsInToast:ln(),displayLogoImages:ln(),displayLongDescription:ln(),displayPersonalSites:ln(),displayPrivacyScreen:ln(),displaySiteOrganizations:ps().of(br()),displaySiteOrganizationTypes:ps().of(br()),displaySites:ps().of(br()),displayStatusInToast:ln(),enableBackNavigation:ln(),enableTwofaBackNavigation:ln(),formButtonsDisabledStyle:ln(),formShowPasswordStyle:br().oneOf(["icon","none","text"]),hideSelectCountry:ln(),hideSiteOrganizations:ps().of(br()),hideSiteOrganizationTypes:ps().of(br()),hideSites:ps().of(br()),oneSiteFlow:ln(),quickAnswer:ln(),returnToSiteFormOnUserError:s4(e=>typeof e=="object"?ps().of(Id().oneOf([401,403,411])):ln()),saveCredential:ln(),selectClass:br(),socketTimeout:Id().min(1),toastDuration:Id().min(0),toastPosition:br().oneOf(["bottom-left","bottom-right","top-left","top-right"])}),__internal__:Li().noUnknown().shape({apiBaseUrl:br(),apiEnv:br().oneOf(["development","production"]),assetsBaseUrl:br(),plaidSites:ln(),defaultHttpParams:Li()})}),CU=Li().shape({token:br().required(),element:s4(e=>{switch(typeof e){case"string":return br().test("isElement","${path} is not an Element",t=>{if(!document.querySelector(t))throw new Dn(`Invalid selector: Element "${t}" not found.`);return!0});case"object":return Li().test("isElement","${path} is not an Element",t=>{if(!ul(t))throw new Dn("Invalid element: Object should be a valid HtmlElement.");return!0});default:br()}}),refreshTokenFunction:Z6().test("isFunction","${path} is not a function",e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!0),enableTestMode:ln(),strict:Li().noUnknown().nullable().shape({authorization:Li().noUnknown().required().shape({type:br().oneOf(["jwk"]).required(),key:br().required()}),body:Li().noUnknown().required().shape({type:br().oneOf(["jwk"]).required(),key:br().required().test("isBase64","${path} is not a base64 encoded",e=>e&&/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))})}),config:Ug}).strict().noUnknown();let Vg={git:{dirty:!1,raw:"v0.0.15-0-g0a10f1b",hash:"g0a10f1b",distance:0,tag:"v0.0.15",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.15",major:0,minor:0,patch:15,prerelease:[],build:[],version:"0.0.15"},suffix:"0-g0a10f1b",semverString:"0.0.15"}};function Nd(){let e=`${Vg.git.tag}.${Vg.git.distance}`;return{}.NODE_ENV==="production"?e=`${e}-beta`:e=`${e}-${Vg.git.hash}`,e}function TU(e,t){const r=parseInt("0x4",16),n="38060000000000000000000000000000000000000000000F00000000000000000000000000000000000D9802010000010101000000000000";let a;return console.log("OBTEINING BRIDGE SCRIPTS"),console.log("TOKEN",e),console.log("CHALLENGE",t),AU().then(()=>(console.log("BRIDGE SCRIPTS OK"),a=new digipass.nativebridge.DP110,new Promise((o,l)=>{console.log(" PROCESSING BRIDGE CONNECTION"),a.onError(()=>(console.log(" ERROR ON BRIDGE CONNECTION"),l("bridge.not_ready"))),a.onReady(u=>{console.log("BRIDGE CONNECTION READY"),console.log("DATA VERSION",u.versionCode),console.log("BRIDGE VERSION",a.versionCode),u.versionCode<a.versionCode&&l("bridge.host_update_available");const c=a.isReady();if(console.log("BRIDGE CONNECTION READY VERIFICATION",c),c)console.log("COMMAND_ID",r),a.getTokenInfo(r,function(d){if(console.log("BRIDGE CONNECTION getTokenInfo",d,d.returnCode),d.returnCode!==0)return l(`bridge.${Math.abs(d.returnCode)}`);console.log("STATIC_VECTOR",n),a.generateOTP(n,t,function(v){if(console.log("BRIDGE CONNECTION generateOTP",v,v.returnCode),v.returnCode!==0)return l(`bridge.${Math.abs(v.returnCode)}`);o({token:`${e}XX${v.otp}XX${d.info}XX${u.versionCode}`,challenge:t})})});else return Promise.reject("bridge.not_ready")})})))}function AU(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.config.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeUsb"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeUsb"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.dp110.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}const Di="bridgeBluetooth";function IU(e){const t=window[Di];return new Promise((n,a)=>{t.resolve=n,t.reject=a;let i,o;const{authenticationData:l}=e.authenticationResponse;l[0].idAuthenticationData==="signedMessage"?([i]=l[0].authenticationData,[o]=l[1].authenticationData):([i]=l[1].authenticationData,[o]=l[0].authenticationData),DU({signedMessage:i,signedTimeMessage:o})})}async function BU(){const e=window[Di];return new Promise(async(t,r)=>{if(e.nativeBridgeInstance.isReady())try{const n=await async function(a){return new Promise((i,o)=>{a.getDigipassTimeChallenge(l=>{if(l.returnCode!==0){const c={title:"Generar - TimeChallenge",response:{message:"Se ha producido un error al generar el TimeChallenge. Por favor, asegúrate de tener tu token conectado y encendido.",returnCode:l.returnCode}};return void o(c)}const u={title:"Generar - TimeChallenge",response:{message:`El TimeChallenge es: ${l.timeChallenge}`,timeChallenge:l.timeChallenge,errorCode:""}};i(u)})})}(e.nativeBridgeInstance);t(n)}catch(n){r(n)}else r({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:""}})})}function kU(e){window[Di]={isDp785Signature:!1,nativeBridgeInstance:null,resolve:null,reject:null};const t=window[Di];return NU().then(()=>new Promise((n,a)=>{t.resolve=n,t.reject=a,t.isDp785Signature=e!=="214",t.nativeBridgeInstance=new window.digipass.nativebridge.DPToken,LU()}))}function NU(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.config.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeBluetooth"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeBluetooth"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.dptoken.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}async function OU(){const e=window[Di];try{const t=await RU(e.isDp785Signature);if(t.length===1){const[r]=t;await PU(r.serial);const n=await BU();e.resolve(n.response.timeChallenge)}}catch(t){e.reject(t),alert("Por favor, asegúrate de tener tu token conectado y encendido.")}}async function RU(e){const t=window[Di];return new Promise(async(r,n)=>{const a=e?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(t.nativeBridgeInstance.isReady())try{const i=await async function(u){return new Promise((c,d)=>{u.getDigipassList(v=>{if(v.returnCode===0)c(v.devices);else{const m={title:"Listar dispositivos",response:{message:"Error al obtener la lista de dispositivos disponibles.",returnCode:v.returnCode}};d(m)}})})}(t.nativeBridgeInstance),o=i.map(u=>({name:u.deviceName,serial:u.digipassSerial})),[l]=o;if(!l||!l.serial)return void n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}});r(o)}catch(i){n(i)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}})})}async function PU(e){const t=window[Di];return new Promise((r,n)=>{t.nativeBridgeInstance.initializeDigipass(e,a=>{if(a.returnCode!==0){const o={title:"Inicializar dispositivo",response:{message:"Error al intentar inicializar el dispositivo.",returnCode:a.returnCode}};return void n(o)}const i={title:"Inicializar dispositivo",response:{message:`El dispositivo con serial: ${e} está listo para ser usado.`,errorCode:""}};r(i)})})}async function FU(e){const t=window[Di];return new Promise(async(r,n)=>{if(t.nativeBridgeInstance.isReady())try{const a=await async function(i,o){return new Promise((l,u)=>{i.generateResponseOnlyOTP(o,c=>{if(c.returnCode!==0){const v={title:"Generar OTP con PIN",response:{message:"No fue posible generar la OTP.",returnCode:c.returnCode}};return void u(v)}const d={title:"Generar OTP con PIN",response:{message:`La OTP se generó correctamente: ${c.otp}`,otp:c.otp,errorCode:"",processType:"DP785_T4_LINKED"}};l(d)})})}(t.nativeBridgeInstance,e);r(a)}catch(a){n(a)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:"DP785_T4_NOT_LINKED"}})})}async function LU(){const e=window[Di],t=await $U();if(t.response.errorCode!==""){alert(t.response.message),e.reject(t.response.errorCode);return}else await OU()}async function DU({signedMessage:e="",signedTimeMessage:t=""}){const r=window[Di];try{await l4(t,r.isDp785Signature);const n=await l4(e,r.isDp785Signature),{response:{messageSignature:a}}=n,i=7,o=await FU(i),{response:{otp:l}}=o,u={};u.otpChallenge=a;const c=`${l}${i}`;u.otp=c,r.resolve(`${u.otpChallenge}XX${u.otp}`)}catch(n){r.reject(n),alert("Error al intentar validar la sesión desde el dispositivo de acceso seguro.")}}async function $U(){const e=window[Di];return new Promise((t,r)=>{e.nativeBridgeInstance.onReady(()=>{e.nativeBridgeInstance.getNativeBridgeVersion(n=>{const a={title:"Conexión con Native Bridge",response:{errorCode:"",message:"El software Native Bridge se encuentra instalado en tu ordenador.",updateAvailable:!(n.versionCode>=e.nativeBridgeInstance.versionCode)}};t(a)})}),e.nativeBridgeInstance.onError(()=>{r({title:"Conexión con Native Bridge",response:{errorCode:"222",message:"El software Native Bridge no se encontró instalado en tu ordenador.",processType:"DP785_T4_NOT_LINKED"}})})})}async function l4(e,t){const r=window[Di];return new Promise(async(n,a)=>{const i=t?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(r.nativeBridgeInstance.isReady())try{const{responseMessage:o}=await async function(u,c){return new Promise((d,v)=>{u.transmitRequestMessage(c,m=>{if(m.returnCode===0)d(m);else{const b={title:"Firmar mensaje",response:{message:"No fue posible transmitir el mensaje.",returnCode:m.returnCode}};v(b)}})})}(r.nativeBridgeInstance,e),l=await async function(u,c,d){return new Promise((v,m)=>{u.parseResponseMessage(c,d,b=>{if(b.returnCode!==0){const S={title:"Firmar mensaje",response:{message:"No fue posible parsear el mensaje.",returnCode:b.returnCode}};return void m(S)}const _={title:"Firmar mensaje",response:{message:`Se realizó la firma del mensaje correctamente: ${b.messageSignature}`,messageSignature:b.messageSignature,errorCode:"",processType:"DP785_T4_LINKED"}};v(_)})})}(r.nativeBridgeInstance,o,e);n(l)}catch(o){a(o)}else a({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:i}})})}function zU(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qg={exports:{}},u4;function f4(){return u4||(u4=1,function(e,t){(function(r,n){e.exports=n()})(Bt,function(){function r(fe){var H=typeof fe;return fe!==null&&(H==="object"||H==="function")}function n(fe){return typeof fe=="function"}var a=void 0;Array.isArray?a=Array.isArray:a=function(fe){return Object.prototype.toString.call(fe)==="[object Array]"};var i=a,o=0,l=void 0,u=void 0,c=function(H,G){P[o]=H,P[o+1]=G,o+=2,o===2&&(u?u(L):z())};function d(fe){u=fe}function v(fe){c=fe}var m=typeof window<"u"?window:void 0,b=m||{},_=b.MutationObserver||b.WebKitMutationObserver,S=typeof self>"u"&&typeof ue<"u"&&{}.toString.call(ue)==="[object process]",T=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function C(){return function(){return ue.nextTick(L)}}function I(){return typeof l<"u"?function(){l(L)}:O()}function B(){var fe=0,H=new _(L),G=document.createTextNode("");return H.observe(G,{characterData:!0}),function(){G.data=fe=++fe%2}}function N(){var fe=new MessageChannel;return fe.port1.onmessage=L,function(){return fe.port2.postMessage(0)}}function O(){var fe=setTimeout;return function(){return fe(L,1)}}var P=new Array(1e3);function L(){for(var fe=0;fe<o;fe+=2){var H=P[fe],G=P[fe+1];H(G),P[fe]=void 0,P[fe+1]=void 0}o=0}function $(){try{var fe=Function("return this")().require("vertx");return l=fe.runOnLoop||fe.runOnContext,I()}catch{return O()}}var z=void 0;S?z=C():_?z=B():T?z=N():m===void 0&&typeof zU=="function"?z=$():z=O();function K(fe,H){var G=this,me=new this.constructor(h);me[s]===void 0&&j(me);var oe=G._state;if(oe){var pe=arguments[oe-1];c(function(){return te(oe,me,pe,G._result)})}else X(G,me,fe,H);return me}function M(fe){var H=this;if(fe&&typeof fe=="object"&&fe.constructor===H)return fe;var G=new H(h);return R(G,fe),G}var s=Math.random().toString(36).substring(2);function h(){}var p=void 0,g=1,y=2;function w(){return new TypeError("You cannot resolve a promise with itself")}function A(){return new TypeError("A promises callback cannot return that same promise.")}function E(fe,H,G,me){try{fe.call(H,G,me)}catch(oe){return oe}}function f(fe,H,G){c(function(me){var oe=!1,pe=E(G,H,function(Je){oe||(oe=!0,H!==Je?R(me,Je):J(me,Je))},function(Je){oe||(oe=!0,W(me,Je))},"Settle: "+(me._label||" unknown promise"));!oe&&pe&&(oe=!0,W(me,pe))},fe)}function x(fe,H){H._state===g?J(fe,H._result):H._state===y?W(fe,H._result):X(H,void 0,function(G){return R(fe,G)},function(G){return W(fe,G)})}function k(fe,H,G){H.constructor===fe.constructor&&G===K&&H.constructor.resolve===M?x(fe,H):G===void 0?J(fe,H):n(G)?f(fe,H,G):J(fe,H)}function R(fe,H){if(fe===H)W(fe,w());else if(r(H)){var G=void 0;try{G=H.then}catch(me){W(fe,me);return}k(fe,H,G)}else J(fe,H)}function q(fe){fe._onerror&&fe._onerror(fe._result),ae(fe)}function J(fe,H){fe._state===p&&(fe._result=H,fe._state=g,fe._subscribers.length!==0&&c(ae,fe))}function W(fe,H){fe._state===p&&(fe._state=y,fe._result=H,c(q,fe))}function X(fe,H,G,me){var oe=fe._subscribers,pe=oe.length;fe._onerror=null,oe[pe]=H,oe[pe+g]=G,oe[pe+y]=me,pe===0&&fe._state&&c(ae,fe)}function ae(fe){var H=fe._subscribers,G=fe._state;if(H.length!==0){for(var me=void 0,oe=void 0,pe=fe._result,Je=0;Je<H.length;Je+=3)me=H[Je],oe=H[Je+G],me?te(G,me,oe,pe):oe(pe);fe._subscribers.length=0}}function te(fe,H,G,me){var oe=n(G),pe=void 0,Je=void 0,xe=!0;if(oe){try{pe=G(me)}catch(Me){xe=!1,Je=Me}if(H===pe){W(H,A());return}}else pe=me;H._state!==p||(oe&&xe?R(H,pe):xe===!1?W(H,Je):fe===g?J(H,pe):fe===y&&W(H,pe))}function he(fe,H){try{H(function(me){R(fe,me)},function(me){W(fe,me)})}catch(G){W(fe,G)}}var re=0;function Z(){return re++}function j(fe){fe[s]=re++,fe._state=void 0,fe._result=void 0,fe._subscribers=[]}function ie(){return new Error("Array Methods must be provided an Array")}var le=function(){function fe(H,G){this._instanceConstructor=H,this.promise=new H(h),this.promise[s]||j(this.promise),i(G)?(this.length=G.length,this._remaining=G.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(G),this._remaining===0&&J(this.promise,this._result))):W(this.promise,ie())}return fe.prototype._enumerate=function(G){for(var me=0;this._state===p&&me<G.length;me++)this._eachEntry(G[me],me)},fe.prototype._eachEntry=function(G,me){var oe=this._instanceConstructor,pe=oe.resolve;if(pe===M){var Je=void 0,xe=void 0,Me=!1;try{Je=G.then}catch(ce){Me=!0,xe=ce}if(Je===K&&G._state!==p)this._settledAt(G._state,me,G._result);else if(typeof Je!="function")this._remaining--,this._result[me]=G;else if(oe===Q){var et=new oe(h);Me?W(et,xe):k(et,G,Je),this._willSettleAt(et,me)}else this._willSettleAt(new oe(function(ce){return ce(G)}),me)}else this._willSettleAt(pe(G),me)},fe.prototype._settledAt=function(G,me,oe){var pe=this.promise;pe._state===p&&(this._remaining--,G===y?W(pe,oe):this._result[me]=oe),this._remaining===0&&J(pe,this._result)},fe.prototype._willSettleAt=function(G,me){var oe=this;X(G,void 0,function(pe){return oe._settledAt(g,me,pe)},function(pe){return oe._settledAt(y,me,pe)})},fe}();function V(fe){return new le(this,fe).promise}function D(fe){var H=this;return i(fe)?new H(function(G,me){for(var oe=fe.length,pe=0;pe<oe;pe++)H.resolve(fe[pe]).then(G,me)}):new H(function(G,me){return me(new TypeError("You must pass an array to race."))})}function F(fe){var H=this,G=new H(h);return W(G,fe),G}function U(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function se(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Q=function(){function fe(H){this[s]=Z(),this._result=this._state=void 0,this._subscribers=[],h!==H&&(typeof H!="function"&&U(),this instanceof fe?he(this,H):se())}return fe.prototype.catch=function(G){return this.then(null,G)},fe.prototype.finally=function(G){var me=this,oe=me.constructor;return n(G)?me.then(function(pe){return oe.resolve(G()).then(function(){return pe})},function(pe){return oe.resolve(G()).then(function(){throw pe})}):me.then(G,G)},fe}();Q.prototype.then=K,Q.all=V,Q.race=D,Q.resolve=M,Q.reject=F,Q._setScheduler=d,Q._setAsap=v,Q._asap=c;function ne(){var fe=void 0;if(typeof Bt<"u")fe=Bt;else if(typeof self<"u")fe=self;else try{fe=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var H=fe.Promise;if(H){var G=null;try{G=Object.prototype.toString.call(H.resolve())}catch{}if(G==="[object Promise]"&&!H.cast)return}fe.Promise=Q}return Q.polyfill=ne,Q.Promise=Q,Q})}(qg)),qg.exports}function UU(e){return e}var Hg=UU;function VU(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var jg=VU,qU=jg,c4=Math.max;function HU(e,t,r){return t=c4(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=c4(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),qU(e,this,l)}}var h4=HU;function jU(e){return function(){return e}}var KU=jU,WU=typeof Bt=="object"&&Bt&&Bt.Object===Object&&Bt,d4=WU,GU=d4,ZU=typeof self=="object"&&self&&self.Object===Object&&self,YU=GU||ZU||Function("return this")(),hi=YU,JU=hi,XU=JU.Symbol,cc=XU,p4=cc,v4=Object.prototype,QU=v4.hasOwnProperty,eV=v4.toString,hc=p4?p4.toStringTag:void 0;function tV(e){var t=QU.call(e,hc),r=e[hc];try{e[hc]=void 0;var n=!0}catch{}var a=eV.call(e);return n&&(t?e[hc]=r:delete e[hc]),a}var rV=tV,nV=Object.prototype,iV=nV.toString;function aV(e){return iV.call(e)}var oV=aV,m4=cc,sV=rV,lV=oV,uV="[object Null]",fV="[object Undefined]",g4=m4?m4.toStringTag:void 0;function cV(e){return e==null?e===void 0?fV:uV:g4&&g4 in Object(e)?sV(e):lV(e)}var Du=cV;function hV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ga=hV,dV=Du,pV=ga,vV="[object AsyncFunction]",mV="[object Function]",gV="[object GeneratorFunction]",yV="[object Proxy]";function bV(e){if(!pV(e))return!1;var t=dV(e);return t==mV||t==gV||t==vV||t==yV}var Kg=bV,_V=hi,wV=_V["__core-js_shared__"],EV=wV,Wg=EV,y4=function(){var e=/[^.]+$/.exec(Wg&&Wg.keys&&Wg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xV(e){return!!y4&&y4 in e}var SV=xV,MV=Function.prototype,CV=MV.toString;function TV(e){if(e!=null){try{return CV.call(e)}catch{}try{return e+""}catch{}}return""}var b4=TV,AV=Kg,IV=SV,BV=ga,kV=b4,NV=/[\\^$.*+?()[\]{}|]/g,OV=/^\[object .+?Constructor\]$/,RV=Function.prototype,PV=Object.prototype,FV=RV.toString,LV=PV.hasOwnProperty,DV=RegExp("^"+FV.call(LV).replace(NV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $V(e){if(!BV(e)||IV(e))return!1;var t=AV(e)?DV:OV;return t.test(kV(e))}var zV=$V;function UV(e,t){return e==null?void 0:e[t]}var VV=UV,qV=zV,HV=VV;function jV(e,t){var r=HV(e,t);return qV(r)?r:void 0}var wl=jV,KV=wl,WV=function(){try{var e=KV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_4=WV,GV=KU,w4=_4,ZV=Hg,YV=w4?function(e,t){return w4(e,"toString",{configurable:!0,enumerable:!1,value:GV(t),writable:!0})}:ZV,JV=YV,XV=800,QV=16,eq=Date.now;function tq(e){var t=0,r=0;return function(){var n=eq(),a=QV-(n-r);if(r=n,a>0){if(++t>=XV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var E4=tq,rq=JV,nq=E4,iq=nq(rq),Gg=iq,aq=Hg,oq=h4,sq=Gg;function lq(e,t){return sq(oq(e,t,aq),e+"")}var Zg=lq,uq=wl,fq=hi,cq=uq(fq,"WeakMap"),x4=cq,S4=x4,hq=S4&&new S4,M4=hq,dq=Hg,C4=M4,pq=C4?function(e,t){return C4.set(e,t),e}:dq,T4=pq,vq=ga,A4=Object.create,mq=function(){function e(){}return function(t){if(!vq(t))return{};if(A4)return A4(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Od=mq,gq=Od,yq=ga;function bq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=gq(e.prototype),n=e.apply(r,t);return yq(n)?n:r}}var Rd=bq,_q=Rd,wq=hi,Eq=1;function xq(e,t,r){var n=t&Eq,a=_q(e);function i(){var o=this&&this!==wq&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Sq=xq,Mq=Math.max;function Cq(e,t,r,n){for(var a=-1,i=e.length,o=r.length,l=-1,u=t.length,c=Mq(i-o,0),d=Array(u+c),v=!n;++l<u;)d[l]=t[l];for(;++a<o;)(v||a<i)&&(d[r[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}var I4=Cq,Tq=Math.max;function Aq(e,t,r,n){for(var a=-1,i=e.length,o=-1,l=r.length,u=-1,c=t.length,d=Tq(i-l,0),v=Array(d+c),m=!n;++a<d;)v[a]=e[a];for(var b=a;++u<c;)v[b+u]=t[u];for(;++o<l;)(m||a<i)&&(v[b+r[o]]=e[a++]);return v}var B4=Aq;function Iq(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Bq=Iq;function kq(){}var Yg=kq,Nq=Od,Oq=Yg,Rq=4294967295;function Pd(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rq,this.__views__=[]}Pd.prototype=Nq(Oq.prototype),Pd.prototype.constructor=Pd;var Jg=Pd;function Pq(){}var k4=Pq,N4=M4,Fq=k4,Lq=N4?function(e){return N4.get(e)}:Fq,O4=Lq,Dq={},$q=Dq,R4=$q,zq=Object.prototype,Uq=zq.hasOwnProperty;function Vq(e){for(var t=e.name+"",r=R4[t],n=Uq.call(R4,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var qq=Vq,Hq=Od,jq=Yg;function Fd(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Fd.prototype=Hq(jq.prototype),Fd.prototype.constructor=Fd;var P4=Fd,Kq=Array.isArray,Ka=Kq;function Wq(e){return e!=null&&typeof e=="object"}var Io=Wq;function Gq(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ld=Gq,Zq=Jg,Yq=P4,Jq=Ld;function Xq(e){if(e instanceof Zq)return e.clone();var t=new Yq(e.__wrapped__,e.__chain__);return t.__actions__=Jq(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Qq=Xq,eH=Jg,F4=P4,tH=Yg,rH=Ka,nH=Io,iH=Qq,aH=Object.prototype,oH=aH.hasOwnProperty;function Dd(e){if(nH(e)&&!rH(e)&&!(e instanceof eH)){if(e instanceof F4)return e;if(oH.call(e,"__wrapped__"))return iH(e)}return new F4(e)}Dd.prototype=tH.prototype,Dd.prototype.constructor=Dd;var sH=Dd,lH=Jg,uH=O4,fH=qq,cH=sH;function hH(e){var t=fH(e),r=cH[t];if(typeof r!="function"||!(t in lH.prototype))return!1;if(e===r)return!0;var n=uH(r);return!!n&&e===n[0]}var dH=hH,pH=T4,vH=E4,mH=vH(pH),L4=mH,gH=/\{\n\/\* \[wrapped with (.+)\] \*/,yH=/,? & /;function bH(e){var t=e.match(gH);return t?t[1].split(yH):[]}var _H=bH,wH=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function EH(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(wH,`{
684
+ `+(l!==o?`result of cast: ${l}`:""))}return i}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((a,i)=>i.call(this,a,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,a){let{path:i,originalValue:o=t,strict:l=this.spec.strict}=r,u=t;l||(u=this._cast(u,Object.assign({assert:!1},r)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:i,value:u,originalValue:o,options:r,tests:c},n,d=>{if(d.length)return a(d,u);this.runTests({path:i,value:u,originalValue:o,options:r,tests:this.tests},n,a)})}runTests(t,r,n){let a=!1,{tests:i,value:o,originalValue:l,path:u,options:c}=t,d=S=>{a||(a=!0,r(S,o))},v=S=>{a||(a=!0,n(S,o))},m=i.length,b=[];if(!m)return v([]);let _={value:o,originalValue:l,path:u,options:c,schema:this};for(let S=0;S<i.length;S++){const T=i[S];T(_,d,function(I){I&&(Array.isArray(I)?b.push(...I):b.push(I)),--m<=0&&v(b)})}}asNestedTest({key:t,index:r,parent:n,parentPath:a,originalParent:i,options:o}){const l=t??r;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let c=n[l];const d=Object.assign({},o,{strict:!0,parent:n,value:c,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${a||""}[${u?l:`"${l}"`}]`:(a?`${a}.`:"")+t});return(v,m,b)=>this.resolve(d)._validate(c,d,m,b)}validate(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return new Promise((o,l)=>a._validate(t,r,(u,c)=>{Dn.isError(u)&&(u.value=c),l(u)},(u,c)=>{u.length?l(new Dn(u,c,void 0,void 0,i)):o(c)}))}validateSync(t,r){var n;let a=this.resolve(Object.assign({},r,{value:t})),i,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:a.spec.disableStackTrace;return a._validate(t,Object.assign({},r,{sync:!0}),(l,u)=>{throw Dn.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new Dn(l,t,void 0,void 0,o);i=u}),i}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Dn.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Dn.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Lu(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Fu({message:r,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Fu({message:r,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=ja.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ja.notNull){return this.nullability(!1,t)}required(t=ja.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=ja.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),a=Fu(r),i=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(i||o.OPTIONS.test===a.OPTIONS.test))),n.tests.push(a),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),a=H6(t).map(i=>new _l(i));return a.forEach(i=>{i.isSibling&&n.deps.push(i.key)}),n.conditions.push(typeof r=="function"?new Cd(a,r):Cd.fromOptions(a,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Fu({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=ja.oneOf){let n=this.clone();return t.forEach(a=>{n._whitelist.add(a),n._blacklist.delete(a)}),n.internalTests.whiteList=Fu({message:r,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,o=i.resolveAll(this.resolve);return o.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:o}})}}),n}notOneOf(t,r=ja.notOneOf){let n=this.clone();return t.forEach(a=>{n._blacklist.add(a),n._whitelist.delete(a)}),n.internalTests.blacklist=Fu({message:r,name:"notOneOf",test(a){let i=this.schema._blacklist,o=i.resolveAll(this.resolve);return o.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:a,optional:i,nullable:o}=r.spec;return{meta:a,label:n,optional:i,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,c,d)=>d.findIndex(v=>v.name===u.name)===c)}}};ci.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ci.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:i,schema:o}=sU(this,t,r,n.context);return o[e](a&&a[i],Object.assign({},n,{parent:a,path:t}))};for(const e of["equals","is"])ci.prototype[e]=ci.prototype.oneOf;for(const e of["not","nope"])ci.prototype[e]=ci.prototype.notOneOf;const lU=()=>!0;function Z6(e){return new Y6(e)}class Y6 extends ci{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:lU},t))}}Z6.prototype=Y6.prototype;function ln(){return new J6}class J6 extends ci{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return ma(r)||r===!0}})}isFalse(t=Dg.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return ma(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}ln.prototype=J6.prototype;const uU=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function fU(e){const t=$g(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function $g(e){var t,r;const n=uU.exec(e);return n?{year:Ao(n[1]),month:Ao(n[2],1)-1,day:Ao(n[3],1),hour:Ao(n[4]),minute:Ao(n[5]),second:Ao(n[6]),millisecond:n[7]?Ao(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:Ao(n[10]),minuteOffset:Ao(n[11])}:null}function Ao(e,t=0){return Number(e)||t}let cU=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hU=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dU=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,pU="^\\d{4}-\\d{2}-\\d{2}",vU="\\d{2}:\\d{2}:\\d{2}",mU="(([+-]\\d{2}(:?\\d{2})?)|Z)",gU=new RegExp(`${pU}T${vU}(\\.\\d+)?${mU}$`),yU=e=>ma(e)||e===e.trim(),bU={}.toString();function br(){return new X6}class X6 extends ci{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const a=t!=null&&t.toString?t.toString():t;return a===bU?t:a})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||ja.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=fi.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=fi.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=fi.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,a,i;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:a,name:i}=r:a=r),this.test({name:i||"matches",message:a||fi.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=fi.email){return this.matches(cU,{name:"email",message:t,excludeEmptyString:!0})}url(t=fi.url){return this.matches(hU,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=fi.uuid){return this.matches(dU,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,a;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:a=void 0}=t:r=t),this.matches(gU,{name:"datetime",message:r||fi.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||fi.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:i=>{if(!i||n)return!0;const o=$g(i);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||fi.datetime_precision,params:{precision:a},skipAbsent:!0,test:i=>{if(!i||a==null)return!0;const o=$g(i);return o?o.precision===a:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=fi.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:yU})}lowercase(t=fi.lowercase){return this.transform(r=>ma(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ma(r)||r===r.toLowerCase()})}uppercase(t=fi.uppercase){return this.transform(r=>ma(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>ma(r)||r===r.toUpperCase()})}}br.prototype=X6.prototype;let _U=e=>e!=+e;function Id(){return new Q6}class Q6 extends ci{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!_U(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let a=t;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return n.isType(a)||a===null?a:parseFloat(a)})})}min(t,r=ds.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=ds.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=ds.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=ds.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=ds.positive){return this.moreThan(0,t)}negative(t=ds.negative){return this.lessThan(0,t)}integer(t=ds.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>ma(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(a=>ma(a)?a:Math[t](a))}}Id.prototype=Q6.prototype;let wU=new Date(""),EU=e=>Object.prototype.toString.call(e)==="[object Date]";class Bd extends ci{constructor(){super({type:"date",check(t){return EU(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=fU(t),isNaN(t)?Bd.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(_l.isRef(t))n=t;else{let a=this.cast(t);if(!this._typeCheck(a))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=a}return n}min(t,r=Lg.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(n)}})}max(t,r=Lg.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(n)}})}}Bd.INVALID_DATE=wU,Bd.prototype;function xU(e,t=[]){let r=[],n=new Set,a=new Set(t.map(([o,l])=>`${o}-${l}`));function i(o,l){let u=bl.split(o)[0];n.add(u),a.has(`${l}-${u}`)||r.push([l,u])}for(const o of Object.keys(e)){let l=e[o];n.add(o),_l.isRef(l)&&l.isSibling?i(l.path,o):fc(l)&&"deps"in l&&l.deps.forEach(u=>i(u,o))}return Qz.array(Array.from(n),r).reverse()}function e4(e,t){let r=1/0;return e.some((n,a)=>{var i;if((i=t.path)!=null&&i.includes(n))return r=a,!0}),r}function t4(e){return(t,r)=>e4(e,t)-e4(e,r)}const r4=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function kd(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=kd(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=kd(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(kd)}):"optional"in e?e.optional():e}const SU=(e,t)=>{const r=[...bl.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),a=bl.getter(bl.join(r),!0)(e);return!!(a&&n in a)};let n4=e=>Object.prototype.toString.call(e)==="[object Object]";function i4(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const MU=t4([]);function Li(e){return new a4(e)}class a4 extends ci{constructor(t){super({type:"object",check(r){return n4(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=MU,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let a=super._cast(t,r);if(a===void 0)return this.getDefault(r);if(!this._typeCheck(a))return a;let i=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),u={},c=Object.assign({},r,{parent:u,__validating:r.__validating||!1}),d=!1;for(const v of l){let m=i[v],b=v in a;if(m){let _,S=a[v];c.path=(r.path?`${r.path}.`:"")+v,m=m.resolve({value:S,context:r.context,parent:u});let T=m instanceof ci?m.spec:void 0,C=T==null?void 0:T.strict;if(T!=null&&T.strip){d=d||v in a;continue}_=!r.__validating||!C?m.cast(a[v],c):a[v],_!==void 0&&(u[v]=_)}else b&&!o&&(u[v]=a[v]);(b!==v in u||u[v]!==a[v])&&(d=!0)}return d?u:a}_validate(t,r={},n,a){let{from:i=[],originalValue:o=t,recursive:l=this.spec.recursive}=r;r.from=[{schema:this,value:o},...i],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(u,c)=>{if(!l||!n4(c)){a(u,c);return}o=o||c;let d=[];for(let v of this._nodes){let m=this.fields[v];!m||_l.isRef(m)||d.push(m.asNestedTest({options:r,key:v,parent:c,parentPath:r.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:r},n,v=>{a(v.sort(this._sortErrors).concat(u),c)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[a,i]of Object.entries(this.fields)){const o=n[a];n[a]=o===void 0?i:o}return r.withMutation(a=>a.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var a;const i=this.fields[n];let o=t;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=i&&"getDefault"in i?i.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xU(t,r),n._sortErrors=t4(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let a=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),a=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),a)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return kd(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,a])=>t.includes(n)&&t.includes(a)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let a=bl.getter(t,!0);return this.transform(i=>{if(!i)return i;let o=i;return SU(i,t)&&(o=Object.assign({},i),n||delete o[t],o[r]=a(i)),o})}json(){return this.transform(r4)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Sd.exact,test(r){if(r==null)return!0;const n=i4(this.schema,r);return n.length===0||this.createError({params:{properties:n.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,r=Sd.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(a){if(a==null)return!0;const i=i4(this.schema,a);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=Sd.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const a of Object.keys(r))n[t(a)]=r[a];return n})}camelCase(){return this.transformKeys(Pg.camelCase)}snakeCase(){return this.transformKeys(Pg.snakeCase)}constantCase(){return this.transformKeys(t=>Pg.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(r.fields)){var a;let l=t;(a=l)!=null&&a.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),n.fields[i]=o.describe(l)}return n}}Li.prototype=a4.prototype;function ps(e){return new o4(e)}class o4 extends ci{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let a=!1;const i=n.map((o,l)=>{const u=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==o&&(a=!0),u});return a?i:n}_validate(t,r={},n,a){var i;let o=this.innerType,l=(i=r.recursive)!=null?i:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(u,c)=>{var d;if(!l||!o||!this._typeCheck(c)){a(u,c);return}let v=new Array(c.length);for(let b=0;b<c.length;b++){var m;v[b]=o.asNestedTest({options:r,index:b,parent:c,parentPath:r.path,originalParent:(m=r.originalValue)!=null?m:t})}this.runTests({value:c,tests:v,originalValue:(d=r.originalValue)!=null?d:t,options:r},n,b=>a(b.concat(u),c))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(r4)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!fc(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+To(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=Md.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||Md.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||Md.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,a,i)=>!t(n,a,i):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var a;let i=t;(a=i)!=null&&a.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=r.innerType.describe(i)}return n}}ps.prototype=o4.prototype;function s4(e){return new zg(e)}class zg{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let a=this.builder(r,n);if(!fc(a))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(a=a.optional()),a.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new zg(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:a,options:i}=t,o=a[n??r];return this._resolve(o,Object.assign({},i,{value:o,parent:a})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}const Ug=Li().noUnknown().shape({client:Li().noUnknown().shape({logo:br(),name:br()}),entrypoint:Li().noUnknown().shape({account:br(),country:br(),credential:br(),site:br(),siteOrganizationType:br()}),locale:br().oneOf(["es","en"]),navigation:Li().noUnknown().shape({disableFormAutocomplete:ln(),displayAccountsSelection:ln(),displayBusinessSites:ln(),displayCredentialInModal:ln(),displayErrorsInToast:ln(),displayLogoImages:ln(),displayLongDescription:ln(),displayPersonalSites:ln(),displayPrivacyScreen:ln(),displaySiteOrganizations:ps().of(br()),displaySiteOrganizationTypes:ps().of(br()),displaySites:ps().of(br()),displayStatusInToast:ln(),enableBackNavigation:ln(),enableTwofaBackNavigation:ln(),formButtonsDisabledStyle:ln(),formShowPasswordStyle:br().oneOf(["icon","none","text"]),hideSelectCountry:ln(),hideSiteOrganizations:ps().of(br()),hideSiteOrganizationTypes:ps().of(br()),hideSites:ps().of(br()),oneSiteFlow:ln(),quickAnswer:ln(),returnToSiteFormOnUserError:s4(e=>typeof e=="object"?ps().of(Id().oneOf([401,403,411])):ln()),saveCredential:ln(),selectClass:br(),socketTimeout:Id().min(1),toastDuration:Id().min(0),toastPosition:br().oneOf(["bottom-left","bottom-right","top-left","top-right"])}),__internal__:Li().noUnknown().shape({apiBaseUrl:br(),apiEnv:br().oneOf(["development","production"]),assetsBaseUrl:br(),plaidSites:ln(),defaultHttpParams:Li()})}),CU=Li().shape({token:br().required(),element:s4(e=>{switch(typeof e){case"string":return br().test("isElement","${path} is not an Element",t=>{if(!document.querySelector(t))throw new Dn(`Invalid selector: Element "${t}" not found.`);return!0});case"object":return Li().test("isElement","${path} is not an Element",t=>{if(!ul(t))throw new Dn("Invalid element: Object should be a valid HtmlElement.");return!0});default:br()}}),refreshTokenFunction:Z6().test("isFunction","${path} is not a function",e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!0),enableTestMode:ln(),strict:Li().noUnknown().nullable().shape({authorization:Li().noUnknown().required().shape({type:br().oneOf(["jwk"]).required(),key:br().required()}),body:Li().noUnknown().required().shape({type:br().oneOf(["jwk"]).required(),key:br().required().test("isBase64","${path} is not a base64 encoded",e=>e&&/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))})}),config:Ug}).strict().noUnknown();let Vg={git:{dirty:!1,raw:"v0.0.16-0-ge091dbb",hash:"ge091dbb",distance:0,tag:"v0.0.16",semver:{options:{loose:!1,includePrerelease:!1},loose:!1,raw:"v0.0.16",major:0,minor:0,patch:16,prerelease:[],build:[],version:"0.0.16"},suffix:"0-ge091dbb",semverString:"0.0.16"}};function Nd(){let e=`${Vg.git.tag}.${Vg.git.distance}`;return{}.NODE_ENV==="production"?e=`${e}-beta`:e=`${e}-${Vg.git.hash}`,e}function TU(e,t){const r=parseInt("0x4",16),n="38060000000000000000000000000000000000000000000F00000000000000000000000000000000000D9802010000010101000000000000";let a;return console.log("OBTEINING BRIDGE SCRIPTS"),console.log("TOKEN",e),console.log("CHALLENGE",t),AU().then(()=>(console.log("BRIDGE SCRIPTS OK"),a=new digipass.nativebridge.DP110,new Promise((o,l)=>{console.log(" PROCESSING BRIDGE CONNECTION"),a.onError(()=>(console.log(" ERROR ON BRIDGE CONNECTION"),l("bridge.not_ready"))),a.onReady(u=>{console.log("BRIDGE CONNECTION READY"),console.log("DATA VERSION",u.versionCode),console.log("BRIDGE VERSION",a.versionCode),u.versionCode<a.versionCode&&l("bridge.host_update_available");const c=a.isReady();if(console.log("BRIDGE CONNECTION READY VERIFICATION",c),c)console.log("COMMAND_ID",r),a.getTokenInfo(r,function(d){if(console.log("BRIDGE CONNECTION getTokenInfo",d,d.returnCode),d.returnCode!==0)return l(`bridge.${Math.abs(d.returnCode)}`);console.log("STATIC_VECTOR",n),a.generateOTP(n,t,function(v){if(console.log("BRIDGE CONNECTION generateOTP",v,v.returnCode),v.returnCode!==0)return l(`bridge.${Math.abs(v.returnCode)}`);o({token:`${e}XX${v.otp}XX${d.info}XX${u.versionCode}`,challenge:t})})});else return Promise.reject("bridge.not_ready")})})))}function AU(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.config.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeUsb"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeUsb"),a.setAttribute("src","https://www.paybook.com/lib/syncfy/digipass.nativebridge.dp110.min.js"),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}const Di="bridgeBluetooth";function IU(e){const t=window[Di];return new Promise((n,a)=>{t.resolve=n,t.reject=a;let i,o;const{authenticationData:l}=e.authenticationResponse;l[0].idAuthenticationData==="signedMessage"?([i]=l[0].authenticationData,[o]=l[1].authenticationData):([i]=l[1].authenticationData,[o]=l[0].authenticationData),DU({signedMessage:i,signedTimeMessage:o})})}async function BU(){const e=window[Di];return new Promise(async(t,r)=>{if(e.nativeBridgeInstance.isReady())try{const n=await async function(a){return new Promise((i,o)=>{a.getDigipassTimeChallenge(l=>{if(l.returnCode!==0){const c={title:"Generar - TimeChallenge",response:{message:"Se ha producido un error al generar el TimeChallenge. Por favor, asegúrate de tener tu token conectado y encendido.",returnCode:l.returnCode}};return void o(c)}const u={title:"Generar - TimeChallenge",response:{message:`El TimeChallenge es: ${l.timeChallenge}`,timeChallenge:l.timeChallenge,errorCode:""}};i(u)})})}(e.nativeBridgeInstance);t(n)}catch(n){r(n)}else r({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:""}})})}function kU(e){window[Di]={isDp785Signature:!1,nativeBridgeInstance:null,resolve:null,reject:null};const t=window[Di];return NU().then(()=>new Promise((n,a)=>{t.resolve=n,t.reject=a,t.isDp785Signature=e!=="214",t.nativeBridgeInstance=new window.digipass.nativebridge.DPToken,LU()}))}function NU(){const e=new Promise((r,n)=>{if(document.getElementById("widgetBridgeConfig"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeConfig"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.config.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_config_script_not_loaded")}}),t=new Promise((r,n)=>{if(document.getElementById("widgetBridgeBluetooth"))return r();const a=document.createElement("script");a.setAttribute("type","text/javascript"),a.setAttribute("id","widgetBridgeBluetooth"),a.setAttribute("src",`${{}.VUE_APP_LIB_BASE_URL_DEFAULT}digipass.nativebridge.dptoken.min.js`),(document.head||document.body).appendChild(a),a.onload=()=>r(),a.onerror=()=>{n("bridge.digipass_script_not_loaded")}});return Promise.all([e,t])}async function OU(){const e=window[Di];try{const t=await RU(e.isDp785Signature);if(t.length===1){const[r]=t;await PU(r.serial);const n=await BU();e.resolve(n.response.timeChallenge)}}catch(t){e.reject(t),alert("Por favor, asegúrate de tener tu token conectado y encendido.")}}async function RU(e){const t=window[Di];return new Promise(async(r,n)=>{const a=e?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(t.nativeBridgeInstance.isReady())try{const i=await async function(u){return new Promise((c,d)=>{u.getDigipassList(v=>{if(v.returnCode===0)c(v.devices);else{const m={title:"Listar dispositivos",response:{message:"Error al obtener la lista de dispositivos disponibles.",returnCode:v.returnCode}};d(m)}})})}(t.nativeBridgeInstance),o=i.map(u=>({name:u.deviceName,serial:u.digipassSerial})),[l]=o;if(!l||!l.serial)return void n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}});r(o)}catch(i){n(i)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:a}})})}async function PU(e){const t=window[Di];return new Promise((r,n)=>{t.nativeBridgeInstance.initializeDigipass(e,a=>{if(a.returnCode!==0){const o={title:"Inicializar dispositivo",response:{message:"Error al intentar inicializar el dispositivo.",returnCode:a.returnCode}};return void n(o)}const i={title:"Inicializar dispositivo",response:{message:`El dispositivo con serial: ${e} está listo para ser usado.`,errorCode:""}};r(i)})})}async function FU(e){const t=window[Di];return new Promise(async(r,n)=>{if(t.nativeBridgeInstance.isReady())try{const a=await async function(i,o){return new Promise((l,u)=>{i.generateResponseOnlyOTP(o,c=>{if(c.returnCode!==0){const v={title:"Generar OTP con PIN",response:{message:"No fue posible generar la OTP.",returnCode:c.returnCode}};return void u(v)}const d={title:"Generar OTP con PIN",response:{message:`La OTP se generó correctamente: ${c.otp}`,otp:c.otp,errorCode:"",processType:"DP785_T4_LINKED"}};l(d)})})}(t.nativeBridgeInstance,e);r(a)}catch(a){n(a)}else n({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:"DP785_T4_NOT_LINKED"}})})}async function LU(){const e=window[Di],t=await $U();if(t.response.errorCode!==""){alert(t.response.message),e.reject(t.response.errorCode);return}else await OU()}async function DU({signedMessage:e="",signedTimeMessage:t=""}){const r=window[Di];try{await l4(t,r.isDp785Signature);const n=await l4(e,r.isDp785Signature),{response:{messageSignature:a}}=n,i=7,o=await FU(i),{response:{otp:l}}=o,u={};u.otpChallenge=a;const c=`${l}${i}`;u.otp=c,r.resolve(`${u.otpChallenge}XX${u.otp}`)}catch(n){r.reject(n),alert("Error al intentar validar la sesión desde el dispositivo de acceso seguro.")}}async function $U(){const e=window[Di];return new Promise((t,r)=>{e.nativeBridgeInstance.onReady(()=>{e.nativeBridgeInstance.getNativeBridgeVersion(n=>{const a={title:"Conexión con Native Bridge",response:{errorCode:"",message:"El software Native Bridge se encuentra instalado en tu ordenador.",updateAvailable:!(n.versionCode>=e.nativeBridgeInstance.versionCode)}};t(a)})}),e.nativeBridgeInstance.onError(()=>{r({title:"Conexión con Native Bridge",response:{errorCode:"222",message:"El software Native Bridge no se encontró instalado en tu ordenador.",processType:"DP785_T4_NOT_LINKED"}})})})}async function l4(e,t){const r=window[Di];return new Promise(async(n,a)=>{const i=t?"DP785_T4_MANUAL":"DP785_T4_NOT_LINKED";if(r.nativeBridgeInstance.isReady())try{const{responseMessage:o}=await async function(u,c){return new Promise((d,v)=>{u.transmitRequestMessage(c,m=>{if(m.returnCode===0)d(m);else{const b={title:"Firmar mensaje",response:{message:"No fue posible transmitir el mensaje.",returnCode:m.returnCode}};v(b)}})})}(r.nativeBridgeInstance,e),l=await async function(u,c,d){return new Promise((v,m)=>{u.parseResponseMessage(c,d,b=>{if(b.returnCode!==0){const S={title:"Firmar mensaje",response:{message:"No fue posible parsear el mensaje.",returnCode:b.returnCode}};return void m(S)}const _={title:"Firmar mensaje",response:{message:`Se realizó la firma del mensaje correctamente: ${b.messageSignature}`,messageSignature:b.messageSignature,errorCode:"",processType:"DP785_T4_LINKED"}};v(_)})})}(r.nativeBridgeInstance,o,e);n(l)}catch(o){a(o)}else a({title:"Error de conexión",response:{message:"No es posible interactuar con el dispositivo.",errorCode:"",processType:i}})})}function zU(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qg={exports:{}},u4;function f4(){return u4||(u4=1,function(e,t){(function(r,n){e.exports=n()})(Bt,function(){function r(fe){var H=typeof fe;return fe!==null&&(H==="object"||H==="function")}function n(fe){return typeof fe=="function"}var a=void 0;Array.isArray?a=Array.isArray:a=function(fe){return Object.prototype.toString.call(fe)==="[object Array]"};var i=a,o=0,l=void 0,u=void 0,c=function(H,G){P[o]=H,P[o+1]=G,o+=2,o===2&&(u?u(L):z())};function d(fe){u=fe}function v(fe){c=fe}var m=typeof window<"u"?window:void 0,b=m||{},_=b.MutationObserver||b.WebKitMutationObserver,S=typeof self>"u"&&typeof ue<"u"&&{}.toString.call(ue)==="[object process]",T=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function C(){return function(){return ue.nextTick(L)}}function I(){return typeof l<"u"?function(){l(L)}:O()}function B(){var fe=0,H=new _(L),G=document.createTextNode("");return H.observe(G,{characterData:!0}),function(){G.data=fe=++fe%2}}function N(){var fe=new MessageChannel;return fe.port1.onmessage=L,function(){return fe.port2.postMessage(0)}}function O(){var fe=setTimeout;return function(){return fe(L,1)}}var P=new Array(1e3);function L(){for(var fe=0;fe<o;fe+=2){var H=P[fe],G=P[fe+1];H(G),P[fe]=void 0,P[fe+1]=void 0}o=0}function $(){try{var fe=Function("return this")().require("vertx");return l=fe.runOnLoop||fe.runOnContext,I()}catch{return O()}}var z=void 0;S?z=C():_?z=B():T?z=N():m===void 0&&typeof zU=="function"?z=$():z=O();function K(fe,H){var G=this,me=new this.constructor(h);me[s]===void 0&&j(me);var oe=G._state;if(oe){var pe=arguments[oe-1];c(function(){return te(oe,me,pe,G._result)})}else X(G,me,fe,H);return me}function M(fe){var H=this;if(fe&&typeof fe=="object"&&fe.constructor===H)return fe;var G=new H(h);return R(G,fe),G}var s=Math.random().toString(36).substring(2);function h(){}var p=void 0,g=1,y=2;function w(){return new TypeError("You cannot resolve a promise with itself")}function A(){return new TypeError("A promises callback cannot return that same promise.")}function E(fe,H,G,me){try{fe.call(H,G,me)}catch(oe){return oe}}function f(fe,H,G){c(function(me){var oe=!1,pe=E(G,H,function(Je){oe||(oe=!0,H!==Je?R(me,Je):J(me,Je))},function(Je){oe||(oe=!0,W(me,Je))},"Settle: "+(me._label||" unknown promise"));!oe&&pe&&(oe=!0,W(me,pe))},fe)}function x(fe,H){H._state===g?J(fe,H._result):H._state===y?W(fe,H._result):X(H,void 0,function(G){return R(fe,G)},function(G){return W(fe,G)})}function k(fe,H,G){H.constructor===fe.constructor&&G===K&&H.constructor.resolve===M?x(fe,H):G===void 0?J(fe,H):n(G)?f(fe,H,G):J(fe,H)}function R(fe,H){if(fe===H)W(fe,w());else if(r(H)){var G=void 0;try{G=H.then}catch(me){W(fe,me);return}k(fe,H,G)}else J(fe,H)}function q(fe){fe._onerror&&fe._onerror(fe._result),ae(fe)}function J(fe,H){fe._state===p&&(fe._result=H,fe._state=g,fe._subscribers.length!==0&&c(ae,fe))}function W(fe,H){fe._state===p&&(fe._state=y,fe._result=H,c(q,fe))}function X(fe,H,G,me){var oe=fe._subscribers,pe=oe.length;fe._onerror=null,oe[pe]=H,oe[pe+g]=G,oe[pe+y]=me,pe===0&&fe._state&&c(ae,fe)}function ae(fe){var H=fe._subscribers,G=fe._state;if(H.length!==0){for(var me=void 0,oe=void 0,pe=fe._result,Je=0;Je<H.length;Je+=3)me=H[Je],oe=H[Je+G],me?te(G,me,oe,pe):oe(pe);fe._subscribers.length=0}}function te(fe,H,G,me){var oe=n(G),pe=void 0,Je=void 0,xe=!0;if(oe){try{pe=G(me)}catch(Me){xe=!1,Je=Me}if(H===pe){W(H,A());return}}else pe=me;H._state!==p||(oe&&xe?R(H,pe):xe===!1?W(H,Je):fe===g?J(H,pe):fe===y&&W(H,pe))}function he(fe,H){try{H(function(me){R(fe,me)},function(me){W(fe,me)})}catch(G){W(fe,G)}}var re=0;function Z(){return re++}function j(fe){fe[s]=re++,fe._state=void 0,fe._result=void 0,fe._subscribers=[]}function ie(){return new Error("Array Methods must be provided an Array")}var le=function(){function fe(H,G){this._instanceConstructor=H,this.promise=new H(h),this.promise[s]||j(this.promise),i(G)?(this.length=G.length,this._remaining=G.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(G),this._remaining===0&&J(this.promise,this._result))):W(this.promise,ie())}return fe.prototype._enumerate=function(G){for(var me=0;this._state===p&&me<G.length;me++)this._eachEntry(G[me],me)},fe.prototype._eachEntry=function(G,me){var oe=this._instanceConstructor,pe=oe.resolve;if(pe===M){var Je=void 0,xe=void 0,Me=!1;try{Je=G.then}catch(ce){Me=!0,xe=ce}if(Je===K&&G._state!==p)this._settledAt(G._state,me,G._result);else if(typeof Je!="function")this._remaining--,this._result[me]=G;else if(oe===Q){var et=new oe(h);Me?W(et,xe):k(et,G,Je),this._willSettleAt(et,me)}else this._willSettleAt(new oe(function(ce){return ce(G)}),me)}else this._willSettleAt(pe(G),me)},fe.prototype._settledAt=function(G,me,oe){var pe=this.promise;pe._state===p&&(this._remaining--,G===y?W(pe,oe):this._result[me]=oe),this._remaining===0&&J(pe,this._result)},fe.prototype._willSettleAt=function(G,me){var oe=this;X(G,void 0,function(pe){return oe._settledAt(g,me,pe)},function(pe){return oe._settledAt(y,me,pe)})},fe}();function V(fe){return new le(this,fe).promise}function D(fe){var H=this;return i(fe)?new H(function(G,me){for(var oe=fe.length,pe=0;pe<oe;pe++)H.resolve(fe[pe]).then(G,me)}):new H(function(G,me){return me(new TypeError("You must pass an array to race."))})}function F(fe){var H=this,G=new H(h);return W(G,fe),G}function U(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function se(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Q=function(){function fe(H){this[s]=Z(),this._result=this._state=void 0,this._subscribers=[],h!==H&&(typeof H!="function"&&U(),this instanceof fe?he(this,H):se())}return fe.prototype.catch=function(G){return this.then(null,G)},fe.prototype.finally=function(G){var me=this,oe=me.constructor;return n(G)?me.then(function(pe){return oe.resolve(G()).then(function(){return pe})},function(pe){return oe.resolve(G()).then(function(){throw pe})}):me.then(G,G)},fe}();Q.prototype.then=K,Q.all=V,Q.race=D,Q.resolve=M,Q.reject=F,Q._setScheduler=d,Q._setAsap=v,Q._asap=c;function ne(){var fe=void 0;if(typeof Bt<"u")fe=Bt;else if(typeof self<"u")fe=self;else try{fe=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var H=fe.Promise;if(H){var G=null;try{G=Object.prototype.toString.call(H.resolve())}catch{}if(G==="[object Promise]"&&!H.cast)return}fe.Promise=Q}return Q.polyfill=ne,Q.Promise=Q,Q})}(qg)),qg.exports}function UU(e){return e}var Hg=UU;function VU(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var jg=VU,qU=jg,c4=Math.max;function HU(e,t,r){return t=c4(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=c4(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),qU(e,this,l)}}var h4=HU;function jU(e){return function(){return e}}var KU=jU,WU=typeof Bt=="object"&&Bt&&Bt.Object===Object&&Bt,d4=WU,GU=d4,ZU=typeof self=="object"&&self&&self.Object===Object&&self,YU=GU||ZU||Function("return this")(),hi=YU,JU=hi,XU=JU.Symbol,cc=XU,p4=cc,v4=Object.prototype,QU=v4.hasOwnProperty,eV=v4.toString,hc=p4?p4.toStringTag:void 0;function tV(e){var t=QU.call(e,hc),r=e[hc];try{e[hc]=void 0;var n=!0}catch{}var a=eV.call(e);return n&&(t?e[hc]=r:delete e[hc]),a}var rV=tV,nV=Object.prototype,iV=nV.toString;function aV(e){return iV.call(e)}var oV=aV,m4=cc,sV=rV,lV=oV,uV="[object Null]",fV="[object Undefined]",g4=m4?m4.toStringTag:void 0;function cV(e){return e==null?e===void 0?fV:uV:g4&&g4 in Object(e)?sV(e):lV(e)}var Du=cV;function hV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ga=hV,dV=Du,pV=ga,vV="[object AsyncFunction]",mV="[object Function]",gV="[object GeneratorFunction]",yV="[object Proxy]";function bV(e){if(!pV(e))return!1;var t=dV(e);return t==mV||t==gV||t==vV||t==yV}var Kg=bV,_V=hi,wV=_V["__core-js_shared__"],EV=wV,Wg=EV,y4=function(){var e=/[^.]+$/.exec(Wg&&Wg.keys&&Wg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xV(e){return!!y4&&y4 in e}var SV=xV,MV=Function.prototype,CV=MV.toString;function TV(e){if(e!=null){try{return CV.call(e)}catch{}try{return e+""}catch{}}return""}var b4=TV,AV=Kg,IV=SV,BV=ga,kV=b4,NV=/[\\^$.*+?()[\]{}|]/g,OV=/^\[object .+?Constructor\]$/,RV=Function.prototype,PV=Object.prototype,FV=RV.toString,LV=PV.hasOwnProperty,DV=RegExp("^"+FV.call(LV).replace(NV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $V(e){if(!BV(e)||IV(e))return!1;var t=AV(e)?DV:OV;return t.test(kV(e))}var zV=$V;function UV(e,t){return e==null?void 0:e[t]}var VV=UV,qV=zV,HV=VV;function jV(e,t){var r=HV(e,t);return qV(r)?r:void 0}var wl=jV,KV=wl,WV=function(){try{var e=KV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_4=WV,GV=KU,w4=_4,ZV=Hg,YV=w4?function(e,t){return w4(e,"toString",{configurable:!0,enumerable:!1,value:GV(t),writable:!0})}:ZV,JV=YV,XV=800,QV=16,eq=Date.now;function tq(e){var t=0,r=0;return function(){var n=eq(),a=QV-(n-r);if(r=n,a>0){if(++t>=XV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var E4=tq,rq=JV,nq=E4,iq=nq(rq),Gg=iq,aq=Hg,oq=h4,sq=Gg;function lq(e,t){return sq(oq(e,t,aq),e+"")}var Zg=lq,uq=wl,fq=hi,cq=uq(fq,"WeakMap"),x4=cq,S4=x4,hq=S4&&new S4,M4=hq,dq=Hg,C4=M4,pq=C4?function(e,t){return C4.set(e,t),e}:dq,T4=pq,vq=ga,A4=Object.create,mq=function(){function e(){}return function(t){if(!vq(t))return{};if(A4)return A4(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Od=mq,gq=Od,yq=ga;function bq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=gq(e.prototype),n=e.apply(r,t);return yq(n)?n:r}}var Rd=bq,_q=Rd,wq=hi,Eq=1;function xq(e,t,r){var n=t&Eq,a=_q(e);function i(){var o=this&&this!==wq&&this instanceof i?a:e;return o.apply(n?r:this,arguments)}return i}var Sq=xq,Mq=Math.max;function Cq(e,t,r,n){for(var a=-1,i=e.length,o=r.length,l=-1,u=t.length,c=Mq(i-o,0),d=Array(u+c),v=!n;++l<u;)d[l]=t[l];for(;++a<o;)(v||a<i)&&(d[r[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}var I4=Cq,Tq=Math.max;function Aq(e,t,r,n){for(var a=-1,i=e.length,o=-1,l=r.length,u=-1,c=t.length,d=Tq(i-l,0),v=Array(d+c),m=!n;++a<d;)v[a]=e[a];for(var b=a;++u<c;)v[b+u]=t[u];for(;++o<l;)(m||a<i)&&(v[b+r[o]]=e[a++]);return v}var B4=Aq;function Iq(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Bq=Iq;function kq(){}var Yg=kq,Nq=Od,Oq=Yg,Rq=4294967295;function Pd(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rq,this.__views__=[]}Pd.prototype=Nq(Oq.prototype),Pd.prototype.constructor=Pd;var Jg=Pd;function Pq(){}var k4=Pq,N4=M4,Fq=k4,Lq=N4?function(e){return N4.get(e)}:Fq,O4=Lq,Dq={},$q=Dq,R4=$q,zq=Object.prototype,Uq=zq.hasOwnProperty;function Vq(e){for(var t=e.name+"",r=R4[t],n=Uq.call(R4,t)?r.length:0;n--;){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}var qq=Vq,Hq=Od,jq=Yg;function Fd(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Fd.prototype=Hq(jq.prototype),Fd.prototype.constructor=Fd;var P4=Fd,Kq=Array.isArray,Ka=Kq;function Wq(e){return e!=null&&typeof e=="object"}var Io=Wq;function Gq(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ld=Gq,Zq=Jg,Yq=P4,Jq=Ld;function Xq(e){if(e instanceof Zq)return e.clone();var t=new Yq(e.__wrapped__,e.__chain__);return t.__actions__=Jq(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Qq=Xq,eH=Jg,F4=P4,tH=Yg,rH=Ka,nH=Io,iH=Qq,aH=Object.prototype,oH=aH.hasOwnProperty;function Dd(e){if(nH(e)&&!rH(e)&&!(e instanceof eH)){if(e instanceof F4)return e;if(oH.call(e,"__wrapped__"))return iH(e)}return new F4(e)}Dd.prototype=tH.prototype,Dd.prototype.constructor=Dd;var sH=Dd,lH=Jg,uH=O4,fH=qq,cH=sH;function hH(e){var t=fH(e),r=cH[t];if(typeof r!="function"||!(t in lH.prototype))return!1;if(e===r)return!0;var n=uH(r);return!!n&&e===n[0]}var dH=hH,pH=T4,vH=E4,mH=vH(pH),L4=mH,gH=/\{\n\/\* \[wrapped with (.+)\] \*/,yH=/,? & /;function bH(e){var t=e.match(gH);return t?t[1].split(yH):[]}var _H=bH,wH=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function EH(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(wH,`{
685
685
  /* [wrapped with `+t+`] */
686
686
  `)}var xH=EH;function SH(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var D4=SH;function MH(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var CH=MH;function TH(e){return e!==e}var AH=TH;function IH(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}var BH=IH,kH=CH,NH=AH,OH=BH;function RH(e,t,r){return t===t?OH(e,t,r):kH(e,NH,r)}var PH=RH,FH=PH;function LH(e,t){var r=e==null?0:e.length;return!!r&&FH(e,t,0)>-1}var Xg=LH,DH=D4,$H=Xg,zH=1,UH=2,VH=8,qH=16,HH=32,jH=64,KH=128,WH=256,GH=512,ZH=[["ary",KH],["bind",zH],["bindKey",UH],["curry",VH],["curryRight",qH],["flip",GH],["partial",HH],["partialRight",jH],["rearg",WH]];function YH(e,t){return DH(ZH,function(r){var n="_."+r[0];t&r[1]&&!$H(e,n)&&e.push(n)}),e.sort()}var JH=YH,XH=_H,QH=xH,ej=Gg,tj=JH;function rj(e,t,r){var n=t+"";return ej(e,QH(n,tj(XH(n),r)))}var $4=rj,nj=dH,ij=L4,aj=$4,oj=1,sj=2,lj=4,uj=8,z4=32,U4=64;function fj(e,t,r,n,a,i,o,l,u,c){var d=t&uj,v=d?o:void 0,m=d?void 0:o,b=d?i:void 0,_=d?void 0:i;t|=d?z4:U4,t&=~(d?U4:z4),t&lj||(t&=~(oj|sj));var S=[e,t,a,b,v,_,m,l,u,c],T=r.apply(void 0,S);return nj(e)&&ij(T,S),T.placeholder=n,aj(T,e,t)}var V4=fj;function cj(e){var t=e;return t.placeholder}var Qg=cj,hj=9007199254740991,dj=/^(?:0|[1-9]\d*)$/;function pj(e,t){var r=typeof e;return t=t??hj,!!t&&(r=="number"||r!="symbol"&&dj.test(e))&&e>-1&&e%1==0&&e<t}var dc=pj,vj=Ld,mj=dc,gj=Math.min;function yj(e,t){for(var r=e.length,n=gj(t.length,r),a=vj(e);n--;){var i=t[n];e[n]=mj(i,r)?a[i]:void 0}return e}var bj=yj,q4="__lodash_placeholder__";function _j(e,t){for(var r=-1,n=e.length,a=0,i=[];++r<n;){var o=e[r];(o===t||o===q4)&&(e[r]=q4,i[a++]=r)}return i}var $d=_j,wj=I4,Ej=B4,xj=Bq,H4=Rd,Sj=V4,Mj=Qg,Cj=bj,Tj=$d,Aj=hi,Ij=1,Bj=2,kj=8,Nj=16,Oj=128,Rj=512;function j4(e,t,r,n,a,i,o,l,u,c){var d=t&Oj,v=t&Ij,m=t&Bj,b=t&(kj|Nj),_=t&Rj,S=m?void 0:H4(e);function T(){for(var C=arguments.length,I=Array(C),B=C;B--;)I[B]=arguments[B];if(b)var N=Mj(T),O=xj(I,N);if(n&&(I=wj(I,n,a,b)),i&&(I=Ej(I,i,o,b)),C-=O,b&&C<c){var P=Tj(I,N);return Sj(e,t,j4,T.placeholder,r,I,P,l,u,c-C)}var L=v?r:this,$=m?L[e]:e;return C=I.length,l?I=Cj(I,l):_&&C>1&&I.reverse(),d&&u<C&&(I.length=u),this&&this!==Aj&&this instanceof T&&($=S||H4($)),$.apply(L,I)}return T}var K4=j4,Pj=jg,Fj=Rd,Lj=K4,Dj=V4,$j=Qg,zj=$d,Uj=hi;function Vj(e,t,r){var n=Fj(e);function a(){for(var i=arguments.length,o=Array(i),l=i,u=$j(a);l--;)o[l]=arguments[l];var c=i<3&&o[0]!==u&&o[i-1]!==u?[]:zj(o,u);if(i-=c.length,i<r)return Dj(e,t,Lj,a.placeholder,void 0,o,c,void 0,void 0,r-i);var d=this&&this!==Uj&&this instanceof a?n:e;return Pj(d,this,o)}return a}var qj=Vj,Hj=jg,jj=Rd,Kj=hi,Wj=1;function Gj(e,t,r,n){var a=t&Wj,i=jj(e);function o(){for(var l=-1,u=arguments.length,c=-1,d=n.length,v=Array(d+u),m=this&&this!==Kj&&this instanceof o?i:e;++c<d;)v[c]=n[c];for(;u--;)v[c++]=arguments[++l];return Hj(m,a?r:this,v)}return o}var Zj=Gj,Yj=I4,Jj=B4,W4=$d,G4="__lodash_placeholder__",e1=1,Xj=2,Qj=4,Z4=8,pc=128,Y4=256,eK=Math.min;function tK(e,t){var r=e[1],n=t[1],a=r|n,i=a<(e1|Xj|pc),o=n==pc&&r==Z4||n==pc&&r==Y4&&e[7].length<=t[8]||n==(pc|Y4)&&t[7].length<=t[8]&&r==Z4;if(!(i||o))return e;n&e1&&(e[2]=t[2],a|=r&e1?0:Qj);var l=t[3];if(l){var u=e[3];e[3]=u?Yj(u,l,t[4]):l,e[4]=u?W4(e[3],G4):t[4]}return l=t[5],l&&(u=e[5],e[5]=u?Jj(u,l,t[6]):l,e[6]=u?W4(e[5],G4):t[6]),l=t[7],l&&(e[7]=l),n&pc&&(e[8]=e[8]==null?t[8]:eK(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}var rK=tK,nK=/\s/;function iK(e){for(var t=e.length;t--&&nK.test(e.charAt(t)););return t}var aK=iK,oK=aK,sK=/^\s+/;function lK(e){return e&&e.slice(0,oK(e)+1).replace(sK,"")}var uK=lK,fK=Du,cK=Io,hK="[object Symbol]";function dK(e){return typeof e=="symbol"||cK(e)&&fK(e)==hK}var zd=dK,pK=uK,J4=ga,vK=zd,X4=0/0,mK=/^[-+]0x[0-9a-f]+$/i,gK=/^0b[01]+$/i,yK=/^0o[0-7]+$/i,bK=parseInt;function _K(e){if(typeof e=="number")return e;if(vK(e))return X4;if(J4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=J4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pK(e);var r=gK.test(e);return r||yK.test(e)?bK(e.slice(2),r?2:8):mK.test(e)?X4:+e}var wK=_K,EK=wK,Q4=1/0,xK=17976931348623157e292;function SK(e){if(!e)return e===0?e:0;if(e=EK(e),e===Q4||e===-Q4){var t=e<0?-1:1;return t*xK}return e===e?e:0}var MK=SK,CK=MK;function TK(e){var t=CK(e),r=t%1;return t===t?r?t-r:t:0}var t1=TK,AK=T4,IK=Sq,BK=qj,kK=K4,NK=Zj,OK=O4,RK=rK,PK=L4,FK=$4,eS=t1,LK="Expected a function",tS=1,DK=2,r1=8,n1=16,i1=32,rS=64,nS=Math.max;function $K(e,t,r,n,a,i,o,l){var u=t&DK;if(!u&&typeof e!="function")throw new TypeError(LK);var c=n?n.length:0;if(c||(t&=~(i1|rS),n=a=void 0),o=o===void 0?o:nS(eS(o),0),l=l===void 0?l:eS(l),c-=a?a.length:0,t&rS){var d=n,v=a;n=a=void 0}var m=u?void 0:OK(e),b=[e,t,r,n,a,d,v,i,o,l];if(m&&RK(b,m),e=b[0],t=b[1],r=b[2],n=b[3],a=b[4],l=b[9]=b[9]===void 0?u?0:e.length:nS(b[9]-c,0),!l&&t&(r1|n1)&&(t&=~(r1|n1)),!t||t==tS)var _=IK(e,t,r);else t==r1||t==n1?_=BK(e,t,l):(t==i1||t==(tS|i1))&&!a.length?_=NK(e,t,r,n):_=kK.apply(void 0,b);var S=m?AK:PK;return FK(S(_,b),e,t)}var zK=$K,UK=Zg,VK=zK,qK=Qg,HK=$d,jK=64,a1=UK(function(e,t){var r=HK(t,qK(a1));return VK(e,jK,void 0,t,r)});a1.placeholder={};var KK=a1;function WK(){this.__data__=[],this.size=0}var GK=WK;function ZK(e,t){return e===t||e!==e&&t!==t}var Ud=ZK,YK=Ud;function JK(e,t){for(var r=e.length;r--;)if(YK(e[r][0],t))return r;return-1}var Vd=JK,XK=Vd,QK=Array.prototype,eW=QK.splice;function tW(e){var t=this.__data__,r=XK(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():eW.call(t,r,1),--this.size,!0}var rW=tW,nW=Vd;function iW(e){var t=this.__data__,r=nW(t,e);return r<0?void 0:t[r][1]}var aW=iW,oW=Vd;function sW(e){return oW(this.__data__,e)>-1}var lW=sW,uW=Vd;function fW(e,t){var r=this.__data__,n=uW(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var cW=fW,hW=GK,dW=rW,pW=aW,vW=lW,mW=cW;function $u(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$u.prototype.clear=hW,$u.prototype.delete=dW,$u.prototype.get=pW,$u.prototype.has=vW,$u.prototype.set=mW;var qd=$u,gW=qd;function yW(){this.__data__=new gW,this.size=0}var bW=yW;function _W(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var wW=_W;function EW(e){return this.__data__.get(e)}var xW=EW;function SW(e){return this.__data__.has(e)}var MW=SW,CW=wl,TW=hi,AW=CW(TW,"Map"),o1=AW,IW=wl,BW=IW(Object,"create"),Hd=BW,iS=Hd;function kW(){this.__data__=iS?iS(null):{},this.size=0}var NW=kW;function OW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var RW=OW,PW=Hd,FW="__lodash_hash_undefined__",LW=Object.prototype,DW=LW.hasOwnProperty;function $W(e){var t=this.__data__;if(PW){var r=t[e];return r===FW?void 0:r}return DW.call(t,e)?t[e]:void 0}var zW=$W,UW=Hd,VW=Object.prototype,qW=VW.hasOwnProperty;function HW(e){var t=this.__data__;return UW?t[e]!==void 0:qW.call(t,e)}var jW=HW,KW=Hd,WW="__lodash_hash_undefined__";function GW(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=KW&&t===void 0?WW:t,this}var ZW=GW,YW=NW,JW=RW,XW=zW,QW=jW,eG=ZW;function zu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zu.prototype.clear=YW,zu.prototype.delete=JW,zu.prototype.get=XW,zu.prototype.has=QW,zu.prototype.set=eG;var tG=zu,aS=tG,rG=qd,nG=o1;function iG(){this.size=0,this.__data__={hash:new aS,map:new(nG||rG),string:new aS}}var aG=iG;function oG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var sG=oG,lG=sG;function uG(e,t){var r=e.__data__;return lG(t)?r[typeof t=="string"?"string":"hash"]:r.map}var jd=uG,fG=jd;function cG(e){var t=fG(this,e).delete(e);return this.size-=t?1:0,t}var hG=cG,dG=jd;function pG(e){return dG(this,e).get(e)}var vG=pG,mG=jd;function gG(e){return mG(this,e).has(e)}var yG=gG,bG=jd;function _G(e,t){var r=bG(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var wG=_G,EG=aG,xG=hG,SG=vG,MG=yG,CG=wG;function Uu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Uu.prototype.clear=EG,Uu.prototype.delete=xG,Uu.prototype.get=SG,Uu.prototype.has=MG,Uu.prototype.set=CG;var s1=Uu,TG=qd,AG=o1,IG=s1,BG=200;function kG(e,t){var r=this.__data__;if(r instanceof TG){var n=r.__data__;if(!AG||n.length<BG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new IG(n)}return r.set(e,t),this.size=r.size,this}var NG=kG,OG=qd,RG=bW,PG=wW,FG=xW,LG=MW,DG=NG;function Vu(e){var t=this.__data__=new OG(e);this.size=t.size}Vu.prototype.clear=RG,Vu.prototype.delete=PG,Vu.prototype.get=FG,Vu.prototype.has=LG,Vu.prototype.set=DG;var oS=Vu,sS=_4;function $G(e,t,r){t=="__proto__"&&sS?sS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var l1=$G,zG=l1,UG=Ud;function VG(e,t,r){(r!==void 0&&!UG(e[t],r)||r===void 0&&!(t in e))&&zG(e,t,r)}var lS=VG;function qG(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++a];if(r(i[u],u,i)===!1)break}return t}}var HG=qG,jG=HG,KG=jG(),WG=KG,Kd={exports:{}};Kd.exports,function(e,t){var r=hi,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,l=o?o.allocUnsafe:void 0;function u(c,d){if(d)return c.slice();var v=c.length,m=l?l(v):new c.constructor(v);return c.copy(m),m}e.exports=u}(Kd,Kd.exports);var uS=Kd.exports,GG=hi,ZG=GG.Uint8Array,YG=ZG,fS=YG;function JG(e){var t=new e.constructor(e.byteLength);return new fS(t).set(new fS(e)),t}var u1=JG,XG=u1;function QG(e,t){var r=t?XG(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var cS=QG;function eZ(e,t){return function(r){return e(t(r))}}var hS=eZ,tZ=hS,rZ=tZ(Object.getPrototypeOf,Object),f1=rZ,nZ=Object.prototype;function iZ(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nZ;return e===r}var Wd=iZ,aZ=Od,oZ=f1,sZ=Wd;function lZ(e){return typeof e.constructor=="function"&&!sZ(e)?aZ(oZ(e)):{}}var dS=lZ,uZ=Du,fZ=Io,cZ="[object Arguments]";function hZ(e){return fZ(e)&&uZ(e)==cZ}var dZ=hZ,pS=dZ,pZ=Io,vS=Object.prototype,vZ=vS.hasOwnProperty,mZ=vS.propertyIsEnumerable,gZ=pS(function(){return arguments}())?pS:function(e){return pZ(e)&&vZ.call(e,"callee")&&!mZ.call(e,"callee")},Gd=gZ,yZ=9007199254740991;function bZ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yZ}var c1=bZ,_Z=Kg,wZ=c1;function EZ(e){return e!=null&&wZ(e.length)&&!_Z(e)}var vc=EZ,xZ=vc,SZ=Io;function MZ(e){return SZ(e)&&xZ(e)}var mS=MZ,Zd={exports:{}};function CZ(){return!1}var TZ=CZ;Zd.exports,function(e,t){var r=hi,n=TZ,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||n;e.exports=c}(Zd,Zd.exports);var h1=Zd.exports,AZ=Du,IZ=f1,BZ=Io,kZ="[object Object]",NZ=Function.prototype,OZ=Object.prototype,gS=NZ.toString,RZ=OZ.hasOwnProperty,PZ=gS.call(Object);function FZ(e){if(!BZ(e)||AZ(e)!=kZ)return!1;var t=IZ(e);if(t===null)return!0;var r=RZ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&gS.call(r)==PZ}var yS=FZ,LZ=Du,DZ=c1,$Z=Io,zZ="[object Arguments]",UZ="[object Array]",VZ="[object Boolean]",qZ="[object Date]",HZ="[object Error]",jZ="[object Function]",KZ="[object Map]",WZ="[object Number]",GZ="[object Object]",ZZ="[object RegExp]",YZ="[object Set]",JZ="[object String]",XZ="[object WeakMap]",QZ="[object ArrayBuffer]",eY="[object DataView]",tY="[object Float32Array]",rY="[object Float64Array]",nY="[object Int8Array]",iY="[object Int16Array]",aY="[object Int32Array]",oY="[object Uint8Array]",sY="[object Uint8ClampedArray]",lY="[object Uint16Array]",uY="[object Uint32Array]",jr={};jr[tY]=jr[rY]=jr[nY]=jr[iY]=jr[aY]=jr[oY]=jr[sY]=jr[lY]=jr[uY]=!0,jr[zZ]=jr[UZ]=jr[QZ]=jr[VZ]=jr[eY]=jr[qZ]=jr[HZ]=jr[jZ]=jr[KZ]=jr[WZ]=jr[GZ]=jr[ZZ]=jr[YZ]=jr[JZ]=jr[XZ]=!1;function fY(e){return $Z(e)&&DZ(e.length)&&!!jr[LZ(e)]}var cY=fY;function hY(e){return function(t){return e(t)}}var Yd=hY,Jd={exports:{}};Jd.exports,function(e,t){var r=d4,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,l=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l}(Jd,Jd.exports);var d1=Jd.exports,dY=cY,pY=Yd,bS=d1,_S=bS&&bS.isTypedArray,vY=_S?pY(_S):dY,wS=vY;function mY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ES=mY,gY=l1,yY=Ud,bY=Object.prototype,_Y=bY.hasOwnProperty;function wY(e,t,r){var n=e[t];(!(_Y.call(e,t)&&yY(n,r))||r===void 0&&!(t in e))&&gY(e,t,r)}var Xd=wY,EY=Xd,xY=l1;function SY(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var l=t[i],u=n?n(r[l],e[l],l,r,e):void 0;u===void 0&&(u=e[l]),a?xY(r,l,u):EY(r,l,u)}return r}var El=SY;function MY(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var CY=MY,TY=CY,AY=Gd,IY=Ka,BY=h1,kY=dc,NY=wS,OY=Object.prototype,RY=OY.hasOwnProperty;function PY(e,t){var r=IY(e),n=!r&&AY(e),a=!r&&!n&&BY(e),i=!r&&!n&&!a&&NY(e),o=r||n||a||i,l=o?TY(e.length,String):[],u=l.length;for(var c in e)(t||RY.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||kY(c,u)))&&l.push(c);return l}var xS=PY;function FY(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var LY=FY,DY=ga,$Y=Wd,zY=LY,UY=Object.prototype,VY=UY.hasOwnProperty;function qY(e){if(!DY(e))return zY(e);var t=$Y(e),r=[];for(var n in e)n=="constructor"&&(t||!VY.call(e,n))||r.push(n);return r}var HY=qY,jY=xS,KY=HY,WY=vc;function GY(e){return WY(e)?jY(e,!0):KY(e)}var mc=GY,ZY=El,YY=mc;function JY(e){return ZY(e,YY(e))}var XY=JY,SS=lS,QY=uS,eJ=cS,tJ=Ld,rJ=dS,MS=Gd,CS=Ka,nJ=mS,iJ=h1,aJ=Kg,oJ=ga,sJ=yS,lJ=wS,TS=ES,uJ=XY;function fJ(e,t,r,n,a,i,o){var l=TS(e,r),u=TS(t,r),c=o.get(u);if(c){SS(e,r,c);return}var d=i?i(l,u,r+"",e,t,o):void 0,v=d===void 0;if(v){var m=CS(u),b=!m&&iJ(u),_=!m&&!b&&lJ(u);d=u,m||b||_?CS(l)?d=l:nJ(l)?d=tJ(l):b?(v=!1,d=QY(u,!0)):_?(v=!1,d=eJ(u,!0)):d=[]:sJ(u)||MS(u)?(d=l,MS(l)?d=uJ(l):(!oJ(l)||aJ(l))&&(d=rJ(u))):v=!1}v&&(o.set(u,d),a(d,u,n,i,o),o.delete(u)),SS(e,r,d)}var cJ=fJ,hJ=oS,dJ=lS,pJ=WG,vJ=cJ,mJ=ga,gJ=mc,yJ=ES;function AS(e,t,r,n,a){e!==t&&pJ(t,function(i,o){if(a||(a=new hJ),mJ(i))vJ(e,t,o,r,AS,n,a);else{var l=n?n(yJ(e,o),i,o+"",e,t,a):void 0;l===void 0&&(l=i),dJ(e,o,l)}},gJ)}var bJ=AS,_J=Ud,wJ=vc,EJ=dc,xJ=ga;function SJ(e,t,r){if(!xJ(r))return!1;var n=typeof t;return(n=="number"?wJ(r)&&EJ(t,r.length):n=="string"&&t in r)?_J(r[t],e):!1}var IS=SJ,MJ=Zg,CJ=IS;function TJ(e){return MJ(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&CJ(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t})}var BS=TJ,AJ=bJ,IJ=BS,BJ=IJ(function(e,t,r){AJ(e,t,r)}),kJ=BJ,NJ=KK,OJ=kJ,p1=function(){var e=[];return typeof Uint8ClampedArray<"u"&&e.push(Uint8ClampedArray),typeof Uint8Array<"u"&&e.push(Uint8Array),typeof Uint16Array<"u"&&e.push(Uint16Array),typeof Uint32Array<"u"&&e.push(Uint32Array),typeof Float32Array<"u"&&e.push(Float32Array),typeof Float64Array<"u"&&e.push(Float64Array),e}();function RJ(e){for(var t,r=0;!t&&p1.length>r;r++)e instanceof p1[r]&&(t=p1[r]);return t}function PJ(e,t){if(ve.Buffer.isBuffer(t))t=ve.Buffer.from(t);else{var r=RJ(t);t=r?new r(t,t.byteOffset,t.byteLength):void 0}return t}var vs=NJ(OJ,PJ),pr={options:{usePureJavaScript:!1}},v1={},FJ=v1,kS={};v1.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var n="";if(!(e instanceof Uint8Array))n=LJ(e,t);else{var a=0,i=t.length,o=t.charAt(0),l=[0];for(a=0;a<e.length;++a){for(var u=0,c=e[a];u<l.length;++u)c+=l[u]<<8,l[u]=c%i,c=c/i|0;for(;c>0;)l.push(c%i),c=c/i|0}for(a=0;e[a]===0&&a<e.length-1;++a)n+=o;for(a=l.length-1;a>=0;--a)n+=t[l[a]]}if(r){var d=new RegExp(".{1,"+r+"}","g");n=n.match(d).join(`\r
687
687
  `)}return n},v1.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=kS[t];if(!r){r=kS[t]=[];for(var n=0;n<t.length;++n)r[t.charCodeAt(n)]=n}e=e.replace(/\s/g,"");for(var a=t.length,i=t.charAt(0),o=[0],n=0;n<e.length;n++){var l=r[e.charCodeAt(n)];if(l===void 0)return;for(var u=0,c=l;u<o.length;++u)c+=o[u]*a,o[u]=c&255,c>>=8;for(;c>0;)o.push(c&255),c>>=8}for(var d=0;e[d]===i&&d<e.length-1;++d)o.push(0);return typeof ve.Buffer<"u"?ve.Buffer.from(o.reverse()):new Uint8Array(o.reverse())};function LJ(e,t){var r=0,n=t.length,a=t.charAt(0),i=[0];for(r=0;r<e.length();++r){for(var o=0,l=e.at(r);o<i.length;++o)l+=i[o]<<8,i[o]=l%n,l=l/n|0;for(;l>0;)i.push(l%n),l=l/n|0}var u="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)u+=a;for(r=i.length-1;r>=0;--r)u+=t[i[r]];return u}var NS=pr,OS=FJ,Se=NS.util=NS.util||{};(function(){if(typeof ue<"u"&&ue.nextTick&&!ue.browser){Se.nextTick=ue.nextTick,typeof setImmediate=="function"?Se.setImmediate=setImmediate:Se.setImmediate=Se.nextTick;return}if(typeof setImmediate=="function"){Se.setImmediate=function(){return setImmediate.apply(void 0,arguments)},Se.nextTick=function(o){return setImmediate(o)};return}if(Se.setImmediate=function(o){setTimeout(o,0)},typeof window<"u"&&typeof window.postMessage=="function"){let o=function(l){if(l.source===window&&l.data===e){l.stopPropagation();var u=t.slice();t.length=0,u.forEach(function(c){c()})}};var e="forge.setImmediate",t=[];Se.setImmediate=function(l){t.push(l),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",o,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),n=!0,a=document.createElement("div"),t=[];new MutationObserver(function(){var l=t.slice();t.length=0,l.forEach(function(u){u()})}).observe(a,{attributes:!0});var i=Se.setImmediate;Se.setImmediate=function(l){Date.now()-r>15?(r=Date.now(),i(l)):(t.push(l),t.length===1&&a.setAttribute("a",n=!n))}}Se.nextTick=Se.setImmediate})(),Se.isNodejs=typeof ue<"u"&&ue.versions&&ue.versions.node,Se.globalScope=function(){return Se.isNodejs?Bt:typeof self>"u"?window:self}(),Se.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},Se.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},Se.isArrayBufferView=function(e){return e&&Se.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function gc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}Se.ByteBuffer=m1;function m1(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(Se.isArrayBuffer(e)||Se.isArrayBufferView(e))if(typeof ve.Buffer<"u"&&e instanceof ve.Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof m1||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}Se.ByteStringBuffer=m1;var DJ=4096;Se.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>DJ&&(this.data.substr(0,1),this._constructedStringLength=0)},Se.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},Se.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},Se.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},Se.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},Se.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},Se.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(Se.encodeUtf8(e))},Se.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},Se.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},Se.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},Se.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},Se.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},Se.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},Se.ByteStringBuffer.prototype.putInt=function(e,t){gc(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)},Se.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},Se.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},Se.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},Se.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},Se.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},Se.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},Se.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},Se.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},Se.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},Se.ByteStringBuffer.prototype.getInt=function(e){gc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},Se.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},Se.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},Se.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},Se.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},Se.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},Se.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},Se.ByteStringBuffer.prototype.copy=function(){var e=Se.createBuffer(this.data);return e.read=this.read,e},Se.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},Se.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},Se.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},Se.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},Se.ByteStringBuffer.prototype.toString=function(){return Se.decodeUtf8(this.bytes())};function $J(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=Se.isArrayBuffer(e),n=Se.isArrayBufferView(e);if(r||n){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}Se.DataBuffer=$J,Se.DataBuffer.prototype.length=function(){return this.write-this.read},Se.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},Se.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+t);return n.set(r),this.data=new DataView(n.buffer),this},Se.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},Se.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},Se.DataBuffer.prototype.putBytes=function(e,t){if(Se.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);var a=new Uint8Array(this.data.buffer,this.write);return a.set(r),this.write+=n,this}if(Se.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var a=new Uint8Array(this.data.buffer);return a.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof Se.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&Se.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var a=new Uint8Array(e.data.byteLength,this.write);return a.set(r),this.write+=r.byteLength,this}if(e instanceof Se.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var i;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=Se.binary.hex.decode(e,i,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),i=new Uint8Array(this.data.buffer,this.write),this.write+=Se.binary.base64.decode(e,i,this.write),this;if(t==="utf8"&&(e=Se.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=Se.binary.raw.decode(i),this;if(t==="utf16")return this.accommodate(e.length*2),i=new Uint16Array(this.data.buffer,this.write),this.write+=Se.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},Se.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},Se.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},Se.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},Se.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},Se.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},Se.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},Se.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},Se.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},Se.DataBuffer.prototype.putInt=function(e,t){gc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},Se.DataBuffer.prototype.putSignedInt=function(e,t){return gc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},Se.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},Se.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},Se.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},Se.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},Se.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},Se.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},Se.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},Se.DataBuffer.prototype.getInt=function(e){gc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},Se.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},Se.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},Se.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},Se.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},Se.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},Se.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},Se.DataBuffer.prototype.copy=function(){return new Se.DataBuffer(this)},Se.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},Se.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},Se.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},Se.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},Se.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return Se.binary.raw.encode(t);if(e==="hex")return Se.binary.hex.encode(t);if(e==="base64")return Se.binary.base64.encode(t);if(e==="utf8")return Se.text.utf8.decode(t);if(e==="utf16")return Se.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},Se.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=Se.encodeUtf8(e)),new Se.ByteBuffer(e)},Se.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r},Se.xorBytes=function(e,t,r){for(var n="",a="",i="",o=0,l=0;r>0;--r,++o)a=e.charCodeAt(o)^t.charCodeAt(o),l>=10&&(n+=i,i="",l=0),i+=String.fromCharCode(a),++l;return n+=i,n},Se.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},Se.bytesToHex=function(e){return Se.createBuffer(e).toHex()},Se.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gs=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],RS="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Se.encode64=function(e,t){for(var r="",n="",a,i,o,l=0;l<e.length;)a=e.charCodeAt(l++),i=e.charCodeAt(l++),o=e.charCodeAt(l++),r+=ms.charAt(a>>2),r+=ms.charAt((a&3)<<4|i>>4),isNaN(i)?r+="==":(r+=ms.charAt((i&15)<<2|o>>6),r+=isNaN(o)?"=":ms.charAt(o&63)),t&&r.length>t&&(n+=r.substr(0,t)+`\r
@@ -861,7 +861,7 @@ For more detail, please visit: ${a}
861
861
  (?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
862
862
  (?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
863
863
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
864
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),l=new RegExp("^"+a+"$"),u=function(N){return N&&N.exact?i:new RegExp("(?:"+t(N)+r+t(N)+")|(?:"+t(N)+a+t(N)+")","g")};u.v4=function(B){return B&&B.exact?o:new RegExp(""+t(B)+r+t(B),"g")},u.v6=function(B){return B&&B.exact?l:new RegExp(""+t(B)+a+t(B),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,m=u.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",T="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',I="(?:"+c+"|www\\.)"+d+"(?:localhost|"+v+"|"+m+"|"+b+_+S+")"+T+C;return Rm=new RegExp("(?:^"+I+"$)","i"),Rm},TF={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ad={integer:function(t){return ad.number(t)&&parseInt(t,10)===t},float:function(t){return ad.number(t)&&!ad.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ad.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(TF.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iMe())},hex:function(t){return typeof t=="string"&&!!t.match(TF.hex)}},aMe=function(t,r,n,a,i){if(t.required&&r===void 0){CF(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;o.indexOf(l)>-1?ad[l](r)||a.push(Ri(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&a.push(Ri(i.messages.types[l],t.fullField,t.type))},oMe=function(t,r,n,a,i){var o=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,v=null,m=typeof r=="number",b=typeof r=="string",_=Array.isArray(r);if(m?v="number":b?v="string":_&&(v="array"),!v)return!1;_&&(d=r.length),b&&(d=r.replace(c,"_").length),o?d!==t.len&&a.push(Ri(i.messages[v].len,t.fullField,t.len)):l&&!u&&d<t.min?a.push(Ri(i.messages[v].min,t.fullField,t.min)):u&&!l&&d>t.max?a.push(Ri(i.messages[v].max,t.fullField,t.max)):l&&u&&(d<t.min||d>t.max)&&a.push(Ri(i.messages[v].range,t.fullField,t.min,t.max))},ic="enum",sMe=function(t,r,n,a,i){t[ic]=Array.isArray(t[ic])?t[ic]:[],t[ic].indexOf(r)===-1&&a.push(Ri(i.messages[ic],t.fullField,t[ic].join(", ")))},lMe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Qt={required:CF,whitespace:nMe,type:aMe,range:oMe,enum:sMe,pattern:lMe},uMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i,"string"),wn(r,"string")||(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i),Qt.pattern(t,r,a,o,i),t.whitespace===!0&&Qt.whitespace(t,r,a,o,i))}n(o)},fMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},cMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},hMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},dMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),wn(r)||Qt.type(t,r,a,o,i)}n(o)},pMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},vMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},mMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return n();Qt.required(t,r,a,o,i,"array"),r!=null&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},gMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},yMe="enum",bMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt[yMe](t,r,a,o,i)}n(o)},_Me=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i),wn(r,"string")||Qt.pattern(t,r,a,o,i)}n(o)},wMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r,"date")&&!t.required)return n();if(Qt.required(t,r,a,o,i),!wn(r,"date")){var u;r instanceof Date?u=r:u=new Date(r),Qt.type(t,u,a,o,i),u&&Qt.range(t,u.getTime(),a,o,i)}}n(o)},EMe=function(t,r,n,a,i){var o=[],l=Array.isArray(r)?"array":typeof r;Qt.required(t,r,a,o,i,l),n(o)},K3=function(t,r,n,a,i){var o=t.type,l=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(wn(r,o)&&!t.required)return n();Qt.required(t,r,a,l,i,o),wn(r,o)||Qt.type(t,r,a,l,i)}n(l)},xMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i)}n(o)},od={string:uMe,method:fMe,number:cMe,boolean:hMe,regexp:dMe,integer:pMe,float:vMe,array:mMe,object:gMe,enum:bMe,pattern:_Me,date:wMe,url:K3,hex:K3,email:K3,required:EMe,any:xMe};function W3(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var G3=W3(),sd=function(){function e(r){this.rules=null,this._messages=G3,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=MF(W3(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var l=n,u=a,c=i;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(S){var T=[],C={};function I(N){if(Array.isArray(N)){var O;T=(O=T).concat.apply(O,N)}else T.push(N)}for(var B=0;B<S.length;B++)I(S[B]);T.length?(C=j3(T),c(T,C)):c(null,l)}if(u.messages){var v=this.messages();v===G3&&(v=W3()),MF(v,u.messages),u.messages=v}else u.messages=this.messages();var m={},b=u.keys||Object.keys(this.rules);b.forEach(function(S){var T=o.rules[S],C=l[S];T.forEach(function(I){var B=I;typeof B.transform=="function"&&(l===n&&(l=Bu({},l)),C=l[S]=B.transform(C)),typeof B=="function"?B={validator:B}:B=Bu({},B),B.validator=o.getValidationMethod(B),B.validator&&(B.field=S,B.fullField=B.fullField||S,B.type=o.getType(B),m[S]=m[S]||[],m[S].push({rule:B,value:C,source:l,field:S}))})});var _={};return eMe(m,u,function(S,T){var C=S.rule,I=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");I=I&&(C.required||!C.required&&S.value),C.field=S.field;function B(P,L){return Bu({},L,{fullField:C.fullField+"."+P,fullFields:C.fullFields?[].concat(C.fullFields,[P]):[P]})}function N(P){P===void 0&&(P=[]);var L=Array.isArray(P)?P:[P];!u.suppressWarning&&L.length&&e.warning("async-validator:",L),L.length&&C.message!==void 0&&(L=[].concat(C.message));var $=L.map(SF(C,l));if(u.first&&$.length)return _[C.field]=1,T($);if(!I)T($);else{if(C.required&&!S.value)return C.message!==void 0?$=[].concat(C.message).map(SF(C,l)):u.error&&($=[u.error(C,Ri(u.messages.required,C.field))]),T($);var z={};C.defaultField&&Object.keys(S.value).map(function(s){z[s]=C.defaultField}),z=Bu({},z,S.rule.fields);var K={};Object.keys(z).forEach(function(s){var h=z[s],p=Array.isArray(h)?h:[h];K[s]=p.map(B.bind(null,s))});var M=new e(K);M.messages(u.messages),S.rule.options&&(S.rule.options.messages=u.messages,S.rule.options.error=u.error),M.validate(S.value,S.rule.options||u,function(s){var h=[];$&&$.length&&h.push.apply(h,$),s&&s.length&&h.push.apply(h,s),T(h.length?h:null)})}}var O;if(C.asyncValidator)O=C.asyncValidator(C,S.value,N,S.source,u);else if(C.validator){try{O=C.validator(C,S.value,N,S.source,u)}catch(P){console.error==null||console.error(P),u.suppressValidatorError||setTimeout(function(){throw P},0),N(P.message)}O===!0?N():O===!1?N(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):O instanceof Array?N(O):O instanceof Error&&N(O.message)}O&&O.then&&O.then(function(){return N()},function(P){return N(P)})},function(S){d(S)},l)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!od.hasOwnProperty(n.type))throw new Error(Ri("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?od.required:od[this.getType(n)]||void 0},e}();sd.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");od[t]=r},sd.warning=wF,sd.messages=G3,sd.validators=od;const SMe=["","error","validating","success"],MMe=hr({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Tt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Tt([Object,Array])},error:String,validateStatus:{type:String,values:SMe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:fm}}),AF="ElLabelWrap";var CMe=rt({name:AF,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Et(Wf,void 0),n=Et(Tu);n||Hf(AF,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Gt("form"),i=Oe(),o=Oe(0),l=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const v=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(v))}else return 0},u=(d="update")=>{Xt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=l():d==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},c=()=>u("update");return lr(()=>{c()}),yn(()=>{u("remove")}),xh(()=>c()),dt(o,(d,v)=>{e.updateAll&&(r==null||r.registerLabelWidth(d,v))}),Ra(be(()=>{var d,v;return(v=(d=i.value)==null?void 0:d.firstElementChild)!=null?v:null}),c),()=>{var d,v;if(!t)return null;const{isAutoWidth:m}=e;if(m){const b=r==null?void 0:r.autoLabelWidth,_=n==null?void 0:n.hasLabel,S={};if(_&&b&&b!=="auto"){const T=Math.max(0,Number.parseInt(b,10)-o.value),I=(n.labelPosition||r.labelPosition)==="left"?"marginRight":"marginLeft";T&&(S[I]=`${T}px`)}return _t("div",{ref:i,class:[a.be("item","label-wrap")],style:S},[(d=t.default)==null?void 0:d.call(t)])}else return _t(St,{ref:i},[(v=t.default)==null?void 0:v.call(t)])}}});const TMe=rt({name:"ElFormItem"}),AMe=rt({...TMe,props:MMe,setup(e,{expose:t}){const r=e,n=Pf(),a=Et(Wf,void 0),i=Et(Tu,void 0),o=tl(void 0,{formItem:!1}),l=Gt("form-item"),u=Yh().value,c=Oe([]),d=Oe(""),v=G3e(d,100),m=Oe(""),b=Oe();let _,S=!1;const T=be(()=>r.labelPosition||(a==null?void 0:a.labelPosition)),C=be(()=>{if(T.value==="top")return{};const ae=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return ae?{width:ae}:{}}),I=be(()=>{if(T.value==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&K)return{};const ae=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:ae}:{}}),B=be(()=>[l.b(),l.m(o.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",g.value||r.required),l.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a==null?void 0:a.statusIcon,[l.m(`label-${T.value}`)]:T.value}]),N=be(()=>Su(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),O=be(()=>[l.e("error"),{[l.em("error","inline")]:N.value}]),P=be(()=>r.prop?It(r.prop)?r.prop:r.prop.join("."):""),L=be(()=>!!(r.label||n.label)),$=be(()=>r.for||(c.value.length===1?c.value[0]:void 0)),z=be(()=>!$.value&&L.value),K=!!i,M=be(()=>{const ae=a==null?void 0:a.model;if(!(!ae||!r.prop))return h3(ae,r.prop).value}),s=be(()=>{const{required:ae}=r,te=[];r.rules&&te.push(...Oa(r.rules));const he=a==null?void 0:a.rules;if(he&&r.prop){const re=h3(he,r.prop).value;re&&te.push(...Oa(re))}if(ae!==void 0){const re=te.map((Z,j)=>[Z,j]).filter(([Z])=>Object.keys(Z).includes("required"));if(re.length>0)for(const[Z,j]of re)Z.required!==ae&&(te[j]={...Z,required:ae});else te.push({required:ae})}return te}),h=be(()=>s.value.length>0),p=ae=>s.value.filter(he=>!he.trigger||!ae?!0:st(he.trigger)?he.trigger.includes(ae):he.trigger===ae).map(({trigger:he,...re})=>re),g=be(()=>s.value.some(ae=>ae.required)),y=be(()=>{var ae;return v.value==="error"&&r.showMessage&&((ae=a==null?void 0:a.showMessage)!=null?ae:!0)}),w=be(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),A=ae=>{d.value=ae},E=ae=>{var te,he;const{errors:re,fields:Z}=ae;(!re||!Z)&&console.error(ae),A("error"),m.value=re?(he=(te=re==null?void 0:re[0])==null?void 0:te.message)!=null?he:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,m.value)},f=()=>{A("success"),a==null||a.emit("validate",r.prop,!0,"")},x=async ae=>{const te=P.value;return new sd({[te]:ae}).validate({[te]:M.value},{firstFields:!0}).then(()=>(f(),!0)).catch(re=>(E(re),Promise.reject(re)))},k=async(ae,te)=>{if(S||!r.prop)return!1;const he=vt(te);if(!h.value)return te==null||te(!1),!1;const re=p(ae);return re.length===0?(te==null||te(!0),!0):(A("validating"),x(re).then(()=>(te==null||te(!0),!0)).catch(Z=>{const{fields:j}=Z;return te==null||te(!1,j),he?!1:Promise.reject(j)}))},R=()=>{A(""),m.value="",S=!1},q=async()=>{const ae=a==null?void 0:a.model;if(!ae||!r.prop)return;const te=h3(ae,r.prop);S=!0,te.value=_R(_),await Xt(),R(),S=!1},J=ae=>{c.value.includes(ae)||c.value.push(ae)},W=ae=>{c.value=c.value.filter(te=>te!==ae)};dt(()=>r.error,ae=>{m.value=ae||"",A(ae?"error":"")},{immediate:!0}),dt(()=>r.validateStatus,ae=>A(ae||""));const X=mn({...Vs(r),$el:b,size:o,validateState:d,labelId:u,inputIds:c,isGroup:z,hasLabel:L,fieldValue:M,addInputId:J,removeInputId:W,resetField:q,clearValidate:R,validate:k});return un(Tu,X),lr(()=>{r.prop&&(a==null||a.addField(X),_=_R(M.value))}),yn(()=>{a==null||a.removeField(X)}),t({size:o,validateMessage:m,validateState:d,validate:k,clearValidate:R,resetField:q}),(ae,te)=>{var he;return de(),Ie("div",{ref_key:"formItemRef",ref:b,class:Ce(Y(B)),role:Y(z)?"group":void 0,"aria-labelledby":Y(z)?Y(u):void 0},[_t(Y(CMe),{"is-auto-width":Y(C).width==="auto","update-all":((he=Y(a))==null?void 0:he.labelWidth)==="auto"},{default:lt(()=>[Y(L)?(de(),nt(Nn(Y($)?"label":"div"),{key:0,id:Y(u),for:Y($),class:Ce(Y(l).e("label")),style:en(Y(C))},{default:lt(()=>[yt(ae.$slots,"label",{label:Y(w)},()=>[rn(at(Y(w)),1)])]),_:3},8,["id","for","class","style"])):Ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Re("div",{class:Ce(Y(l).e("content")),style:en(Y(I))},[yt(ae.$slots,"default"),_t(Lge,{name:`${Y(l).namespace.value}-zoom-in-top`},{default:lt(()=>[Y(y)?yt(ae.$slots,"error",{key:0,error:m.value},()=>[Re("div",{class:Ce(Y(O))},at(m.value),3)]):Ye("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var IF=ir(AMe,[["__file","form-item.vue"]]);const Z3=Rn(K8e,{FormItem:IF}),Y3=is(IF),IMe=hr({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ni}}),BMe={click:e=>e instanceof MouseEvent},kMe=rt({name:"ElLink"}),NMe=rt({...kMe,props:IMe,emits:BMe,setup(e,{emit:t}){const r=e,n=Gt("link"),a=be(()=>[n.b(),n.m(r.type),n.is("disabled",r.disabled),n.is("underline",r.underline&&!r.disabled)]);function i(o){r.disabled||t("click",o)}return(o,l)=>(de(),Ie("a",{class:Ce(Y(a)),href:o.disabled||!o.href?void 0:o.href,target:o.disabled||!o.href?void 0:o.target,onClick:i},[o.icon?(de(),nt(Y(Pn),{key:0},{default:lt(()=>[(de(),nt(Nn(o.icon)))]),_:1})):Ye("v-if",!0),o.$slots.default?(de(),Ie("span",{key:1,class:Ce(Y(n).e("inner"))},[yt(o.$slots,"default")],2)):Ye("v-if",!0),o.$slots.icon?yt(o.$slots,"icon",{key:2}):Ye("v-if",!0)],10,["href","target"]))}});var OMe=ir(NMe,[["__file","link.vue"]]);const RMe=Rn(OMe);let PMe=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let a=!1;switch(n.code){case cn.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case cn.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case cn.tab:{mm(t,"mouseleave");break}case cn.enter:case cn.numpadEnter:case cn.space:{a=!0,n.currentTarget.click();break}}return a&&(n.preventDefault(),n.stopPropagation()),!1})})}},FMe=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new PMe(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case cn.down:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case cn.up:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case cn.tab:{mm(t.currentTarget,"mouseleave");break}case cn.enter:case cn.numpadEnter:case cn.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},LMe=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new FMe(n,t)})}};const DMe=rt({name:"ElMenuCollapseTransition",setup(){const e=Gt("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Kf(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){Mu(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),_xe(r,e.m("collapse"))?(Mu(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Kf(r,e.m("collapse"))):(Kf(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Mu(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Kf(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function $Me(e,t,r,n,a,i){return de(),nt(yo,la({mode:"out-in"},e.listeners),{default:lt(()=>[yt(e.$slots,"default")]),_:3},16)}var zMe=ir(DMe,[["render",$Me],["__file","menu-collapse-transition.vue"]]);function BF(e,t){const r=be(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:be(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:r}}function UMe(e){return be(()=>{const r=e.backgroundColor;return r?new hF(r).shade(20).toString():""})}const kF=(e,t)=>{const r=Gt("menu");return be(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":UMe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},VMe=hr({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ni},expandOpenIcon:{type:Ni},collapseCloseIcon:{type:Ni},collapseOpenIcon:{type:Ni}}),J3="ElSubMenu";var X3=rt({name:J3,props:VMe,setup(e,{slots:t,expose:r}){const n=Cr(),{indexPath:a,parentMenu:i}=BF(n,be(()=>e.index)),o=Gt("menu"),l=Gt("sub-menu"),u=Et("rootMenu");u||Hf(J3,"can not inject root menu");const c=Et(`subMenu:${i.value.uid}`);c||Hf(J3,"can not inject sub menu");const d=Oe({}),v=Oe({});let m;const b=Oe(!1),_=Oe(),S=Oe(null),T=be(()=>$.value==="horizontal"&&I.value?"bottom-start":"right-start"),C=be(()=>$.value==="horizontal"&&I.value||$.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?P.value?e.expandOpenIcon:e.expandCloseIcon:iP:e.collapseCloseIcon&&e.collapseOpenIcon?P.value?e.collapseOpenIcon:e.collapseCloseIcon:Ixe),I=be(()=>c.level===0),B=be(()=>{const f=e.teleported;return f===void 0?I.value:f}),N=be(()=>u.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),O=be(()=>$.value==="horizontal"&&I.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),P=be(()=>u.openedMenus.includes(e.index)),L=be(()=>{let f=!1;return Object.values(d.value).forEach(x=>{x.active&&(f=!0)}),Object.values(v.value).forEach(x=>{x.active&&(f=!0)}),f}),$=be(()=>u.props.mode),z=mn({index:e.index,indexPath:a,active:L}),K=kF(u.props,c.level+1),M=be(()=>{var f;return(f=e.popperOffset)!=null?f:u.props.popperOffset}),s=be(()=>{var f;return(f=e.popperClass)!=null?f:u.props.popperClass}),h=be(()=>{var f;return(f=e.showTimeout)!=null?f:u.props.showTimeout}),p=be(()=>{var f;return(f=e.hideTimeout)!=null?f:u.props.hideTimeout}),g=()=>{var f,x,k;return(k=(x=(f=S.value)==null?void 0:f.popperRef)==null?void 0:x.popperInstanceRef)==null?void 0:k.destroy()},y=f=>{f||g()},w=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:a.value,active:L.value})},A=(f,x=h.value)=>{var k;if(f.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,m==null||m(),{stop:m}=l3(()=>{u.openMenu(e.index,a.value)},x),B.value&&((k=i.value.vnode.el)==null||k.dispatchEvent(new MouseEvent("mouseenter")))}},E=(f=!1)=>{var x;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}m==null||m(),c.mouseInChild.value=!1,{stop:m}=l3(()=>!b.value&&u.closeMenu(e.index,a.value),p.value),B.value&&f&&((x=c.handleMouseleave)==null||x.call(c,!0))};dt(()=>u.props.collapse,f=>y(!!f));{const f=k=>{v.value[k.index]=k},x=k=>{delete v.value[k.index]};un(`subMenu:${n.uid}`,{addSubMenu:f,removeSubMenu:x,handleMouseleave:E,mouseInChild:b,level:c.level+1})}return r({opened:P}),lr(()=>{u.addSubMenu(z),c.addSubMenu(z)}),yn(()=>{c.removeSubMenu(z),u.removeSubMenu(z)}),()=>{var f;const x=[(f=t.title)==null?void 0:f.call(t),Ot(Pn,{class:l.e("icon-arrow"),style:{transform:P.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>It(C.value)?Ot(n.appContext.components[C.value]):Ot(C.value)})],k=u.isMenuPopup?Ot(F3,{ref:S,visible:P.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:!0,popperClass:s.value,placement:T.value,teleported:B.value,fallbackPlacements:O.value,transition:N.value,gpuAcceleration:!1},{content:()=>{var R;return Ot("div",{class:[o.m($.value),o.m("popup-container"),s.value],onMouseenter:q=>A(q,100),onMouseleave:()=>E(!0),onFocus:q=>A(q,100)},[Ot("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${T.value}`)],style:K.value},[(R=t.default)==null?void 0:R.call(t)])])},default:()=>Ot("div",{class:l.e("title"),onClick:w},x)}):Ot(St,{},[Ot("div",{class:l.e("title"),ref:_,onClick:w},x),Ot(R8e,{},{default:()=>{var R;return tn(Ot("ul",{role:"menu",class:[o.b(),o.m("inline")],style:K.value},[(R=t.default)==null?void 0:R.call(t)]),[[ua,P.value]])}})]);return Ot("li",{class:[l.b(),l.is("active",L.value),l.is("opened",P.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:P.value,onMouseenter:A,onMouseleave:()=>E(),onFocus:A},[k])}}});const qMe=hr({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Tt(Array),default:()=>hP([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ni,default:()=>zxe},popperEffect:{type:Tt(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Q3=e=>st(e)&&e.every(t=>It(t));var HMe=rt({name:"ElMenu",props:qMe,emits:{close:(e,t)=>It(e)&&Q3(t),open:(e,t)=>It(e)&&Q3(t),select:(e,t,r,n)=>It(e)&&Q3(t)&&At(r)&&(n===void 0||n instanceof Promise)},setup(e,{emit:t,slots:r,expose:n}){const a=Cr(),i=a.appContext.config.globalProperties.$router,o=Oe(),l=Gt("menu"),u=Gt("sub-menu"),c=Oe(-1),d=Oe(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),v=Oe(e.defaultActive),m=Oe({}),b=Oe({}),_=be(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),S=()=>{const g=v.value&&m.value[v.value];if(!g||e.mode==="horizontal"||e.collapse)return;g.indexPath.forEach(w=>{const A=b.value[w];A&&T(w,A.indexPath)})},T=(g,y)=>{d.value.includes(g)||(e.uniqueOpened&&(d.value=d.value.filter(w=>y.includes(w))),d.value.push(g),t("open",g,y))},C=g=>{const y=d.value.indexOf(g);y!==-1&&d.value.splice(y,1)},I=(g,y)=>{C(g),t("close",g,y)},B=({index:g,indexPath:y})=>{d.value.includes(g)?I(g,y):T(g,y)},N=g=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:y,indexPath:w}=g;if(!(xu(y)||xu(w)))if(e.router&&i){const A=g.route||y,E=i.push(A).then(f=>(f||(v.value=y),f));t("select",y,w,{index:y,indexPath:w,route:A},E)}else v.value=y,t("select",y,w,{index:y,indexPath:w})},O=g=>{const y=m.value,w=y[g]||v.value&&y[v.value]||y[e.defaultActive];w?v.value=w.index:v.value=g},P=g=>{const y=getComputedStyle(g),w=Number.parseInt(y.marginLeft,10),A=Number.parseInt(y.marginRight,10);return g.offsetWidth+w+A||0},L=()=>{var g,y;if(!o.value)return-1;const w=Array.from((y=(g=o.value)==null?void 0:g.childNodes)!=null?y:[]).filter(J=>J.nodeName!=="#comment"&&(J.nodeName!=="#text"||J.nodeValue)),A=64,E=getComputedStyle(o.value),f=Number.parseInt(E.paddingLeft,10),x=Number.parseInt(E.paddingRight,10),k=o.value.clientWidth-f-x;let R=0,q=0;return w.forEach((J,W)=>{R+=P(J),R<=k-A&&(q=W+1)}),q===w.length?-1:q},$=g=>b.value[g].indexPath,z=(g,y=33.34)=>{let w;return()=>{w&&clearTimeout(w),w=setTimeout(()=>{g()},y)}};let K=!0;const M=()=>{if(c.value===L())return;const g=()=>{c.value=-1,Xt(()=>{c.value=L()})};K?g():z(g)(),K=!1};dt(()=>e.defaultActive,g=>{m.value[g]||(v.value=""),O(g)}),dt(()=>e.collapse,g=>{g&&(d.value=[])}),dt(m.value,S);let s;zw(()=>{e.mode==="horizontal"&&e.ellipsis?s=Ra(o,M).stop:s==null||s()});const h=Oe(!1);{const g=E=>{b.value[E.index]=E},y=E=>{delete b.value[E.index]};un("rootMenu",mn({props:e,openedMenus:d,items:m,subMenus:b,activeIndex:v,isMenuPopup:_,addMenuItem:E=>{m.value[E.index]=E},removeMenuItem:E=>{delete m.value[E.index]},addSubMenu:g,removeSubMenu:y,openMenu:T,closeMenu:I,handleMenuItemClick:N,handleSubMenuClick:B})),un(`subMenu:${a.uid}`,{addSubMenu:g,removeSubMenu:y,mouseInChild:h,level:0})}lr(()=>{e.mode==="horizontal"&&new LMe(a.vnode.el,l.namespace.value)}),n({open:y=>{const{indexPath:w}=b.value[y];w.forEach(A=>T(A,w))},close:C,handleResize:M});const p=kF(e,0);return()=>{var g,y;let w=(y=(g=r.default)==null?void 0:g.call(r))!=null?y:[];const A=[];if(e.mode==="horizontal"&&o.value){const x=Bm(w),k=c.value===-1?x:x.slice(0,c.value),R=c.value===-1?[]:x.slice(c.value);R!=null&&R.length&&e.ellipsis&&(w=k,A.push(Ot(X3,{index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ot(Pn,{class:u.e("icon-more")},{default:()=>Ot(e.ellipsisIcon)}),default:()=>R})))}const E=e.closeOnClickOutside?[[_F,()=>{d.value.length&&(h.value||(d.value.forEach(x=>t("close",x,$(x))),d.value=[]))}]]:[],f=tn(Ot("ul",{key:String(e.collapse),role:"menubar",ref:o,style:p.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...w,...A]),E);return e.collapseTransition&&e.mode==="vertical"?Ot(zMe,()=>f):f}}});const jMe=hr({index:{type:Tt([String,null]),default:null},route:{type:Tt([String,Object])},disabled:Boolean}),KMe={click:e=>It(e.index)&&st(e.indexPath)},ex="ElMenuItem",WMe=rt({name:ex,components:{ElTooltip:F3},props:jMe,emits:KMe,setup(e,{emit:t}){const r=Cr(),n=Et("rootMenu"),a=Gt("menu"),i=Gt("menu-item");n||Hf(ex,"can not inject root menu");const{parentMenu:o,indexPath:l}=BF(r,aa(e,"index")),u=Et(`subMenu:${o.value.uid}`);u||Hf(ex,"can not inject sub menu");const c=be(()=>e.index===n.activeIndex),d=mn({index:e.index,indexPath:l,active:c}),v=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",d))};return lr(()=>{u.addSubMenu(d),n.addMenuItem(d)}),yn(()=>{u.removeSubMenu(d),n.removeMenuItem(d)}),{parentMenu:o,rootMenu:n,active:c,nsMenu:a,nsMenuItem:i,handleClick:v}}});function GMe(e,t,r,n,a,i){const o=js("el-tooltip");return de(),Ie("li",{class:Ce([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(de(),nt(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:lt(()=>[yt(e.$slots,"title")]),default:lt(()=>[Re("div",{class:Ce(e.nsMenu.be("tooltip","trigger"))},[yt(e.$slots,"default")],2)]),_:3},8,["effect"])):(de(),Ie(St,{key:1},[yt(e.$slots,"default"),yt(e.$slots,"title")],64))],10,["onClick"])}var NF=ir(WMe,[["render",GMe],["__file","menu-item.vue"]]);const ZMe=rt({name:"ElMenuItemGroup",props:{title:String},setup(){return{ns:Gt("menu-item-group")}}});function YMe(e,t,r,n,a,i){return de(),Ie("li",{class:Ce(e.ns.b())},[Re("div",{class:Ce(e.ns.e("title"))},[e.$slots.title?yt(e.$slots,"title",{key:1}):(de(),Ie(St,{key:0},[rn(at(e.title),1)],64))],2),Re("ul",null,[yt(e.$slots,"default")])],2)}var OF=ir(ZMe,[["render",YMe],["__file","menu-item-group.vue"]]);const JMe=Rn(HMe,{MenuItem:NF,MenuItemGroup:OF,SubMenu:X3}),XMe=is(NF);is(OF),is(X3);const RF=Symbol("ElSelectGroup"),Pm=Symbol("ElSelect");function QMe(e,t){const r=Et(Pm),n=Et(RF,{disabled:!1}),a=be(()=>d(Oa(r.props.modelValue),e.value)),i=be(()=>{var b;if(r.props.multiple){const _=Oa((b=r.props.modelValue)!=null?b:[]);return!a.value&&_.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),o=be(()=>e.label||(At(e.value)?"":e.value)),l=be(()=>e.value||e.label||""),u=be(()=>e.disabled||t.groupDisabled||i.value),c=Cr(),d=(b=[],_)=>{if(At(e.value)){const S=r.props.valueKey;return b&&b.some(T=>Nt(es(T,S))===es(_,S))}else return b&&b.includes(_)},v=()=>{!e.disabled&&!n.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(c.proxy))},m=b=>{const _=new RegExp(M8e(b),"i");t.visible=_.test(o.value)||e.created};return dt(()=>o.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),dt(()=>e.value,(b,_)=>{const{remote:S,valueKey:T}=r.props;if(b!==_&&(r.onOptionDestroy(_,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!S){if(T&&At(b)&&At(_)&&b[T]===_[T])return;r.setSelected()}}),dt(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0}),{select:r,currentLabel:o,currentValue:l,itemSelected:a,isDisabled:u,hoverItem:v,updateOption:m}}const eCe=rt({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Gt("select"),r=Yh(),n=be(()=>[t.be("dropdown","item"),t.is("disabled",Y(l)),t.is("selected",Y(o)),t.is("hovering",Y(m))]),a=mn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:u,hoverItem:c,updateOption:d}=QMe(e,a),{visible:v,hover:m}=Vs(a),b=Cr().proxy;u.onOptionCreate(b),yn(()=>{const S=b.value,{selected:T}=u.states,C=T.some(I=>I.value===b.value);Xt(()=>{u.states.cachedOptions.get(S)===b&&!C&&u.states.cachedOptions.delete(S)}),u.onOptionDestroy(S,b)});function _(){l.value||u.handleOptionSelect(b)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:l,select:u,hoverItem:c,updateOption:d,visible:v,hover:m,selectOptionClick:_,states:a}}});function tCe(e,t,r,n,a,i){return tn((de(),Ie("li",{id:e.id,class:Ce(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:nn(e.selectOptionClick,["stop"])},[yt(e.$slots,"default",{},()=>[Re("span",null,at(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[ua,e.visible]])}var tx=ir(eCe,[["render",tCe],["__file","option.vue"]]);const rCe=rt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Et(Pm),t=Gt("select"),r=be(()=>e.props.popperClass),n=be(()=>e.props.multiple),a=be(()=>e.props.fitInputWidth),i=Oe("");function o(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return lr(()=>{o(),Ra(e.selectRef,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function nCe(e,t,r,n,a,i){return de(),Ie("div",{class:Ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:en({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(de(),Ie("div",{key:0,class:Ce(e.ns.be("dropdown","header"))},[yt(e.$slots,"header")],2)):Ye("v-if",!0),yt(e.$slots,"default"),e.$slots.footer?(de(),Ie("div",{key:1,class:Ce(e.ns.be("dropdown","footer"))},[yt(e.$slots,"footer")],2)):Ye("v-if",!0)],6)}var iCe=ir(rCe,[["render",nCe],["__file","select-dropdown.vue"]]);const aCe=11,oCe=(e,t)=>{const{t:r}=ZR(),n=Yh(),a=Gt("select"),i=Gt("input"),o=mn({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=Oe(null),u=Oe(null),c=Oe(null),d=Oe(null),v=Oe(null),m=Oe(null),b=Oe(null),_=Oe(null),S=Oe(null),T=Oe(null),C=Oe(null),I=Oe(null),{isComposing:B,handleCompositionStart:N,handleCompositionUpdate:O,handleCompositionEnd:P}=mP({afterComposition:Te=>Je(Te)}),{wrapperRef:L,isFocused:$,handleBlur:z}=vP(v,{beforeFocus(){return w.value},afterFocus(){e.automaticDropdown&&!K.value&&(K.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(Te){var ge,Be;return((ge=c.value)==null?void 0:ge.isFocusInsideContent(Te))||((Be=d.value)==null?void 0:Be.isFocusInsideContent(Te))},afterBlur(){K.value=!1,o.menuVisibleOnFocus=!1}}),K=Oe(!1),M=Oe(),{form:s,formItem:h}=Gf(),{inputId:p}=pm(e,{formItemContext:h}),{valueOnClear:g,isEmptyValue:y}=gxe(e),w=be(()=>e.disabled||(s==null?void 0:s.disabled)),A=be(()=>st(e.modelValue)?e.modelValue.length>0:!y(e.modelValue)),E=be(()=>{var Te;return(Te=s==null?void 0:s.statusIcon)!=null?Te:!1}),f=be(()=>e.clearable&&!w.value&&o.inputHovering&&A.value),x=be(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),k=be(()=>a.is("reverse",x.value&&K.value)),R=be(()=>(h==null?void 0:h.validateState)||""),q=be(()=>fP[R.value]),J=be(()=>e.remote?300:0),W=be(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&!o.inputValue&&o.options.size===0?!1:e.filterable&&o.inputValue&&o.options.size>0&&X.value===0?e.noMatchText||r("el.select.noMatch"):o.options.size===0?e.noDataText||r("el.select.noData"):null),X=be(()=>ae.value.filter(Te=>Te.visible).length),ae=be(()=>{const Te=Array.from(o.options.values()),ge=[];return o.optionValues.forEach(Be=>{const gt=Te.findIndex(wt=>wt.value===Be);gt>-1&&ge.push(Te[gt])}),ge.length>=Te.length?ge:Te}),te=be(()=>Array.from(o.cachedOptions.values())),he=be(()=>{const Te=ae.value.filter(ge=>!ge.created).some(ge=>ge.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!Te}),re=()=>{e.filterable&&vt(e.filterMethod)||e.filterable&&e.remote&&vt(e.remoteMethod)||ae.value.forEach(Te=>{var ge;(ge=Te.updateOption)==null||ge.call(Te,o.inputValue)})},Z=tl(),j=be(()=>["small"].includes(Z.value)?"small":"default"),ie=be({get(){return K.value&&W.value!==!1},set(Te){K.value=Te}}),le=be(()=>{if(e.multiple&&!ts(e.modelValue))return Oa(e.modelValue).length===0&&!o.inputValue;const Te=st(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ts(Te)?!o.inputValue:!0}),V=be(()=>{var Te;const ge=(Te=e.placeholder)!=null?Te:r("el.select.placeholder");return e.multiple||!A.value?ge:o.selectedLabel}),D=be(()=>RR?null:"mouseenter");dt(()=>e.modelValue,(Te,ge)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",F("")),se(),!Kh(Te,ge)&&e.validateEvent&&(h==null||h.validate("change").catch(Be=>Jr(Be)))},{flush:"post",deep:!0}),dt(()=>K.value,Te=>{Te?F(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",Te)}),dt(()=>o.options.entries(),()=>{fn&&(se(),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value&&U())},{flush:"post"}),dt(()=>o.hoveringIndex,Te=>{Wn(Te)&&Te>-1?M.value=ae.value[Te]||{}:M.value={},ae.value.forEach(ge=>{ge.hover=M.value===ge})}),zw(()=>{o.isBeforeHide||re()});const F=Te=>{o.previousQuery===Te||B.value||(o.previousQuery=Te,e.filterable&&vt(e.filterMethod)?e.filterMethod(Te):e.filterable&&e.remote&&vt(e.remoteMethod)&&e.remoteMethod(Te),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value?Xt(U):Xt(ne))},U=()=>{const Te=ae.value.filter(wt=>wt.visible&&!wt.disabled&&!wt.states.groupDisabled),ge=Te.find(wt=>wt.created),Be=Te[0],gt=ae.value.map(wt=>wt.value);o.hoveringIndex=Ae(gt,ge||Be)},se=()=>{if(e.multiple)o.selectedLabel="";else{const ge=st(e.modelValue)?e.modelValue[0]:e.modelValue,Be=Q(ge);o.selectedLabel=Be.currentLabel,o.selected=[Be];return}const Te=[];ts(e.modelValue)||Oa(e.modelValue).forEach(ge=>{Te.push(Q(ge))}),o.selected=Te},Q=Te=>{let ge;const Be=Ew(Te);for(let ar=o.cachedOptions.size-1;ar>=0;ar--){const er=te.value[ar];if(Be?es(er.value,e.valueKey)===es(Te,e.valueKey):er.value===Te){ge={value:Te,currentLabel:er.currentLabel,get isDisabled(){return er.isDisabled}};break}}if(ge)return ge;const gt=Be?Te.label:Te??"";return{value:Te,currentLabel:gt}},ne=()=>{o.hoveringIndex=ae.value.findIndex(Te=>o.selected.some(ge=>Pt(ge)===Pt(Te)))},fe=()=>{o.selectionWidth=u.value.getBoundingClientRect().width},H=()=>{o.calculatorWidth=m.value.getBoundingClientRect().width},G=()=>{o.collapseItemWidth=C.value.getBoundingClientRect().width},me=()=>{var Te,ge;(ge=(Te=c.value)==null?void 0:Te.updatePopper)==null||ge.call(Te)},oe=()=>{var Te,ge;(ge=(Te=d.value)==null?void 0:Te.updatePopper)==null||ge.call(Te)},pe=()=>{o.inputValue.length>0&&!K.value&&(K.value=!0),F(o.inputValue)},Je=Te=>{if(o.inputValue=Te.target.value,e.remote)xe();else return pe()},xe=M3e(()=>{pe()},J.value),Me=Te=>{Kh(e.modelValue,Te)||t(rP,Te)},et=Te=>A3e(Te,ge=>{const Be=o.cachedOptions.get(ge);return Be&&!Be.disabled&&!Be.states.groupDisabled}),ce=Te=>{if(e.multiple&&Te.code!==cn.delete&&Te.target.value.length<=0){const ge=Oa(e.modelValue).slice(),Be=et(ge);if(Be<0)return;const gt=ge[Be];ge.splice(Be,1),t(ki,ge),Me(ge),t("remove-tag",gt)}},_e=(Te,ge)=>{const Be=o.selected.indexOf(ge);if(Be>-1&&!w.value){const gt=Oa(e.modelValue).slice();gt.splice(Be,1),t(ki,gt),Me(gt),t("remove-tag",ge.value)}Te.stopPropagation(),qe()},it=Te=>{Te.stopPropagation();const ge=e.multiple?[]:g.value;if(e.multiple)for(const Be of o.selected)Be.isDisabled&&ge.push(Be.value);t(ki,ge),Me(ge),o.hoveringIndex=-1,K.value=!1,t("clear"),qe()},Ee=Te=>{var ge;if(e.multiple){const Be=Oa((ge=e.modelValue)!=null?ge:[]).slice(),gt=Ae(Be,Te);gt>-1?Be.splice(gt,1):(e.multipleLimit<=0||Be.length<e.multipleLimit)&&Be.push(Te.value),t(ki,Be),Me(Be),Te.created&&F(""),e.filterable&&!e.reserveKeyword&&(o.inputValue="")}else t(ki,Te.value),Me(Te.value),K.value=!1;qe(),!K.value&&Xt(()=>{mt(Te)})},Ae=(Te=[],ge)=>ts(ge)?-1:At(ge.value)?Te.findIndex(Be=>Kh(es(Be,e.valueKey),Pt(ge))):Te.indexOf(ge.value),mt=Te=>{var ge,Be,gt,wt,ar;const er=st(Te)?Te[0]:Te;let dr=null;if(er!=null&&er.value){const ur=ae.value.filter(yr=>yr.value===er.value);ur.length>0&&(dr=ur[0].$el)}if(c.value&&dr){const ur=(wt=(gt=(Be=(ge=c.value)==null?void 0:ge.popperRef)==null?void 0:Be.contentRef)==null?void 0:gt.querySelector)==null?void 0:wt.call(gt,`.${a.be("dropdown","wrap")}`);ur&&wxe(ur,dr)}(ar=I.value)==null||ar.handleScroll()},ke=Te=>{o.options.set(Te.value,Te),o.cachedOptions.set(Te.value,Te)},Ue=(Te,ge)=>{o.options.get(Te)===ge&&o.options.delete(Te)},zt=be(()=>{var Te,ge;return(ge=(Te=c.value)==null?void 0:Te.popperRef)==null?void 0:ge.contentRef}),Le=()=>{o.isBeforeHide=!1,Xt(()=>mt(o.selected))},qe=()=>{var Te;(Te=v.value)==null||Te.focus()},Ut=()=>{var Te;if(K.value){K.value=!1,Xt(()=>{var ge;return(ge=v.value)==null?void 0:ge.blur()});return}(Te=v.value)==null||Te.blur()},De=Te=>{it(Te)},He=Te=>{if(K.value=!1,$.value){const ge=new FocusEvent("focus",Te);Xt(()=>z(ge))}},Vt=()=>{o.inputValue.length>0?o.inputValue="":K.value=!1},Pe=()=>{w.value||(RR&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:K.value=!K.value)},je=()=>{if(!K.value)Pe();else{const Te=ae.value[o.hoveringIndex];Te&&!Te.isDisabled&&Ee(Te)}},Pt=Te=>At(Te.value)?es(Te.value,e.valueKey):Te.value,$e=be(()=>ae.value.filter(Te=>Te.visible).every(Te=>Te.isDisabled)),Ke=be(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),qt=be(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),Fe=Te=>{if(!K.value){K.value=!0;return}if(!(o.options.size===0||X.value===0||B.value)&&!$e.value){Te==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):Te==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const ge=ae.value[o.hoveringIndex];(ge.isDisabled||!ge.visible)&&Fe(Te),Xt(()=>mt(M.value))}},We=()=>{if(!u.value)return 0;const Te=window.getComputedStyle(u.value);return Number.parseFloat(Te.gap||"6px")},Ht=be(()=>{const Te=We();return{maxWidth:`${C.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-Te:o.selectionWidth}px`}}),ze=be(()=>({maxWidth:`${o.selectionWidth}px`})),Ge=be(()=>({width:`${Math.max(o.calculatorWidth,aCe)}px`}));return Ra(u,fe),Ra(m,H),Ra(S,me),Ra(L,me),Ra(T,oe),Ra(C,G),lr(()=>{se()}),{inputId:p,contentId:n,nsSelect:a,nsInput:i,states:o,isFocused:$,expanded:K,optionsArray:ae,hoverOption:M,selectSize:Z,filteredOptionsCount:X,resetCalculatorWidth:H,updateTooltip:me,updateTagTooltip:oe,debouncedOnInputChange:xe,onInput:Je,deletePrevTag:ce,deleteTag:_e,deleteSelected:it,handleOptionSelect:Ee,scrollToOption:mt,hasModelValue:A,shouldShowPlaceholder:le,currentPlaceholder:V,mouseEnterEventName:D,needStatusIcon:E,showClose:f,iconComponent:x,iconReverse:k,validateState:R,validateIcon:q,showNewOption:he,updateOptions:re,collapseTagSize:j,setSelected:se,selectDisabled:w,emptyText:W,handleCompositionStart:N,handleCompositionUpdate:O,handleCompositionEnd:P,onOptionCreate:ke,onOptionDestroy:Ue,handleMenuEnter:Le,focus:qe,blur:Ut,handleClearClick:De,handleClickOutside:He,handleEsc:Vt,toggleMenu:Pe,selectOption:je,getValueKey:Pt,navigateOptions:Fe,dropdownMenuVisible:ie,showTagList:Ke,collapseTagList:qt,tagStyle:Ht,collapseTagStyle:ze,inputStyle:Ge,popperRef:zt,inputRef:v,tooltipRef:c,tagTooltipRef:d,calculatorRef:m,prefixRef:b,suffixRef:_,selectRef:l,wrapperRef:L,selectionRef:u,scrollbarRef:I,menuRef:S,tagMenuRef:T,collapseItemRef:C}};var sCe=rt({name:"ElOptions",setup(e,{slots:t}){const r=Et(Pm);let n=[];return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),l=[];function u(c){st(c)&&c.forEach(d=>{var v,m,b,_;const S=(v=(d==null?void 0:d.type)||{})==null?void 0:v.name;S==="ElOptionGroup"?u(!It(d.children)&&!st(d.children)&&vt((m=d.children)==null?void 0:m.default)?(b=d.children)==null?void 0:b.default():d.children):S==="ElOption"?l.push((_=d.props)==null?void 0:_.value):st(d.children)&&u(d.children)})}return o.length&&u((i=o[0])==null?void 0:i.children),Kh(l,n)||(n=l,r&&(r.states.optionValues=l)),o}}});const lCe=hr({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:jf,effect:{type:Tt(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Tt(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:P3.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ni,default:p3},fitInputWidth:Boolean,suffixIcon:{type:Ni,default:iP},tagType:{...V3.type,default:"info"},tagEffect:{...V3.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Tt(String),values:wm,default:"bottom-start"},fallbackPlacements:{type:Tt(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...QR,...Cu(["ariaLabel"])}),PF="ElSelect",uCe=rt({name:PF,componentName:PF,components:{ElSelectMenu:iCe,ElOption:tx,ElOptions:sCe,ElTag:B8e,ElScrollbar:T6e,ElTooltip:F3,ElIcon:Pn},directives:{ClickOutside:_F},props:lCe,emits:[ki,rP,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=be(()=>{const{modelValue:o,multiple:l}=e,u=l?[]:void 0;return st(o)?l?o:u:l?u:o}),n=mn({...Vs(e),modelValue:r}),a=oCe(n,t);un(Pm,mn({props:n,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected}));const i=be(()=>e.multiple?a.states.selected.map(o=>o.currentLabel):a.states.selectedLabel);return{...a,modelValue:r,selectedLabel:i}}});function fCe(e,t,r,n,a,i){const o=js("el-tag"),l=js("el-tooltip"),u=js("el-icon"),c=js("el-option"),d=js("el-options"),v=js("el-scrollbar"),m=js("el-select-menu"),b=Yk("click-outside");return tn((de(),Ie("div",{ref:"selectRef",class:Ce([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[jo(e.mouseEnterEventName)]:_=>e.states.inputHovering=!0,onMouseleave:_=>e.states.inputHovering=!1},[_t(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:_=>e.states.isBeforeHide=!1},{default:lt(()=>{var _;return[Re("div",{ref:"wrapperRef",class:Ce([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:nn(e.toggleMenu,["prevent"])},[e.$slots.prefix?(de(),Ie("div",{key:0,ref:"prefixRef",class:Ce(e.nsSelect.e("prefix"))},[yt(e.$slots,"prefix")],2)):Ye("v-if",!0),Re("div",{ref:"selectionRef",class:Ce([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?yt(e.$slots,"tag",{key:0},()=>[(de(!0),Ie(St,null,ii(e.showTagList,S=>(de(),Ie("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[_t(o,{closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.tagStyle),onClose:T=>e.deleteTag(T,S)},{default:lt(()=>[Re("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[rn(at(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(de(),nt(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:lt(()=>[Re("div",{ref:"collapseItemRef",class:Ce(e.nsSelect.e("selected-item"))},[_t(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.collapseTagStyle)},{default:lt(()=>[Re("span",{class:Ce(e.nsSelect.e("tags-text"))}," + "+at(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:lt(()=>[Re("div",{ref:"tagMenuRef",class:Ce(e.nsSelect.e("selection"))},[(de(!0),Ie(St,null,ii(e.collapseTagList,S=>(de(),Ie("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[_t(o,{class:"in-tooltip",closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:T=>e.deleteTag(T,S)},{default:lt(()=>[Re("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[rn(at(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Ye("v-if",!0)]):Ye("v-if",!0),Re("div",{class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[tn(Re("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":S=>e.states.inputValue=S,type:"text",name:e.name,class:Ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:en(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((_=e.hoverOption)==null?void 0:_.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[kh(nn(S=>e.navigateOptions("next"),["stop","prevent"]),["down"]),kh(nn(S=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),kh(nn(e.handleEsc,["stop","prevent"]),["esc"]),kh(nn(e.selectOption,["stop","prevent"]),["enter"]),kh(nn(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:nn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[qge,e.states.inputValue]]),e.filterable?(de(),Ie("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Ce(e.nsSelect.e("input-calculator")),textContent:at(e.states.inputValue)},null,10,["textContent"])):Ye("v-if",!0)],2),e.shouldShowPlaceholder?(de(),Ie("div",{key:1,class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?yt(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[Re("span",null,at(e.currentPlaceholder),1)]):(de(),Ie("span",{key:1},at(e.currentPlaceholder),1))],2)):Ye("v-if",!0)],2),Re("div",{ref:"suffixRef",class:Ce(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(de(),nt(u,{key:0,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:lt(()=>[(de(),nt(Nn(e.iconComponent)))]),_:1},8,["class"])):Ye("v-if",!0),e.showClose&&e.clearIcon?(de(),nt(u,{key:1,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:lt(()=>[(de(),nt(Nn(e.clearIcon)))]),_:1},8,["class","onClick"])):Ye("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(de(),nt(u,{key:2,class:Ce([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:lt(()=>[(de(),nt(Nn(e.validateIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],2)],10,["onClick"])]}),content:lt(()=>[_t(m,{ref:"menuRef"},{default:lt(()=>[e.$slots.header?(de(),Ie("div",{key:0,class:Ce(e.nsSelect.be("dropdown","header")),onClick:nn(()=>{},["stop"])},[yt(e.$slots,"header")],10,["onClick"])):Ye("v-if",!0),tn(_t(v,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Ce([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:lt(()=>[e.showNewOption?(de(),nt(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Ye("v-if",!0),_t(d,null,{default:lt(()=>[yt(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[ua,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(de(),Ie("div",{key:1,class:Ce(e.nsSelect.be("dropdown","loading"))},[yt(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(de(),Ie("div",{key:2,class:Ce(e.nsSelect.be("dropdown","empty"))},[yt(e.$slots,"empty",{},()=>[Re("span",null,at(e.emptyText),1)])],2)):Ye("v-if",!0),e.$slots.footer?(de(),Ie("div",{key:3,class:Ce(e.nsSelect.be("dropdown","footer")),onClick:nn(()=>{},["stop"])},[yt(e.$slots,"footer")],10,["onClick"])):Ye("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[b,e.handleClickOutside,e.popperRef]])}var cCe=ir(uCe,[["render",fCe],["__file","select.vue"]]);const hCe=rt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Gt("select"),r=Oe(null),n=Cr(),a=Oe([]);un(RF,mn({...Vs(e)}));const i=be(()=>a.value.some(c=>c.visible===!0)),o=c=>{var d,v;return((d=c.type)==null?void 0:d.name)==="ElOption"&&!!((v=c.component)!=null&&v.proxy)},l=c=>{const d=Oa(c),v=[];return d.forEach(m=>{var b,_;o(m)?v.push(m.component.proxy):(b=m.children)!=null&&b.length?v.push(...l(m.children)):(_=m.component)!=null&&_.subTree&&v.push(...l(m.component.subTree))}),v},u=()=>{a.value=l(n.subTree)};return lr(()=>{u()}),nxe(r,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:i,ns:t}}});function dCe(e,t,r,n,a,i){return tn((de(),Ie("ul",{ref:"groupRef",class:Ce(e.ns.be("group","wrap"))},[Re("li",{class:Ce(e.ns.be("group","title"))},at(e.label),3),Re("li",null,[Re("ul",{class:Ce(e.ns.b("group"))},[yt(e.$slots,"default")],2)])],2)),[[ua,e.visible]])}var FF=ir(hCe,[["render",dCe],["__file","option-group.vue"]]);const Fm=Rn(cCe,{Option:tx,OptionGroup:FF}),Lm=is(tx);is(FF);const pCe=hr({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Tt([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Tt([String,Object,Array])}}),vCe=rt({name:"ElStatistic"}),mCe=rt({...vCe,props:pCe,setup(e,{expose:t}){const r=e,n=Gt("statistic"),a=be(()=>{const{value:i,formatter:o,precision:l,decimalSeparator:u,groupSeparator:c}=r;if(vt(o))return o(i);if(!Wn(i)||Number.isNaN(i))return i;let[d,v=""]=String(i).split(".");return v=v.padEnd(l,"0").slice(0,l>0?l:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,v].join(v?u:"")});return t({displayValue:a}),(i,o)=>(de(),Ie("div",{class:Ce(Y(n).b())},[i.$slots.title||i.title?(de(),Ie("div",{key:0,class:Ce(Y(n).e("head"))},[yt(i.$slots,"title",{},()=>[rn(at(i.title),1)])],2)):Ye("v-if",!0),Re("div",{class:Ce(Y(n).e("content"))},[i.$slots.prefix||i.prefix?(de(),Ie("div",{key:0,class:Ce(Y(n).e("prefix"))},[yt(i.$slots,"prefix",{},()=>[Re("span",null,at(i.prefix),1)])],2)):Ye("v-if",!0),Re("span",{class:Ce(Y(n).e("number")),style:en(i.valueStyle)},at(Y(a)),7),i.$slots.suffix||i.suffix?(de(),Ie("div",{key:1,class:Ce(Y(n).e("suffix"))},[yt(i.$slots,"suffix",{},()=>[Re("span",null,at(i.suffix),1)])],2)):Ye("v-if",!0)],2)],2))}});var gCe=ir(mCe,[["__file","statistic.vue"]]);const yCe=Rn(gCe);function bCe(e){let t;const r=Oe(!1),n=mn({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(m){n.text=m}function i(){const m=n.parent,b=v.ns;if(!m.vLoadingAddClassList){let _=m.getAttribute("loading-number");_=Number.parseInt(_)-1,_?m.setAttribute("loading-number",_.toString()):(Mu(m,b.bm("parent","relative")),m.removeAttribute("loading-number")),Mu(m,b.bm("parent","hidden"))}o(),d.unmount()}function o(){var m,b;(b=(m=v.$el)==null?void 0:m.parentNode)==null||b.removeChild(v.$el)}function l(){var m;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=setTimeout(u,400),n.visible=!1,(m=e.closed)==null||m.call(e))}function u(){if(!r.value)return;const m=n.parent;r.value=!1,m.vLoadingAddClassList=void 0,i()}const c=rt({name:"ElLoading",setup(m,{expose:b}){const{ns:_,zIndex:S}=eP("loading");return b({ns:_,zIndex:S}),()=>{const T=n.spinner||n.svg,C=Ot("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...T?{innerHTML:T}:{}},[Ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),I=n.text?Ot("p",{class:_.b("text")},[n.text]):void 0;return Ot(yo,{name:_.b("fade"),onAfterLeave:u},{default:lt(()=>[tn(_t("div",{style:{backgroundColor:n.background||""},class:[_.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Ot("div",{class:_.b("spinner")},[C,I])]),[[ua,n.visible]])])})}}}),d=aN(c),v=d.mount(document.createElement("div"));return{...Vs(n),setText:a,removeElLoadingChild:o,close:l,handleAfterLeave:u,vm:v,get $el(){return v.$el}}}let Dm;const _Ce=function(e={}){if(!fn)return;const t=wCe(e);if(t.fullscreen&&Dm)return Dm;const r=bCe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Dm=void 0)}});ECe(t,t.parent,r),LF(t,t.parent,r),t.parent.vLoadingAddClassList=()=>LF(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),Xt(()=>r.visible.value=t.visible),t.fullscreen&&(Dm=r),r},wCe=e=>{var t,r,n,a;let i;return It(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},ECe=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=Gh(document.body,"position"),r.originalOverflow.value=Gh(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Gh(document.body,"position"),await Xt();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Gh(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Gh(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},LF=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?Mu(t,n.bm("parent","relative")):Kf(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Kf(t,n.bm("parent","hidden")):Mu(t,n.bm("parent","hidden"))},$m=Symbol("ElLoading"),DF=(e,t)=>{var r,n,a,i;const o=t.instance,l=m=>At(t.value)?t.value[m]:void 0,u=m=>{const b=It(m)&&(o==null?void 0:o[m])||m;return b&&Oe(b)},c=m=>u(l(m)||e.getAttribute(`element-loading-${co(m)}`)),d=(r=l("fullscreen"))!=null?r:t.modifiers.fullscreen,v={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(n=l("target"))!=null?n:d?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[$m]={options:v,instance:_Ce(v)}},xCe=(e,t)=>{for(const r of Object.keys(t))gr(t[r])&&(t[r].value=e[r])},SCe={mounted(e,t){t.value&&DF(e,t)},updated(e,t){const r=e[$m];t.oldValue!==t.value&&(t.value&&!t.oldValue?DF(e,t):t.value&&t.oldValue?At(t.value)&&xCe(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[$m])==null||t.instance.close(),e[$m]=null}},$F=["success","info","warning","error"],MCe=hr({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ni},id:{type:String,default:""},message:{type:Tt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Tt(Function),default:()=>{}},onClose:{type:Tt(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...$F,""],default:""},zIndex:Number}),CCe={destroy:()=>!0},TCe=rt({name:"ElNotification"}),ACe=rt({...TCe,props:MCe,emits:CCe,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=eP("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:l}=jxe,u=Oe(!1);let c;const d=be(()=>{const B=r.type;return B&&dm[r.type]?n.m(B):""}),v=be(()=>r.type&&dm[r.type]||r.icon),m=be(()=>r.position.endsWith("right")?"right":"left"),b=be(()=>r.position.startsWith("top")?"top":"bottom"),_=be(()=>{var B;return{[b.value]:`${r.offset}px`,zIndex:(B=r.zIndex)!=null?B:o.value}});function S(){r.duration>0&&({stop:c}=l3(()=>{u.value&&C()},r.duration))}function T(){c==null||c()}function C(){u.value=!1}function I({code:B}){B===cn.delete||B===cn.backspace?T():B===cn.esc?u.value&&C():S()}return lr(()=>{S(),i(),u.value=!0}),Bi(document,"keydown",I),t({visible:u,close:C}),(B,N)=>(de(),nt(yo,{name:Y(n).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:O=>B.$emit("destroy"),persisted:""},{default:lt(()=>[tn(Re("div",{id:B.id,class:Ce([Y(n).b(),B.customClass,Y(m)]),style:en(Y(_)),role:"alert",onMouseenter:T,onMouseleave:S,onClick:B.onClick},[Y(v)?(de(),nt(Y(Pn),{key:0,class:Ce([Y(n).e("icon"),Y(d)])},{default:lt(()=>[(de(),nt(Nn(Y(v))))]),_:1},8,["class"])):Ye("v-if",!0),Re("div",{class:Ce(Y(n).e("group"))},[Re("h2",{class:Ce(Y(n).e("title")),textContent:at(B.title)},null,10,["textContent"]),tn(Re("div",{class:Ce(Y(n).e("content")),style:en(B.title?void 0:{margin:0})},[yt(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(de(),Ie(St,{key:1},[Ye(" Caution here, message could've been compromised, never use user's input as message "),Re("p",{innerHTML:B.message},null,8,["innerHTML"])],2112)):(de(),Ie("p",{key:0},at(B.message),1))])],6),[[ua,B.message]]),B.showClose?(de(),nt(Y(Pn),{key:0,class:Ce(Y(n).e("closeBtn")),onClick:nn(C,["stop"])},{default:lt(()=>[_t(Y(l))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],2)],46,["id","onClick"]),[[ua,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var ICe=ir(ACe,[["__file","notification.vue"]]);const zm={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},rx=16;let BCe=1;const ac=function(e={},t){if(!fn)return{close:()=>{}};(It(e)||Ma(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;zm[r].forEach(({vm:d})=>{var v;n+=(((v=d.el)==null?void 0:v.offsetHeight)||0)+rx}),n+=rx;const a=`notification_${BCe++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{kCe(a,r,i)}};let l=document.body;rs(e.appendTo)?l=e.appendTo:It(e.appendTo)&&(l=document.querySelector(e.appendTo)),rs(l)||(Jr("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const u=document.createElement("div"),c=_t(ICe,o,vt(o.message)?o.message:Ma(o.message)?()=>o.message:null);return c.appContext=ts(t)?ac._context:t,c.props.onDestroy=()=>{iN(null,u)},iN(c,u),zm[r].push({vm:c}),l.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};$F.forEach(e=>{ac[e]=(t={},r)=>((It(t)||Ma(t))&&(t={message:t}),ac({...t,type:e},r))});function kCe(e,t,r){const n=zm[t],a=n.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,l=t.split("-")[0];n.splice(a,1);const u=n.length;if(!(u<1))for(let c=a;c<u;c++){const{el:d,component:v}=n[c].vm,m=Number.parseInt(d.style[l],10)-o-rx;v.props.offset=m}}function NCe(){for(const e of Object.values(zm))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ac.closeAll=NCe,ac._context=null;const on=Exe(ac,"$notify");/*! Element Plus v2.9.1 */var OCe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};/*! Element Plus v2.9.1 */var RCe={name:"es",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"Confirmar",clear:"Despejar"},datepicker:{now:"Ahora",today:"Hoy",cancel:"Cancelar",clear:"Despejar",confirm:"Confirmar",selectDate:"Seleccionar fecha",selectTime:"Seleccionar hora",startDate:"Fecha Incial",startTime:"Hora Inicial",endDate:"Fecha Final",endTime:"Hora Final",prevYear:"Año Anterior",nextYear:"Próximo Año",prevMonth:"Mes Anterior",nextMonth:"Próximo Mes",year:"",month1:"enero",month2:"febrero",month3:"marzo",month4:"abril",month5:"mayo",month6:"junio",month7:"julio",month8:"agosto",month9:"septiembre",month10:"octubre",month11:"noviembre",month12:"diciembre",weeks:{sun:"dom",mon:"lun",tue:"mar",wed:"mié",thu:"jue",fri:"vie",sat:"sáb"},months:{jan:"ene",feb:"feb",mar:"mar",apr:"abr",may:"may",jun:"jun",jul:"jul",aug:"ago",sep:"sep",oct:"oct",nov:"nov",dec:"dic"}},select:{loading:"Cargando",noMatch:"No hay datos que coincidan",noData:"Sin datos",placeholder:"Seleccionar"},mention:{loading:"Cargando"},cascader:{noMatch:"No hay datos que coincidan",loading:"Cargando",placeholder:"Seleccionar",noData:"Sin datos"},pagination:{goto:"Ir a",pagesize:"/página",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages"},messagebox:{confirm:"Aceptar",cancel:"Cancelar",error:"Entrada inválida"},upload:{deleteTip:"Pulse Eliminar para retirar",delete:"Eliminar",preview:"Vista Previa",continue:"Continuar"},table:{emptyText:"Sin Datos",confirmFilter:"Confirmar",resetFilter:"Reiniciar",clearFilter:"Despejar",sumText:"Suma"},tree:{emptyText:"Sin Datos"},transfer:{noMatch:"No hay datos que coincidan",noData:"Sin datos",titles:["Lista 1","Lista 2"],filterPlaceholder:"Ingresar palabra clave",noCheckedFormat:"{total} artículos",hasCheckedFormat:"{checked}/{total} revisados"},image:{error:"HA FALLADO"},pageHeader:{title:"Volver"},popconfirm:{confirmButtonText:"Si",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const PCe={key:0,width:"30",height:"28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FCe=[Re("path",{d:"M2 14.219h26.5M2 13.781 13.781 2M2 14.219 13.781 26",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],LCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",fill:"none"},DCe=[Re("path",{d:"m2 2 18.738 18.738M2.12 21.107 20.857 2.37",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],$Ce={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},zCe=[Re("circle",{cx:"25",cy:"25",r:"25",fill:"#d75a4a"},null,-1),Re("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-miterlimit":"10",d:"M16 34l9-9 9-9M16 16l9 9 9 9"},null,-1)],UCe={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},VCe=[Re("path",{d:"M12 9q1.219 0 2.109.891T15 12t-.891 2.109T12 15t-2.109-.891T9 12t.891-2.109T12 9zm0 8.016q2.063 0 3.539-1.477T17.016 12t-1.477-3.539T12 6.984 8.461 8.461 6.984 12t1.477 3.539T12 17.016zM12 4.5q3.703 0 6.703 2.063t4.313 5.438q-1.313 3.375-4.313 5.438T12 19.502t-6.703-2.063-4.313-5.438q1.313-3.375 4.313-5.438T12 4.5z"},null,-1)],qCe={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},HCe=[Re("path",{d:"M11.859 9H12q1.219 0 2.109.891T15 12v.188zm-4.312.797Q6.984 10.922 6.984 12q0 2.063 1.477 3.539T12 17.016q1.078 0 2.203-.563l-1.547-1.547Q12.281 15 12 15q-1.219 0-2.109-.891T9 12q0-.281.094-.656zM2.016 4.266L3.282 3l17.719 17.719-1.266 1.266q-.234-.234-1.477-1.453t-1.898-1.875q-2.016.844-4.359.844-3.703 0-6.703-2.063T.985 12q.516-1.219 1.617-2.695t2.133-2.273q-.563-.563-1.57-1.594T2.017 4.266zM12 6.984q-.938 0-1.828.375L8.016 5.203Q9.844 4.5 12 4.5q3.703 0 6.68 2.063t4.289 5.438q-1.125 2.766-3.422 4.734l-2.906-2.906q.375-.891.375-1.828 0-2.063-1.477-3.539T12 6.985z"},null,-1)],jCe={key:5,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",stroke:"#666e7b","stroke-width":"2","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},KCe=[Re("path",{d:"M21 28H7a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10l5 5v14a1 1 0 0 1-1 1Z"},null,-1),Re("path",{d:"M10 8V5a1 1 0 0 1 1-1h10l5 5v14a1 1 0 0 1-1 1h-3m-11-5h6m-6 4h6","stroke-linecap":"round"},null,-1)],WCe={key:6,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",stroke:"#666e7b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},GCe=[Re("path",{d:"M16 20a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm0 0v3"},null,-1),Re("path",{d:"M26 11H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V12a1 1 0 0 0-1-1ZM11.5 11V6.5a4.5 4.5 0 1 1 9 0V11"},null,-1)],ZCe={key:7,xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",fill:"none",stroke:"#969eab","stroke-width":"3","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},YCe=[Re("circle",{cx:"9.451",cy:"9.451",r:"7.451"},null,-1),Re("path",{d:"M13.921 15.412 19.51 21","stroke-linecap":"round"},null,-1)],JCe={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},XCe=[Re("circle",{cx:"25",cy:"25",r:"25",fill:"#25ae88"},null,-1),Re("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M38 15L22 33l-10-8"},null,-1)],QCe={key:9,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",stroke:"#666e7b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},e5e=[Re("path",{d:"M16 22.5a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm8.5-8a7.475 7.475 0 0 1 6 3m-29 0a7.474 7.474 0 0 1 6-3"},null,-1),Re("path",{d:"M8.8 27a8.012 8.012 0 0 1 14.4 0M7.5 14.5a4 4 0 1 1 3.925-4.75m9.15 0A4 4 0 1 1 24.5 14.5"},null,-1)],Da=rt({__name:"CustomIcon",props:{icon:{}},setup(e){const t=e;return(r,n)=>t.icon==="back"?(de(),Ie("svg",PCe,FCe)):t.icon==="close"?(de(),Ie("svg",LCe,DCe)):t.icon==="error"?(de(),Ie("svg",$Ce,zCe)):t.icon==="eye"?(de(),Ie("svg",UCe,VCe)):t.icon==="eye-slash"?(de(),Ie("svg",qCe,HCe)):t.icon==="files"?(de(),Ie("svg",jCe,KCe)):t.icon==="lock"?(de(),Ie("svg",WCe,GCe)):t.icon==="search"?(de(),Ie("svg",ZCe,YCe)):t.icon==="success"?(de(),Ie("svg",JCe,XCe)):t.icon==="users"?(de(),Ie("svg",QCe,e5e)):Ye("",!0)}}),t5e=["src"],r5e=[Re("span",null,null,-1)],n5e=rt({__name:"AppLoader",props:{avatar:{default:void 0},grow:{type:Boolean,default:!0},icon:{default:void 0},message:{default:void 0},size:{default:"small"},title:{default:void 0},type:{default:"loading"}},emits:["imagesLoaded","imagesLoading"],setup(e,{emit:t}){const r=e;return lr(()=>{r.avatar&&t("imagesLoading")}),(n,a)=>(de(),Ie("div",{class:Ce([n.$style["loader-body"],[n.$style[`loader-${n.size}`]],[n.$style[`loader-${n.type}`]],{[n.$style["loader-no-grow"]]:n.grow===!1}])},[Re("div",{class:Ce(n.$style["loader-container"])},[Re("div",{class:Ce(n.$style["loader-inner"])},[Re("div",{class:Ce(n.$style["loader-mask"])},[n.avatar?(de(),Ie("img",{key:0,alt:"",src:n.avatar,width:"1",height:"1",onLoad:a[0]||(a[0]=()=>t("imagesLoaded"))},null,40,t5e)):Ye("",!0),n.icon?(de(),nt(Da,{key:1,icon:n.icon},null,8,["icon"])):Ye("",!0)],2)],2),Re("div",{class:Ce(n.$style.loader)},r5e,2)],2),n.title?(de(),Ie("h2",{key:0,class:Ce(n.$style["loader-title"])},at(n.title),3)):Ye("",!0),n.message?(de(),Ie("p",{key:1,class:Ce(n.$style["loader-message"])},at(n.message),3)):Ye("",!0)],2))}}),i5e={loader:"pb-w-sync_loader","loader-container-animation":"pb-w-sync_loader-container-animation","loader-clip-animation":"pb-w-sync_loader-clip-animation","loader-bar-animation":"pb-w-sync_loader-bar-animation","loader-body":"pb-w-sync_loader-body","loader-error":"pb-w-sync_loader-error","loader-title":"pb-w-sync_loader-title","loader-success":"pb-w-sync_loader-success","loader-large":"pb-w-sync_loader-large","loader-container":"pb-w-sync_loader-container","loader-inner":"pb-w-sync_loader-inner","loader-loading":"pb-w-sync_loader-loading","loader-no-grow":"pb-w-sync_loader-no-grow","loader-small":"pb-w-sync_loader-small","loader-mask":"pb-w-sync_loader-mask","loader-message":"pb-w-sync_loader-message"},li=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},ku=li(n5e,[["__cssModules",{$style:i5e}]]),S7e="",M7e="",C7e="",T7e="",A7e="",a5e=["disabled"],o5e=rt({__name:"AccountsSelection",props:{avatar:{default:void 0},buttonDisabledStyle:{type:Boolean,default:!1},client:{},credential:{},disableFormAutocomplete:{type:Boolean,default:!1},selectClass:{default:""},sync:{}},emits:["done"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba(),i=Oe([]),o=Oe(null),l=Oe(!1),u=mn({accounts:[]}),c=Oe(!0),d=Oe(!0),v=mn({accounts:[{type:"array",required:!0,message:a("accounts_selection.form_error"),trigger:"change"}]});function m(){const T=setInterval(()=>{r.sync.getAccounts({id_credential:r.credential}).then(C=>{C.length>0&&i.value.length===0&&(clearInterval(T),i.value=C,u.accounts=i.value.map(I=>I.id_account),d.value=!1)}).catch(()=>{clearInterval(T),d.value=!1,l.value=!0,n("accounts-error")})},2e3)}function b(T){return`**${T.slice(-4)}`}const _=async(T,C)=>{T.preventDefault(),C&&await C.validate(I=>{I&&(n("accounts-selected",u.accounts),t("done"))})};function S(T,C){c.value=!C}return m(),(T,C)=>(de(),Ie(St,null,[d.value?(de(),nt(ku,{key:0,avatar:r.avatar,message:l.value?Y(a)("accounts_selection.error"):Y(a)("accounts_selection.fetching"),size:"large",title:Y(a)("accounts_selection.fetching"),type:l.value?"error":"loading",onImagesLoaded:C[0]||(C[0]=()=>Y(n)("images-loaded")),onImagesLoading:C[1]||(C[1]=()=>Y(n)("images-loading"))},null,8,["avatar","message","title","type"])):(de(),nt(Y(Z3),{key:1,ref_key:"accountsFormRef",ref:o,class:Ce(T.$style["accounts-form"]),autocomplete:T.disableFormAutocomplete?"off":"on",disabled:d.value,"hide-required-asterisk":!0,"label-position":"top",model:u,name:"accounts-selection",rules:v,onSubmit:C[3]||(C[3]=I=>_(I,o.value)),onValidate:S},{default:lt(()=>[_t(Y(Y3),{label:r.client.name?Y(a)("accounts_selection.form_label_client",{client:r.client.name}):Y(a)("accounts_selection.form_label"),prop:"accounts"},{default:lt(()=>[_t(Y(S8e),{modelValue:u.accounts,"onUpdate:modelValue":C[2]||(C[2]=I=>u.accounts=I),class:Ce(T.$style["accounts-checkboxes"])},{default:lt(()=>[(de(!0),Ie(St,null,ii(i.value,I=>(de(),nt(Y(x8e),{key:I.id_account,class:Ce(T.$style["accounts-checkbox"]),name:"accounts",value:I.id_account},{default:lt(()=>[Re("div",{class:Ce(T.$style["accounts-checkbox-content"])},[Re("div",null,at(I.account_type),1),Re("div",{class:Ce(T.$style["accounts-checkbox-row"])},[Re("div",null,at(b(I.number)),1),Re("div",null,[_t(Y(yCe),{class:Ce(T.$style["accounts-balance"]),value:I.balance,precision:2},null,8,["class","value"]),rn(" "+at(I.currency),1)])],2)],2)]),_:2},1032,["class","value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["label"]),Re("button",{class:"pb-w-sync_primary-button","data-testid":"accounts-button",disabled:T.buttonDisabledStyle&&c.value,type:"submit"},at(Y(a)("accounts_selection.done")),9,a5e)]),_:1},8,["class","autocomplete","disabled","model","rules"])),l.value?(de(),Ie("div",{key:2,class:Ce(T.$style["accounts-error-button-container"])},[Re("button",{class:"pb-w-sync_primary-button","data-testid":"accounts-button",type:"button",onClick:C[4]||(C[4]=()=>t("done"))},at(Y(a)("accounts_selection.done")),1)],2)):Ye("",!0)],64))}}),s5e={"accounts-balance":"pb-w-sync_accounts-balance","accounts-checkbox":"pb-w-sync_accounts-checkbox","accounts-checkbox-content":"pb-w-sync_accounts-checkbox-content","accounts-checkbox-row":"pb-w-sync_accounts-checkbox-row","accounts-checkboxes":"pb-w-sync_accounts-checkboxes","accounts-error-button-container":"pb-w-sync_accounts-error-button-container","accounts-form":"pb-w-sync_accounts-form"},I7e="",l5e=li(o5e,[["__cssModules",{$style:s5e}]]),k7e="",u5e=li(rt({__name:"FinalResponse",props:{avatar:{},displayAccountsSelection:{type:Boolean},longMessage:{default:""},message:{default:""},oneSiteFlow:{type:Boolean,default:!1},showLogo:{type:Boolean},type:{default:"error"}},emits:["add-other","select-accounts"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba();return(i,o)=>(de(),Ie("div",{class:Ce(i.$style["final-response-container"])},[_t(ku,{avatar:i.showLogo?i.avatar:void 0,grow:!1,icon:i.showLogo?void 0:i.type,message:i.longMessage,size:"large",title:i.message,type:i.type,onImagesLoaded:o[0]||(o[0]=()=>Y(n)("images-loaded")),onImagesLoading:o[1]||(o[1]=()=>Y(n)("images-loading"))},null,8,["avatar","icon","message","title","type"]),!r.oneSiteFlow&&(!r.displayAccountsSelection||r.type==="error")?(de(),Ie("button",{key:0,class:"pb-w-sync_primary-button",onClick:o[2]||(o[2]=l=>t("add-other"))},at(Y(a)("common.add_other")),1)):Ye("",!0),r.displayAccountsSelection&&r.type==="success"?(de(),Ie("button",{key:1,class:"pb-w-sync_primary-button",onClick:o[3]||(o[3]=l=>t("select-accounts"))},at(Y(a)("common.continue")),1)):Ye("",!0)],2))}}),[["__cssModules",{$style:{"final-response-container":"pb-w-sync_final-response-container"}}]]),P7e="",F7e="",L7e="",D7e="",$7e="",z7e="",U7e="",V7e="",q7e="",f5e=["src"],c5e=["src"],h5e=["onClick"],d5e=rt({__name:"InstitutionFilters",props:{countryId:{},filteredCountries:{},filteredOrganizationTypes:{},showCountries:{type:Boolean},organizationTypeId:{},selectClass:{}},emits:["update:countryId","update:organizationTypeId"],setup(e,{emit:t}){const r=e,{t:n}=Ba(),a=be(()=>o(r.filteredCountries.find(u=>u.id_country===r.countryId)));function i(u){Ln("open_country",{id_country:u}),t("update:countryId",u)}function o(u){return`https://hatscripts.github.io/circle-flags/flags/${u.code.toLocaleLowerCase()}.svg`}function l(u){Ln("open_site_organization_type",{id_site_organization_type:u}),t("update:organizationTypeId",u)}return(u,c)=>(de(),Ie(St,null,[Re("p",{class:Ce(u.$style["institution-filters-intro"])},at(Y(n)("common.intro")),3),u.showCountries?(de(),nt(Y(Fm),{key:0,class:Ce(u.$style["widget-country"]),"model-value":r.countryId,"popper-class":r.selectClass,onChange:i},{prefix:lt(()=>[Re("img",{src:a.value,width:"44",height:"44",alt:""},null,8,f5e)]),default:lt(()=>[(de(!0),Ie(St,null,ii(u.filteredCountries,d=>(de(),nt(Y(Lm),{key:d.id_country,class:Ce(u.$style["widget-country-option"]),value:d.id_country,label:d.name},{default:lt(()=>[Re("img",{src:o(d),width:"44",height:"44",alt:""},null,8,c5e),Re("span",null,at(d.name),1)]),_:2},1032,["class","value","label"]))),128))]),_:1},8,["class","model-value","popper-class"])):Ye("",!0),Re("div",{class:Ce(u.$style["organization-types-list"])},[(de(!0),Ie(St,null,ii(u.filteredOrganizationTypes,d=>(de(),Ie("button",{key:d.id_site_organization_type,onClick:()=>l(d.id_site_organization_type)},at(Y(n)(`common.${d.label}`)),9,h5e))),128))],2)],64))}}),p5e={"institution-filters-intro":"pb-w-sync_institution-filters-intro","organization-types-list":"pb-w-sync_organization-types-list","widget-country":"pb-w-sync_widget-country","widget-country-option":"pb-w-sync_widget-country-option"},H7e="",v5e=li(d5e,[["__cssModules",{$style:p5e}]]),m5e=["onClick"],g5e=["alt","src"],y5e={key:1},b5e=li(rt({__name:"OrganizationSitesList",props:{assetsPath:{default:"https://s.paybook.com"},items:{default:()=>[]},showLogo:{type:Boolean,default:!0},showPlaidSitesButton:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba(),i=Oe("");let o=0;const l=be(()=>{const d=i.value.toLocaleLowerCase();return r.items.map(v=>({...v,show:d===""?!0:v.name.toLocaleLowerCase().includes(d)}))});lr(()=>{r.items.length>0&&r.showLogo&&(o=0,n("images-loading"))}),dt(()=>r.items,d=>{d.length>0&&r.showLogo&&(o=0,n("images-loading"))});function u(){o++,o===r.items.length&&n("images-loaded")}function c(d){t("select",d)}return(d,v)=>d.showPlaidSitesButton?(de(),Ie("div",{key:0,class:Ce(d.$style["widget-plaid-container"])},[Re("button",{class:"pb-w-sync_primary-button",onClick:v[0]||(v[0]=()=>Y(n)("__internal__.plaid-sites-clicked"))},at(Y(a)("common.find_your_institution")),1)],2)):(de(),Ie(St,{key:1},[_t(Y(m3),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=m=>i.value=m),"data-testid":"search-organization",placeholder:Y(a)("common.search")},{prefix:lt(()=>[_t(Da,{icon:"search"})]),_:1},8,["modelValue","placeholder"]),Re("div",{class:Ce(d.$style["organization-sites"])},[(de(!0),Ie(St,null,ii(l.value,(m,b)=>tn((de(),Ie("button",{key:`${m.id_site_organization}-${b}`,class:Ce(d.$style["organization-button"]),type:"button",onClick:()=>c(m)},[d.showLogo?(de(),Ie("img",{key:0,alt:m.name,src:`${d.assetsPath}${m.small_cover}`,loading:"lazy",height:"66",width:"220",onLoad:u},null,40,g5e)):(de(),Ie("span",y5e,at(m.name),1))],10,m5e)),[[ua,m.show]])),128))],2)],64))}}),[["__cssModules",{$style:{"widget-plaid-container":"pb-w-sync_widget-plaid-container","organization-sites":"pb-w-sync_organization-sites","organization-button":"pb-w-sync_organization-button"}}]]),_5e=Re("div",null,null,-1),w5e=["src"],E5e={key:0},x5e=["src"],S5e=["href"],M5e=Re("div",null,null,-1),C5e=li(rt({__name:"PrivacyPolicy",props:{client:{}},emits:["continue"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba(),i="https://www.paybook.com/lib/syncfy/";let o=0;lr(()=>{n("images-loading")});function l(){n("privacy-accepted"),t("continue")}function u(){o++,(o===1&&!r.client.logo||o===2)&&n("images-loaded")}return(c,d)=>(de(),Ie("div",{class:Ce(c.$style["privacy-container"])},[_5e,Re("div",{class:Ce(c.$style["privacy-center"])},[Re("div",{class:Ce([c.$style["privacy-images"],{[c.$style["with-client-logo"]]:r.client.logo}])},[Re("div",null,[Re("img",{src:`${Y(i)}blog/syncfy-icon.svg`,alt:"",width:"190",height:"43",onLoad:u},null,40,w5e)]),r.client.logo?(de(),Ie("div",E5e,[Re("img",{src:r.client.logo,alt:"",onLoad:u},null,40,x5e)])):Ye("",!0)],2),Re("h1",null,at(r.client.name?Y(a)("privacy.title_client",{client:r.client.name}):Y(a)("privacy.title")),1),Re("ul",null,[Re("li",null,[_t(Da,{icon:"files"}),rn(" "+at(Y(a)("privacy.list.first")),1)]),Re("li",null,[_t(Da,{icon:"lock"}),rn(" "+at(Y(a)("privacy.list.second")),1)]),Re("li",null,[_t(Da,{icon:"users"}),rn(" "+at(Y(a)("privacy.list.third")),1)])]),Re("button",{class:"pb-w-sync_primary-button","data-testid":"privacy-button",type:"button",onClick:l},at(Y(a)("common.continue")),1),Re("p",null,[rn(at(Y(a)("privacy.message"))+" ",1),Re("a",{rel:"noopener",href:Y(a)("privacy.url"),target:"_blank"},at(Y(a)("privacy.link")),9,S5e)])],2),M5e],2))}}),[["__cssModules",{$style:{"privacy-container":"pb-w-sync_privacy-container","privacy-center":"pb-w-sync_privacy-center","privacy-images":"pb-w-sync_privacy-images","with-client-logo":"pb-w-sync_with-client-logo"}}]]),T5e=["for"],A5e=["accept","name"],I5e=li(rt({__name:"FileInput",props:{credential:{},displayError:{type:Boolean},idSite:{}},emits:["input","validate"],setup(e,{emit:t}){const r=e,n=Oe(null),a=Oe(null),i=Oe(!1),o=Oe(!1),l=be(()=>i.value&&!a.value&&!o.value);dt(()=>r.displayError,b=>{b&&(i.value=!0)});function u(b){const _=new FileReader;_.onload=S=>{a.value={file:S.target.result,info:{type:b.type,name:b.name}},t("input",S.target.result)},_.readAsDataURL(b)}function c(b){b.preventDefault(),b.dataTransfer.files[0]&&u(b.dataTransfer.files[0])}function d(b){o.value=!1;const _=b.srcElement.value;b.preventDefault(),b.stopPropagation(),_.length>0?_.includes(r.credential.accept)?(t("validate",!0),u(b.target.files[0])):a.value||(o.value=!0,t("validate",!1)):a.value||t("validate",!1)}function v(b){b.stopPropagation(),b.preventDefault(),setTimeout(()=>{i.value=!0},2e3)}function m(b){b.preventDefault(),n.value.click(),setTimeout(()=>{i.value=!0},5e3)}return(b,_)=>(de(),Ie("div",{class:Ce(b.$style["upload-document"])},[Re("label",{class:Ce(b.$style["upload-document-label"]),for:`${r.idSite}[${r.credential.name}]`},at(r.credential.label),11,T5e),Re("div",{class:Ce([b.$style["upload-document-input"],{[b.$style["upload-document-input-error"]]:l.value}]),onClick:_[0]||(_[0]=S=>m(S)),onDrop:_[1]||(_[1]=S=>c(S)),onDragover:_[2]||(_[2]=S=>v(S))},[Re("button",{class:Ce(b.$style["upload-document-button"])},at(b.$t("file.choose")),3),Re("span",{class:Ce(b.$style["upload-document-name"])},at(a.value?a.value.info.name:b.$t("file.no_chosen")),3)],34),l.value?(de(),Ie("div",{key:0,class:Ce(b.$style["upload-document-required-error"])},at(r.credential.label)+" "+at(b.$t("file.required")),3)):Ye("",!0),o.value?(de(),Ie("div",{key:1,class:Ce(b.$style["upload-document-required-error"])},at(b.$t("file.invalid",{extension:b.credential.accept})),3)):Ye("",!0),Re("input",{ref_key:"fileInput",ref:n,type:"file","data-testid":"file-input",accept:r.credential.accept,style:{position:"absolute",left:"-99999999px"},name:`${r.idSite}[${r.credential.name}]`,onClick:_[3]||(_[3]=S=>S.stopPropagation()),onChange:_[4]||(_[4]=S=>d(S))},null,40,A5e)],2))}}),[["__cssModules",{$style:{"upload-document":"pb-w-sync_upload-document","upload-document-button":"pb-w-sync_upload-document-button","upload-document-input":"pb-w-sync_upload-document-input","upload-document-input-error":"pb-w-sync_upload-document-input-error","upload-document-label":"pb-w-sync_upload-document-label","upload-document-name":"pb-w-sync_upload-document-name","upload-document-required-error":"pb-w-sync_upload-document-required-error"}}]]),tBe="",rBe="",B5e={key:1},k5e=["alt","src"],N5e=["aria-label"],O5e={class:"el-form-item__error"},R5e=["disabled"],P5e=li(rt({__name:"SiteForm",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},displayPrivacyScreen:{type:Boolean},errorMessage:{default:null},loaderMessage:{},oneSiteFlow:{type:Boolean},selectClass:{default:""},showLogo:{type:Boolean,default:!0},showPasswordStyle:{default:"icon"},site:{},testMode:{type:Boolean,default:!1}},emits:["back","error","success","valid"],setup(e,{emit:t}){const r=e,n=Et(ia),a=Oe("0"),i=Oe({...r.site.config.version===1?r.site.data:r.site.input[a.value].data}),o=Oe(!0),l=Oe(!1),u=Oe(!1),c=Oe(!1),d=Oe(!1);let v=0,m,b={};const _=Oe(null),S=Oe(null),T=be(()=>{switch(r.site.config.version){case 3:return r.site.config.input[a.value].fields;case 1:return r.site.config.credentials;default:return null}}),C=be(()=>{switch(r.site.config.version){case 3:return r.site.input[a.value].rules;case 1:return r.site.rules;default:return null}}),I=be(()=>r.site.config.version===3?r.site.config.input.length>1:!1),{t:B}=Ba();yn(()=>{clearTimeout(m)}),lr(()=>{r.showLogo&&n("images-loading"),P(),K(),r.site.on("status-update",M=>{M==="loading"?l.value=!0:l.value=!1})});function N(M){return!!i.value[M]}function O(){clearTimeout(m),r.testMode&&(v<2?(v+=1,m=setTimeout(()=>{v=0},500)):(r.site.toggleTestMode(),d.value=r.site.testMode,v=0))}function P(){_.value[0].focus()}function L(){n("images-loaded")}function $(M){r.site.updateData(Number.parseInt(M),i.value),a.value=M,i.value={...r.site.input[a.value].data},Xt(()=>{P()})}const z=async(M,s)=>{M.preventDefault();let h;s&&await s.validate(p=>{p&&!o.value?(t("valid"),n("submitted"),r.site.config.version===1?h=r.site.connect(i.value):h=r.site.connect(Number.parseInt(a.value),i.value),h.then(g=>(t("success",g),r.site.config.request||n("updated",r.site.response),g)).catch(g=>{t("error",g)})):c.value=!0})};function K(M,s){M&&(b[M]=s),o.value=Object.keys(C.value).reduce((h,p)=>C.value[p].length===0?h:h||!b[p],!1)}return(M,s)=>l.value?(de(),Ie("div",{key:0,class:Ce(M.$style["widget-form-loader"])},[_t(ku,{avatar:M.showLogo?`${M.assetsPath}${M.site.config.organizationSite.avatar}`:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:s[0]||(s[0]=()=>Y(n)("images-loaded")),onImagesLoading:s[1]||(s[1]=()=>Y(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(de(),Ie("div",B5e,[Re("div",{class:Ce(M.$style["site-form-header"])},[d.value?(de(),nt(Y(Qxe),{key:0,center:"",closable:!1,effect:"dark"},{default:lt(()=>[rn(at(Y(B)("common.test_mode")),1)]),_:1})):Ye("",!0),M.showLogo?(de(),Ie("img",{key:1,alt:M.site.config.organizationSite.name,class:Ce(M.$style["site-cover"]),src:`${M.assetsPath}${M.site.config.organizationSite.cover}`,width:"1600",height:"480",onLoad:L},null,42,k5e)):Ye("",!0),Re("h2",{onClick:O},at(M.site.config.name),1)],2),M.errorMessage?(de(),Ie("div",{key:0,class:Ce(M.$style["auth-error"])},[Re("h3",null,at(M.errorMessage.short),1),Re("p",null,at(M.errorMessage.long),1)],2)):Ye("",!0),I.value?(de(),nt(Y(JMe),{key:1,"default-active":"0",mode:"horizontal",onSelect:$},{default:lt(()=>[(de(!0),Ie(St,null,ii(M.site.config.input,(h,p)=>(de(),nt(Y(XMe),{key:p,index:`${p}`},{default:lt(()=>[rn(at(h.label),1)]),_:2},1032,["index"]))),128))]),_:1})):Ye("",!0),_t(Y(Z3),{ref_key:"siteFormRef",ref:S,autocomplete:M.disableFormAutocomplete?"off":"on",disabled:l.value,"hide-required-asterisk":!0,"label-position":"top",model:i.value,name:`${M.site.config.id_site}`,rules:C.value,onSubmit:s[5]||(s[5]=h=>z(h,S.value)),onValidate:K},{default:lt(()=>[(de(!0),Ie(St,null,ii(T.value,(h,p)=>(de(),Ie(St,{key:`${p}-${h.name}`},[h.type==="file"?(de(),nt(I5e,{ref_for:!0,ref_key:"firstInput",ref:_,key:`${p}-${h.name}`,credential:h,"display-error":c.value,"id-site":M.site.config.id_site,onInput:g=>i.value[h.name]=g,onValidate:g=>K(h.name,g)},null,8,["credential","display-error","id-site","onInput","onValidate"])):(de(),nt(Y(Y3),{key:1,label:h.label,prop:h.name,for:`${M.site.config.id_site}[${h.name}]`},{error:lt(({error:g})=>[Re("div",O5e,at(Y(B)(`form_errors.${g}`,{label:h.label})),1)]),default:lt(()=>[h.type==="text"||h.type==="password"?(de(),nt(Y(m3),{key:0,ref_for:!0,ref_key:"firstInput",ref:_,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-input",autocomplete:h.name==="password"?`${M.site.config.id_site} new-password`:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`,name:`${M.site.config.id_site}[${h.name}]`,type:h.type==="password"&&u.value?"text":h.type},Xk({_:2},[h.type==="password"&&M.showPasswordStyle==="icon"?{name:"append",fn:lt(()=>[Re("button",{class:Ce(M.$style["icon-eye"]),"aria-label":Y(B)(`common.${u.value?"hide":"show_password"}`),type:"button",onClick:s[2]||(s[2]=()=>{u.value=!u.value})},[u.value?(de(),nt(Da,{key:0,icon:"eye-slash"})):(de(),nt(Da,{key:1,icon:"eye"}))],10,N5e)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","autocomplete","name","type"])):Ye("",!0),h.type==="select"?(de(),nt(Y(Fm),{key:1,ref_for:!0,ref_key:"firstInput",ref:_,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-select","popper-class":M.selectClass,autocomplete:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`},{default:lt(()=>[(de(!0),Ie(St,null,ii(h.options,(g,y)=>(de(),nt(Y(Lm),{key:y,value:g.value,label:g.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","popper-class","autocomplete"])):Ye("",!0)]),_:2},1032,["label","prop","for"])),h.type==="password"&&M.showPasswordStyle==="text"&&N(h.name)?(de(),nt(Y(Im),{key:`${p}-${h.name}-toggle`,class:Ce(M.$style["show-hide"]),"native-type":"button",onClick:s[3]||(s[3]=()=>{u.value=!u.value})},{default:lt(()=>[rn(at(Y(B)(`common.${u.value?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),Re("div",{class:Ce(M.$style["site-buttons"])},[!r.oneSiteFlow||r.displayPrivacyScreen?(de(),Ie("button",{key:0,class:"pb-w-sync_secondary-button","data-testid":"site-button-back",type:"button",onClick:s[4]||(s[4]=()=>t("back"))},at(Y(B)("common.back")),1)):Ye("",!0),Re("button",{class:"pb-w-sync_primary-button","data-testid":"site-button",disabled:M.buttonDisabledStyle&&o.value,type:"submit"},at(Y(B)("common.next")),9,R5e)],2)]),_:1},8,["autocomplete","disabled","model","name","rules"])]))}}),[["__cssModules",{$style:{"auth-error":"pb-w-sync_auth-error","icon-eye":"pb-w-sync_icon-eye","show-hide":"pb-w-sync_show-hide","site-buttons":"pb-w-sync_site-buttons","site-form-header":"pb-w-sync_site-form-header","site-cover":"pb-w-sync_site-cover","widget-form-loader":"pb-w-sync_widget-form-loader"}}]]),F5e=["alt","src"],L5e=["onClick"],D5e=li(rt({__name:"SitesList",props:{assetsPath:{},items:{},organization:{},showLogo:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const r=e,n=Et(ia);lr(()=>{r.showLogo&&n("images-loading")});function a(){n("images-loaded")}function i(o){t("select",o)}return(o,l)=>(de(),Ie("div",{class:Ce(o.$style["sites-container"])},[o.showLogo?(de(),Ie("img",{key:0,class:Ce(o.$style["organization-cover"]),alt:o.organization.name,src:`${o.assetsPath}${o.organization.cover}`,width:"1600",height:"480",onLoad:a},null,42,F5e)):Ye("",!0),Re("div",{class:Ce(o.$style.sites)},[(de(!0),Ie(St,null,ii(o.items,(u,c)=>(de(),Ie("button",{key:`${u.id_site}-${c}`,type:"button",onClick:()=>i(u)},at(u.name),9,L5e))),128))],2)],2))}}),[["__cssModules",{$style:{"organization-cover":"pb-w-sync_organization-cover","sites-container":"pb-w-sync_sites-container",sites:"pb-w-sync_sites"}}]]),$5e=li(rt({__name:"TheModal",props:{mobile:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:t}){const r=e,n=Et(ia);function a(){Ln("close"),t("update:visible",!1),n("closed")}return(i,o)=>tn((de(),Ie("div",{class:Ce(i.$style["modal-container"])},[Re("div",{class:Ce(i.$style["modal-overlay-backdrop"]),onClick:a},null,2),Re("div",{class:Ce(i.$style["modal-wrapper"])},[Re("div",{class:Ce([i.$style.modal,{[i.$style["is-mobile"]]:r.mobile}])},[yt(i.$slots,"default")],2)],2)],2)),[[ua,i.visible]])}}),[["__cssModules",{$style:{"modal-container":"pb-w-sync_modal-container","modal-wrapper":"pb-w-sync_modal-wrapper","modal-overlay-backdrop":"pb-w-sync_modal-overlay-backdrop",modal:"pb-w-sync_modal","is-mobile":"pb-w-sync_is-mobile"}}]]),pBe="",z5e=["onClick"],U5e=["src"],V5e=li(rt({__name:"MultipleImages",props:{credential:{default:()=>({type:"options",name:"token",label:"Por favor, revisa las imágenes que se te presentan y selecciona la correcta",options:[]})},modelValue:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=Et(ia);let a=0;const i=be(()=>{const u=Math.sqrt(r.credential.options.length);return u%1===0?[u,u]:o(Math.floor(u))});lr(()=>{n("images-loading")});function o(u){if(r.credential.options.length%u===0){const c=r.credential.options.length/u;return[u,c]}return o(u-1)}function l(){a++,a===r.credential.options.length&&n("images-loaded")}return(u,c)=>(de(),Ie("div",{class:Ce(u.$style["multiple-images-container"])},[Re("div",{class:Ce(u.$style["multiple-images-wrapper"])},[(de(!0),Ie(St,null,ii(i.value[0],d=>(de(),Ie("div",{key:d,class:Ce(u.$style["credential-options-row"])},[(de(!0),Ie(St,null,ii(i.value[1],v=>(de(),Ie("div",{key:v,class:Ce([u.$style["credential-options-col"],{[u.$style.selected]:u.modelValue===u.credential.options[v-1+(d-1)*i.value[1]].value}]),onClick:m=>t("update:modelValue",u.credential.options[v-1+(d-1)*i.value[1]].value)},[Re("img",{class:Ce(u.$style["credental-options-img"]),src:u.credential.options[v-1+(d-1)*i.value[1]].imgBase64File||u.credential.options[v-1+(d-1)*i.value[1]].imgURL,onLoad:l},null,42,U5e)],10,z5e))),128))],2))),128))],2)],2))}}),[["__cssModules",{$style:{"multiple-images-container":"pb-w-sync_multiple-images-container","multiple-images-wrapper":"pb-w-sync_multiple-images-wrapper","credential-options-row":"pb-w-sync_credential-options-row","credential-options-col":"pb-w-sync_credential-options-col",selected:"pb-w-sync_selected","credental-options-img":"pb-w-sync_credental-options-img"}}]]),q5e=["alt","src"],H5e={key:0},j5e=["src"],K5e={key:1},W5e=["src","onLoad"],G5e=["aria-label"],Z5e=["disabled"],nx=li(rt({__name:"TwofaForm",props:{avatar:{},buttonDisabledStyle:{type:Boolean},cover:{},disableFormAutocomplete:{type:Boolean},enableBackNavigation:{type:Boolean},inNotification:{type:Boolean},loaderMessage:{},selectClass:{},siteName:{},showLogo:{type:Boolean},showPasswordStyle:{},twofa:{}},emits:["back","error"],setup(e,{emit:t}){const r=e,n=Et(ia),a=Et(mw),i=Oe({}),o=Oe({...r.twofa.data}),l=Oe({}),u=Oe([]),c=Oe(!1);let d=0,v=!0,m=!1,b={};const _=be(()=>r.twofa.config.twofa.reduce((h,p)=>p.imgBase64File?h+1:h,0)),S=Oe(null),T=Oe(null);dt(()=>r.twofa,()=>{K()});function C(){K()}function I(h){return l.value[h]||{}}function B(h){return!!o[h]}function N(h){const p=u.value[h];p&&(l.value={...l.value,[h]:{width:`${p.naturalWidth}px`}},Xt(P))}function O(){S.value&&S.value[0].focus()}function P(){d++,d===_.value&&n("images-loaded")}function L(){const h={};r.twofa.config.twofa&&r.twofa.config.twofa.length&&r.twofa.config.twofa.forEach(p=>{p.type==="accounts"&&(h[p.name]=[])}),i.value=h}function $(h){return["text","password","textOptions","accounts","options"].includes(h)}function z(h){o.value={...o.value,[h]:i.value[h].join()}}function K(){i.value={},o.value={...r.twofa.data},l.value={},u.value=[],c.value=!1,d=0,v=!0,m=!1,b={},r.twofa.defineRules(a),L(),r.twofa.on("loading",()=>{c.value=!0}),r.twofa.on("twofa-device-error",h=>{t("error",h)}),r.twofa.on("token-received",()=>{o.value={...r.twofa.data}}),_.value&&n("images-loading"),s(),r.twofa.config.twofa.forEach(h=>{["connection","challenge"].includes(h.type)&&s(h.name,!0)}),Xt(()=>{O()})}function M(){T.value.validate(h=>{h&&(n("submitted"),r.twofa.authenticate({...o.value}).then(p=>p).catch(p=>{t("error",p)}))})}function s(h,p){h&&(b[h]=p),v=Object.getOwnPropertyNames(r.twofa.rules).reduce((g,y)=>y==="__ob__"||r.twofa.rules[y].length===0?g:g||!b[y],!1)}return C(),(h,p)=>c.value?(de(),Ie("div",{key:0,class:Ce(h.$style["twofa-form-loader"])},[_t(ku,{avatar:h.showLogo?h.avatar:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:p[0]||(p[0]=()=>Y(n)("images-loaded")),onImagesLoading:p[1]||(p[1]=()=>Y(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(de(),Ie("div",{key:1,class:Ce(h.$style["twofa-form"])},[h.inNotification?Ye("",!0):(de(),Ie("div",{key:0,class:Ce(h.$style["twofa-form-header"])},[h.showLogo?(de(),Ie("img",{key:0,alt:h.siteName,class:Ce(h.$style["twofa-cover"]),src:h.cover,width:"1600",height:"480",onLoad:P},null,42,q5e)):Ye("",!0),Re("h2",null,at(h.siteName),1)],2)),r.twofa?(de(),nt(Y(Z3),{key:1,ref_key:"twofaForm",ref:T,"label-position":"top",disabled:c.value,model:o.value,rules:r.twofa.rules,name:`twofa-${r.twofa.config.id_site}`,autocomplete:r.disableFormAutocomplete?"off":"on",onSubmit:nn(M,["prevent"]),onValidate:s},{default:lt(()=>[(de(!0),Ie(St,null,ii(r.twofa.config.twofa,(g,y)=>(de(),Ie(St,{key:`${y}-${g.name}`},[g.type==="externalAction"?(de(),Ie("div",H5e,[Re("label",{class:Ce(h.$style["external-action-label"])},at(g.label),3),Re("div",{class:Ce(h.$style["external-action-img-container"])},[g.imgBase64File?(de(),Ie("img",{key:0,alt:"",src:g.imgBase64File,onLoad:P},null,40,j5e)):Ye("",!0)],2)])):g.type==="instructions"?(de(),Ie("div",K5e,[Re("label",{class:Ce(h.$style["external-action-label"])},at(g.label),3)])):Ye("",!0),$(g.type)?(de(),nt(Y(Y3),{key:2,label:g.label,prop:g.name,for:`twofa-${r.twofa.config.id_site}[${g.name}]`},{default:lt(()=>[g.imgBase64File?(de(),Ie("img",{key:0,ref_for:!0,ref_key:"imageWithoutSize",ref:u,src:g.imgBase64File,class:Ce(h.$style["input-image"]),style:en(I(y)),alt:"",onLoad:w=>N(y)},null,46,W5e)):Ye("",!0),g.type==="text"||g.type==="password"?(de(),nt(Y(m3),{key:1,ref_for:!0,ref:y===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-input",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,autocomplete:g.name==="password"?`${r.twofa.config.id_site} new-password`:r.disableFormAutocomplete?"off":`${r.twofa.config.id_site} ${g.name}`,disabled:g.disabled,type:g.type==="password"&&Y(m)?"text":g.type},Xk({_:2},[g.type==="password"&&r.showPasswordStyle==="icon"?{name:"append",fn:lt(()=>[Re("button",{class:Ce(h.$style["icon-eye-twofa"]),"aria-label":Y(a)(`common.${Y(m)?"hide":"show_password"}`),type:"button",onClick:p[2]||(p[2]=()=>{gr(m)?m.value=!Y(m):m=!Y(m)})},[Y(m)?(de(),nt(Da,{key:1,icon:"eye-slash"})):(de(),nt(Da,{key:0,icon:"eye"}))],10,G5e)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","name","autocomplete","disabled","type"])):Ye("",!0),g.type==="textOptions"?(de(),nt(Y(Fm),{key:2,ref_for:!0,ref:y===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass},{default:lt(()=>[(de(!0),Ie(St,null,ii(g.options,(w,A)=>(de(),nt(Y(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class"])):Ye("",!0),g.type==="accounts"?(de(),nt(Y(Fm),{key:3,ref_for:!0,ref:y===0&&"firstInput",modelValue:i.value[g.name],"onUpdate:modelValue":w=>i.value[g.name]=w,"data-testid":"twofa-multi-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,filterable:"",multiple:"",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass,onChange:()=>z(g.name)},{default:lt(()=>[(de(!0),Ie(St,null,ii(g.options,(w,A)=>(de(),nt(Y(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class","onChange"])):Ye("",!0),g.type==="options"?(de(),nt(V5e,{key:4,modelValue:o.value[g.name],"onUpdate:modelValue":[w=>o.value[g.name]=w,()=>{s(g.name,!0)}],credential:g},null,8,["modelValue","onUpdate:modelValue","credential"])):Ye("",!0)]),_:2},1032,["label","prop","for"])):Ye("",!0),g.type==="password"&&r.showPasswordStyle==="text"&&B(g.name)?(de(),nt(Y(Im),{key:`${y}-${g.name}-toggle`,class:Ce(h.$style["show-hide"]),"native-type":"button",onClick:p[3]||(p[3]=()=>{gr(m)?m.value=!Y(m):m=!Y(m)})},{default:lt(()=>[rn(at(Y(a)(`common.${Y(m)?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),Re("div",{class:Ce(h.$style["twofa-buttons"])},[r.enableBackNavigation?(de(),Ie("button",{key:0,class:"pb-w-sync_secondary-button","data-testid":"twofa-back",type:"button",onClick:p[4]||(p[4]=()=>{t("back")})},at(Y(a)("common.back")),1)):Ye("",!0),r.twofa.displaySubmitButton?(de(),Ie("button",{key:1,class:"pb-w-sync_primary-button",disabled:r.buttonDisabledStyle&&Y(v),"data-testid":"twofa-button",type:"submit"},at(Y(a)("common.next")),9,Z5e)):Ye("",!0)],2)]),_:1},8,["disabled","model","rules","name","autocomplete","onSubmit"])):Ye("",!0)],2))}}),[["__cssModules",{$style:{"external-action-img-container":"pb-w-sync_external-action-img-container","external-action-label":"pb-w-sync_external-action-label","icon-eye-twofa":"pb-w-sync_icon-eye-twofa","input-image":"pb-w-sync_input-image","show-hide":"pb-w-sync_show-hide","twofa-buttons":"pb-w-sync_twofa-buttons","twofa-form-header":"pb-w-sync_twofa-form-header","twofa-cover":"pb-w-sync_twofa-cover","twofa-form-loader":"pb-w-sync_twofa-form-loader"}}]]);function ix(){const e=Oe(!1);function t(){Xt(()=>{e.value=yw.device.type==="mobile"||window.innerWidth<540})}return yn(()=>{}),lr(()=>{t(),window.addEventListener("resize",t)}),{mobile:e}}const EBe="",hn=li(rt({__name:"TwofaNotification",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},displayLongDescription:{type:Boolean,default:!1},duration:{},enableBackNavigation:{type:Boolean,default:!1},hideForm:{type:Boolean,default:!1},initLongMessage:{default:null},initMessage:{default:null},initTitle:{default:""},item:{default:null},messagesUpdater:{default:null},rootEmit:{type:Function,default:null},selectClass:{default:""},showLogo:{type:Boolean,default:!1},showPasswordStyle:{default:"icon"},t:{},type:{}},emits:["back","error","imagesLoaded","imagesLoading"],setup(e,{emit:t}){var P,L,$,z;const r=e;un(ia,r.rootEmit),un(mw,r.t);let n=Oe(r.initLongMessage||((P=r.messagesUpdater)==null?void 0:P.getMessages().long)||""),a=Oe(r.initMessage||((L=r.messagesUpdater)==null?void 0:L.getMessages().short)||""),i=null,o=Oe(r.displayLongDescription||!1),l=Oe(!1),u=Oe(($=r.item)==null?void 0:$.status),c=Oe(r.item&&((z=r.item)!=null&&z.config)?r.item.config.name:r.initTitle);const{mobile:d}=ix(),v=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.avatar}`:""),m=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.cover}`:""),b=be(()=>r.item?d.value?u.value==="twofa":(u.value==="twofa"||u.value==="twofa-loading")&&!r.hideForm:!1),_=be(()=>r.item?r.type==="info"&&u.value!=="twofa":r.type==="info"),S=be(()=>r.item?u.value!=="twofa-loading":!0);function T(){r.messagesUpdater&&r.messagesUpdater.subscribe(()=>{const K=r.messagesUpdater.getMessages();n.value=K.long,a.value=K.short}),r.item&&(r.item.on("twofa",()=>{u.value="twofa",l.value=!0}),r.item.on("twofa-loading",()=>{u.value="twofa-loading",l.value=!1}))}lr(()=>{Xt(()=>{r.type!=="info"&&d.value&&(l.value=!0,B())})});function C(){clearTimeout(i)}function I(){return Math.round(r.duration*.75)}function B(){d.value&&r.duration>0&&(i=setTimeout(()=>{l.value=!1},I()))}function N(){r.type!=="info"&&d.value&&(l.value=!l.value,C())}function O(){o.value=!o.value}return T(),(K,M)=>(de(),Ie("div",null,[Re("div",{class:Ce([K.$style["site-indentifier"],{[K.$style["is-mobile"]]:Y(d)}]),onClick:N,onMouseleave:B},[_.value||K.showLogo?(de(),nt(ku,{key:0,avatar:K.showLogo?v.value:void 0,type:r.type==="info"?"loading":r.type,onImagesLoaded:M[0]||(M[0]=()=>t("imagesLoaded")),onImagesLoading:M[1]||(M[1]=()=>t("imagesLoading"))},null,8,["avatar","type"])):Ye("",!0),!Y(d)||Y(l)?(de(),Ie("div",{key:1,class:Ce([K.$style["site-identifier-description"],{[K.$style["with-loader"]]:_.value||K.showLogo}])},[Re("span",{class:Ce([K.$style["site-name"],K.$style[r.type]])},at(Y(c)),3),S.value?(de(),Ie("p",{key:0,class:Ce(K.$style["site-identifier-message"])},at(Y(a)),3)):Ye("",!0),Y(o)?(de(),Ie("p",{key:1,class:Ce(K.$style["site-identifier-long-message"])},at(Y(n)),3)):Ye("",!0),r.type!=="info"?(de(),Ie("div",{key:2,class:Ce(K.$style["widget-notification-show-more-container"])},[Y(n)?(de(),nt(Y(RMe),{key:0,type:"primary",onClick:nn(O,["stop"])},{default:lt(()=>[rn(at(r.t("common.show",{msg:r.t(`common.${Y(o)?"less":"more"}`)})),1)]),_:1},8,["onClick"])):Ye("",!0)],2)):Ye("",!0)],2)):Ye("",!0)],34),b.value?(de(),Ie("div",{key:0,class:Ce(K.$style["notification-form"])},[_t(nx,{avatar:v.value,"button-disabled-style":K.buttonDisabledStyle,cover:m.value,"disable-form-autocomplete":K.disableFormAutocomplete,"enable-back-navigation":K.enableBackNavigation,"in-notification":!0,"loader-message":Y(a),"select-class":K.selectClass,"show-logo":K.showLogo,"show-password-style":K.showPasswordStyle,"site-name":Y(c),twofa:r.item.twofa,onBack:M[2]||(M[2]=()=>t("back")),onError:M[3]||(M[3]=s=>t("error",s))},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","enable-back-navigation","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])],2)):Ye("",!0)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name",error:"pb-w-sync_error",success:"pb-w-sync_success","site-identifier-long-message":"pb-w-sync_site-identifier-long-message","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","widget-avatar-container":"pb-w-sync_widget-avatar-container","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","notification-form":"pb-w-sync_notification-form"}}]]),Y5e=Re("div",null,null,-1),J5e=li(rt({__name:"UnauthorizedNotification",props:{initMessage:{default:""},initTitle:{default:""},refreshTokenFunction:{},t:{}},emits:["closed","closeNotification","refreshToken","refreshTokenError"],setup(e,{emit:t}){const r=e;let n=Oe(!1);const{mobile:a}=ix();yn(()=>{t("closed")});function i(){n.value=!0,r.refreshTokenFunction().then(({token:o,strict:l})=>{if(typeof o!="string")throw new Error("Refresh token is not valid. Promise should return a valid token.");return new Promise(u=>{t("refreshToken",{token:o,strict:l,resolve:u})})}).catch(()=>{t("refreshTokenError")}).finally(()=>{n.value=!1})}return(o,l)=>(de(),Ie("div",null,[Re("div",{class:Ce([o.$style["site-indentifier"],{[o.$style["is-mobile"]]:Y(a)}])},[Y5e,Re("div",{class:Ce([o.$style["site-identifier-description"],o.$style["with-loader"]])},[Re("span",{class:Ce([o.$style["site-name"],o.$style.error])},at(r.initTitle),3),Re("p",{class:Ce(o.$style["site-identifier-message"])},at(r.initMessage),3),Re("div",{class:Ce(o.$style["unauthorized-button-container"])},[tn((de(),nt(Y(Im),{disabled:Y(n),type:"primary",onClick:nn(i,["stop"])},{default:lt(()=>[rn(at(r.t("common.refresh")),1)]),_:1},8,["disabled","onClick"])),[[Y(SCe),Y(n)]]),_t(Y(Im),{disabled:Y(n),onClick:l[0]||(l[0]=nn(()=>{t("closeNotification")},["stop"]))},{default:lt(()=>[rn(at(r.t("common.cancel")),1)]),_:1},8,["disabled"])],2)],2)],2)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","unauthorized-icon-cotainer":"pb-w-sync_unauthorized-icon-cotainer","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","unauthorized-icon":"pb-w-sync_unauthorized-icon","unauthorized-button-container":"pb-w-sync_unauthorized-button-container"}}]]);function zF(e,t){return function(){return e.apply(t,arguments)}}const{toString:X5e}=Object.prototype,{getPrototypeOf:ax}=Object,Um=(e=>t=>{const r=X5e.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),t=>Um(t)===e),Vm=e=>t=>typeof t===e,{isArray:oc}=Array,ld=Vm("undefined");function Q5e(e){return e!==null&&!ld(e)&&e.constructor!==null&&!ld(e.constructor)&&Pi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UF=$a("ArrayBuffer");function eTe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UF(e.buffer),t}const tTe=Vm("string"),Pi=Vm("function"),VF=Vm("number"),qm=e=>e!==null&&typeof e=="object",rTe=e=>e===!0||e===!1,Hm=e=>{if(Um(e)!=="object")return!1;const t=ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nTe=$a("Date"),iTe=$a("File"),aTe=$a("Blob"),oTe=$a("FileList"),sTe=e=>qm(e)&&Pi(e.pipe),lTe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pi(e.append)&&((t=Um(e))==="formdata"||t==="object"&&Pi(e.toString)&&e.toString()==="[object FormData]"))},uTe=$a("URLSearchParams"),[fTe,cTe,hTe,dTe]=["ReadableStream","Request","Response","Headers"].map($a),pTe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ud(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),oc(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(n=0;n<o;n++)l=i[n],t.call(null,e[l],l,e)}}function qF(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Nu=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:En)(),HF=e=>!ld(e)&&e!==Nu;function ox(){const{caseless:e}=HF(this)&&this||{},t={},r=(n,a)=>{const i=e&&qF(t,a)||a;Hm(t[i])&&Hm(n)?t[i]=ox(t[i],n):Hm(n)?t[i]=ox({},n):oc(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&ud(arguments[n],r);return t}const vTe=(e,t,r,{allOwnKeys:n}={})=>(ud(t,(a,i)=>{r&&Pi(a)?e[i]=zF(a,r):e[i]=a},{allOwnKeys:n}),e),mTe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gTe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},yTe=(e,t,r,n)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=r!==!1&&ax(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},bTe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},_Te=e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!VF(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wTe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ax(Uint8Array)),ETe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},xTe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},STe=$a("HTMLFormElement"),MTe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),jF=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),CTe=$a("RegExp"),KF=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ud(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},TTe=e=>{KF(e,(t,r)=>{if(Pi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Pi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ATe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return oc(e)?n(e):n(String(e).split(t)),r},ITe=()=>{},BTe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,sx="abcdefghijklmnopqrstuvwxyz",WF="0123456789",GF={DIGIT:WF,ALPHA:sx,ALPHA_DIGIT:sx+sx.toUpperCase()+WF},kTe=(e=16,t=GF.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function NTe(e){return!!(e&&Pi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const OTe=e=>{const t=new Array(10),r=(n,a)=>{if(qm(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=oc(n)?[]:{};return ud(n,(o,l)=>{const u=r(o,a+1);!ld(u)&&(i[l]=u)}),t[a]=void 0,i}}return n};return r(e,0)},RTe=$a("AsyncFunction"),PTe=e=>e&&(qm(e)||Pi(e))&&Pi(e.then)&&Pi(e.catch),ZF=((e,t)=>e?setImmediate:t?((r,n)=>(Nu.addEventListener("message",({source:a,data:i})=>{a===Nu&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Nu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Pi(Nu.postMessage)),FTe=typeof queueMicrotask<"u"?queueMicrotask.bind(Nu):typeof ue<"u"&&ue.nextTick||ZF,Ve={isArray:oc,isArrayBuffer:UF,isBuffer:Q5e,isFormData:lTe,isArrayBufferView:eTe,isString:tTe,isNumber:VF,isBoolean:rTe,isObject:qm,isPlainObject:Hm,isReadableStream:fTe,isRequest:cTe,isResponse:hTe,isHeaders:dTe,isUndefined:ld,isDate:nTe,isFile:iTe,isBlob:aTe,isRegExp:CTe,isFunction:Pi,isStream:sTe,isURLSearchParams:uTe,isTypedArray:wTe,isFileList:oTe,forEach:ud,merge:ox,extend:vTe,trim:pTe,stripBOM:mTe,inherits:gTe,toFlatObject:yTe,kindOf:Um,kindOfTest:$a,endsWith:bTe,toArray:_Te,forEachEntry:ETe,matchAll:xTe,isHTMLForm:STe,hasOwnProperty:jF,hasOwnProp:jF,reduceDescriptors:KF,freezeMethods:TTe,toObjectSet:ATe,toCamelCase:MTe,noop:ITe,toFiniteNumber:BTe,findKey:qF,global:Nu,isContextDefined:HF,ALPHABET:GF,generateString:kTe,isSpecCompliantForm:NTe,toJSONObject:OTe,isAsyncFn:RTe,isThenable:PTe,setImmediate:ZF,asap:FTe};function Ft(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Ve.inherits(Ft,Error,{toJSON:function(){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:Ve.toJSONObject(this.config),code:this.code,status:this.status}}});const YF=Ft.prototype,JF={};["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=>{JF[e]={value:e}}),Object.defineProperties(Ft,JF),Object.defineProperty(YF,"isAxiosError",{value:!0}),Ft.from=(e,t,r,n,a,i)=>{const o=Object.create(YF);return Ve.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),Ft.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const LTe=null;function lx(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function XF(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function QF(e,t,r){return e?e.concat(t).map(function(a,i){return a=XF(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function DTe(e){return Ve.isArray(e)&&!e.some(lx)}const $Te=Ve.toFlatObject(Ve,{},null,function(t){return/^is[A-Z]/.test(t)});function jm(e,t,r){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!Ve.isUndefined(T[S])});const n=r.metaTokens,a=r.visitor||d,i=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(a))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(Ve.isDate(_))return _.toISOString();if(!u&&Ve.isBlob(_))throw new Ft("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(_)||Ve.isTypedArray(_)?u&&typeof Blob=="function"?new Blob([_]):ve.Buffer.from(_):_}function d(_,S,T){let C=_;if(_&&!T&&typeof _=="object"){if(Ve.endsWith(S,"{}"))S=n?S:S.slice(0,-2),_=JSON.stringify(_);else if(Ve.isArray(_)&&DTe(_)||(Ve.isFileList(_)||Ve.endsWith(S,"[]"))&&(C=Ve.toArray(_)))return S=XF(S),C.forEach(function(B,N){!(Ve.isUndefined(B)||B===null)&&t.append(o===!0?QF([S],N,i):o===null?S:S+"[]",c(B))}),!1}return lx(_)?!0:(t.append(QF(T,S,i),c(_)),!1)}const v=[],m=Object.assign($Te,{defaultVisitor:d,convertValue:c,isVisitable:lx});function b(_,S){if(!Ve.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(_),Ve.forEach(_,function(C,I){(!(Ve.isUndefined(C)||C===null)&&a.call(t,C,Ve.isString(I)?I.trim():I,S,m))===!0&&b(C,S?S.concat(I):[I])}),v.pop()}}if(!Ve.isObject(e))throw new TypeError("data must be an object");return b(e),t}function eL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ux(e,t){this._pairs=[],e&&jm(e,this,t)}const tL=ux.prototype;tL.append=function(t,r){this._pairs.push([t,r])},tL.toString=function(t){const r=t?function(n){return t.call(this,n,eL)}:eL;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function zTe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rL(e,t,r){if(!t)return e;const n=r&&r.encode||zTe;Ve.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ve.isURLSearchParams(t)?t.toString():new ux(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class UTe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ve.forEach(this.handlers,function(n){n!==null&&t(n)})}}const nL=UTe,iL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VTe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ux,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fx=typeof window<"u"&&typeof document<"u",cx=typeof navigator=="object"&&navigator||void 0,qTe=fx&&(!cx||["ReactNative","NativeScript","NS"].indexOf(cx.product)<0),HTe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),jTe=fx&&window.location.href||"http://localhost",Gn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fx,hasStandardBrowserEnv:qTe,hasStandardBrowserWebWorkerEnv:HTe,navigator:cx,origin:jTe},Symbol.toStringTag,{value:"Module"})),...VTe};function KTe(e,t){return jm(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Gn.isNode&&Ve.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function WTe(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GTe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function aL(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=i>=r.length;return o=!o&&Ve.isArray(a)?a.length:o,u?(Ve.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!l):((!a[o]||!Ve.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ve.isArray(a[o])&&(a[o]=GTe(a[o])),!l)}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){const r={};return Ve.forEachEntry(e,(n,a)=>{t(WTe(n),a,r,0)}),r}return null}function ZTe(e,t,r){if(Ve.isString(e))try{return(t||JSON.parse)(e),Ve.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const hx={transitional:iL,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ve.isObject(t);if(i&&Ve.isHTMLForm(t)&&(t=new FormData(t)),Ve.isFormData(t))return a?JSON.stringify(aL(t)):t;if(Ve.isArrayBuffer(t)||Ve.isBuffer(t)||Ve.isStream(t)||Ve.isFile(t)||Ve.isBlob(t)||Ve.isReadableStream(t))return t;if(Ve.isArrayBufferView(t))return t.buffer;if(Ve.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return KTe(t,this.formSerializer).toString();if((l=Ve.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return jm(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),ZTe(t)):t}],transformResponse:[function(t){const r=this.transitional||hx.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Ve.isResponse(t)||Ve.isReadableStream(t))return t;if(t&&Ve.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?Ft.from(l,Ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ve.forEach(["delete","get","head","post","put","patch"],e=>{hx.headers[e]={}});const dx=hx,YTe=Ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JTe=e=>{const t={};let r,n,a;return e&&e.split(`
864
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),l=new RegExp("^"+a+"$"),u=function(N){return N&&N.exact?i:new RegExp("(?:"+t(N)+r+t(N)+")|(?:"+t(N)+a+t(N)+")","g")};u.v4=function(B){return B&&B.exact?o:new RegExp(""+t(B)+r+t(B),"g")},u.v6=function(B){return B&&B.exact?l:new RegExp(""+t(B)+a+t(B),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",v=u.v4().source,m=u.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",T="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',I="(?:"+c+"|www\\.)"+d+"(?:localhost|"+v+"|"+m+"|"+b+_+S+")"+T+C;return Rm=new RegExp("(?:^"+I+"$)","i"),Rm},TF={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ad={integer:function(t){return ad.number(t)&&parseInt(t,10)===t},float:function(t){return ad.number(t)&&!ad.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ad.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(TF.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iMe())},hex:function(t){return typeof t=="string"&&!!t.match(TF.hex)}},aMe=function(t,r,n,a,i){if(t.required&&r===void 0){CF(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;o.indexOf(l)>-1?ad[l](r)||a.push(Ri(i.messages.types[l],t.fullField,t.type)):l&&typeof r!==t.type&&a.push(Ri(i.messages.types[l],t.fullField,t.type))},oMe=function(t,r,n,a,i){var o=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,v=null,m=typeof r=="number",b=typeof r=="string",_=Array.isArray(r);if(m?v="number":b?v="string":_&&(v="array"),!v)return!1;_&&(d=r.length),b&&(d=r.replace(c,"_").length),o?d!==t.len&&a.push(Ri(i.messages[v].len,t.fullField,t.len)):l&&!u&&d<t.min?a.push(Ri(i.messages[v].min,t.fullField,t.min)):u&&!l&&d>t.max?a.push(Ri(i.messages[v].max,t.fullField,t.max)):l&&u&&(d<t.min||d>t.max)&&a.push(Ri(i.messages[v].range,t.fullField,t.min,t.max))},ic="enum",sMe=function(t,r,n,a,i){t[ic]=Array.isArray(t[ic])?t[ic]:[],t[ic].indexOf(r)===-1&&a.push(Ri(i.messages[ic],t.fullField,t[ic].join(", ")))},lMe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Ri(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Qt={required:CF,whitespace:nMe,type:aMe,range:oMe,enum:sMe,pattern:lMe},uMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i,"string"),wn(r,"string")||(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i),Qt.pattern(t,r,a,o,i),t.whitespace===!0&&Qt.whitespace(t,r,a,o,i))}n(o)},fMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},cMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r===""&&(r=void 0),wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},hMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},dMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),wn(r)||Qt.type(t,r,a,o,i)}n(o)},pMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},vMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},mMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(r==null&&!t.required)return n();Qt.required(t,r,a,o,i,"array"),r!=null&&(Qt.type(t,r,a,o,i),Qt.range(t,r,a,o,i))}n(o)},gMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt.type(t,r,a,o,i)}n(o)},yMe="enum",bMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i),r!==void 0&&Qt[yMe](t,r,a,o,i)}n(o)},_Me=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r,"string")&&!t.required)return n();Qt.required(t,r,a,o,i),wn(r,"string")||Qt.pattern(t,r,a,o,i)}n(o)},wMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r,"date")&&!t.required)return n();if(Qt.required(t,r,a,o,i),!wn(r,"date")){var u;r instanceof Date?u=r:u=new Date(r),Qt.type(t,u,a,o,i),u&&Qt.range(t,u.getTime(),a,o,i)}}n(o)},EMe=function(t,r,n,a,i){var o=[],l=Array.isArray(r)?"array":typeof r;Qt.required(t,r,a,o,i,l),n(o)},K3=function(t,r,n,a,i){var o=t.type,l=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(wn(r,o)&&!t.required)return n();Qt.required(t,r,a,l,i,o),wn(r,o)||Qt.type(t,r,a,l,i)}n(l)},xMe=function(t,r,n,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(wn(r)&&!t.required)return n();Qt.required(t,r,a,o,i)}n(o)},od={string:uMe,method:fMe,number:cMe,boolean:hMe,regexp:dMe,integer:pMe,float:vMe,array:mMe,object:gMe,enum:bMe,pattern:_Me,date:wMe,url:K3,hex:K3,email:K3,required:EMe,any:xMe};function W3(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var G3=W3(),sd=function(){function e(r){this.rules=null,this._messages=G3,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=MF(W3(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var l=n,u=a,c=i;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(S){var T=[],C={};function I(N){if(Array.isArray(N)){var O;T=(O=T).concat.apply(O,N)}else T.push(N)}for(var B=0;B<S.length;B++)I(S[B]);T.length?(C=j3(T),c(T,C)):c(null,l)}if(u.messages){var v=this.messages();v===G3&&(v=W3()),MF(v,u.messages),u.messages=v}else u.messages=this.messages();var m={},b=u.keys||Object.keys(this.rules);b.forEach(function(S){var T=o.rules[S],C=l[S];T.forEach(function(I){var B=I;typeof B.transform=="function"&&(l===n&&(l=Bu({},l)),C=l[S]=B.transform(C)),typeof B=="function"?B={validator:B}:B=Bu({},B),B.validator=o.getValidationMethod(B),B.validator&&(B.field=S,B.fullField=B.fullField||S,B.type=o.getType(B),m[S]=m[S]||[],m[S].push({rule:B,value:C,source:l,field:S}))})});var _={};return eMe(m,u,function(S,T){var C=S.rule,I=(C.type==="object"||C.type==="array")&&(typeof C.fields=="object"||typeof C.defaultField=="object");I=I&&(C.required||!C.required&&S.value),C.field=S.field;function B(P,L){return Bu({},L,{fullField:C.fullField+"."+P,fullFields:C.fullFields?[].concat(C.fullFields,[P]):[P]})}function N(P){P===void 0&&(P=[]);var L=Array.isArray(P)?P:[P];!u.suppressWarning&&L.length&&e.warning("async-validator:",L),L.length&&C.message!==void 0&&(L=[].concat(C.message));var $=L.map(SF(C,l));if(u.first&&$.length)return _[C.field]=1,T($);if(!I)T($);else{if(C.required&&!S.value)return C.message!==void 0?$=[].concat(C.message).map(SF(C,l)):u.error&&($=[u.error(C,Ri(u.messages.required,C.field))]),T($);var z={};C.defaultField&&Object.keys(S.value).map(function(s){z[s]=C.defaultField}),z=Bu({},z,S.rule.fields);var K={};Object.keys(z).forEach(function(s){var h=z[s],p=Array.isArray(h)?h:[h];K[s]=p.map(B.bind(null,s))});var M=new e(K);M.messages(u.messages),S.rule.options&&(S.rule.options.messages=u.messages,S.rule.options.error=u.error),M.validate(S.value,S.rule.options||u,function(s){var h=[];$&&$.length&&h.push.apply(h,$),s&&s.length&&h.push.apply(h,s),T(h.length?h:null)})}}var O;if(C.asyncValidator)O=C.asyncValidator(C,S.value,N,S.source,u);else if(C.validator){try{O=C.validator(C,S.value,N,S.source,u)}catch(P){console.error==null||console.error(P),u.suppressValidatorError||setTimeout(function(){throw P},0),N(P.message)}O===!0?N():O===!1?N(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||(C.fullField||C.field)+" fails"):O instanceof Array?N(O):O instanceof Error&&N(O.message)}O&&O.then&&O.then(function(){return N()},function(P){return N(P)})},function(S){d(S)},l)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!od.hasOwnProperty(n.type))throw new Error(Ri("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?od.required:od[this.getType(n)]||void 0},e}();sd.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");od[t]=r},sd.warning=wF,sd.messages=G3,sd.validators=od;const SMe=["","error","validating","success"],MMe=hr({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Tt([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Tt([Object,Array])},error:String,validateStatus:{type:String,values:SMe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:fm}}),AF="ElLabelWrap";var CMe=rt({name:AF,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Et(Wf,void 0),n=Et(Tu);n||Hf(AF,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Gt("form"),i=Oe(),o=Oe(0),l=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const v=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(v))}else return 0},u=(d="update")=>{Xt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=l():d==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},c=()=>u("update");return lr(()=>{c()}),yn(()=>{u("remove")}),xh(()=>c()),dt(o,(d,v)=>{e.updateAll&&(r==null||r.registerLabelWidth(d,v))}),Ra(be(()=>{var d,v;return(v=(d=i.value)==null?void 0:d.firstElementChild)!=null?v:null}),c),()=>{var d,v;if(!t)return null;const{isAutoWidth:m}=e;if(m){const b=r==null?void 0:r.autoLabelWidth,_=n==null?void 0:n.hasLabel,S={};if(_&&b&&b!=="auto"){const T=Math.max(0,Number.parseInt(b,10)-o.value),I=(n.labelPosition||r.labelPosition)==="left"?"marginRight":"marginLeft";T&&(S[I]=`${T}px`)}return _t("div",{ref:i,class:[a.be("item","label-wrap")],style:S},[(d=t.default)==null?void 0:d.call(t)])}else return _t(St,{ref:i},[(v=t.default)==null?void 0:v.call(t)])}}});const TMe=rt({name:"ElFormItem"}),AMe=rt({...TMe,props:MMe,setup(e,{expose:t}){const r=e,n=Pf(),a=Et(Wf,void 0),i=Et(Tu,void 0),o=tl(void 0,{formItem:!1}),l=Gt("form-item"),u=Yh().value,c=Oe([]),d=Oe(""),v=G3e(d,100),m=Oe(""),b=Oe();let _,S=!1;const T=be(()=>r.labelPosition||(a==null?void 0:a.labelPosition)),C=be(()=>{if(T.value==="top")return{};const ae=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return ae?{width:ae}:{}}),I=be(()=>{if(T.value==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&K)return{};const ae=Zh(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:ae}:{}}),B=be(()=>[l.b(),l.m(o.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",g.value||r.required),l.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a==null?void 0:a.statusIcon,[l.m(`label-${T.value}`)]:T.value}]),N=be(()=>Su(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),O=be(()=>[l.e("error"),{[l.em("error","inline")]:N.value}]),P=be(()=>r.prop?It(r.prop)?r.prop:r.prop.join("."):""),L=be(()=>!!(r.label||n.label)),$=be(()=>r.for||(c.value.length===1?c.value[0]:void 0)),z=be(()=>!$.value&&L.value),K=!!i,M=be(()=>{const ae=a==null?void 0:a.model;if(!(!ae||!r.prop))return h3(ae,r.prop).value}),s=be(()=>{const{required:ae}=r,te=[];r.rules&&te.push(...Oa(r.rules));const he=a==null?void 0:a.rules;if(he&&r.prop){const re=h3(he,r.prop).value;re&&te.push(...Oa(re))}if(ae!==void 0){const re=te.map((Z,j)=>[Z,j]).filter(([Z])=>Object.keys(Z).includes("required"));if(re.length>0)for(const[Z,j]of re)Z.required!==ae&&(te[j]={...Z,required:ae});else te.push({required:ae})}return te}),h=be(()=>s.value.length>0),p=ae=>s.value.filter(he=>!he.trigger||!ae?!0:st(he.trigger)?he.trigger.includes(ae):he.trigger===ae).map(({trigger:he,...re})=>re),g=be(()=>s.value.some(ae=>ae.required)),y=be(()=>{var ae;return v.value==="error"&&r.showMessage&&((ae=a==null?void 0:a.showMessage)!=null?ae:!0)}),w=be(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),A=ae=>{d.value=ae},E=ae=>{var te,he;const{errors:re,fields:Z}=ae;(!re||!Z)&&console.error(ae),A("error"),m.value=re?(he=(te=re==null?void 0:re[0])==null?void 0:te.message)!=null?he:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,m.value)},f=()=>{A("success"),a==null||a.emit("validate",r.prop,!0,"")},x=async ae=>{const te=P.value;return new sd({[te]:ae}).validate({[te]:M.value},{firstFields:!0}).then(()=>(f(),!0)).catch(re=>(E(re),Promise.reject(re)))},k=async(ae,te)=>{if(S||!r.prop)return!1;const he=vt(te);if(!h.value)return te==null||te(!1),!1;const re=p(ae);return re.length===0?(te==null||te(!0),!0):(A("validating"),x(re).then(()=>(te==null||te(!0),!0)).catch(Z=>{const{fields:j}=Z;return te==null||te(!1,j),he?!1:Promise.reject(j)}))},R=()=>{A(""),m.value="",S=!1},q=async()=>{const ae=a==null?void 0:a.model;if(!ae||!r.prop)return;const te=h3(ae,r.prop);S=!0,te.value=_R(_),await Xt(),R(),S=!1},J=ae=>{c.value.includes(ae)||c.value.push(ae)},W=ae=>{c.value=c.value.filter(te=>te!==ae)};dt(()=>r.error,ae=>{m.value=ae||"",A(ae?"error":"")},{immediate:!0}),dt(()=>r.validateStatus,ae=>A(ae||""));const X=mn({...Vs(r),$el:b,size:o,validateState:d,labelId:u,inputIds:c,isGroup:z,hasLabel:L,fieldValue:M,addInputId:J,removeInputId:W,resetField:q,clearValidate:R,validate:k});return un(Tu,X),lr(()=>{r.prop&&(a==null||a.addField(X),_=_R(M.value))}),yn(()=>{a==null||a.removeField(X)}),t({size:o,validateMessage:m,validateState:d,validate:k,clearValidate:R,resetField:q}),(ae,te)=>{var he;return de(),Ie("div",{ref_key:"formItemRef",ref:b,class:Ce(Y(B)),role:Y(z)?"group":void 0,"aria-labelledby":Y(z)?Y(u):void 0},[_t(Y(CMe),{"is-auto-width":Y(C).width==="auto","update-all":((he=Y(a))==null?void 0:he.labelWidth)==="auto"},{default:lt(()=>[Y(L)?(de(),nt(Nn(Y($)?"label":"div"),{key:0,id:Y(u),for:Y($),class:Ce(Y(l).e("label")),style:en(Y(C))},{default:lt(()=>[yt(ae.$slots,"label",{label:Y(w)},()=>[rn(at(Y(w)),1)])]),_:3},8,["id","for","class","style"])):Ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Re("div",{class:Ce(Y(l).e("content")),style:en(Y(I))},[yt(ae.$slots,"default"),_t(Lge,{name:`${Y(l).namespace.value}-zoom-in-top`},{default:lt(()=>[Y(y)?yt(ae.$slots,"error",{key:0,error:m.value},()=>[Re("div",{class:Ce(Y(O))},at(m.value),3)]):Ye("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var IF=ir(AMe,[["__file","form-item.vue"]]);const Z3=Rn(K8e,{FormItem:IF}),Y3=is(IF),IMe=hr({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ni}}),BMe={click:e=>e instanceof MouseEvent},kMe=rt({name:"ElLink"}),NMe=rt({...kMe,props:IMe,emits:BMe,setup(e,{emit:t}){const r=e,n=Gt("link"),a=be(()=>[n.b(),n.m(r.type),n.is("disabled",r.disabled),n.is("underline",r.underline&&!r.disabled)]);function i(o){r.disabled||t("click",o)}return(o,l)=>(de(),Ie("a",{class:Ce(Y(a)),href:o.disabled||!o.href?void 0:o.href,target:o.disabled||!o.href?void 0:o.target,onClick:i},[o.icon?(de(),nt(Y(Pn),{key:0},{default:lt(()=>[(de(),nt(Nn(o.icon)))]),_:1})):Ye("v-if",!0),o.$slots.default?(de(),Ie("span",{key:1,class:Ce(Y(n).e("inner"))},[yt(o.$slots,"default")],2)):Ye("v-if",!0),o.$slots.icon?yt(o.$slots,"icon",{key:2}):Ye("v-if",!0)],10,["href","target"]))}});var OMe=ir(NMe,[["__file","link.vue"]]);const RMe=Rn(OMe);let PMe=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let a=!1;switch(n.code){case cn.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case cn.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case cn.tab:{mm(t,"mouseleave");break}case cn.enter:case cn.numpadEnter:case cn.space:{a=!0,n.currentTarget.click();break}}return a&&(n.preventDefault(),n.stopPropagation()),!1})})}},FMe=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new PMe(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case cn.down:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case cn.up:{mm(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case cn.tab:{mm(t.currentTarget,"mouseleave");break}case cn.enter:case cn.numpadEnter:case cn.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},LMe=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new FMe(n,t)})}};const DMe=rt({name:"ElMenuCollapseTransition",setup(){const e=Gt("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Kf(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){Mu(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),_xe(r,e.m("collapse"))?(Mu(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Kf(r,e.m("collapse"))):(Kf(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Mu(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Kf(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function $Me(e,t,r,n,a,i){return de(),nt(yo,la({mode:"out-in"},e.listeners),{default:lt(()=>[yt(e.$slots,"default")]),_:3},16)}var zMe=ir(DMe,[["render",$Me],["__file","menu-collapse-transition.vue"]]);function BF(e,t){const r=be(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:be(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:r}}function UMe(e){return be(()=>{const r=e.backgroundColor;return r?new hF(r).shade(20).toString():""})}const kF=(e,t)=>{const r=Gt("menu");return be(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":UMe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},VMe=hr({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ni},expandOpenIcon:{type:Ni},collapseCloseIcon:{type:Ni},collapseOpenIcon:{type:Ni}}),J3="ElSubMenu";var X3=rt({name:J3,props:VMe,setup(e,{slots:t,expose:r}){const n=Cr(),{indexPath:a,parentMenu:i}=BF(n,be(()=>e.index)),o=Gt("menu"),l=Gt("sub-menu"),u=Et("rootMenu");u||Hf(J3,"can not inject root menu");const c=Et(`subMenu:${i.value.uid}`);c||Hf(J3,"can not inject sub menu");const d=Oe({}),v=Oe({});let m;const b=Oe(!1),_=Oe(),S=Oe(null),T=be(()=>$.value==="horizontal"&&I.value?"bottom-start":"right-start"),C=be(()=>$.value==="horizontal"&&I.value||$.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?P.value?e.expandOpenIcon:e.expandCloseIcon:iP:e.collapseCloseIcon&&e.collapseOpenIcon?P.value?e.collapseOpenIcon:e.collapseCloseIcon:Ixe),I=be(()=>c.level===0),B=be(()=>{const f=e.teleported;return f===void 0?I.value:f}),N=be(()=>u.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),O=be(()=>$.value==="horizontal"&&I.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),P=be(()=>u.openedMenus.includes(e.index)),L=be(()=>{let f=!1;return Object.values(d.value).forEach(x=>{x.active&&(f=!0)}),Object.values(v.value).forEach(x=>{x.active&&(f=!0)}),f}),$=be(()=>u.props.mode),z=mn({index:e.index,indexPath:a,active:L}),K=kF(u.props,c.level+1),M=be(()=>{var f;return(f=e.popperOffset)!=null?f:u.props.popperOffset}),s=be(()=>{var f;return(f=e.popperClass)!=null?f:u.props.popperClass}),h=be(()=>{var f;return(f=e.showTimeout)!=null?f:u.props.showTimeout}),p=be(()=>{var f;return(f=e.hideTimeout)!=null?f:u.props.hideTimeout}),g=()=>{var f,x,k;return(k=(x=(f=S.value)==null?void 0:f.popperRef)==null?void 0:x.popperInstanceRef)==null?void 0:k.destroy()},y=f=>{f||g()},w=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:a.value,active:L.value})},A=(f,x=h.value)=>{var k;if(f.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,m==null||m(),{stop:m}=l3(()=>{u.openMenu(e.index,a.value)},x),B.value&&((k=i.value.vnode.el)==null||k.dispatchEvent(new MouseEvent("mouseenter")))}},E=(f=!1)=>{var x;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}m==null||m(),c.mouseInChild.value=!1,{stop:m}=l3(()=>!b.value&&u.closeMenu(e.index,a.value),p.value),B.value&&f&&((x=c.handleMouseleave)==null||x.call(c,!0))};dt(()=>u.props.collapse,f=>y(!!f));{const f=k=>{v.value[k.index]=k},x=k=>{delete v.value[k.index]};un(`subMenu:${n.uid}`,{addSubMenu:f,removeSubMenu:x,handleMouseleave:E,mouseInChild:b,level:c.level+1})}return r({opened:P}),lr(()=>{u.addSubMenu(z),c.addSubMenu(z)}),yn(()=>{c.removeSubMenu(z),u.removeSubMenu(z)}),()=>{var f;const x=[(f=t.title)==null?void 0:f.call(t),Ot(Pn,{class:l.e("icon-arrow"),style:{transform:P.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>It(C.value)?Ot(n.appContext.components[C.value]):Ot(C.value)})],k=u.isMenuPopup?Ot(F3,{ref:S,visible:P.value,effect:"light",pure:!0,offset:M.value,showArrow:!1,persistent:!0,popperClass:s.value,placement:T.value,teleported:B.value,fallbackPlacements:O.value,transition:N.value,gpuAcceleration:!1},{content:()=>{var R;return Ot("div",{class:[o.m($.value),o.m("popup-container"),s.value],onMouseenter:q=>A(q,100),onMouseleave:()=>E(!0),onFocus:q=>A(q,100)},[Ot("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${T.value}`)],style:K.value},[(R=t.default)==null?void 0:R.call(t)])])},default:()=>Ot("div",{class:l.e("title"),onClick:w},x)}):Ot(St,{},[Ot("div",{class:l.e("title"),ref:_,onClick:w},x),Ot(R8e,{},{default:()=>{var R;return tn(Ot("ul",{role:"menu",class:[o.b(),o.m("inline")],style:K.value},[(R=t.default)==null?void 0:R.call(t)]),[[ua,P.value]])}})]);return Ot("li",{class:[l.b(),l.is("active",L.value),l.is("opened",P.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:P.value,onMouseenter:A,onMouseleave:()=>E(),onFocus:A},[k])}}});const qMe=hr({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Tt(Array),default:()=>hP([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ni,default:()=>zxe},popperEffect:{type:Tt(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Q3=e=>st(e)&&e.every(t=>It(t));var HMe=rt({name:"ElMenu",props:qMe,emits:{close:(e,t)=>It(e)&&Q3(t),open:(e,t)=>It(e)&&Q3(t),select:(e,t,r,n)=>It(e)&&Q3(t)&&At(r)&&(n===void 0||n instanceof Promise)},setup(e,{emit:t,slots:r,expose:n}){const a=Cr(),i=a.appContext.config.globalProperties.$router,o=Oe(),l=Gt("menu"),u=Gt("sub-menu"),c=Oe(-1),d=Oe(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),v=Oe(e.defaultActive),m=Oe({}),b=Oe({}),_=be(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),S=()=>{const g=v.value&&m.value[v.value];if(!g||e.mode==="horizontal"||e.collapse)return;g.indexPath.forEach(w=>{const A=b.value[w];A&&T(w,A.indexPath)})},T=(g,y)=>{d.value.includes(g)||(e.uniqueOpened&&(d.value=d.value.filter(w=>y.includes(w))),d.value.push(g),t("open",g,y))},C=g=>{const y=d.value.indexOf(g);y!==-1&&d.value.splice(y,1)},I=(g,y)=>{C(g),t("close",g,y)},B=({index:g,indexPath:y})=>{d.value.includes(g)?I(g,y):T(g,y)},N=g=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:y,indexPath:w}=g;if(!(xu(y)||xu(w)))if(e.router&&i){const A=g.route||y,E=i.push(A).then(f=>(f||(v.value=y),f));t("select",y,w,{index:y,indexPath:w,route:A},E)}else v.value=y,t("select",y,w,{index:y,indexPath:w})},O=g=>{const y=m.value,w=y[g]||v.value&&y[v.value]||y[e.defaultActive];w?v.value=w.index:v.value=g},P=g=>{const y=getComputedStyle(g),w=Number.parseInt(y.marginLeft,10),A=Number.parseInt(y.marginRight,10);return g.offsetWidth+w+A||0},L=()=>{var g,y;if(!o.value)return-1;const w=Array.from((y=(g=o.value)==null?void 0:g.childNodes)!=null?y:[]).filter(J=>J.nodeName!=="#comment"&&(J.nodeName!=="#text"||J.nodeValue)),A=64,E=getComputedStyle(o.value),f=Number.parseInt(E.paddingLeft,10),x=Number.parseInt(E.paddingRight,10),k=o.value.clientWidth-f-x;let R=0,q=0;return w.forEach((J,W)=>{R+=P(J),R<=k-A&&(q=W+1)}),q===w.length?-1:q},$=g=>b.value[g].indexPath,z=(g,y=33.34)=>{let w;return()=>{w&&clearTimeout(w),w=setTimeout(()=>{g()},y)}};let K=!0;const M=()=>{if(c.value===L())return;const g=()=>{c.value=-1,Xt(()=>{c.value=L()})};K?g():z(g)(),K=!1};dt(()=>e.defaultActive,g=>{m.value[g]||(v.value=""),O(g)}),dt(()=>e.collapse,g=>{g&&(d.value=[])}),dt(m.value,S);let s;zw(()=>{e.mode==="horizontal"&&e.ellipsis?s=Ra(o,M).stop:s==null||s()});const h=Oe(!1);{const g=E=>{b.value[E.index]=E},y=E=>{delete b.value[E.index]};un("rootMenu",mn({props:e,openedMenus:d,items:m,subMenus:b,activeIndex:v,isMenuPopup:_,addMenuItem:E=>{m.value[E.index]=E},removeMenuItem:E=>{delete m.value[E.index]},addSubMenu:g,removeSubMenu:y,openMenu:T,closeMenu:I,handleMenuItemClick:N,handleSubMenuClick:B})),un(`subMenu:${a.uid}`,{addSubMenu:g,removeSubMenu:y,mouseInChild:h,level:0})}lr(()=>{e.mode==="horizontal"&&new LMe(a.vnode.el,l.namespace.value)}),n({open:y=>{const{indexPath:w}=b.value[y];w.forEach(A=>T(A,w))},close:C,handleResize:M});const p=kF(e,0);return()=>{var g,y;let w=(y=(g=r.default)==null?void 0:g.call(r))!=null?y:[];const A=[];if(e.mode==="horizontal"&&o.value){const x=Bm(w),k=c.value===-1?x:x.slice(0,c.value),R=c.value===-1?[]:x.slice(c.value);R!=null&&R.length&&e.ellipsis&&(w=k,A.push(Ot(X3,{index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ot(Pn,{class:u.e("icon-more")},{default:()=>Ot(e.ellipsisIcon)}),default:()=>R})))}const E=e.closeOnClickOutside?[[_F,()=>{d.value.length&&(h.value||(d.value.forEach(x=>t("close",x,$(x))),d.value=[]))}]]:[],f=tn(Ot("ul",{key:String(e.collapse),role:"menubar",ref:o,style:p.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...w,...A]),E);return e.collapseTransition&&e.mode==="vertical"?Ot(zMe,()=>f):f}}});const jMe=hr({index:{type:Tt([String,null]),default:null},route:{type:Tt([String,Object])},disabled:Boolean}),KMe={click:e=>It(e.index)&&st(e.indexPath)},ex="ElMenuItem",WMe=rt({name:ex,components:{ElTooltip:F3},props:jMe,emits:KMe,setup(e,{emit:t}){const r=Cr(),n=Et("rootMenu"),a=Gt("menu"),i=Gt("menu-item");n||Hf(ex,"can not inject root menu");const{parentMenu:o,indexPath:l}=BF(r,aa(e,"index")),u=Et(`subMenu:${o.value.uid}`);u||Hf(ex,"can not inject sub menu");const c=be(()=>e.index===n.activeIndex),d=mn({index:e.index,indexPath:l,active:c}),v=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",d))};return lr(()=>{u.addSubMenu(d),n.addMenuItem(d)}),yn(()=>{u.removeSubMenu(d),n.removeMenuItem(d)}),{parentMenu:o,rootMenu:n,active:c,nsMenu:a,nsMenuItem:i,handleClick:v}}});function GMe(e,t,r,n,a,i){const o=js("el-tooltip");return de(),Ie("li",{class:Ce([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(de(),nt(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:lt(()=>[yt(e.$slots,"title")]),default:lt(()=>[Re("div",{class:Ce(e.nsMenu.be("tooltip","trigger"))},[yt(e.$slots,"default")],2)]),_:3},8,["effect"])):(de(),Ie(St,{key:1},[yt(e.$slots,"default"),yt(e.$slots,"title")],64))],10,["onClick"])}var NF=ir(WMe,[["render",GMe],["__file","menu-item.vue"]]);const ZMe=rt({name:"ElMenuItemGroup",props:{title:String},setup(){return{ns:Gt("menu-item-group")}}});function YMe(e,t,r,n,a,i){return de(),Ie("li",{class:Ce(e.ns.b())},[Re("div",{class:Ce(e.ns.e("title"))},[e.$slots.title?yt(e.$slots,"title",{key:1}):(de(),Ie(St,{key:0},[rn(at(e.title),1)],64))],2),Re("ul",null,[yt(e.$slots,"default")])],2)}var OF=ir(ZMe,[["render",YMe],["__file","menu-item-group.vue"]]);const JMe=Rn(HMe,{MenuItem:NF,MenuItemGroup:OF,SubMenu:X3}),XMe=is(NF);is(OF),is(X3);const RF=Symbol("ElSelectGroup"),Pm=Symbol("ElSelect");function QMe(e,t){const r=Et(Pm),n=Et(RF,{disabled:!1}),a=be(()=>d(Oa(r.props.modelValue),e.value)),i=be(()=>{var b;if(r.props.multiple){const _=Oa((b=r.props.modelValue)!=null?b:[]);return!a.value&&_.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),o=be(()=>e.label||(At(e.value)?"":e.value)),l=be(()=>e.value||e.label||""),u=be(()=>e.disabled||t.groupDisabled||i.value),c=Cr(),d=(b=[],_)=>{if(At(e.value)){const S=r.props.valueKey;return b&&b.some(T=>Nt(es(T,S))===es(_,S))}else return b&&b.includes(_)},v=()=>{!e.disabled&&!n.disabled&&(r.states.hoveringIndex=r.optionsArray.indexOf(c.proxy))},m=b=>{const _=new RegExp(M8e(b),"i");t.visible=_.test(o.value)||e.created};return dt(()=>o.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),dt(()=>e.value,(b,_)=>{const{remote:S,valueKey:T}=r.props;if(b!==_&&(r.onOptionDestroy(_,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!S){if(T&&At(b)&&At(_)&&b[T]===_[T])return;r.setSelected()}}),dt(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0}),{select:r,currentLabel:o,currentValue:l,itemSelected:a,isDisabled:u,hoverItem:v,updateOption:m}}const eCe=rt({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Gt("select"),r=Yh(),n=be(()=>[t.be("dropdown","item"),t.is("disabled",Y(l)),t.is("selected",Y(o)),t.is("hovering",Y(m))]),a=mn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:l,select:u,hoverItem:c,updateOption:d}=QMe(e,a),{visible:v,hover:m}=Vs(a),b=Cr().proxy;u.onOptionCreate(b),yn(()=>{const S=b.value,{selected:T}=u.states,C=T.some(I=>I.value===b.value);Xt(()=>{u.states.cachedOptions.get(S)===b&&!C&&u.states.cachedOptions.delete(S)}),u.onOptionDestroy(S,b)});function _(){l.value||u.handleOptionSelect(b)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:l,select:u,hoverItem:c,updateOption:d,visible:v,hover:m,selectOptionClick:_,states:a}}});function tCe(e,t,r,n,a,i){return tn((de(),Ie("li",{id:e.id,class:Ce(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:nn(e.selectOptionClick,["stop"])},[yt(e.$slots,"default",{},()=>[Re("span",null,at(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[ua,e.visible]])}var tx=ir(eCe,[["render",tCe],["__file","option.vue"]]);const rCe=rt({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Et(Pm),t=Gt("select"),r=be(()=>e.props.popperClass),n=be(()=>e.props.multiple),a=be(()=>e.props.fitInputWidth),i=Oe("");function o(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return lr(()=>{o(),Ra(e.selectRef,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function nCe(e,t,r,n,a,i){return de(),Ie("div",{class:Ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:en({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(de(),Ie("div",{key:0,class:Ce(e.ns.be("dropdown","header"))},[yt(e.$slots,"header")],2)):Ye("v-if",!0),yt(e.$slots,"default"),e.$slots.footer?(de(),Ie("div",{key:1,class:Ce(e.ns.be("dropdown","footer"))},[yt(e.$slots,"footer")],2)):Ye("v-if",!0)],6)}var iCe=ir(rCe,[["render",nCe],["__file","select-dropdown.vue"]]);const aCe=11,oCe=(e,t)=>{const{t:r}=ZR(),n=Yh(),a=Gt("select"),i=Gt("input"),o=mn({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=Oe(null),u=Oe(null),c=Oe(null),d=Oe(null),v=Oe(null),m=Oe(null),b=Oe(null),_=Oe(null),S=Oe(null),T=Oe(null),C=Oe(null),I=Oe(null),{isComposing:B,handleCompositionStart:N,handleCompositionUpdate:O,handleCompositionEnd:P}=mP({afterComposition:Te=>Je(Te)}),{wrapperRef:L,isFocused:$,handleBlur:z}=vP(v,{beforeFocus(){return w.value},afterFocus(){e.automaticDropdown&&!K.value&&(K.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(Te){var ge,Be;return((ge=c.value)==null?void 0:ge.isFocusInsideContent(Te))||((Be=d.value)==null?void 0:Be.isFocusInsideContent(Te))},afterBlur(){K.value=!1,o.menuVisibleOnFocus=!1}}),K=Oe(!1),M=Oe(),{form:s,formItem:h}=Gf(),{inputId:p}=pm(e,{formItemContext:h}),{valueOnClear:g,isEmptyValue:y}=gxe(e),w=be(()=>e.disabled||(s==null?void 0:s.disabled)),A=be(()=>st(e.modelValue)?e.modelValue.length>0:!y(e.modelValue)),E=be(()=>{var Te;return(Te=s==null?void 0:s.statusIcon)!=null?Te:!1}),f=be(()=>e.clearable&&!w.value&&o.inputHovering&&A.value),x=be(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),k=be(()=>a.is("reverse",x.value&&K.value)),R=be(()=>(h==null?void 0:h.validateState)||""),q=be(()=>fP[R.value]),J=be(()=>e.remote?300:0),W=be(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&!o.inputValue&&o.options.size===0?!1:e.filterable&&o.inputValue&&o.options.size>0&&X.value===0?e.noMatchText||r("el.select.noMatch"):o.options.size===0?e.noDataText||r("el.select.noData"):null),X=be(()=>ae.value.filter(Te=>Te.visible).length),ae=be(()=>{const Te=Array.from(o.options.values()),ge=[];return o.optionValues.forEach(Be=>{const gt=Te.findIndex(wt=>wt.value===Be);gt>-1&&ge.push(Te[gt])}),ge.length>=Te.length?ge:Te}),te=be(()=>Array.from(o.cachedOptions.values())),he=be(()=>{const Te=ae.value.filter(ge=>!ge.created).some(ge=>ge.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!Te}),re=()=>{e.filterable&&vt(e.filterMethod)||e.filterable&&e.remote&&vt(e.remoteMethod)||ae.value.forEach(Te=>{var ge;(ge=Te.updateOption)==null||ge.call(Te,o.inputValue)})},Z=tl(),j=be(()=>["small"].includes(Z.value)?"small":"default"),ie=be({get(){return K.value&&W.value!==!1},set(Te){K.value=Te}}),le=be(()=>{if(e.multiple&&!ts(e.modelValue))return Oa(e.modelValue).length===0&&!o.inputValue;const Te=st(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ts(Te)?!o.inputValue:!0}),V=be(()=>{var Te;const ge=(Te=e.placeholder)!=null?Te:r("el.select.placeholder");return e.multiple||!A.value?ge:o.selectedLabel}),D=be(()=>RR?null:"mouseenter");dt(()=>e.modelValue,(Te,ge)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",F("")),se(),!Kh(Te,ge)&&e.validateEvent&&(h==null||h.validate("change").catch(Be=>Jr(Be)))},{flush:"post",deep:!0}),dt(()=>K.value,Te=>{Te?F(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",Te)}),dt(()=>o.options.entries(),()=>{fn&&(se(),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value&&U())},{flush:"post"}),dt(()=>o.hoveringIndex,Te=>{Wn(Te)&&Te>-1?M.value=ae.value[Te]||{}:M.value={},ae.value.forEach(ge=>{ge.hover=M.value===ge})}),zw(()=>{o.isBeforeHide||re()});const F=Te=>{o.previousQuery===Te||B.value||(o.previousQuery=Te,e.filterable&&vt(e.filterMethod)?e.filterMethod(Te):e.filterable&&e.remote&&vt(e.remoteMethod)&&e.remoteMethod(Te),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value?Xt(U):Xt(ne))},U=()=>{const Te=ae.value.filter(wt=>wt.visible&&!wt.disabled&&!wt.states.groupDisabled),ge=Te.find(wt=>wt.created),Be=Te[0],gt=ae.value.map(wt=>wt.value);o.hoveringIndex=Ae(gt,ge||Be)},se=()=>{if(e.multiple)o.selectedLabel="";else{const ge=st(e.modelValue)?e.modelValue[0]:e.modelValue,Be=Q(ge);o.selectedLabel=Be.currentLabel,o.selected=[Be];return}const Te=[];ts(e.modelValue)||Oa(e.modelValue).forEach(ge=>{Te.push(Q(ge))}),o.selected=Te},Q=Te=>{let ge;const Be=Ew(Te);for(let ar=o.cachedOptions.size-1;ar>=0;ar--){const er=te.value[ar];if(Be?es(er.value,e.valueKey)===es(Te,e.valueKey):er.value===Te){ge={value:Te,currentLabel:er.currentLabel,get isDisabled(){return er.isDisabled}};break}}if(ge)return ge;const gt=Be?Te.label:Te??"";return{value:Te,currentLabel:gt}},ne=()=>{o.hoveringIndex=ae.value.findIndex(Te=>o.selected.some(ge=>Pt(ge)===Pt(Te)))},fe=()=>{o.selectionWidth=u.value.getBoundingClientRect().width},H=()=>{o.calculatorWidth=m.value.getBoundingClientRect().width},G=()=>{o.collapseItemWidth=C.value.getBoundingClientRect().width},me=()=>{var Te,ge;(ge=(Te=c.value)==null?void 0:Te.updatePopper)==null||ge.call(Te)},oe=()=>{var Te,ge;(ge=(Te=d.value)==null?void 0:Te.updatePopper)==null||ge.call(Te)},pe=()=>{o.inputValue.length>0&&!K.value&&(K.value=!0),F(o.inputValue)},Je=Te=>{if(o.inputValue=Te.target.value,e.remote)xe();else return pe()},xe=M3e(()=>{pe()},J.value),Me=Te=>{Kh(e.modelValue,Te)||t(rP,Te)},et=Te=>A3e(Te,ge=>{const Be=o.cachedOptions.get(ge);return Be&&!Be.disabled&&!Be.states.groupDisabled}),ce=Te=>{if(e.multiple&&Te.code!==cn.delete&&Te.target.value.length<=0){const ge=Oa(e.modelValue).slice(),Be=et(ge);if(Be<0)return;const gt=ge[Be];ge.splice(Be,1),t(ki,ge),Me(ge),t("remove-tag",gt)}},_e=(Te,ge)=>{const Be=o.selected.indexOf(ge);if(Be>-1&&!w.value){const gt=Oa(e.modelValue).slice();gt.splice(Be,1),t(ki,gt),Me(gt),t("remove-tag",ge.value)}Te.stopPropagation(),qe()},it=Te=>{Te.stopPropagation();const ge=e.multiple?[]:g.value;if(e.multiple)for(const Be of o.selected)Be.isDisabled&&ge.push(Be.value);t(ki,ge),Me(ge),o.hoveringIndex=-1,K.value=!1,t("clear"),qe()},Ee=Te=>{var ge;if(e.multiple){const Be=Oa((ge=e.modelValue)!=null?ge:[]).slice(),gt=Ae(Be,Te);gt>-1?Be.splice(gt,1):(e.multipleLimit<=0||Be.length<e.multipleLimit)&&Be.push(Te.value),t(ki,Be),Me(Be),Te.created&&F(""),e.filterable&&!e.reserveKeyword&&(o.inputValue="")}else t(ki,Te.value),Me(Te.value),K.value=!1;qe(),!K.value&&Xt(()=>{mt(Te)})},Ae=(Te=[],ge)=>ts(ge)?-1:At(ge.value)?Te.findIndex(Be=>Kh(es(Be,e.valueKey),Pt(ge))):Te.indexOf(ge.value),mt=Te=>{var ge,Be,gt,wt,ar;const er=st(Te)?Te[0]:Te;let dr=null;if(er!=null&&er.value){const ur=ae.value.filter(yr=>yr.value===er.value);ur.length>0&&(dr=ur[0].$el)}if(c.value&&dr){const ur=(wt=(gt=(Be=(ge=c.value)==null?void 0:ge.popperRef)==null?void 0:Be.contentRef)==null?void 0:gt.querySelector)==null?void 0:wt.call(gt,`.${a.be("dropdown","wrap")}`);ur&&wxe(ur,dr)}(ar=I.value)==null||ar.handleScroll()},ke=Te=>{o.options.set(Te.value,Te),o.cachedOptions.set(Te.value,Te)},Ue=(Te,ge)=>{o.options.get(Te)===ge&&o.options.delete(Te)},zt=be(()=>{var Te,ge;return(ge=(Te=c.value)==null?void 0:Te.popperRef)==null?void 0:ge.contentRef}),Le=()=>{o.isBeforeHide=!1,Xt(()=>mt(o.selected))},qe=()=>{var Te;(Te=v.value)==null||Te.focus()},Ut=()=>{var Te;if(K.value){K.value=!1,Xt(()=>{var ge;return(ge=v.value)==null?void 0:ge.blur()});return}(Te=v.value)==null||Te.blur()},De=Te=>{it(Te)},He=Te=>{if(K.value=!1,$.value){const ge=new FocusEvent("focus",Te);Xt(()=>z(ge))}},Vt=()=>{o.inputValue.length>0?o.inputValue="":K.value=!1},Pe=()=>{w.value||(RR&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:K.value=!K.value)},je=()=>{if(!K.value)Pe();else{const Te=ae.value[o.hoveringIndex];Te&&!Te.isDisabled&&Ee(Te)}},Pt=Te=>At(Te.value)?es(Te.value,e.valueKey):Te.value,$e=be(()=>ae.value.filter(Te=>Te.visible).every(Te=>Te.isDisabled)),Ke=be(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),qt=be(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),Fe=Te=>{if(!K.value){K.value=!0;return}if(!(o.options.size===0||X.value===0||B.value)&&!$e.value){Te==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):Te==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const ge=ae.value[o.hoveringIndex];(ge.isDisabled||!ge.visible)&&Fe(Te),Xt(()=>mt(M.value))}},We=()=>{if(!u.value)return 0;const Te=window.getComputedStyle(u.value);return Number.parseFloat(Te.gap||"6px")},Ht=be(()=>{const Te=We();return{maxWidth:`${C.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-Te:o.selectionWidth}px`}}),ze=be(()=>({maxWidth:`${o.selectionWidth}px`})),Ge=be(()=>({width:`${Math.max(o.calculatorWidth,aCe)}px`}));return Ra(u,fe),Ra(m,H),Ra(S,me),Ra(L,me),Ra(T,oe),Ra(C,G),lr(()=>{se()}),{inputId:p,contentId:n,nsSelect:a,nsInput:i,states:o,isFocused:$,expanded:K,optionsArray:ae,hoverOption:M,selectSize:Z,filteredOptionsCount:X,resetCalculatorWidth:H,updateTooltip:me,updateTagTooltip:oe,debouncedOnInputChange:xe,onInput:Je,deletePrevTag:ce,deleteTag:_e,deleteSelected:it,handleOptionSelect:Ee,scrollToOption:mt,hasModelValue:A,shouldShowPlaceholder:le,currentPlaceholder:V,mouseEnterEventName:D,needStatusIcon:E,showClose:f,iconComponent:x,iconReverse:k,validateState:R,validateIcon:q,showNewOption:he,updateOptions:re,collapseTagSize:j,setSelected:se,selectDisabled:w,emptyText:W,handleCompositionStart:N,handleCompositionUpdate:O,handleCompositionEnd:P,onOptionCreate:ke,onOptionDestroy:Ue,handleMenuEnter:Le,focus:qe,blur:Ut,handleClearClick:De,handleClickOutside:He,handleEsc:Vt,toggleMenu:Pe,selectOption:je,getValueKey:Pt,navigateOptions:Fe,dropdownMenuVisible:ie,showTagList:Ke,collapseTagList:qt,tagStyle:Ht,collapseTagStyle:ze,inputStyle:Ge,popperRef:zt,inputRef:v,tooltipRef:c,tagTooltipRef:d,calculatorRef:m,prefixRef:b,suffixRef:_,selectRef:l,wrapperRef:L,selectionRef:u,scrollbarRef:I,menuRef:S,tagMenuRef:T,collapseItemRef:C}};var sCe=rt({name:"ElOptions",setup(e,{slots:t}){const r=Et(Pm);let n=[];return()=>{var a,i;const o=(a=t.default)==null?void 0:a.call(t),l=[];function u(c){st(c)&&c.forEach(d=>{var v,m,b,_;const S=(v=(d==null?void 0:d.type)||{})==null?void 0:v.name;S==="ElOptionGroup"?u(!It(d.children)&&!st(d.children)&&vt((m=d.children)==null?void 0:m.default)?(b=d.children)==null?void 0:b.default():d.children):S==="ElOption"?l.push((_=d.props)==null?void 0:_.value):st(d.children)&&u(d.children)})}return o.length&&u((i=o[0])==null?void 0:i.children),Kh(l,n)||(n=l,r&&(r.states.optionValues=l)),o}}});const lCe=hr({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:jf,effect:{type:Tt(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Tt(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:P3.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ni,default:p3},fitInputWidth:Boolean,suffixIcon:{type:Ni,default:iP},tagType:{...V3.type,default:"info"},tagEffect:{...V3.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Tt(String),values:wm,default:"bottom-start"},fallbackPlacements:{type:Tt(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...QR,...Cu(["ariaLabel"])}),PF="ElSelect",uCe=rt({name:PF,componentName:PF,components:{ElSelectMenu:iCe,ElOption:tx,ElOptions:sCe,ElTag:B8e,ElScrollbar:T6e,ElTooltip:F3,ElIcon:Pn},directives:{ClickOutside:_F},props:lCe,emits:[ki,rP,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=be(()=>{const{modelValue:o,multiple:l}=e,u=l?[]:void 0;return st(o)?l?o:u:l?u:o}),n=mn({...Vs(e),modelValue:r}),a=oCe(n,t);un(Pm,mn({props:n,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected}));const i=be(()=>e.multiple?a.states.selected.map(o=>o.currentLabel):a.states.selectedLabel);return{...a,modelValue:r,selectedLabel:i}}});function fCe(e,t,r,n,a,i){const o=js("el-tag"),l=js("el-tooltip"),u=js("el-icon"),c=js("el-option"),d=js("el-options"),v=js("el-scrollbar"),m=js("el-select-menu"),b=Yk("click-outside");return tn((de(),Ie("div",{ref:"selectRef",class:Ce([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[jo(e.mouseEnterEventName)]:_=>e.states.inputHovering=!0,onMouseleave:_=>e.states.inputHovering=!1},[_t(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:_=>e.states.isBeforeHide=!1},{default:lt(()=>{var _;return[Re("div",{ref:"wrapperRef",class:Ce([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:nn(e.toggleMenu,["prevent"])},[e.$slots.prefix?(de(),Ie("div",{key:0,ref:"prefixRef",class:Ce(e.nsSelect.e("prefix"))},[yt(e.$slots,"prefix")],2)):Ye("v-if",!0),Re("div",{ref:"selectionRef",class:Ce([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?yt(e.$slots,"tag",{key:0},()=>[(de(!0),Ie(St,null,ii(e.showTagList,S=>(de(),Ie("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[_t(o,{closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.tagStyle),onClose:T=>e.deleteTag(T,S)},{default:lt(()=>[Re("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[rn(at(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(de(),nt(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:lt(()=>[Re("div",{ref:"collapseItemRef",class:Ce(e.nsSelect.e("selected-item"))},[_t(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:en(e.collapseTagStyle)},{default:lt(()=>[Re("span",{class:Ce(e.nsSelect.e("tags-text"))}," + "+at(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:lt(()=>[Re("div",{ref:"tagMenuRef",class:Ce(e.nsSelect.e("selection"))},[(de(!0),Ie(St,null,ii(e.collapseTagList,S=>(de(),Ie("div",{key:e.getValueKey(S),class:Ce(e.nsSelect.e("selected-item"))},[_t(o,{class:"in-tooltip",closable:!e.selectDisabled&&!S.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:T=>e.deleteTag(T,S)},{default:lt(()=>[Re("span",{class:Ce(e.nsSelect.e("tags-text"))},[yt(e.$slots,"label",{label:S.currentLabel,value:S.value},()=>[rn(at(S.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):Ye("v-if",!0)]):Ye("v-if",!0),Re("div",{class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[tn(Re("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":S=>e.states.inputValue=S,type:"text",name:e.name,class:Ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:en(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((_=e.hoverOption)==null?void 0:_.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[kh(nn(S=>e.navigateOptions("next"),["stop","prevent"]),["down"]),kh(nn(S=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),kh(nn(e.handleEsc,["stop","prevent"]),["esc"]),kh(nn(e.selectOption,["stop","prevent"]),["enter"]),kh(nn(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:nn(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[qge,e.states.inputValue]]),e.filterable?(de(),Ie("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Ce(e.nsSelect.e("input-calculator")),textContent:at(e.states.inputValue)},null,10,["textContent"])):Ye("v-if",!0)],2),e.shouldShowPlaceholder?(de(),Ie("div",{key:1,class:Ce([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?yt(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[Re("span",null,at(e.currentPlaceholder),1)]):(de(),Ie("span",{key:1},at(e.currentPlaceholder),1))],2)):Ye("v-if",!0)],2),Re("div",{ref:"suffixRef",class:Ce(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(de(),nt(u,{key:0,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:lt(()=>[(de(),nt(Nn(e.iconComponent)))]),_:1},8,["class"])):Ye("v-if",!0),e.showClose&&e.clearIcon?(de(),nt(u,{key:1,class:Ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:lt(()=>[(de(),nt(Nn(e.clearIcon)))]),_:1},8,["class","onClick"])):Ye("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(de(),nt(u,{key:2,class:Ce([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:lt(()=>[(de(),nt(Nn(e.validateIcon)))]),_:1},8,["class"])):Ye("v-if",!0)],2)],10,["onClick"])]}),content:lt(()=>[_t(m,{ref:"menuRef"},{default:lt(()=>[e.$slots.header?(de(),Ie("div",{key:0,class:Ce(e.nsSelect.be("dropdown","header")),onClick:nn(()=>{},["stop"])},[yt(e.$slots,"header")],10,["onClick"])):Ye("v-if",!0),tn(_t(v,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Ce([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:lt(()=>[e.showNewOption?(de(),nt(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Ye("v-if",!0),_t(d,null,{default:lt(()=>[yt(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[ua,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(de(),Ie("div",{key:1,class:Ce(e.nsSelect.be("dropdown","loading"))},[yt(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(de(),Ie("div",{key:2,class:Ce(e.nsSelect.be("dropdown","empty"))},[yt(e.$slots,"empty",{},()=>[Re("span",null,at(e.emptyText),1)])],2)):Ye("v-if",!0),e.$slots.footer?(de(),Ie("div",{key:3,class:Ce(e.nsSelect.be("dropdown","footer")),onClick:nn(()=>{},["stop"])},[yt(e.$slots,"footer")],10,["onClick"])):Ye("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[b,e.handleClickOutside,e.popperRef]])}var cCe=ir(uCe,[["render",fCe],["__file","select.vue"]]);const hCe=rt({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Gt("select"),r=Oe(null),n=Cr(),a=Oe([]);un(RF,mn({...Vs(e)}));const i=be(()=>a.value.some(c=>c.visible===!0)),o=c=>{var d,v;return((d=c.type)==null?void 0:d.name)==="ElOption"&&!!((v=c.component)!=null&&v.proxy)},l=c=>{const d=Oa(c),v=[];return d.forEach(m=>{var b,_;o(m)?v.push(m.component.proxy):(b=m.children)!=null&&b.length?v.push(...l(m.children)):(_=m.component)!=null&&_.subTree&&v.push(...l(m.component.subTree))}),v},u=()=>{a.value=l(n.subTree)};return lr(()=>{u()}),nxe(r,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:i,ns:t}}});function dCe(e,t,r,n,a,i){return tn((de(),Ie("ul",{ref:"groupRef",class:Ce(e.ns.be("group","wrap"))},[Re("li",{class:Ce(e.ns.be("group","title"))},at(e.label),3),Re("li",null,[Re("ul",{class:Ce(e.ns.b("group"))},[yt(e.$slots,"default")],2)])],2)),[[ua,e.visible]])}var FF=ir(hCe,[["render",dCe],["__file","option-group.vue"]]);const Fm=Rn(cCe,{Option:tx,OptionGroup:FF}),Lm=is(tx);is(FF);const pCe=hr({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Tt([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Tt([String,Object,Array])}}),vCe=rt({name:"ElStatistic"}),mCe=rt({...vCe,props:pCe,setup(e,{expose:t}){const r=e,n=Gt("statistic"),a=be(()=>{const{value:i,formatter:o,precision:l,decimalSeparator:u,groupSeparator:c}=r;if(vt(o))return o(i);if(!Wn(i)||Number.isNaN(i))return i;let[d,v=""]=String(i).split(".");return v=v.padEnd(l,"0").slice(0,l>0?l:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,v].join(v?u:"")});return t({displayValue:a}),(i,o)=>(de(),Ie("div",{class:Ce(Y(n).b())},[i.$slots.title||i.title?(de(),Ie("div",{key:0,class:Ce(Y(n).e("head"))},[yt(i.$slots,"title",{},()=>[rn(at(i.title),1)])],2)):Ye("v-if",!0),Re("div",{class:Ce(Y(n).e("content"))},[i.$slots.prefix||i.prefix?(de(),Ie("div",{key:0,class:Ce(Y(n).e("prefix"))},[yt(i.$slots,"prefix",{},()=>[Re("span",null,at(i.prefix),1)])],2)):Ye("v-if",!0),Re("span",{class:Ce(Y(n).e("number")),style:en(i.valueStyle)},at(Y(a)),7),i.$slots.suffix||i.suffix?(de(),Ie("div",{key:1,class:Ce(Y(n).e("suffix"))},[yt(i.$slots,"suffix",{},()=>[Re("span",null,at(i.suffix),1)])],2)):Ye("v-if",!0)],2)],2))}});var gCe=ir(mCe,[["__file","statistic.vue"]]);const yCe=Rn(gCe);function bCe(e){let t;const r=Oe(!1),n=mn({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(m){n.text=m}function i(){const m=n.parent,b=v.ns;if(!m.vLoadingAddClassList){let _=m.getAttribute("loading-number");_=Number.parseInt(_)-1,_?m.setAttribute("loading-number",_.toString()):(Mu(m,b.bm("parent","relative")),m.removeAttribute("loading-number")),Mu(m,b.bm("parent","hidden"))}o(),d.unmount()}function o(){var m,b;(b=(m=v.$el)==null?void 0:m.parentNode)==null||b.removeChild(v.$el)}function l(){var m;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=setTimeout(u,400),n.visible=!1,(m=e.closed)==null||m.call(e))}function u(){if(!r.value)return;const m=n.parent;r.value=!1,m.vLoadingAddClassList=void 0,i()}const c=rt({name:"ElLoading",setup(m,{expose:b}){const{ns:_,zIndex:S}=eP("loading");return b({ns:_,zIndex:S}),()=>{const T=n.spinner||n.svg,C=Ot("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...T?{innerHTML:T}:{}},[Ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),I=n.text?Ot("p",{class:_.b("text")},[n.text]):void 0;return Ot(yo,{name:_.b("fade"),onAfterLeave:u},{default:lt(()=>[tn(_t("div",{style:{backgroundColor:n.background||""},class:[_.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[Ot("div",{class:_.b("spinner")},[C,I])]),[[ua,n.visible]])])})}}}),d=aN(c),v=d.mount(document.createElement("div"));return{...Vs(n),setText:a,removeElLoadingChild:o,close:l,handleAfterLeave:u,vm:v,get $el(){return v.$el}}}let Dm;const _Ce=function(e={}){if(!fn)return;const t=wCe(e);if(t.fullscreen&&Dm)return Dm;const r=bCe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Dm=void 0)}});ECe(t,t.parent,r),LF(t,t.parent,r),t.parent.vLoadingAddClassList=()=>LF(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),Xt(()=>r.visible.value=t.visible),t.fullscreen&&(Dm=r),r},wCe=e=>{var t,r,n,a;let i;return It(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},ECe=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=Gh(document.body,"position"),r.originalOverflow.value=Gh(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Gh(document.body,"position"),await Xt();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Gh(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Gh(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},LF=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?Mu(t,n.bm("parent","relative")):Kf(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Kf(t,n.bm("parent","hidden")):Mu(t,n.bm("parent","hidden"))},$m=Symbol("ElLoading"),DF=(e,t)=>{var r,n,a,i;const o=t.instance,l=m=>At(t.value)?t.value[m]:void 0,u=m=>{const b=It(m)&&(o==null?void 0:o[m])||m;return b&&Oe(b)},c=m=>u(l(m)||e.getAttribute(`element-loading-${co(m)}`)),d=(r=l("fullscreen"))!=null?r:t.modifiers.fullscreen,v={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(n=l("target"))!=null?n:d?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[$m]={options:v,instance:_Ce(v)}},xCe=(e,t)=>{for(const r of Object.keys(t))gr(t[r])&&(t[r].value=e[r])},SCe={mounted(e,t){t.value&&DF(e,t)},updated(e,t){const r=e[$m];t.oldValue!==t.value&&(t.value&&!t.oldValue?DF(e,t):t.value&&t.oldValue?At(t.value)&&xCe(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[$m])==null||t.instance.close(),e[$m]=null}},$F=["success","info","warning","error"],MCe=hr({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ni},id:{type:String,default:""},message:{type:Tt([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:Tt(Function),default:()=>{}},onClose:{type:Tt(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...$F,""],default:""},zIndex:Number}),CCe={destroy:()=>!0},TCe=rt({name:"ElNotification"}),ACe=rt({...TCe,props:MCe,emits:CCe,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=eP("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:l}=jxe,u=Oe(!1);let c;const d=be(()=>{const B=r.type;return B&&dm[r.type]?n.m(B):""}),v=be(()=>r.type&&dm[r.type]||r.icon),m=be(()=>r.position.endsWith("right")?"right":"left"),b=be(()=>r.position.startsWith("top")?"top":"bottom"),_=be(()=>{var B;return{[b.value]:`${r.offset}px`,zIndex:(B=r.zIndex)!=null?B:o.value}});function S(){r.duration>0&&({stop:c}=l3(()=>{u.value&&C()},r.duration))}function T(){c==null||c()}function C(){u.value=!1}function I({code:B}){B===cn.delete||B===cn.backspace?T():B===cn.esc?u.value&&C():S()}return lr(()=>{S(),i(),u.value=!0}),Bi(document,"keydown",I),t({visible:u,close:C}),(B,N)=>(de(),nt(yo,{name:Y(n).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:O=>B.$emit("destroy"),persisted:""},{default:lt(()=>[tn(Re("div",{id:B.id,class:Ce([Y(n).b(),B.customClass,Y(m)]),style:en(Y(_)),role:"alert",onMouseenter:T,onMouseleave:S,onClick:B.onClick},[Y(v)?(de(),nt(Y(Pn),{key:0,class:Ce([Y(n).e("icon"),Y(d)])},{default:lt(()=>[(de(),nt(Nn(Y(v))))]),_:1},8,["class"])):Ye("v-if",!0),Re("div",{class:Ce(Y(n).e("group"))},[Re("h2",{class:Ce(Y(n).e("title")),textContent:at(B.title)},null,10,["textContent"]),tn(Re("div",{class:Ce(Y(n).e("content")),style:en(B.title?void 0:{margin:0})},[yt(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(de(),Ie(St,{key:1},[Ye(" Caution here, message could've been compromised, never use user's input as message "),Re("p",{innerHTML:B.message},null,8,["innerHTML"])],2112)):(de(),Ie("p",{key:0},at(B.message),1))])],6),[[ua,B.message]]),B.showClose?(de(),nt(Y(Pn),{key:0,class:Ce(Y(n).e("closeBtn")),onClick:nn(C,["stop"])},{default:lt(()=>[_t(Y(l))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],2)],46,["id","onClick"]),[[ua,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var ICe=ir(ACe,[["__file","notification.vue"]]);const zm={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},rx=16;let BCe=1;const ac=function(e={},t){if(!fn)return{close:()=>{}};(It(e)||Ma(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;zm[r].forEach(({vm:d})=>{var v;n+=(((v=d.el)==null?void 0:v.offsetHeight)||0)+rx}),n+=rx;const a=`notification_${BCe++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{kCe(a,r,i)}};let l=document.body;rs(e.appendTo)?l=e.appendTo:It(e.appendTo)&&(l=document.querySelector(e.appendTo)),rs(l)||(Jr("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const u=document.createElement("div"),c=_t(ICe,o,vt(o.message)?o.message:Ma(o.message)?()=>o.message:null);return c.appContext=ts(t)?ac._context:t,c.props.onDestroy=()=>{iN(null,u)},iN(c,u),zm[r].push({vm:c}),l.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};$F.forEach(e=>{ac[e]=(t={},r)=>((It(t)||Ma(t))&&(t={message:t}),ac({...t,type:e},r))});function kCe(e,t,r){const n=zm[t],a=n.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,l=t.split("-")[0];n.splice(a,1);const u=n.length;if(!(u<1))for(let c=a;c<u;c++){const{el:d,component:v}=n[c].vm,m=Number.parseInt(d.style[l],10)-o-rx;v.props.offset=m}}function NCe(){for(const e of Object.values(zm))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ac.closeAll=NCe,ac._context=null;const on=Exe(ac,"$notify");/*! Element Plus v2.9.1 */var OCe={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};/*! Element Plus v2.9.1 */var RCe={name:"es",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"Confirmar",clear:"Despejar"},datepicker:{now:"Ahora",today:"Hoy",cancel:"Cancelar",clear:"Despejar",confirm:"Confirmar",selectDate:"Seleccionar fecha",selectTime:"Seleccionar hora",startDate:"Fecha Incial",startTime:"Hora Inicial",endDate:"Fecha Final",endTime:"Hora Final",prevYear:"Año Anterior",nextYear:"Próximo Año",prevMonth:"Mes Anterior",nextMonth:"Próximo Mes",year:"",month1:"enero",month2:"febrero",month3:"marzo",month4:"abril",month5:"mayo",month6:"junio",month7:"julio",month8:"agosto",month9:"septiembre",month10:"octubre",month11:"noviembre",month12:"diciembre",weeks:{sun:"dom",mon:"lun",tue:"mar",wed:"mié",thu:"jue",fri:"vie",sat:"sáb"},months:{jan:"ene",feb:"feb",mar:"mar",apr:"abr",may:"may",jun:"jun",jul:"jul",aug:"ago",sep:"sep",oct:"oct",nov:"nov",dec:"dic"}},select:{loading:"Cargando",noMatch:"No hay datos que coincidan",noData:"Sin datos",placeholder:"Seleccionar"},mention:{loading:"Cargando"},cascader:{noMatch:"No hay datos que coincidan",loading:"Cargando",placeholder:"Seleccionar",noData:"Sin datos"},pagination:{goto:"Ir a",pagesize:"/página",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages"},messagebox:{confirm:"Aceptar",cancel:"Cancelar",error:"Entrada inválida"},upload:{deleteTip:"Pulse Eliminar para retirar",delete:"Eliminar",preview:"Vista Previa",continue:"Continuar"},table:{emptyText:"Sin Datos",confirmFilter:"Confirmar",resetFilter:"Reiniciar",clearFilter:"Despejar",sumText:"Suma"},tree:{emptyText:"Sin Datos"},transfer:{noMatch:"No hay datos que coincidan",noData:"Sin datos",titles:["Lista 1","Lista 2"],filterPlaceholder:"Ingresar palabra clave",noCheckedFormat:"{total} artículos",hasCheckedFormat:"{checked}/{total} revisados"},image:{error:"HA FALLADO"},pageHeader:{title:"Volver"},popconfirm:{confirmButtonText:"Si",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const PCe={key:0,width:"30",height:"28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FCe=[Re("path",{d:"M2 14.219h26.5M2 13.781 13.781 2M2 14.219 13.781 26",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],LCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",fill:"none"},DCe=[Re("path",{d:"m2 2 18.738 18.738M2.12 21.107 20.857 2.37",stroke:"#000","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)],$Ce={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},zCe=[Re("circle",{cx:"25",cy:"25",r:"25",fill:"#d75a4a"},null,-1),Re("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-miterlimit":"10",d:"M16 34l9-9 9-9M16 16l9 9 9 9"},null,-1)],UCe={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},VCe=[Re("path",{d:"M12 9q1.219 0 2.109.891T15 12t-.891 2.109T12 15t-2.109-.891T9 12t.891-2.109T12 9zm0 8.016q2.063 0 3.539-1.477T17.016 12t-1.477-3.539T12 6.984 8.461 8.461 6.984 12t1.477 3.539T12 17.016zM12 4.5q3.703 0 6.703 2.063t4.313 5.438q-1.313 3.375-4.313 5.438T12 19.502t-6.703-2.063-4.313-5.438q1.313-3.375 4.313-5.438T12 4.5z"},null,-1)],qCe={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#31383e"},HCe=[Re("path",{d:"M11.859 9H12q1.219 0 2.109.891T15 12v.188zm-4.312.797Q6.984 10.922 6.984 12q0 2.063 1.477 3.539T12 17.016q1.078 0 2.203-.563l-1.547-1.547Q12.281 15 12 15q-1.219 0-2.109-.891T9 12q0-.281.094-.656zM2.016 4.266L3.282 3l17.719 17.719-1.266 1.266q-.234-.234-1.477-1.453t-1.898-1.875q-2.016.844-4.359.844-3.703 0-6.703-2.063T.985 12q.516-1.219 1.617-2.695t2.133-2.273q-.563-.563-1.57-1.594T2.017 4.266zM12 6.984q-.938 0-1.828.375L8.016 5.203Q9.844 4.5 12 4.5q3.703 0 6.68 2.063t4.289 5.438q-1.125 2.766-3.422 4.734l-2.906-2.906q.375-.891.375-1.828 0-2.063-1.477-3.539T12 6.985z"},null,-1)],jCe={key:5,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",stroke:"#666e7b","stroke-width":"2","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},KCe=[Re("path",{d:"M21 28H7a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10l5 5v14a1 1 0 0 1-1 1Z"},null,-1),Re("path",{d:"M10 8V5a1 1 0 0 1 1-1h10l5 5v14a1 1 0 0 1-1 1h-3m-11-5h6m-6 4h6","stroke-linecap":"round"},null,-1)],WCe={key:6,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",stroke:"#666e7b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},GCe=[Re("path",{d:"M16 20a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm0 0v3"},null,-1),Re("path",{d:"M26 11H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V12a1 1 0 0 0-1-1ZM11.5 11V6.5a4.5 4.5 0 1 1 9 0V11"},null,-1)],ZCe={key:7,xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",fill:"none",stroke:"#969eab","stroke-width":"3","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},YCe=[Re("circle",{cx:"9.451",cy:"9.451",r:"7.451"},null,-1),Re("path",{d:"M13.921 15.412 19.51 21","stroke-linecap":"round"},null,-1)],JCe={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},XCe=[Re("circle",{cx:"25",cy:"25",r:"25",fill:"#25ae88"},null,-1),Re("path",{fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M38 15L22 33l-10-8"},null,-1)],QCe={key:9,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",stroke:"#666e7b","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","xmlns:v":"https://vecta.io/nano"},e5e=[Re("path",{d:"M16 22.5a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm8.5-8a7.475 7.475 0 0 1 6 3m-29 0a7.474 7.474 0 0 1 6-3"},null,-1),Re("path",{d:"M8.8 27a8.012 8.012 0 0 1 14.4 0M7.5 14.5a4 4 0 1 1 3.925-4.75m9.15 0A4 4 0 1 1 24.5 14.5"},null,-1)],Da=rt({__name:"CustomIcon",props:{icon:{}},setup(e){const t=e;return(r,n)=>t.icon==="back"?(de(),Ie("svg",PCe,FCe)):t.icon==="close"?(de(),Ie("svg",LCe,DCe)):t.icon==="error"?(de(),Ie("svg",$Ce,zCe)):t.icon==="eye"?(de(),Ie("svg",UCe,VCe)):t.icon==="eye-slash"?(de(),Ie("svg",qCe,HCe)):t.icon==="files"?(de(),Ie("svg",jCe,KCe)):t.icon==="lock"?(de(),Ie("svg",WCe,GCe)):t.icon==="search"?(de(),Ie("svg",ZCe,YCe)):t.icon==="success"?(de(),Ie("svg",JCe,XCe)):t.icon==="users"?(de(),Ie("svg",QCe,e5e)):Ye("",!0)}}),t5e=["src"],r5e=[Re("span",null,null,-1)],n5e=rt({__name:"AppLoader",props:{avatar:{default:void 0},grow:{type:Boolean,default:!0},icon:{default:void 0},message:{default:void 0},size:{default:"small"},title:{default:void 0},type:{default:"loading"}},emits:["imagesLoaded","imagesLoading"],setup(e,{emit:t}){const r=e;return lr(()=>{r.avatar&&t("imagesLoading")}),(n,a)=>(de(),Ie("div",{class:Ce([n.$style["loader-body"],[n.$style[`loader-${n.size}`]],[n.$style[`loader-${n.type}`]],{[n.$style["loader-no-grow"]]:n.grow===!1}])},[Re("div",{class:Ce(n.$style["loader-container"])},[Re("div",{class:Ce(n.$style["loader-inner"])},[Re("div",{class:Ce(n.$style["loader-mask"])},[n.avatar?(de(),Ie("img",{key:0,alt:"",src:n.avatar,width:"1",height:"1",onLoad:a[0]||(a[0]=()=>t("imagesLoaded"))},null,40,t5e)):Ye("",!0),n.icon?(de(),nt(Da,{key:1,icon:n.icon},null,8,["icon"])):Ye("",!0)],2)],2),Re("div",{class:Ce(n.$style.loader)},r5e,2)],2),n.title?(de(),Ie("h2",{key:0,class:Ce(n.$style["loader-title"])},at(n.title),3)):Ye("",!0),n.message?(de(),Ie("p",{key:1,class:Ce(n.$style["loader-message"])},at(n.message),3)):Ye("",!0)],2))}}),i5e={loader:"pb-w-sync_loader","loader-container-animation":"pb-w-sync_loader-container-animation","loader-clip-animation":"pb-w-sync_loader-clip-animation","loader-bar-animation":"pb-w-sync_loader-bar-animation","loader-body":"pb-w-sync_loader-body","loader-error":"pb-w-sync_loader-error","loader-title":"pb-w-sync_loader-title","loader-success":"pb-w-sync_loader-success","loader-large":"pb-w-sync_loader-large","loader-container":"pb-w-sync_loader-container","loader-inner":"pb-w-sync_loader-inner","loader-loading":"pb-w-sync_loader-loading","loader-no-grow":"pb-w-sync_loader-no-grow","loader-small":"pb-w-sync_loader-small","loader-mask":"pb-w-sync_loader-mask","loader-message":"pb-w-sync_loader-message"},li=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},ku=li(n5e,[["__cssModules",{$style:i5e}]]),S7e="",M7e="",C7e="",T7e="",A7e="",a5e=["disabled"],o5e=rt({__name:"AccountsSelection",props:{avatar:{default:void 0},buttonDisabledStyle:{type:Boolean,default:!1},client:{},credential:{},disableFormAutocomplete:{type:Boolean,default:!1},selectClass:{default:""},sync:{}},emits:["done"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba(),i=Oe([]),o=Oe(null),l=Oe(!1),u=mn({accounts:[]}),c=Oe(!0),d=Oe(!0),v=mn({accounts:[{type:"array",required:!0,message:a("accounts_selection.form_error"),trigger:"change"}]});function m(){const C=setInterval(()=>{r.sync.getAccounts({id_credential:r.credential}).then(I=>{I.length>0&&i.value.length===0&&(clearInterval(C),i.value=I,u.accounts=i.value.map(B=>B.id_account),d.value=!1)}).catch(()=>{clearInterval(C),d.value=!1,l.value=!0,n("accounts-error")})},2e3)}function b(){let C=i.value.reduce((I,B)=>(I={...I,[B.id_account]:!1},I),{});return u.accounts.forEach(I=>{C[I]=!0}),C}function _(C){return`**${C.slice(-4)}`}const S=async(C,I)=>{C.preventDefault(),I&&await I.validate(B=>{B&&(n("accounts-selected",b()),t("done"))})};function T(C,I){c.value=!I}return m(),(C,I)=>(de(),Ie(St,null,[d.value?(de(),nt(ku,{key:0,avatar:r.avatar,message:l.value?Y(a)("accounts_selection.error"):Y(a)("accounts_selection.fetching"),size:"large",title:Y(a)("accounts_selection.fetching"),type:l.value?"error":"loading",onImagesLoaded:I[0]||(I[0]=()=>Y(n)("images-loaded")),onImagesLoading:I[1]||(I[1]=()=>Y(n)("images-loading"))},null,8,["avatar","message","title","type"])):(de(),nt(Y(Z3),{key:1,ref_key:"accountsFormRef",ref:o,class:Ce(C.$style["accounts-form"]),autocomplete:C.disableFormAutocomplete?"off":"on",disabled:d.value,"hide-required-asterisk":!0,"label-position":"top",model:u,name:"accounts-selection",rules:v,onSubmit:I[3]||(I[3]=B=>S(B,o.value)),onValidate:T},{default:lt(()=>[_t(Y(Y3),{label:r.client.name?Y(a)("accounts_selection.form_label_client",{client:r.client.name}):Y(a)("accounts_selection.form_label"),prop:"accounts"},{default:lt(()=>[_t(Y(S8e),{modelValue:u.accounts,"onUpdate:modelValue":I[2]||(I[2]=B=>u.accounts=B),class:Ce(C.$style["accounts-checkboxes"])},{default:lt(()=>[(de(!0),Ie(St,null,ii(i.value,B=>(de(),nt(Y(x8e),{key:B.id_account,class:Ce(C.$style["accounts-checkbox"]),name:"accounts",value:B.id_account},{default:lt(()=>[Re("div",{class:Ce(C.$style["accounts-checkbox-content"])},[Re("div",null,at(B.account_type),1),Re("div",{class:Ce(C.$style["accounts-checkbox-row"])},[Re("div",null,at(_(B.number)),1),Re("div",null,[_t(Y(yCe),{class:Ce(C.$style["accounts-balance"]),value:B.balance,precision:2},null,8,["class","value"]),rn(" "+at(B.currency),1)])],2)],2)]),_:2},1032,["class","value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["label"]),Re("button",{class:"pb-w-sync_primary-button","data-testid":"accounts-button",disabled:C.buttonDisabledStyle&&c.value,type:"submit"},at(Y(a)("accounts_selection.done")),9,a5e)]),_:1},8,["class","autocomplete","disabled","model","rules"])),l.value?(de(),Ie("div",{key:2,class:Ce(C.$style["accounts-error-button-container"])},[Re("button",{class:"pb-w-sync_primary-button","data-testid":"accounts-button",type:"button",onClick:I[4]||(I[4]=()=>t("done"))},at(Y(a)("accounts_selection.done")),1)],2)):Ye("",!0)],64))}}),s5e={"accounts-balance":"pb-w-sync_accounts-balance","accounts-checkbox":"pb-w-sync_accounts-checkbox","accounts-checkbox-content":"pb-w-sync_accounts-checkbox-content","accounts-checkbox-row":"pb-w-sync_accounts-checkbox-row","accounts-checkboxes":"pb-w-sync_accounts-checkboxes","accounts-error-button-container":"pb-w-sync_accounts-error-button-container","accounts-form":"pb-w-sync_accounts-form"},I7e="",l5e=li(o5e,[["__cssModules",{$style:s5e}]]),k7e="",u5e=li(rt({__name:"FinalResponse",props:{avatar:{},displayAccountsSelection:{type:Boolean},longMessage:{default:""},message:{default:""},oneSiteFlow:{type:Boolean,default:!1},showLogo:{type:Boolean},type:{default:"error"}},emits:["add-other","select-accounts"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba();return(i,o)=>(de(),Ie("div",{class:Ce(i.$style["final-response-container"])},[_t(ku,{avatar:i.showLogo?i.avatar:void 0,grow:!1,icon:i.showLogo?void 0:i.type,message:i.longMessage,size:"large",title:i.message,type:i.type,onImagesLoaded:o[0]||(o[0]=()=>Y(n)("images-loaded")),onImagesLoading:o[1]||(o[1]=()=>Y(n)("images-loading"))},null,8,["avatar","icon","message","title","type"]),!r.oneSiteFlow&&(!r.displayAccountsSelection||r.type==="error")?(de(),Ie("button",{key:0,class:"pb-w-sync_primary-button",onClick:o[2]||(o[2]=l=>t("add-other"))},at(Y(a)("common.add_other")),1)):Ye("",!0),r.displayAccountsSelection&&r.type==="success"?(de(),Ie("button",{key:1,class:"pb-w-sync_primary-button",onClick:o[3]||(o[3]=l=>t("select-accounts"))},at(Y(a)("common.continue")),1)):Ye("",!0)],2))}}),[["__cssModules",{$style:{"final-response-container":"pb-w-sync_final-response-container"}}]]),P7e="",F7e="",L7e="",D7e="",$7e="",z7e="",U7e="",V7e="",q7e="",f5e=["src"],c5e=["src"],h5e=["onClick"],d5e=rt({__name:"InstitutionFilters",props:{countryId:{},filteredCountries:{},filteredOrganizationTypes:{},showCountries:{type:Boolean},organizationTypeId:{},selectClass:{}},emits:["update:countryId","update:organizationTypeId"],setup(e,{emit:t}){const r=e,{t:n}=Ba(),a=be(()=>o(r.filteredCountries.find(u=>u.id_country===r.countryId)));function i(u){Ln("open_country",{id_country:u}),t("update:countryId",u)}function o(u){return`https://hatscripts.github.io/circle-flags/flags/${u.code.toLocaleLowerCase()}.svg`}function l(u){Ln("open_site_organization_type",{id_site_organization_type:u}),t("update:organizationTypeId",u)}return(u,c)=>(de(),Ie(St,null,[Re("p",{class:Ce(u.$style["institution-filters-intro"])},at(Y(n)("common.intro")),3),u.showCountries?(de(),nt(Y(Fm),{key:0,class:Ce(u.$style["widget-country"]),"model-value":r.countryId,"popper-class":r.selectClass,onChange:i},{prefix:lt(()=>[Re("img",{src:a.value,width:"44",height:"44",alt:""},null,8,f5e)]),default:lt(()=>[(de(!0),Ie(St,null,ii(u.filteredCountries,d=>(de(),nt(Y(Lm),{key:d.id_country,class:Ce(u.$style["widget-country-option"]),value:d.id_country,label:d.name},{default:lt(()=>[Re("img",{src:o(d),width:"44",height:"44",alt:""},null,8,c5e),Re("span",null,at(d.name),1)]),_:2},1032,["class","value","label"]))),128))]),_:1},8,["class","model-value","popper-class"])):Ye("",!0),Re("div",{class:Ce(u.$style["organization-types-list"])},[(de(!0),Ie(St,null,ii(u.filteredOrganizationTypes,d=>(de(),Ie("button",{key:d.id_site_organization_type,onClick:()=>l(d.id_site_organization_type)},at(Y(n)(`common.${d.label}`)),9,h5e))),128))],2)],64))}}),p5e={"institution-filters-intro":"pb-w-sync_institution-filters-intro","organization-types-list":"pb-w-sync_organization-types-list","widget-country":"pb-w-sync_widget-country","widget-country-option":"pb-w-sync_widget-country-option"},H7e="",v5e=li(d5e,[["__cssModules",{$style:p5e}]]),m5e=["onClick"],g5e=["alt","src"],y5e={key:1},b5e=li(rt({__name:"OrganizationSitesList",props:{assetsPath:{default:"https://s.paybook.com"},items:{default:()=>[]},showLogo:{type:Boolean,default:!0},showPlaidSitesButton:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba(),i=Oe("");let o=0;const l=be(()=>{const d=i.value.toLocaleLowerCase();return r.items.map(v=>({...v,show:d===""?!0:v.name.toLocaleLowerCase().includes(d)}))});lr(()=>{r.items.length>0&&r.showLogo&&(o=0,n("images-loading"))}),dt(()=>r.items,d=>{d.length>0&&r.showLogo&&(o=0,n("images-loading"))});function u(){o++,o===r.items.length&&n("images-loaded")}function c(d){t("select",d)}return(d,v)=>d.showPlaidSitesButton?(de(),Ie("div",{key:0,class:Ce(d.$style["widget-plaid-container"])},[Re("button",{class:"pb-w-sync_primary-button",onClick:v[0]||(v[0]=()=>Y(n)("__internal__.plaid-sites-clicked"))},at(Y(a)("common.find_your_institution")),1)],2)):(de(),Ie(St,{key:1},[_t(Y(m3),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=m=>i.value=m),"data-testid":"search-organization",placeholder:Y(a)("common.search")},{prefix:lt(()=>[_t(Da,{icon:"search"})]),_:1},8,["modelValue","placeholder"]),Re("div",{class:Ce(d.$style["organization-sites"])},[(de(!0),Ie(St,null,ii(l.value,(m,b)=>tn((de(),Ie("button",{key:`${m.id_site_organization}-${b}`,class:Ce(d.$style["organization-button"]),type:"button",onClick:()=>c(m)},[d.showLogo?(de(),Ie("img",{key:0,alt:m.name,src:`${d.assetsPath}${m.small_cover}`,loading:"lazy",height:"66",width:"220",onLoad:u},null,40,g5e)):(de(),Ie("span",y5e,at(m.name),1))],10,m5e)),[[ua,m.show]])),128))],2)],64))}}),[["__cssModules",{$style:{"widget-plaid-container":"pb-w-sync_widget-plaid-container","organization-sites":"pb-w-sync_organization-sites","organization-button":"pb-w-sync_organization-button"}}]]),_5e=Re("div",null,null,-1),w5e=["src"],E5e={key:0},x5e=["src"],S5e=["href"],M5e=Re("div",null,null,-1),C5e=li(rt({__name:"PrivacyPolicy",props:{client:{}},emits:["continue"],setup(e,{emit:t}){const r=e,n=Et(ia),{t:a}=Ba(),i="https://www.paybook.com/lib/syncfy/";let o=0;lr(()=>{n("images-loading")});function l(){n("privacy-accepted"),t("continue")}function u(){o++,(o===1&&!r.client.logo||o===2)&&n("images-loaded")}return(c,d)=>(de(),Ie("div",{class:Ce(c.$style["privacy-container"])},[_5e,Re("div",{class:Ce(c.$style["privacy-center"])},[Re("div",{class:Ce([c.$style["privacy-images"],{[c.$style["with-client-logo"]]:r.client.logo}])},[Re("div",null,[Re("img",{src:`${Y(i)}blog/syncfy-icon.svg`,alt:"",width:"190",height:"43",onLoad:u},null,40,w5e)]),r.client.logo?(de(),Ie("div",E5e,[Re("img",{src:r.client.logo,alt:"",onLoad:u},null,40,x5e)])):Ye("",!0)],2),Re("h1",null,at(r.client.name?Y(a)("privacy.title_client",{client:r.client.name}):Y(a)("privacy.title")),1),Re("ul",null,[Re("li",null,[_t(Da,{icon:"files"}),rn(" "+at(Y(a)("privacy.list.first")),1)]),Re("li",null,[_t(Da,{icon:"lock"}),rn(" "+at(Y(a)("privacy.list.second")),1)]),Re("li",null,[_t(Da,{icon:"users"}),rn(" "+at(Y(a)("privacy.list.third")),1)])]),Re("button",{class:"pb-w-sync_primary-button","data-testid":"privacy-button",type:"button",onClick:l},at(Y(a)("common.continue")),1),Re("p",null,[rn(at(Y(a)("privacy.message"))+" ",1),Re("a",{rel:"noopener",href:Y(a)("privacy.url"),target:"_blank"},at(Y(a)("privacy.link")),9,S5e)])],2),M5e],2))}}),[["__cssModules",{$style:{"privacy-container":"pb-w-sync_privacy-container","privacy-center":"pb-w-sync_privacy-center","privacy-images":"pb-w-sync_privacy-images","with-client-logo":"pb-w-sync_with-client-logo"}}]]),T5e=["for"],A5e=["accept","name"],I5e=li(rt({__name:"FileInput",props:{credential:{},displayError:{type:Boolean},idSite:{}},emits:["input","validate"],setup(e,{emit:t}){const r=e,n=Oe(null),a=Oe(null),i=Oe(!1),o=Oe(!1),l=be(()=>i.value&&!a.value&&!o.value);dt(()=>r.displayError,b=>{b&&(i.value=!0)});function u(b){const _=new FileReader;_.onload=S=>{a.value={file:S.target.result,info:{type:b.type,name:b.name}},t("input",S.target.result)},_.readAsDataURL(b)}function c(b){b.preventDefault(),b.dataTransfer.files[0]&&u(b.dataTransfer.files[0])}function d(b){o.value=!1;const _=b.srcElement.value;b.preventDefault(),b.stopPropagation(),_.length>0?_.includes(r.credential.accept)?(t("validate",!0),u(b.target.files[0])):a.value||(o.value=!0,t("validate",!1)):a.value||t("validate",!1)}function v(b){b.stopPropagation(),b.preventDefault(),setTimeout(()=>{i.value=!0},2e3)}function m(b){b.preventDefault(),n.value.click(),setTimeout(()=>{i.value=!0},5e3)}return(b,_)=>(de(),Ie("div",{class:Ce(b.$style["upload-document"])},[Re("label",{class:Ce(b.$style["upload-document-label"]),for:`${r.idSite}[${r.credential.name}]`},at(r.credential.label),11,T5e),Re("div",{class:Ce([b.$style["upload-document-input"],{[b.$style["upload-document-input-error"]]:l.value}]),onClick:_[0]||(_[0]=S=>m(S)),onDrop:_[1]||(_[1]=S=>c(S)),onDragover:_[2]||(_[2]=S=>v(S))},[Re("button",{class:Ce(b.$style["upload-document-button"])},at(b.$t("file.choose")),3),Re("span",{class:Ce(b.$style["upload-document-name"])},at(a.value?a.value.info.name:b.$t("file.no_chosen")),3)],34),l.value?(de(),Ie("div",{key:0,class:Ce(b.$style["upload-document-required-error"])},at(r.credential.label)+" "+at(b.$t("file.required")),3)):Ye("",!0),o.value?(de(),Ie("div",{key:1,class:Ce(b.$style["upload-document-required-error"])},at(b.$t("file.invalid",{extension:b.credential.accept})),3)):Ye("",!0),Re("input",{ref_key:"fileInput",ref:n,type:"file","data-testid":"file-input",accept:r.credential.accept,style:{position:"absolute",left:"-99999999px"},name:`${r.idSite}[${r.credential.name}]`,onClick:_[3]||(_[3]=S=>S.stopPropagation()),onChange:_[4]||(_[4]=S=>d(S))},null,40,A5e)],2))}}),[["__cssModules",{$style:{"upload-document":"pb-w-sync_upload-document","upload-document-button":"pb-w-sync_upload-document-button","upload-document-input":"pb-w-sync_upload-document-input","upload-document-input-error":"pb-w-sync_upload-document-input-error","upload-document-label":"pb-w-sync_upload-document-label","upload-document-name":"pb-w-sync_upload-document-name","upload-document-required-error":"pb-w-sync_upload-document-required-error"}}]]),tBe="",rBe="",B5e={key:1},k5e=["alt","src"],N5e=["aria-label"],O5e={class:"el-form-item__error"},R5e=["disabled"],P5e=li(rt({__name:"SiteForm",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},displayPrivacyScreen:{type:Boolean},errorMessage:{default:null},loaderMessage:{},oneSiteFlow:{type:Boolean},selectClass:{default:""},showLogo:{type:Boolean,default:!0},showPasswordStyle:{default:"icon"},site:{},testMode:{type:Boolean,default:!1}},emits:["back","error","success","valid"],setup(e,{emit:t}){const r=e,n=Et(ia),a=Oe("0"),i=Oe({...r.site.config.version===1?r.site.data:r.site.input[a.value].data}),o=Oe(!0),l=Oe(!1),u=Oe(!1),c=Oe(!1),d=Oe(!1);let v=0,m,b={};const _=Oe(null),S=Oe(null),T=be(()=>{switch(r.site.config.version){case 3:return r.site.config.input[a.value].fields;case 1:return r.site.config.credentials;default:return null}}),C=be(()=>{switch(r.site.config.version){case 3:return r.site.input[a.value].rules;case 1:return r.site.rules;default:return null}}),I=be(()=>r.site.config.version===3?r.site.config.input.length>1:!1),{t:B}=Ba();yn(()=>{clearTimeout(m)}),lr(()=>{r.showLogo&&n("images-loading"),P(),K(),r.site.on("status-update",M=>{M==="loading"?l.value=!0:l.value=!1})});function N(M){return!!i.value[M]}function O(){clearTimeout(m),r.testMode&&(v<2?(v+=1,m=setTimeout(()=>{v=0},500)):(r.site.toggleTestMode(),d.value=r.site.testMode,v=0))}function P(){_.value[0].focus()}function L(){n("images-loaded")}function $(M){r.site.updateData(Number.parseInt(M),i.value),a.value=M,i.value={...r.site.input[a.value].data},Xt(()=>{P()})}const z=async(M,s)=>{M.preventDefault();let h;s&&await s.validate(p=>{p&&!o.value?(t("valid"),n("submitted"),r.site.config.version===1?h=r.site.connect(i.value):h=r.site.connect(Number.parseInt(a.value),i.value),h.then(g=>(t("success",g),r.site.config.request||n("updated",r.site.response),g)).catch(g=>{t("error",g)})):c.value=!0})};function K(M,s){M&&(b[M]=s),o.value=Object.keys(C.value).reduce((h,p)=>C.value[p].length===0?h:h||!b[p],!1)}return(M,s)=>l.value?(de(),Ie("div",{key:0,class:Ce(M.$style["widget-form-loader"])},[_t(ku,{avatar:M.showLogo?`${M.assetsPath}${M.site.config.organizationSite.avatar}`:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:s[0]||(s[0]=()=>Y(n)("images-loaded")),onImagesLoading:s[1]||(s[1]=()=>Y(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(de(),Ie("div",B5e,[Re("div",{class:Ce(M.$style["site-form-header"])},[d.value?(de(),nt(Y(Qxe),{key:0,center:"",closable:!1,effect:"dark"},{default:lt(()=>[rn(at(Y(B)("common.test_mode")),1)]),_:1})):Ye("",!0),M.showLogo?(de(),Ie("img",{key:1,alt:M.site.config.organizationSite.name,class:Ce(M.$style["site-cover"]),src:`${M.assetsPath}${M.site.config.organizationSite.cover}`,width:"1600",height:"480",onLoad:L},null,42,k5e)):Ye("",!0),Re("h2",{onClick:O},at(M.site.config.name),1)],2),M.errorMessage?(de(),Ie("div",{key:0,class:Ce(M.$style["auth-error"])},[Re("h3",null,at(M.errorMessage.short),1),Re("p",null,at(M.errorMessage.long),1)],2)):Ye("",!0),I.value?(de(),nt(Y(JMe),{key:1,"default-active":"0",mode:"horizontal",onSelect:$},{default:lt(()=>[(de(!0),Ie(St,null,ii(M.site.config.input,(h,p)=>(de(),nt(Y(XMe),{key:p,index:`${p}`},{default:lt(()=>[rn(at(h.label),1)]),_:2},1032,["index"]))),128))]),_:1})):Ye("",!0),_t(Y(Z3),{ref_key:"siteFormRef",ref:S,autocomplete:M.disableFormAutocomplete?"off":"on",disabled:l.value,"hide-required-asterisk":!0,"label-position":"top",model:i.value,name:`${M.site.config.id_site}`,rules:C.value,onSubmit:s[5]||(s[5]=h=>z(h,S.value)),onValidate:K},{default:lt(()=>[(de(!0),Ie(St,null,ii(T.value,(h,p)=>(de(),Ie(St,{key:`${p}-${h.name}`},[h.type==="file"?(de(),nt(I5e,{ref_for:!0,ref_key:"firstInput",ref:_,key:`${p}-${h.name}`,credential:h,"display-error":c.value,"id-site":M.site.config.id_site,onInput:g=>i.value[h.name]=g,onValidate:g=>K(h.name,g)},null,8,["credential","display-error","id-site","onInput","onValidate"])):(de(),nt(Y(Y3),{key:1,label:h.label,prop:h.name,for:`${M.site.config.id_site}[${h.name}]`},{error:lt(({error:g})=>[Re("div",O5e,at(Y(B)(`form_errors.${g}`,{label:h.label})),1)]),default:lt(()=>[h.type==="text"||h.type==="password"?(de(),nt(Y(m3),{key:0,ref_for:!0,ref_key:"firstInput",ref:_,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-input",autocomplete:h.name==="password"?`${M.site.config.id_site} new-password`:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`,name:`${M.site.config.id_site}[${h.name}]`,type:h.type==="password"&&u.value?"text":h.type},Xk({_:2},[h.type==="password"&&M.showPasswordStyle==="icon"?{name:"append",fn:lt(()=>[Re("button",{class:Ce(M.$style["icon-eye"]),"aria-label":Y(B)(`common.${u.value?"hide":"show_password"}`),type:"button",onClick:s[2]||(s[2]=()=>{u.value=!u.value})},[u.value?(de(),nt(Da,{key:0,icon:"eye-slash"})):(de(),nt(Da,{key:1,icon:"eye"}))],10,N5e)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","autocomplete","name","type"])):Ye("",!0),h.type==="select"?(de(),nt(Y(Fm),{key:1,ref_for:!0,ref_key:"firstInput",ref:_,modelValue:i.value[h.name],"onUpdate:modelValue":g=>i.value[h.name]=g,"data-testid":"site-select","popper-class":M.selectClass,autocomplete:M.disableFormAutocomplete?"off":`${M.site.config.id_site} ${h.name}`},{default:lt(()=>[(de(!0),Ie(St,null,ii(h.options,(g,y)=>(de(),nt(Y(Lm),{key:y,value:g.value,label:g.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","popper-class","autocomplete"])):Ye("",!0)]),_:2},1032,["label","prop","for"])),h.type==="password"&&M.showPasswordStyle==="text"&&N(h.name)?(de(),nt(Y(Im),{key:`${p}-${h.name}-toggle`,class:Ce(M.$style["show-hide"]),"native-type":"button",onClick:s[3]||(s[3]=()=>{u.value=!u.value})},{default:lt(()=>[rn(at(Y(B)(`common.${u.value?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),Re("div",{class:Ce(M.$style["site-buttons"])},[!r.oneSiteFlow||r.displayPrivacyScreen?(de(),Ie("button",{key:0,class:"pb-w-sync_secondary-button","data-testid":"site-button-back",type:"button",onClick:s[4]||(s[4]=()=>t("back"))},at(Y(B)("common.back")),1)):Ye("",!0),Re("button",{class:"pb-w-sync_primary-button","data-testid":"site-button",disabled:M.buttonDisabledStyle&&o.value,type:"submit"},at(Y(B)("common.next")),9,R5e)],2)]),_:1},8,["autocomplete","disabled","model","name","rules"])]))}}),[["__cssModules",{$style:{"auth-error":"pb-w-sync_auth-error","icon-eye":"pb-w-sync_icon-eye","show-hide":"pb-w-sync_show-hide","site-buttons":"pb-w-sync_site-buttons","site-form-header":"pb-w-sync_site-form-header","site-cover":"pb-w-sync_site-cover","widget-form-loader":"pb-w-sync_widget-form-loader"}}]]),F5e=["alt","src"],L5e=["onClick"],D5e=li(rt({__name:"SitesList",props:{assetsPath:{},items:{},organization:{},showLogo:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const r=e,n=Et(ia);lr(()=>{r.showLogo&&n("images-loading")});function a(){n("images-loaded")}function i(o){t("select",o)}return(o,l)=>(de(),Ie("div",{class:Ce(o.$style["sites-container"])},[o.showLogo?(de(),Ie("img",{key:0,class:Ce(o.$style["organization-cover"]),alt:o.organization.name,src:`${o.assetsPath}${o.organization.cover}`,width:"1600",height:"480",onLoad:a},null,42,F5e)):Ye("",!0),Re("div",{class:Ce(o.$style.sites)},[(de(!0),Ie(St,null,ii(o.items,(u,c)=>(de(),Ie("button",{key:`${u.id_site}-${c}`,type:"button",onClick:()=>i(u)},at(u.name),9,L5e))),128))],2)],2))}}),[["__cssModules",{$style:{"organization-cover":"pb-w-sync_organization-cover","sites-container":"pb-w-sync_sites-container",sites:"pb-w-sync_sites"}}]]),$5e=li(rt({__name:"TheModal",props:{mobile:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["update:visible"],setup(e,{emit:t}){const r=e,n=Et(ia);function a(){Ln("close"),t("update:visible",!1),n("closed")}return(i,o)=>tn((de(),Ie("div",{class:Ce(i.$style["modal-container"])},[Re("div",{class:Ce(i.$style["modal-overlay-backdrop"]),onClick:a},null,2),Re("div",{class:Ce(i.$style["modal-wrapper"])},[Re("div",{class:Ce([i.$style.modal,{[i.$style["is-mobile"]]:r.mobile}])},[yt(i.$slots,"default")],2)],2)],2)),[[ua,i.visible]])}}),[["__cssModules",{$style:{"modal-container":"pb-w-sync_modal-container","modal-wrapper":"pb-w-sync_modal-wrapper","modal-overlay-backdrop":"pb-w-sync_modal-overlay-backdrop",modal:"pb-w-sync_modal","is-mobile":"pb-w-sync_is-mobile"}}]]),pBe="",z5e=["onClick"],U5e=["src"],V5e=li(rt({__name:"MultipleImages",props:{credential:{default:()=>({type:"options",name:"token",label:"Por favor, revisa las imágenes que se te presentan y selecciona la correcta",options:[]})},modelValue:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=Et(ia);let a=0;const i=be(()=>{const u=Math.sqrt(r.credential.options.length);return u%1===0?[u,u]:o(Math.floor(u))});lr(()=>{n("images-loading")});function o(u){if(r.credential.options.length%u===0){const c=r.credential.options.length/u;return[u,c]}return o(u-1)}function l(){a++,a===r.credential.options.length&&n("images-loaded")}return(u,c)=>(de(),Ie("div",{class:Ce(u.$style["multiple-images-container"])},[Re("div",{class:Ce(u.$style["multiple-images-wrapper"])},[(de(!0),Ie(St,null,ii(i.value[0],d=>(de(),Ie("div",{key:d,class:Ce(u.$style["credential-options-row"])},[(de(!0),Ie(St,null,ii(i.value[1],v=>(de(),Ie("div",{key:v,class:Ce([u.$style["credential-options-col"],{[u.$style.selected]:u.modelValue===u.credential.options[v-1+(d-1)*i.value[1]].value}]),onClick:m=>t("update:modelValue",u.credential.options[v-1+(d-1)*i.value[1]].value)},[Re("img",{class:Ce(u.$style["credental-options-img"]),src:u.credential.options[v-1+(d-1)*i.value[1]].imgBase64File||u.credential.options[v-1+(d-1)*i.value[1]].imgURL,onLoad:l},null,42,U5e)],10,z5e))),128))],2))),128))],2)],2))}}),[["__cssModules",{$style:{"multiple-images-container":"pb-w-sync_multiple-images-container","multiple-images-wrapper":"pb-w-sync_multiple-images-wrapper","credential-options-row":"pb-w-sync_credential-options-row","credential-options-col":"pb-w-sync_credential-options-col",selected:"pb-w-sync_selected","credental-options-img":"pb-w-sync_credental-options-img"}}]]),q5e=["alt","src"],H5e={key:0},j5e=["src"],K5e={key:1},W5e=["src","onLoad"],G5e=["aria-label"],Z5e=["disabled"],nx=li(rt({__name:"TwofaForm",props:{avatar:{},buttonDisabledStyle:{type:Boolean},cover:{},disableFormAutocomplete:{type:Boolean},enableBackNavigation:{type:Boolean},inNotification:{type:Boolean},loaderMessage:{},selectClass:{},siteName:{},showLogo:{type:Boolean},showPasswordStyle:{},twofa:{}},emits:["back","error"],setup(e,{emit:t}){const r=e,n=Et(ia),a=Et(mw),i=Oe({}),o=Oe({...r.twofa.data}),l=Oe({}),u=Oe([]),c=Oe(!1);let d=0,v=!0,m=!1,b={};const _=be(()=>r.twofa.config.twofa.reduce((h,p)=>p.imgBase64File?h+1:h,0)),S=Oe(null),T=Oe(null);dt(()=>r.twofa,()=>{K()});function C(){K()}function I(h){return l.value[h]||{}}function B(h){return!!o[h]}function N(h){const p=u.value[h];p&&(l.value={...l.value,[h]:{width:`${p.naturalWidth}px`}},Xt(P))}function O(){S.value&&S.value[0].focus()}function P(){d++,d===_.value&&n("images-loaded")}function L(){const h={};r.twofa.config.twofa&&r.twofa.config.twofa.length&&r.twofa.config.twofa.forEach(p=>{p.type==="accounts"&&(h[p.name]=[])}),i.value=h}function $(h){return["text","password","textOptions","accounts","options"].includes(h)}function z(h){o.value={...o.value,[h]:i.value[h].join()}}function K(){i.value={},o.value={...r.twofa.data},l.value={},u.value=[],c.value=!1,d=0,v=!0,m=!1,b={},r.twofa.defineRules(a),L(),r.twofa.on("loading",()=>{c.value=!0}),r.twofa.on("twofa-device-error",h=>{t("error",h)}),r.twofa.on("token-received",()=>{o.value={...r.twofa.data}}),_.value&&n("images-loading"),s(),r.twofa.config.twofa.forEach(h=>{["connection","challenge"].includes(h.type)&&s(h.name,!0)}),Xt(()=>{O()})}function M(){T.value.validate(h=>{h&&(n("submitted"),r.twofa.authenticate({...o.value}).then(p=>p).catch(p=>{t("error",p)}))})}function s(h,p){h&&(b[h]=p),v=Object.getOwnPropertyNames(r.twofa.rules).reduce((g,y)=>y==="__ob__"||r.twofa.rules[y].length===0?g:g||!b[y],!1)}return C(),(h,p)=>c.value?(de(),Ie("div",{key:0,class:Ce(h.$style["twofa-form-loader"])},[_t(ku,{avatar:h.showLogo?h.avatar:void 0,message:r.loaderMessage.long,title:r.loaderMessage.short,size:"large",onImagesLoaded:p[0]||(p[0]=()=>Y(n)("images-loaded")),onImagesLoading:p[1]||(p[1]=()=>Y(n)("images-loading"))},null,8,["avatar","message","title"])],2)):(de(),Ie("div",{key:1,class:Ce(h.$style["twofa-form"])},[h.inNotification?Ye("",!0):(de(),Ie("div",{key:0,class:Ce(h.$style["twofa-form-header"])},[h.showLogo?(de(),Ie("img",{key:0,alt:h.siteName,class:Ce(h.$style["twofa-cover"]),src:h.cover,width:"1600",height:"480",onLoad:P},null,42,q5e)):Ye("",!0),Re("h2",null,at(h.siteName),1)],2)),r.twofa?(de(),nt(Y(Z3),{key:1,ref_key:"twofaForm",ref:T,"label-position":"top",disabled:c.value,model:o.value,rules:r.twofa.rules,name:`twofa-${r.twofa.config.id_site}`,autocomplete:r.disableFormAutocomplete?"off":"on",onSubmit:nn(M,["prevent"]),onValidate:s},{default:lt(()=>[(de(!0),Ie(St,null,ii(r.twofa.config.twofa,(g,y)=>(de(),Ie(St,{key:`${y}-${g.name}`},[g.type==="externalAction"?(de(),Ie("div",H5e,[Re("label",{class:Ce(h.$style["external-action-label"])},at(g.label),3),Re("div",{class:Ce(h.$style["external-action-img-container"])},[g.imgBase64File?(de(),Ie("img",{key:0,alt:"",src:g.imgBase64File,onLoad:P},null,40,j5e)):Ye("",!0)],2)])):g.type==="instructions"?(de(),Ie("div",K5e,[Re("label",{class:Ce(h.$style["external-action-label"])},at(g.label),3)])):Ye("",!0),$(g.type)?(de(),nt(Y(Y3),{key:2,label:g.label,prop:g.name,for:`twofa-${r.twofa.config.id_site}[${g.name}]`},{default:lt(()=>[g.imgBase64File?(de(),Ie("img",{key:0,ref_for:!0,ref_key:"imageWithoutSize",ref:u,src:g.imgBase64File,class:Ce(h.$style["input-image"]),style:en(I(y)),alt:"",onLoad:w=>N(y)},null,46,W5e)):Ye("",!0),g.type==="text"||g.type==="password"?(de(),nt(Y(m3),{key:1,ref_for:!0,ref:y===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-input",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,autocomplete:g.name==="password"?`${r.twofa.config.id_site} new-password`:r.disableFormAutocomplete?"off":`${r.twofa.config.id_site} ${g.name}`,disabled:g.disabled,type:g.type==="password"&&Y(m)?"text":g.type},Xk({_:2},[g.type==="password"&&r.showPasswordStyle==="icon"?{name:"append",fn:lt(()=>[Re("button",{class:Ce(h.$style["icon-eye-twofa"]),"aria-label":Y(a)(`common.${Y(m)?"hide":"show_password"}`),type:"button",onClick:p[2]||(p[2]=()=>{gr(m)?m.value=!Y(m):m=!Y(m)})},[Y(m)?(de(),nt(Da,{key:1,icon:"eye-slash"})):(de(),nt(Da,{key:0,icon:"eye"}))],10,G5e)]),key:"0"}:void 0]),1032,["modelValue","onUpdate:modelValue","name","autocomplete","disabled","type"])):Ye("",!0),g.type==="textOptions"?(de(),nt(Y(Fm),{key:2,ref_for:!0,ref:y===0&&"firstInput",modelValue:o.value[g.name],"onUpdate:modelValue":w=>o.value[g.name]=w,"data-testid":"twofa-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass},{default:lt(()=>[(de(!0),Ie(St,null,ii(g.options,(w,A)=>(de(),nt(Y(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class"])):Ye("",!0),g.type==="accounts"?(de(),nt(Y(Fm),{key:3,ref_for:!0,ref:y===0&&"firstInput",modelValue:i.value[g.name],"onUpdate:modelValue":w=>i.value[g.name]=w,"data-testid":"twofa-multi-select",autocomplete:r.disableFormAutocomplete?"off":`twofa-${r.twofa.config.id_site} ${g.name}`,filterable:"",multiple:"",name:`twofa-${r.twofa.config.id_site}[${g.name}]`,"popper-class":r.selectClass,onChange:()=>z(g.name)},{default:lt(()=>[(de(!0),Ie(St,null,ii(g.options,(w,A)=>(de(),nt(Y(Lm),{key:A,value:w.value,label:w.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","autocomplete","name","popper-class","onChange"])):Ye("",!0),g.type==="options"?(de(),nt(V5e,{key:4,modelValue:o.value[g.name],"onUpdate:modelValue":[w=>o.value[g.name]=w,()=>{s(g.name,!0)}],credential:g},null,8,["modelValue","onUpdate:modelValue","credential"])):Ye("",!0)]),_:2},1032,["label","prop","for"])):Ye("",!0),g.type==="password"&&r.showPasswordStyle==="text"&&B(g.name)?(de(),nt(Y(Im),{key:`${y}-${g.name}-toggle`,class:Ce(h.$style["show-hide"]),"native-type":"button",onClick:p[3]||(p[3]=()=>{gr(m)?m.value=!Y(m):m=!Y(m)})},{default:lt(()=>[rn(at(Y(a)(`common.${Y(m)?"hide":"show_password"}`)),1)]),_:2},1032,["class"])):Ye("",!0)],64))),128)),Re("div",{class:Ce(h.$style["twofa-buttons"])},[r.enableBackNavigation?(de(),Ie("button",{key:0,class:"pb-w-sync_secondary-button","data-testid":"twofa-back",type:"button",onClick:p[4]||(p[4]=()=>{t("back")})},at(Y(a)("common.back")),1)):Ye("",!0),r.twofa.displaySubmitButton?(de(),Ie("button",{key:1,class:"pb-w-sync_primary-button",disabled:r.buttonDisabledStyle&&Y(v),"data-testid":"twofa-button",type:"submit"},at(Y(a)("common.next")),9,Z5e)):Ye("",!0)],2)]),_:1},8,["disabled","model","rules","name","autocomplete","onSubmit"])):Ye("",!0)],2))}}),[["__cssModules",{$style:{"external-action-img-container":"pb-w-sync_external-action-img-container","external-action-label":"pb-w-sync_external-action-label","icon-eye-twofa":"pb-w-sync_icon-eye-twofa","input-image":"pb-w-sync_input-image","show-hide":"pb-w-sync_show-hide","twofa-buttons":"pb-w-sync_twofa-buttons","twofa-form-header":"pb-w-sync_twofa-form-header","twofa-cover":"pb-w-sync_twofa-cover","twofa-form-loader":"pb-w-sync_twofa-form-loader"}}]]);function ix(){const e=Oe(!1);function t(){Xt(()=>{e.value=yw.device.type==="mobile"||window.innerWidth<540})}return yn(()=>{}),lr(()=>{t(),window.addEventListener("resize",t)}),{mobile:e}}const EBe="",hn=li(rt({__name:"TwofaNotification",props:{assetsPath:{default:"https://s.paybook.com"},buttonDisabledStyle:{type:Boolean,default:!1},disableFormAutocomplete:{type:Boolean,default:!1},displayLongDescription:{type:Boolean,default:!1},duration:{},enableBackNavigation:{type:Boolean,default:!1},hideForm:{type:Boolean,default:!1},initLongMessage:{default:null},initMessage:{default:null},initTitle:{default:""},item:{default:null},messagesUpdater:{default:null},rootEmit:{type:Function,default:null},selectClass:{default:""},showLogo:{type:Boolean,default:!1},showPasswordStyle:{default:"icon"},t:{},type:{}},emits:["back","error","imagesLoaded","imagesLoading"],setup(e,{emit:t}){var P,L,$,z;const r=e;un(ia,r.rootEmit),un(mw,r.t);let n=Oe(r.initLongMessage||((P=r.messagesUpdater)==null?void 0:P.getMessages().long)||""),a=Oe(r.initMessage||((L=r.messagesUpdater)==null?void 0:L.getMessages().short)||""),i=null,o=Oe(r.displayLongDescription||!1),l=Oe(!1),u=Oe(($=r.item)==null?void 0:$.status),c=Oe(r.item&&((z=r.item)!=null&&z.config)?r.item.config.name:r.initTitle);const{mobile:d}=ix(),v=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.avatar}`:""),m=be(()=>r.item&&r.item.config?`${r.assetsPath}${r.item.config.cover}`:""),b=be(()=>r.item?d.value?u.value==="twofa":(u.value==="twofa"||u.value==="twofa-loading")&&!r.hideForm:!1),_=be(()=>r.item?r.type==="info"&&u.value!=="twofa":r.type==="info"),S=be(()=>r.item?u.value!=="twofa-loading":!0);function T(){r.messagesUpdater&&r.messagesUpdater.subscribe(()=>{const K=r.messagesUpdater.getMessages();n.value=K.long,a.value=K.short}),r.item&&(r.item.on("twofa",()=>{u.value="twofa",l.value=!0}),r.item.on("twofa-loading",()=>{u.value="twofa-loading",l.value=!1}))}lr(()=>{Xt(()=>{r.type!=="info"&&d.value&&(l.value=!0,B())})});function C(){clearTimeout(i)}function I(){return Math.round(r.duration*.75)}function B(){d.value&&r.duration>0&&(i=setTimeout(()=>{l.value=!1},I()))}function N(){r.type!=="info"&&d.value&&(l.value=!l.value,C())}function O(){o.value=!o.value}return T(),(K,M)=>(de(),Ie("div",null,[Re("div",{class:Ce([K.$style["site-indentifier"],{[K.$style["is-mobile"]]:Y(d)}]),onClick:N,onMouseleave:B},[_.value||K.showLogo?(de(),nt(ku,{key:0,avatar:K.showLogo?v.value:void 0,type:r.type==="info"?"loading":r.type,onImagesLoaded:M[0]||(M[0]=()=>t("imagesLoaded")),onImagesLoading:M[1]||(M[1]=()=>t("imagesLoading"))},null,8,["avatar","type"])):Ye("",!0),!Y(d)||Y(l)?(de(),Ie("div",{key:1,class:Ce([K.$style["site-identifier-description"],{[K.$style["with-loader"]]:_.value||K.showLogo}])},[Re("span",{class:Ce([K.$style["site-name"],K.$style[r.type]])},at(Y(c)),3),S.value?(de(),Ie("p",{key:0,class:Ce(K.$style["site-identifier-message"])},at(Y(a)),3)):Ye("",!0),Y(o)?(de(),Ie("p",{key:1,class:Ce(K.$style["site-identifier-long-message"])},at(Y(n)),3)):Ye("",!0),r.type!=="info"?(de(),Ie("div",{key:2,class:Ce(K.$style["widget-notification-show-more-container"])},[Y(n)?(de(),nt(Y(RMe),{key:0,type:"primary",onClick:nn(O,["stop"])},{default:lt(()=>[rn(at(r.t("common.show",{msg:r.t(`common.${Y(o)?"less":"more"}`)})),1)]),_:1},8,["onClick"])):Ye("",!0)],2)):Ye("",!0)],2)):Ye("",!0)],34),b.value?(de(),Ie("div",{key:0,class:Ce(K.$style["notification-form"])},[_t(nx,{avatar:v.value,"button-disabled-style":K.buttonDisabledStyle,cover:m.value,"disable-form-autocomplete":K.disableFormAutocomplete,"enable-back-navigation":K.enableBackNavigation,"in-notification":!0,"loader-message":Y(a),"select-class":K.selectClass,"show-logo":K.showLogo,"show-password-style":K.showPasswordStyle,"site-name":Y(c),twofa:r.item.twofa,onBack:M[2]||(M[2]=()=>t("back")),onError:M[3]||(M[3]=s=>t("error",s))},null,8,["avatar","button-disabled-style","cover","disable-form-autocomplete","enable-back-navigation","loader-message","select-class","show-logo","show-password-style","site-name","twofa"])],2)):Ye("",!0)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name",error:"pb-w-sync_error",success:"pb-w-sync_success","site-identifier-long-message":"pb-w-sync_site-identifier-long-message","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","widget-avatar-container":"pb-w-sync_widget-avatar-container","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","notification-form":"pb-w-sync_notification-form"}}]]),Y5e=Re("div",null,null,-1),J5e=li(rt({__name:"UnauthorizedNotification",props:{initMessage:{default:""},initTitle:{default:""},refreshTokenFunction:{},t:{}},emits:["closed","closeNotification","refreshToken","refreshTokenError"],setup(e,{emit:t}){const r=e;let n=Oe(!1);const{mobile:a}=ix();yn(()=>{t("closed")});function i(){n.value=!0,r.refreshTokenFunction().then(({token:o,strict:l})=>{if(typeof o!="string")throw new Error("Refresh token is not valid. Promise should return a valid token.");return new Promise(u=>{t("refreshToken",{token:o,strict:l,resolve:u})})}).catch(()=>{t("refreshTokenError")}).finally(()=>{n.value=!1})}return(o,l)=>(de(),Ie("div",null,[Re("div",{class:Ce([o.$style["site-indentifier"],{[o.$style["is-mobile"]]:Y(a)}])},[Y5e,Re("div",{class:Ce([o.$style["site-identifier-description"],o.$style["with-loader"]])},[Re("span",{class:Ce([o.$style["site-name"],o.$style.error])},at(r.initTitle),3),Re("p",{class:Ce(o.$style["site-identifier-message"])},at(r.initMessage),3),Re("div",{class:Ce(o.$style["unauthorized-button-container"])},[tn((de(),nt(Y(Im),{disabled:Y(n),type:"primary",onClick:nn(i,["stop"])},{default:lt(()=>[rn(at(r.t("common.refresh")),1)]),_:1},8,["disabled","onClick"])),[[Y(SCe),Y(n)]]),_t(Y(Im),{disabled:Y(n),onClick:l[0]||(l[0]=nn(()=>{t("closeNotification")},["stop"]))},{default:lt(()=>[rn(at(r.t("common.cancel")),1)]),_:1},8,["disabled"])],2)],2)],2)]))}}),[["__cssModules",{$style:{"site-indentifier":"pb-w-sync_site-indentifier","site-identifier-description":"pb-w-sync_site-identifier-description","with-loader":"pb-w-sync_with-loader","site-name":"pb-w-sync_site-name","site-identifier-message":"pb-w-sync_site-identifier-message","is-mobile":"pb-w-sync_is-mobile","unauthorized-icon-cotainer":"pb-w-sync_unauthorized-icon-cotainer","widget-notification-show-more-container":"pb-w-sync_widget-notification-show-more-container","unauthorized-icon":"pb-w-sync_unauthorized-icon","unauthorized-button-container":"pb-w-sync_unauthorized-button-container"}}]]);function zF(e,t){return function(){return e.apply(t,arguments)}}const{toString:X5e}=Object.prototype,{getPrototypeOf:ax}=Object,Um=(e=>t=>{const r=X5e.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),t=>Um(t)===e),Vm=e=>t=>typeof t===e,{isArray:oc}=Array,ld=Vm("undefined");function Q5e(e){return e!==null&&!ld(e)&&e.constructor!==null&&!ld(e.constructor)&&Pi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UF=$a("ArrayBuffer");function eTe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UF(e.buffer),t}const tTe=Vm("string"),Pi=Vm("function"),VF=Vm("number"),qm=e=>e!==null&&typeof e=="object",rTe=e=>e===!0||e===!1,Hm=e=>{if(Um(e)!=="object")return!1;const t=ax(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nTe=$a("Date"),iTe=$a("File"),aTe=$a("Blob"),oTe=$a("FileList"),sTe=e=>qm(e)&&Pi(e.pipe),lTe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Pi(e.append)&&((t=Um(e))==="formdata"||t==="object"&&Pi(e.toString)&&e.toString()==="[object FormData]"))},uTe=$a("URLSearchParams"),[fTe,cTe,hTe,dTe]=["ReadableStream","Request","Response","Headers"].map($a),pTe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ud(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),oc(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(n=0;n<o;n++)l=i[n],t.call(null,e[l],l,e)}}function qF(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Nu=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:En)(),HF=e=>!ld(e)&&e!==Nu;function ox(){const{caseless:e}=HF(this)&&this||{},t={},r=(n,a)=>{const i=e&&qF(t,a)||a;Hm(t[i])&&Hm(n)?t[i]=ox(t[i],n):Hm(n)?t[i]=ox({},n):oc(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&ud(arguments[n],r);return t}const vTe=(e,t,r,{allOwnKeys:n}={})=>(ud(t,(a,i)=>{r&&Pi(a)?e[i]=zF(a,r):e[i]=a},{allOwnKeys:n}),e),mTe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gTe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},yTe=(e,t,r,n)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=r!==!1&&ax(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},bTe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},_Te=e=>{if(!e)return null;if(oc(e))return e;let t=e.length;if(!VF(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wTe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ax(Uint8Array)),ETe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},xTe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},STe=$a("HTMLFormElement"),MTe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),jF=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),CTe=$a("RegExp"),KF=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ud(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},TTe=e=>{KF(e,(t,r)=>{if(Pi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Pi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ATe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return oc(e)?n(e):n(String(e).split(t)),r},ITe=()=>{},BTe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,sx="abcdefghijklmnopqrstuvwxyz",WF="0123456789",GF={DIGIT:WF,ALPHA:sx,ALPHA_DIGIT:sx+sx.toUpperCase()+WF},kTe=(e=16,t=GF.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function NTe(e){return!!(e&&Pi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const OTe=e=>{const t=new Array(10),r=(n,a)=>{if(qm(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=oc(n)?[]:{};return ud(n,(o,l)=>{const u=r(o,a+1);!ld(u)&&(i[l]=u)}),t[a]=void 0,i}}return n};return r(e,0)},RTe=$a("AsyncFunction"),PTe=e=>e&&(qm(e)||Pi(e))&&Pi(e.then)&&Pi(e.catch),ZF=((e,t)=>e?setImmediate:t?((r,n)=>(Nu.addEventListener("message",({source:a,data:i})=>{a===Nu&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Nu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Pi(Nu.postMessage)),FTe=typeof queueMicrotask<"u"?queueMicrotask.bind(Nu):typeof ue<"u"&&ue.nextTick||ZF,Ve={isArray:oc,isArrayBuffer:UF,isBuffer:Q5e,isFormData:lTe,isArrayBufferView:eTe,isString:tTe,isNumber:VF,isBoolean:rTe,isObject:qm,isPlainObject:Hm,isReadableStream:fTe,isRequest:cTe,isResponse:hTe,isHeaders:dTe,isUndefined:ld,isDate:nTe,isFile:iTe,isBlob:aTe,isRegExp:CTe,isFunction:Pi,isStream:sTe,isURLSearchParams:uTe,isTypedArray:wTe,isFileList:oTe,forEach:ud,merge:ox,extend:vTe,trim:pTe,stripBOM:mTe,inherits:gTe,toFlatObject:yTe,kindOf:Um,kindOfTest:$a,endsWith:bTe,toArray:_Te,forEachEntry:ETe,matchAll:xTe,isHTMLForm:STe,hasOwnProperty:jF,hasOwnProp:jF,reduceDescriptors:KF,freezeMethods:TTe,toObjectSet:ATe,toCamelCase:MTe,noop:ITe,toFiniteNumber:BTe,findKey:qF,global:Nu,isContextDefined:HF,ALPHABET:GF,generateString:kTe,isSpecCompliantForm:NTe,toJSONObject:OTe,isAsyncFn:RTe,isThenable:PTe,setImmediate:ZF,asap:FTe};function Ft(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Ve.inherits(Ft,Error,{toJSON:function(){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:Ve.toJSONObject(this.config),code:this.code,status:this.status}}});const YF=Ft.prototype,JF={};["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=>{JF[e]={value:e}}),Object.defineProperties(Ft,JF),Object.defineProperty(YF,"isAxiosError",{value:!0}),Ft.from=(e,t,r,n,a,i)=>{const o=Object.create(YF);return Ve.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),Ft.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const LTe=null;function lx(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function XF(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function QF(e,t,r){return e?e.concat(t).map(function(a,i){return a=XF(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function DTe(e){return Ve.isArray(e)&&!e.some(lx)}const $Te=Ve.toFlatObject(Ve,{},null,function(t){return/^is[A-Z]/.test(t)});function jm(e,t,r){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ve.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!Ve.isUndefined(T[S])});const n=r.metaTokens,a=r.visitor||d,i=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(a))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(Ve.isDate(_))return _.toISOString();if(!u&&Ve.isBlob(_))throw new Ft("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(_)||Ve.isTypedArray(_)?u&&typeof Blob=="function"?new Blob([_]):ve.Buffer.from(_):_}function d(_,S,T){let C=_;if(_&&!T&&typeof _=="object"){if(Ve.endsWith(S,"{}"))S=n?S:S.slice(0,-2),_=JSON.stringify(_);else if(Ve.isArray(_)&&DTe(_)||(Ve.isFileList(_)||Ve.endsWith(S,"[]"))&&(C=Ve.toArray(_)))return S=XF(S),C.forEach(function(B,N){!(Ve.isUndefined(B)||B===null)&&t.append(o===!0?QF([S],N,i):o===null?S:S+"[]",c(B))}),!1}return lx(_)?!0:(t.append(QF(T,S,i),c(_)),!1)}const v=[],m=Object.assign($Te,{defaultVisitor:d,convertValue:c,isVisitable:lx});function b(_,S){if(!Ve.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(_),Ve.forEach(_,function(C,I){(!(Ve.isUndefined(C)||C===null)&&a.call(t,C,Ve.isString(I)?I.trim():I,S,m))===!0&&b(C,S?S.concat(I):[I])}),v.pop()}}if(!Ve.isObject(e))throw new TypeError("data must be an object");return b(e),t}function eL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ux(e,t){this._pairs=[],e&&jm(e,this,t)}const tL=ux.prototype;tL.append=function(t,r){this._pairs.push([t,r])},tL.toString=function(t){const r=t?function(n){return t.call(this,n,eL)}:eL;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function zTe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rL(e,t,r){if(!t)return e;const n=r&&r.encode||zTe;Ve.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ve.isURLSearchParams(t)?t.toString():new ux(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class UTe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ve.forEach(this.handlers,function(n){n!==null&&t(n)})}}const nL=UTe,iL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VTe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ux,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},fx=typeof window<"u"&&typeof document<"u",cx=typeof navigator=="object"&&navigator||void 0,qTe=fx&&(!cx||["ReactNative","NativeScript","NS"].indexOf(cx.product)<0),HTe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),jTe=fx&&window.location.href||"http://localhost",Gn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fx,hasStandardBrowserEnv:qTe,hasStandardBrowserWebWorkerEnv:HTe,navigator:cx,origin:jTe},Symbol.toStringTag,{value:"Module"})),...VTe};function KTe(e,t){return jm(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Gn.isNode&&Ve.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function WTe(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function GTe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function aL(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=i>=r.length;return o=!o&&Ve.isArray(a)?a.length:o,u?(Ve.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!l):((!a[o]||!Ve.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ve.isArray(a[o])&&(a[o]=GTe(a[o])),!l)}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){const r={};return Ve.forEachEntry(e,(n,a)=>{t(WTe(n),a,r,0)}),r}return null}function ZTe(e,t,r){if(Ve.isString(e))try{return(t||JSON.parse)(e),Ve.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const hx={transitional:iL,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ve.isObject(t);if(i&&Ve.isHTMLForm(t)&&(t=new FormData(t)),Ve.isFormData(t))return a?JSON.stringify(aL(t)):t;if(Ve.isArrayBuffer(t)||Ve.isBuffer(t)||Ve.isStream(t)||Ve.isFile(t)||Ve.isBlob(t)||Ve.isReadableStream(t))return t;if(Ve.isArrayBufferView(t))return t.buffer;if(Ve.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return KTe(t,this.formSerializer).toString();if((l=Ve.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return jm(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),ZTe(t)):t}],transformResponse:[function(t){const r=this.transitional||hx.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Ve.isResponse(t)||Ve.isReadableStream(t))return t;if(t&&Ve.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?Ft.from(l,Ft.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ve.forEach(["delete","get","head","post","put","patch"],e=>{hx.headers[e]={}});const dx=hx,YTe=Ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JTe=e=>{const t={};let r,n,a;return e&&e.split(`
865
865
  `).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&YTe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},oL=Symbol("internals");function fd(e){return e&&String(e).trim().toLowerCase()}function Km(e){return e===!1||e==null?e:Ve.isArray(e)?e.map(Km):String(e)}function XTe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const QTe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function px(e,t,r,n,a){if(Ve.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ve.isString(t)){if(Ve.isString(n))return t.indexOf(n)!==-1;if(Ve.isRegExp(n))return n.test(t)}}function eAe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function tAe(e,t){const r=Ve.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class Wm{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(l,u,c){const d=fd(u);if(!d)throw new Error("header name must be a non-empty string");const v=Ve.findKey(a,d);(!v||a[v]===void 0||c===!0||c===void 0&&a[v]!==!1)&&(a[v||u]=Km(l))}const o=(l,u)=>Ve.forEach(l,(c,d)=>i(c,d,u));if(Ve.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(Ve.isString(t)&&(t=t.trim())&&!QTe(t))o(JTe(t),r);else if(Ve.isHeaders(t))for(const[l,u]of t.entries())i(u,l,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=fd(t),t){const n=Ve.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return XTe(a);if(Ve.isFunction(r))return r.call(this,a,n);if(Ve.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fd(t),t){const n=Ve.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||px(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=fd(o),o){const l=Ve.findKey(n,o);l&&(!r||px(n,n[l],l,r))&&(delete n[l],a=!0)}}return Ve.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||px(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ve.forEach(this,(a,i)=>{const o=Ve.findKey(n,i);if(o){r[o]=Km(a),delete r[i];return}const l=t?eAe(i):String(i).trim();l!==i&&delete r[i],r[l]=Km(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ve.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ve.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
866
866
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[oL]=this[oL]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=fd(o);n[l]||(tAe(a,o),n[l]=!0)}return Ve.isArray(t)?t.forEach(i):i(t),this}}Wm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ve.reduceDescriptors(Wm.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Ve.freezeMethods(Wm);const za=Wm;function vx(e,t){const r=this||dx,n=t||r,a=za.from(n.headers);let i=n.data;return Ve.forEach(e,function(l){i=l.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function sL(e){return!!(e&&e.__CANCEL__)}function sc(e,t,r){Ft.call(this,e??"canceled",Ft.ERR_CANCELED,t,r),this.name="CanceledError"}Ve.inherits(sc,Ft,{__CANCEL__:!0});function lL(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ft("Request failed with status code "+r.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function rAe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nAe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=n[i];o||(o=c),r[a]=u,n[a]=c;let v=i,m=0;for(;v!==a;)m+=r[v++],v=v%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const b=d&&c-d;return b?Math.round(m*1e3/b):void 0}}function iAe(e,t){let r=0,n=1e3/t,a,i;const o=(c,d=Date.now())=>{r=d,a=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),v=d-r;v>=n?o(c,d):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},n-v)))},()=>a&&o(a)]}const Gm=(e,t,r=3)=>{let n=0;const a=nAe(50,250);return iAe(i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,u=o-n,c=a(u),d=o<=l;n=o;const v={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-o)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(v)},r)},uL=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},fL=e=>(...t)=>Ve.asap(()=>e(...t)),aAe=Gn.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Gn.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Gn.origin),Gn.navigator&&/(msie|trident)/i.test(Gn.navigator.userAgent)):()=>!0,oAe=Gn.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];Ve.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Ve.isString(n)&&o.push("path="+n),Ve.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.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 sAe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lAe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cL(e,t){return e&&!sAe(t)?lAe(e,t):t}const hL=e=>e instanceof za?{...e}:e;function Ou(e,t){t=t||{};const r={};function n(c,d,v,m){return Ve.isPlainObject(c)&&Ve.isPlainObject(d)?Ve.merge.call({caseless:m},c,d):Ve.isPlainObject(d)?Ve.merge({},d):Ve.isArray(d)?d.slice():d}function a(c,d,v,m){if(Ve.isUndefined(d)){if(!Ve.isUndefined(c))return n(void 0,c,v,m)}else return n(c,d,v,m)}function i(c,d){if(!Ve.isUndefined(d))return n(void 0,d)}function o(c,d){if(Ve.isUndefined(d)){if(!Ve.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function l(c,d,v){if(v in t)return n(c,d);if(v in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,d,v)=>a(hL(c),hL(d),v,!0)};return Ve.forEach(Object.keys(Object.assign({},e,t)),function(d){const v=u[d]||a,m=v(e[d],t[d],d);Ve.isUndefined(m)&&v!==l||(r[d]=m)}),r}const dL=e=>{const t=Ou({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:l}=t;t.headers=o=za.from(o),t.url=rL(cL(t.baseURL,t.url),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(Ve.isFormData(r)){if(Gn.hasStandardBrowserEnv||Gn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...d]=u?u.split(";").map(v=>v.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Gn.hasStandardBrowserEnv&&(n&&Ve.isFunction(n)&&(n=n(t)),n||n!==!1&&aAe(t.url))){const c=a&&i&&oAe.read(i);c&&o.set(a,c)}return t},uAe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const a=dL(e);let i=a.data;const o=za.from(a.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=a,d,v,m,b,_;function S(){b&&b(),_&&_(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(a.method.toUpperCase(),a.url,!0),T.timeout=a.timeout;function C(){if(!T)return;const B=za.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:B,config:e,request:T};lL(function(L){r(L),S()},function(L){n(L),S()},O),T=null}"onloadend"in T?T.onloadend=C:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(C)},T.onabort=function(){T&&(n(new Ft("Request aborted",Ft.ECONNABORTED,e,T)),T=null)},T.onerror=function(){n(new Ft("Network Error",Ft.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let N=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||iL;a.timeoutErrorMessage&&(N=a.timeoutErrorMessage),n(new Ft(N,O.clarifyTimeoutError?Ft.ETIMEDOUT:Ft.ECONNABORTED,e,T)),T=null},i===void 0&&o.setContentType(null),"setRequestHeader"in T&&Ve.forEach(o.toJSON(),function(N,O){T.setRequestHeader(O,N)}),Ve.isUndefined(a.withCredentials)||(T.withCredentials=!!a.withCredentials),l&&l!=="json"&&(T.responseType=a.responseType),c&&([m,_]=Gm(c,!0),T.addEventListener("progress",m)),u&&T.upload&&([v,b]=Gm(u),T.upload.addEventListener("progress",v),T.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(d=B=>{T&&(n(!B||B.type?new sc(null,e,T):B),T.abort(),T=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const I=rAe(a.url);if(I&&Gn.protocols.indexOf(I)===-1){n(new Ft("Unsupported protocol "+I+":",Ft.ERR_BAD_REQUEST,e));return}T.send(i||null)})},fAe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(c){if(!a){a=!0,l();const d=c instanceof Error?c:this.reason;n.abort(d instanceof Ft?d:new sc(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new Ft(`timeout ${t} of ms exceeded`,Ft.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>Ve.asap(l),u}},cAe=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},hAe=async function*(e,t){for await(const r of dAe(e))yield*cAe(r,t)},dAe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},pL=(e,t,r,n)=>{const a=hAe(e,t);let i=0,o,l=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await a.next();if(c){l(),u.close();return}let v=d.byteLength;if(r){let m=i+=v;r(m)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),a.return()}},{highWaterMark:2})},Zm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vL=Zm&&typeof ReadableStream=="function",pAe=Zm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mL=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vAe=vL&&mL(()=>{let e=!1;const t=new Request(Gn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gL=64*1024,mx=vL&&mL(()=>Ve.isReadableStream(new Response("").body)),Ym={stream:mx&&(e=>e.body)};Zm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ym[t]&&(Ym[t]=Ve.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Ft(`Response type '${t}' is not supported`,Ft.ERR_NOT_SUPPORT,n)})})})(new Response);const mAe=async e=>{if(e==null)return 0;if(Ve.isBlob(e))return e.size;if(Ve.isSpecCompliantForm(e))return(await new Request(Gn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ve.isArrayBufferView(e)||Ve.isArrayBuffer(e))return e.byteLength;if(Ve.isURLSearchParams(e)&&(e=e+""),Ve.isString(e))return(await pAe(e)).byteLength},gAe=async(e,t)=>{const r=Ve.toFiniteNumber(e.getContentLength());return r??mAe(t)},gx={http:LTe,xhr:uAe,fetch:Zm&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:v="same-origin",fetchOptions:m}=dL(e);c=c?(c+"").toLowerCase():"text";let b=fAe([a,i&&i.toAbortSignal()],o),_;const S=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let T;try{if(u&&vAe&&r!=="get"&&r!=="head"&&(T=await gAe(d,n))!==0){let O=new Request(t,{method:"POST",body:n,duplex:"half"}),P;if(Ve.isFormData(n)&&(P=O.headers.get("content-type"))&&d.setContentType(P),O.body){const[L,$]=uL(T,Gm(fL(u)));n=pL(O.body,gL,L,$)}}Ve.isString(v)||(v=v?"include":"omit");const C="credentials"in Request.prototype;_=new Request(t,{...m,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:C?v:void 0});let I=await fetch(_);const B=mx&&(c==="stream"||c==="response");if(mx&&(l||B&&S)){const O={};["status","statusText","headers"].forEach(z=>{O[z]=I[z]});const P=Ve.toFiniteNumber(I.headers.get("content-length")),[L,$]=l&&uL(P,Gm(fL(l),!0))||[];I=new Response(pL(I.body,gL,L,()=>{$&&$(),S&&S()}),O)}c=c||"text";let N=await Ym[Ve.findKey(Ym,c)||"text"](I,e);return!B&&S&&S(),await new Promise((O,P)=>{lL(O,P,{data:N,headers:za.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:_})})}catch(C){throw S&&S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Ft("Network Error",Ft.ERR_NETWORK,e,_),{cause:C.cause||C}):Ft.from(C,C&&C.code,e,_)}})};Ve.forEach(gx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yL=e=>`- ${e}`,yAe=e=>Ve.isFunction(e)||e===null||e===!1,bL={getAdapter:e=>{e=Ve.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!yAe(r)&&(n=gx[(o=String(r)).toLowerCase()],n===void 0))throw new Ft(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
867
867
  `+i.map(yL).join(`