@splitty-test/validation 0.2.8 → 0.2.9

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.
@@ -6,17 +6,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
6
6
  type: StringConstructor;
7
7
  default: string;
8
8
  };
9
+ group: StringConstructor;
10
+ hideError: BooleanConstructor;
9
11
  name: {
10
12
  type: StringConstructor;
11
13
  required: true;
12
14
  };
13
- hideError: BooleanConstructor;
14
- modelValue: {
15
- type: null;
16
- };
17
- modelModifiers: {
18
- default: () => {};
19
- };
20
15
  replaceRules: {
21
16
  type: BooleanConstructor;
22
17
  };
@@ -28,6 +23,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
23
  type: PropType<FormValidator>;
29
24
  required: true;
30
25
  };
26
+ value: {
27
+ type: null;
28
+ };
31
29
  watchValue: {
32
30
  type: BooleanConstructor;
33
31
  default: boolean;
@@ -42,17 +40,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
40
  type: StringConstructor;
43
41
  default: string;
44
42
  };
43
+ group: StringConstructor;
44
+ hideError: BooleanConstructor;
45
45
  name: {
46
46
  type: StringConstructor;
47
47
  required: true;
48
48
  };
49
- hideError: BooleanConstructor;
50
- modelValue: {
51
- type: null;
52
- };
53
- modelModifiers: {
54
- default: () => {};
55
- };
56
49
  replaceRules: {
57
50
  type: BooleanConstructor;
58
51
  };
@@ -64,6 +57,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
64
57
  type: PropType<FormValidator>;
65
58
  required: true;
66
59
  };
60
+ value: {
61
+ type: null;
62
+ };
67
63
  watchValue: {
68
64
  type: BooleanConstructor;
69
65
  default: boolean;
@@ -71,7 +67,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
71
67
  }>> & Readonly<{}>, {
72
68
  hideError: boolean;
73
69
  el: string;
74
- modelModifiers: {};
75
70
  replaceRules: boolean;
76
71
  rules: ValidationRule[];
77
72
  watchValue: boolean;
package/dist/index.mjs CHANGED
@@ -2152,17 +2152,12 @@ const Hf = Li({
2152
2152
  type: String,
2153
2153
  default: "button, input, select, textarea"
2154
2154
  },
2155
+ group: String,
2156
+ hideError: Boolean,
2155
2157
  name: {
2156
2158
  type: String,
2157
2159
  required: !0
2158
2160
  },
2159
- hideError: Boolean,
2160
- modelValue: {
2161
- type: null
2162
- },
2163
- modelModifiers: {
2164
- default: () => ({})
2165
- },
2166
2161
  replaceRules: {
2167
2162
  type: Boolean
2168
2163
  },
@@ -2176,6 +2171,9 @@ const Hf = Li({
2176
2171
  type: Object,
2177
2172
  required: !0
2178
2173
  },
2174
+ value: {
2175
+ type: null
2176
+ },
2179
2177
  watchValue: {
2180
2178
  type: Boolean,
2181
2179
  default: !1
@@ -2195,7 +2193,7 @@ const Hf = Li({
2195
2193
  }
2196
2194
  },
2197
2195
  watch: {
2198
- modelValue: {
2196
+ value: {
2199
2197
  handler(e) {
2200
2198
  this.watchValue && this.field?.setTouched(), this.field?.setValue(e);
2201
2199
  },
@@ -2204,8 +2202,8 @@ const Hf = Li({
2204
2202
  }
2205
2203
  },
2206
2204
  mounted() {
2207
- let e;
2208
- Object.keys(this.modelModifiers).length === 1 && (e = Object.keys(this.modelModifiers)[0]), he(this.modelValue) || this.validator.addField(this.name, C(this.modelValue), this.rules || [], {
2205
+ let e = this.group;
2206
+ he(this.value) || this.validator.addField(this.name, C(this.value), this.rules || [], {
2209
2207
  replace_rules: this.replaceRules || !1,
2210
2208
  group: e
2211
2209
  }), Bi(() => {
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(P,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],T):(P=typeof globalThis<"u"?globalThis:P||self,T(P.Validation={},P.Vue))})(this,(function(P,T){"use strict";var ct=typeof global=="object"&&global&&global.Object===Object&&global,Li=typeof self=="object"&&self&&self.Object===Object&&self,M=ct||Li||Function("return this")(),G=M.Symbol,dt=Object.prototype,xi=dt.hasOwnProperty,Bi=dt.toString,J=G?G.toStringTag:void 0;function Ui(e){var r=xi.call(e,J),t=e[J];try{e[J]=void 0;var n=!0}catch{}var i=Bi.call(e);return n&&(r?e[J]=t:delete e[J]),i}var Gi=Object.prototype,Vi=Gi.toString;function zi(e){return Vi.call(e)}var Wi="[object Null]",Hi="[object Undefined]",vt=G?G.toStringTag:void 0;function H(e){return e==null?e===void 0?Hi:Wi:vt&&vt in Object(e)?Ui(e):zi(e)}function V(e){return e!=null&&typeof e=="object"}var Qi="[object Symbol]";function Ee(e){return typeof e=="symbol"||V(e)&&H(e)==Qi}function Ki(e,r){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t<n;)i[t]=r(e[t],t,e);return i}var D=Array.isArray,ht=G?G.prototype:void 0,pt=ht?ht.toString:void 0;function gt(e){if(typeof e=="string")return e;if(D(e))return Ki(e,gt)+"";if(Ee(e))return pt?pt.call(e):"";var r=e+"";return r=="0"&&1/e==-1/0?"-0":r}function z(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function le(e){return e}var ki="[object AsyncFunction]",Yi="[object Function]",Xi="[object GeneratorFunction]",Zi="[object Proxy]";function qe(e){if(!z(e))return!1;var r=H(e);return r==Yi||r==Xi||r==ki||r==Zi}var Ie=M["__core-js_shared__"],yt=(function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ji(e){return!!yt&&yt in e}var ea=Function.prototype,ra=ea.toString;function Q(e){if(e!=null){try{return ra.call(e)}catch{}try{return e+""}catch{}}return""}var ta=/[\\^$.*+?()[\]{}|]/g,na=/^\[object .+?Constructor\]$/,ia=Function.prototype,aa=Object.prototype,ua=ia.toString,oa=aa.hasOwnProperty,sa=RegExp("^"+ua.call(oa).replace(ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fa(e){if(!z(e)||Ji(e))return!1;var r=qe(e)?sa:na;return r.test(Q(e))}function la(e,r){return e?.[r]}function K(e,r){var t=la(e,r);return fa(t)?t:void 0}var Re=K(M,"WeakMap"),bt=Object.create,ca=(function(){function e(){}return function(r){if(!z(r))return{};if(bt)return bt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})();function da(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}function va(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var ha=800,pa=16,ga=Date.now;function ya(e){var r=0,t=0;return function(){var n=ga(),i=pa-(n-t);if(t=n,i>0){if(++r>=ha)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}function ba(e){return function(){return e}}var ce=(function(){try{var e=K(Object,"defineProperty");return e({},"",{}),e}catch{}})(),ma=ce?function(e,r){return ce(e,"toString",{configurable:!0,enumerable:!1,value:ba(r),writable:!0})}:le,_a=ya(ma),Oa=9007199254740991,Ta=/^(?:0|[1-9]\d*)$/;function de(e,r){var t=typeof e;return r=r??Oa,!!r&&(t=="number"||t!="symbol"&&Ta.test(e))&&e>-1&&e%1==0&&e<r}function Ae(e,r,t){r=="__proto__"&&ce?ce(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}function ee(e,r){return e===r||e!==e&&r!==r}var wa=Object.prototype,Sa=wa.hasOwnProperty;function Pa(e,r,t){var n=e[r];(!(Sa.call(e,r)&&ee(n,t))||t===void 0&&!(r in e))&&Ae(e,r,t)}function Ea(e,r,t,n){var i=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var o=r[a],s=void 0;s===void 0&&(s=e[o]),i?Ae(t,o,s):Pa(t,o,s)}return t}var mt=Math.max;function qa(e,r,t){return r=mt(r===void 0?e.length-1:r,0),function(){for(var n=arguments,i=-1,a=mt(n.length-r,0),u=Array(a);++i<a;)u[i]=n[r+i];i=-1;for(var o=Array(r+1);++i<r;)o[i]=n[i];return o[r]=t(u),da(e,this,o)}}function Ia(e,r){return _a(qa(e,r,le),e+"")}var Ra=9007199254740991;function $e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ra}function re(e){return e!=null&&$e(e.length)&&!qe(e)}function Aa(e,r,t){if(!z(t))return!1;var n=typeof r;return(n=="number"?re(t)&&de(r,t.length):n=="string"&&r in t)?ee(t[r],e):!1}function $a(e){return Ia(function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,u&&Aa(t[0],t[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++n<i;){var o=t[n];o&&e(r,o,n,a)}return r})}var Ca=Object.prototype;function ve(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Ca;return e===t}function ja(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var Da="[object Arguments]";function _t(e){return V(e)&&H(e)==Da}var Ot=Object.prototype,Ma=Ot.hasOwnProperty,Fa=Ot.propertyIsEnumerable,te=_t((function(){return arguments})())?_t:function(e){return V(e)&&Ma.call(e,"callee")&&!Fa.call(e,"callee")};function Na(){return!1}var Tt=typeof P=="object"&&P&&!P.nodeType&&P,wt=Tt&&typeof module=="object"&&module&&!module.nodeType&&module,La=wt&&wt.exports===Tt,St=La?M.Buffer:void 0,xa=St?St.isBuffer:void 0,ne=xa||Na,Ba="[object Arguments]",Ua="[object Array]",Ga="[object Boolean]",Va="[object Date]",za="[object Error]",Wa="[object Function]",Ha="[object Map]",Qa="[object Number]",Ka="[object Object]",ka="[object RegExp]",Ya="[object Set]",Xa="[object String]",Za="[object WeakMap]",Ja="[object ArrayBuffer]",eu="[object DataView]",ru="[object Float32Array]",tu="[object Float64Array]",nu="[object Int8Array]",iu="[object Int16Array]",au="[object Int32Array]",uu="[object Uint8Array]",ou="[object Uint8ClampedArray]",su="[object Uint16Array]",fu="[object Uint32Array]",E={};E[ru]=E[tu]=E[nu]=E[iu]=E[au]=E[uu]=E[ou]=E[su]=E[fu]=!0,E[Ba]=E[Ua]=E[Ja]=E[Ga]=E[eu]=E[Va]=E[za]=E[Wa]=E[Ha]=E[Qa]=E[Ka]=E[ka]=E[Ya]=E[Xa]=E[Za]=!1;function lu(e){return V(e)&&$e(e.length)&&!!E[H(e)]}function cu(e){return function(r){return e(r)}}var Pt=typeof P=="object"&&P&&!P.nodeType&&P,ie=Pt&&typeof module=="object"&&module&&!module.nodeType&&module,du=ie&&ie.exports===Pt,Ce=du&&ct.process,Et=(function(){try{var e=ie&&ie.require&&ie.require("util").types;return e||Ce&&Ce.binding&&Ce.binding("util")}catch{}})(),qt=Et&&Et.isTypedArray,he=qt?cu(qt):lu,vu=Object.prototype,hu=vu.hasOwnProperty;function It(e,r){var t=D(e),n=!t&&te(e),i=!t&&!n&&ne(e),a=!t&&!n&&!i&&he(e),u=t||n||i||a,o=u?ja(e.length,String):[],s=o.length;for(var l in e)(r||hu.call(e,l))&&!(u&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||de(l,s)))&&o.push(l);return o}function Rt(e,r){return function(t){return e(r(t))}}var pu=Rt(Object.keys,Object),gu=Object.prototype,yu=gu.hasOwnProperty;function At(e){if(!ve(e))return pu(e);var r=[];for(var t in Object(e))yu.call(e,t)&&t!="constructor"&&r.push(t);return r}function $t(e){return re(e)?It(e):At(e)}function bu(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var mu=Object.prototype,_u=mu.hasOwnProperty;function Ou(e){if(!z(e))return bu(e);var r=ve(e),t=[];for(var n in e)n=="constructor"&&(r||!_u.call(e,n))||t.push(n);return t}function je(e){return re(e)?It(e,!0):Ou(e)}var Tu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wu=/^\w*$/;function De(e,r){if(D(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Ee(e)?!0:wu.test(e)||!Tu.test(e)||r!=null&&e in Object(r)}var ae=K(Object,"create");function Su(){this.__data__=ae?ae(null):{},this.size=0}function Pu(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Eu="__lodash_hash_undefined__",qu=Object.prototype,Iu=qu.hasOwnProperty;function Ru(e){var r=this.__data__;if(ae){var t=r[e];return t===Eu?void 0:t}return Iu.call(r,e)?r[e]:void 0}var Au=Object.prototype,$u=Au.hasOwnProperty;function Cu(e){var r=this.__data__;return ae?r[e]!==void 0:$u.call(r,e)}var ju="__lodash_hash_undefined__";function Du(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ae&&r===void 0?ju:r,this}function k(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}k.prototype.clear=Su,k.prototype.delete=Pu,k.prototype.get=Ru,k.prototype.has=Cu,k.prototype.set=Du;function Mu(){this.__data__=[],this.size=0}function pe(e,r){for(var t=e.length;t--;)if(ee(e[t][0],r))return t;return-1}var Fu=Array.prototype,Nu=Fu.splice;function Lu(e){var r=this.__data__,t=pe(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Nu.call(r,t,1),--this.size,!0}function xu(e){var r=this.__data__,t=pe(r,e);return t<0?void 0:r[t][1]}function Bu(e){return pe(this.__data__,e)>-1}function Uu(e,r){var t=this.__data__,n=pe(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}function L(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}L.prototype.clear=Mu,L.prototype.delete=Lu,L.prototype.get=xu,L.prototype.has=Bu,L.prototype.set=Uu;var ue=K(M,"Map");function Gu(){this.size=0,this.__data__={hash:new k,map:new(ue||L),string:new k}}function Vu(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function ge(e,r){var t=e.__data__;return Vu(r)?t[typeof r=="string"?"string":"hash"]:t.map}function zu(e){var r=ge(this,e).delete(e);return this.size-=r?1:0,r}function Wu(e){return ge(this,e).get(e)}function Hu(e){return ge(this,e).has(e)}function Qu(e,r){var t=ge(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}function x(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}x.prototype.clear=Gu,x.prototype.delete=zu,x.prototype.get=Wu,x.prototype.has=Hu,x.prototype.set=Qu;var Ku="Expected a function";function Me(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Ku);var t=function(){var n=arguments,i=r?r.apply(this,n):n[0],a=t.cache;if(a.has(i))return a.get(i);var u=e.apply(this,n);return t.cache=a.set(i,u)||a,u};return t.cache=new(Me.Cache||x),t}Me.Cache=x;var ku=500;function Yu(e){var r=Me(e,function(n){return t.size===ku&&t.clear(),n}),t=r.cache;return r}var Xu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zu=/\\(\\)?/g,Ju=Yu(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Xu,function(t,n,i,a){r.push(i?a.replace(Zu,"$1"):n||t)}),r});function eo(e){return e==null?"":gt(e)}function Fe(e,r){return D(e)?e:De(e,r)?[e]:Ju(eo(e))}function oe(e){if(typeof e=="string"||Ee(e))return e;var r=e+"";return r=="0"&&1/e==-1/0?"-0":r}function Ne(e,r){r=Fe(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[oe(r[t++])];return t&&t==n?e:void 0}function ro(e,r,t){var n=e==null?void 0:Ne(e,r);return n===void 0?t:n}function to(e,r){for(var t=-1,n=r.length,i=e.length;++t<n;)e[i+t]=r[t];return e}var Ct=Rt(Object.getPrototypeOf,Object),no="[object Object]",io=Function.prototype,ao=Object.prototype,jt=io.toString,uo=ao.hasOwnProperty,oo=jt.call(Object);function so(e){if(!V(e)||H(e)!=no)return!1;var r=Ct(e);if(r===null)return!0;var t=uo.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&jt.call(t)==oo}function fo(e,r,t){var n=-1,i=e.length;r<0&&(r=-r>i?0:i+r),t=t>i?i:t,t<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+r];return a}function lo(){this.__data__=new L,this.size=0}function co(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}function vo(e){return this.__data__.get(e)}function ho(e){return this.__data__.has(e)}var po=200;function go(e,r){var t=this.__data__;if(t instanceof L){var n=t.__data__;if(!ue||n.length<po-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new x(n)}return t.set(e,r),this.size=t.size,this}function F(e){var r=this.__data__=new L(e);this.size=r.size}F.prototype.clear=lo,F.prototype.delete=co,F.prototype.get=vo,F.prototype.has=ho,F.prototype.set=go;var Dt=typeof P=="object"&&P&&!P.nodeType&&P,Mt=Dt&&typeof module=="object"&&module&&!module.nodeType&&module,yo=Mt&&Mt.exports===Dt,Ft=yo?M.Buffer:void 0;Ft&&Ft.allocUnsafe;function bo(e,r){return e.slice()}function mo(e,r){for(var t=-1,n=e==null?0:e.length,i=0,a=[];++t<n;){var u=e[t];r(u,t,e)&&(a[i++]=u)}return a}function _o(){return[]}var Oo=Object.prototype,To=Oo.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,wo=Nt?function(e){return e==null?[]:(e=Object(e),mo(Nt(e),function(r){return To.call(e,r)}))}:_o;function So(e,r,t){var n=r(e);return D(e)?n:to(n,t(e))}function Lt(e){return So(e,$t,wo)}var Le=K(M,"DataView"),xe=K(M,"Promise"),Be=K(M,"Set"),xt="[object Map]",Po="[object Object]",Bt="[object Promise]",Ut="[object Set]",Gt="[object WeakMap]",Vt="[object DataView]",Eo=Q(Le),qo=Q(ue),Io=Q(xe),Ro=Q(Be),Ao=Q(Re),B=H;(Le&&B(new Le(new ArrayBuffer(1)))!=Vt||ue&&B(new ue)!=xt||xe&&B(xe.resolve())!=Bt||Be&&B(new Be)!=Ut||Re&&B(new Re)!=Gt)&&(B=function(e){var r=H(e),t=r==Po?e.constructor:void 0,n=t?Q(t):"";if(n)switch(n){case Eo:return Vt;case qo:return xt;case Io:return Bt;case Ro:return Ut;case Ao:return Gt}return r});var ye=M.Uint8Array;function $o(e){var r=new e.constructor(e.byteLength);return new ye(r).set(new ye(e)),r}function Co(e,r){var t=$o(e.buffer);return new e.constructor(t,e.byteOffset,e.length)}function jo(e){return typeof e.constructor=="function"&&!ve(e)?ca(Ct(e)):{}}var Do="__lodash_hash_undefined__";function Mo(e){return this.__data__.set(e,Do),this}function Fo(e){return this.__data__.has(e)}function be(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new x;++r<t;)this.add(e[r])}be.prototype.add=be.prototype.push=Mo,be.prototype.has=Fo;function No(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}function Lo(e,r){return e.has(r)}var xo=1,Bo=2;function zt(e,r,t,n,i,a){var u=t&xo,o=e.length,s=r.length;if(o!=s&&!(u&&s>o))return!1;var l=a.get(e),d=a.get(r);if(l&&d)return l==r&&d==e;var c=-1,v=!0,h=t&Bo?new be:void 0;for(a.set(e,r),a.set(r,e);++c<o;){var f=e[c],p=r[c];if(n)var b=u?n(p,f,c,r,e,a):n(f,p,c,e,r,a);if(b!==void 0){if(b)continue;v=!1;break}if(h){if(!No(r,function(m,S){if(!Lo(h,S)&&(f===m||i(f,m,t,n,a)))return h.push(S)})){v=!1;break}}else if(!(f===p||i(f,p,t,n,a))){v=!1;break}}return a.delete(e),a.delete(r),v}function Uo(e){var r=-1,t=Array(e.size);return e.forEach(function(n,i){t[++r]=[i,n]}),t}function Go(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Vo=1,zo=2,Wo="[object Boolean]",Ho="[object Date]",Qo="[object Error]",Ko="[object Map]",ko="[object Number]",Yo="[object RegExp]",Xo="[object Set]",Zo="[object String]",Jo="[object Symbol]",es="[object ArrayBuffer]",rs="[object DataView]",Wt=G?G.prototype:void 0,Ue=Wt?Wt.valueOf:void 0;function ts(e,r,t,n,i,a,u){switch(t){case rs:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case es:return!(e.byteLength!=r.byteLength||!a(new ye(e),new ye(r)));case Wo:case Ho:case ko:return ee(+e,+r);case Qo:return e.name==r.name&&e.message==r.message;case Yo:case Zo:return e==r+"";case Ko:var o=Uo;case Xo:var s=n&Vo;if(o||(o=Go),e.size!=r.size&&!s)return!1;var l=u.get(e);if(l)return l==r;n|=zo,u.set(e,r);var d=zt(o(e),o(r),n,i,a,u);return u.delete(e),d;case Jo:if(Ue)return Ue.call(e)==Ue.call(r)}return!1}var ns=1,is=Object.prototype,as=is.hasOwnProperty;function us(e,r,t,n,i,a){var u=t&ns,o=Lt(e),s=o.length,l=Lt(r),d=l.length;if(s!=d&&!u)return!1;for(var c=s;c--;){var v=o[c];if(!(u?v in r:as.call(r,v)))return!1}var h=a.get(e),f=a.get(r);if(h&&f)return h==r&&f==e;var p=!0;a.set(e,r),a.set(r,e);for(var b=u;++c<s;){v=o[c];var m=e[v],S=r[v];if(n)var q=u?n(S,m,v,r,e,a):n(m,S,v,e,r,a);if(!(q===void 0?m===S||i(m,S,t,n,a):q)){p=!1;break}b||(b=v=="constructor")}if(p&&!b){var w=e.constructor,I=r.constructor;w!=I&&"constructor"in e&&"constructor"in r&&!(typeof w=="function"&&w instanceof w&&typeof I=="function"&&I instanceof I)&&(p=!1)}return a.delete(e),a.delete(r),p}var os=1,Ht="[object Arguments]",Qt="[object Array]",me="[object Object]",ss=Object.prototype,Kt=ss.hasOwnProperty;function fs(e,r,t,n,i,a){var u=D(e),o=D(r),s=u?Qt:B(e),l=o?Qt:B(r);s=s==Ht?me:s,l=l==Ht?me:l;var d=s==me,c=l==me,v=s==l;if(v&&ne(e)){if(!ne(r))return!1;u=!0,d=!1}if(v&&!d)return a||(a=new F),u||he(e)?zt(e,r,t,n,i,a):ts(e,r,s,t,n,i,a);if(!(t&os)){var h=d&&Kt.call(e,"__wrapped__"),f=c&&Kt.call(r,"__wrapped__");if(h||f){var p=h?e.value():e,b=f?r.value():r;return a||(a=new F),i(p,b,t,n,a)}}return v?(a||(a=new F),us(e,r,t,n,i,a)):!1}function Ge(e,r,t,n,i){return e===r?!0:e==null||r==null||!V(e)&&!V(r)?e!==e&&r!==r:fs(e,r,t,n,Ge,i)}var ls=1,cs=2;function ds(e,r,t,n){var i=t.length,a=i;if(e==null)return!a;for(e=Object(e);i--;){var u=t[i];if(u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=t[i];var o=u[0],s=e[o],l=u[1];if(u[2]){if(s===void 0&&!(o in e))return!1}else{var d=new F,c;if(!(c===void 0?Ge(l,s,ls|cs,n,d):c))return!1}}return!0}function kt(e){return e===e&&!z(e)}function vs(e){for(var r=$t(e),t=r.length;t--;){var n=r[t],i=e[n];r[t]=[n,i,kt(i)]}return r}function Yt(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}function hs(e){var r=vs(e);return r.length==1&&r[0][2]?Yt(r[0][0],r[0][1]):function(t){return t===e||ds(t,e,r)}}function ps(e,r){return e!=null&&r in Object(e)}function gs(e,r,t){r=Fe(r,e);for(var n=-1,i=r.length,a=!1;++n<i;){var u=oe(r[n]);if(!(a=e!=null&&t(e,u)))break;e=e[u]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&$e(i)&&de(u,i)&&(D(e)||te(e)))}function ys(e,r){return e!=null&&gs(e,r,ps)}var bs=1,ms=2;function _s(e,r){return De(e)&&kt(r)?Yt(oe(e),r):function(t){var n=ro(t,e);return n===void 0&&n===r?ys(t,e):Ge(r,n,bs|ms)}}function Os(e){return function(r){return r?.[e]}}function Ts(e){return function(r){return Ne(r,e)}}function ws(e){return De(e)?Os(oe(e)):Ts(e)}function Ss(e){return typeof e=="function"?e:e==null?le:typeof e=="object"?D(e)?_s(e[0],e[1]):hs(e):ws(e)}function Ps(e){return function(r,t,n){for(var i=-1,a=Object(r),u=n(r),o=u.length;o--;){var s=u[++i];if(t(a[s],s,a)===!1)break}return r}}var Xt=Ps();function Ve(e,r,t){(t!==void 0&&!ee(e[r],t)||t===void 0&&!(r in e))&&Ae(e,r,t)}function Es(e){return V(e)&&re(e)}function ze(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}function qs(e){return Ea(e,je(e))}function Is(e,r,t,n,i,a,u){var o=ze(e,t),s=ze(r,t),l=u.get(s);if(l){Ve(e,t,l);return}var d=a?a(o,s,t+"",e,r,u):void 0,c=d===void 0;if(c){var v=D(s),h=!v&&ne(s),f=!v&&!h&&he(s);d=s,v||h||f?D(o)?d=o:Es(o)?d=va(o):h?(c=!1,d=bo(s)):f?(c=!1,d=Co(s)):d=[]:so(s)||te(s)?(d=o,te(o)?d=qs(o):(!z(o)||qe(o))&&(d=jo(s))):c=!1}c&&(u.set(s,d),i(d,s,n,a,u),u.delete(s)),Ve(e,t,d)}function Zt(e,r,t,n,i){e!==r&&Xt(r,function(a,u){if(i||(i=new F),z(a))Is(e,r,u,t,Zt,n,i);else{var o=n?n(ze(e,u),a,u+"",e,r,i):void 0;o===void 0&&(o=a),Ve(e,u,o)}},je)}function Rs(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}function As(e){return typeof e=="function"?e:le}function We(e,r){return e==null?e:Xt(e,As(r),je)}function $s(e,r){return r.length<2?e:Ne(e,fo(r,0,-1))}var Cs="[object Map]",js="[object Set]",Ds=Object.prototype,Ms=Ds.hasOwnProperty;function Fs(e){if(e==null)return!0;if(re(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||ne(e)||he(e)||te(e)))return!e.length;var r=B(e);if(r==Cs||r==js)return!e.size;if(ve(e))return!At(e).length;for(var t in e)if(Ms.call(e,t))return!1;return!0}function Ns(e){return e==null}function Jt(e){return e===null}function _e(e){return e===void 0}var Ls=$a(function(e,r,t){Zt(e,r,t)});function xs(e,r){return r=Fe(r,e),e=$s(e,r),e==null||delete e[oe(Rs(r))]}var Bs=Array.prototype,Us=Bs.splice;function Gs(e,r){for(var t=e?r.length:0,n=t-1;t--;){var i=r[t];if(t==n||i!==a){var a=i;de(i)?Us.call(e,i,1):xs(e,i)}}return e}function Vs(e,r){var t=[];if(!(e&&e.length))return t;var n=-1,i=[],a=e.length;for(r=Ss(r);++n<a;){var u=e[n];r(u,n,e)&&(t.push(u),i.push(n))}return Gs(e,i),t}async function*zs(e){for await(const r of e)yield r}var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He,tn;function Ws(){if(tn)return He;tn=1,He=r;class e extends Error{}e.prototype.name="AssertionError";function r(t,n){if(!t){var i=new e(n);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}}return He}var Hs=Ws();const R=rn(Hs);function nn(e){return R(typeof e=="function","fct must be a function"),async function(){return e(...arguments)}}class an extends Error{constructor(r){super(r),this.name=this.constructor.name}}class Qs{constructor(){this._promise=new Promise((r,t)=>{this._resolve=r,this._reject=t})}get promise(){return this._promise}get resolve(){return this._resolve}get reject(){return this._reject}}var se,un;function j(){if(un)return se;un=1;var e=function(r){return r&&r.Math===Math&&r};return se=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof en=="object"&&en)||e(typeof se=="object"&&se)||(function(){return this})()||Function("return this")(),se}var Qe,on;function U(){return on||(on=1,Qe=function(e){try{return!!e()}catch{return!0}}),Qe}var Ke,sn;function Oe(){if(sn)return Ke;sn=1;var e=U();return Ke=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),Ke}var ke,fn;function ln(){if(fn)return ke;fn=1;var e=Oe(),r=Function.prototype,t=r.apply,n=r.call;return ke=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(t):function(){return n.apply(t,arguments)}),ke}var Ye,cn;function Y(){if(cn)return Ye;cn=1;var e=Oe(),r=Function.prototype,t=r.call,n=e&&r.bind.bind(t,t);return Ye=e?n:function(i){return function(){return t.apply(i,arguments)}},Ye}var Xe,dn;function Ze(){if(dn)return Xe;dn=1;var e=Y(),r=e({}.toString),t=e("".slice);return Xe=function(n){return t(r(n),8,-1)},Xe}var Je,vn;function hn(){if(vn)return Je;vn=1;var e=Ze(),r=Y();return Je=function(t){if(e(t)==="Function")return r(t)},Je}var er,pn;function W(){if(pn)return er;pn=1;var e=typeof document=="object"&&document.all;return er=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},er}var rr={},tr,gn;function X(){if(gn)return tr;gn=1;var e=U();return tr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),tr}var nr,yn;function ir(){if(yn)return nr;yn=1;var e=Oe(),r=Function.prototype.call;return nr=e?r.bind(r):function(){return r.apply(r,arguments)},nr}var ar={},bn;function Ks(){if(bn)return ar;bn=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,t=r&&!e.call({1:2},1);return ar.f=t?function(i){var a=r(this,i);return!!a&&a.enumerable}:e,ar}var ur,mn;function _n(){return mn||(mn=1,ur=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),ur}var or,On;function ks(){if(On)return or;On=1;var e=Y(),r=U(),t=Ze(),n=Object,i=e("".split);return or=r(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return t(a)==="String"?i(a,""):n(a)}:n,or}var sr,Tn;function wn(){return Tn||(Tn=1,sr=function(e){return e==null}),sr}var fr,Sn;function Pn(){if(Sn)return fr;Sn=1;var e=wn(),r=TypeError;return fr=function(t){if(e(t))throw new r("Can't call method on "+t);return t},fr}var lr,En;function Ys(){if(En)return lr;En=1;var e=ks(),r=Pn();return lr=function(t){return e(r(t))},lr}var cr,qn;function Te(){if(qn)return cr;qn=1;var e=W();return cr=function(r){return typeof r=="object"?r!==null:e(r)},cr}var dr,In;function vr(){return In||(In=1,dr={}),dr}var hr,Rn;function An(){if(Rn)return hr;Rn=1;var e=vr(),r=j(),t=W(),n=function(i){return t(i)?i:void 0};return hr=function(i,a){return arguments.length<2?n(e[i])||n(r[i]):e[i]&&e[i][a]||r[i]&&r[i][a]},hr}var pr,$n;function Xs(){if($n)return pr;$n=1;var e=Y();return pr=e({}.isPrototypeOf),pr}var gr,Cn;function fe(){if(Cn)return gr;Cn=1;var e=j(),r=e.navigator,t=r&&r.userAgent;return gr=t?String(t):"",gr}var yr,jn;function Zs(){if(jn)return yr;jn=1;var e=j(),r=fe(),t=e.process,n=e.Deno,i=t&&t.versions||n&&n.version,a=i&&i.v8,u,o;return a&&(u=a.split("."),o=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!o&&r&&(u=r.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=r.match(/Chrome\/(\d+)/),u&&(o=+u[1]))),yr=o,yr}var br,Dn;function Mn(){if(Dn)return br;Dn=1;var e=Zs(),r=U(),t=j(),n=t.String;return br=!!Object.getOwnPropertySymbols&&!r(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),br}var mr,Fn;function Nn(){if(Fn)return mr;Fn=1;var e=Mn();return mr=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mr}var _r,Ln;function xn(){if(Ln)return _r;Ln=1;var e=An(),r=W(),t=Xs(),n=Nn(),i=Object;return _r=n?function(a){return typeof a=="symbol"}:function(a){var u=e("Symbol");return r(u)&&t(u.prototype,i(a))},_r}var Or,Bn;function Js(){if(Bn)return Or;Bn=1;var e=String;return Or=function(r){try{return e(r)}catch{return"Object"}},Or}var Tr,Un;function wr(){if(Un)return Tr;Un=1;var e=W(),r=Js(),t=TypeError;return Tr=function(n){if(e(n))return n;throw new t(r(n)+" is not a function")},Tr}var Sr,Gn;function ef(){if(Gn)return Sr;Gn=1;var e=wr(),r=wn();return Sr=function(t,n){var i=t[n];return r(i)?void 0:e(i)},Sr}var Pr,Vn;function rf(){if(Vn)return Pr;Vn=1;var e=ir(),r=W(),t=Te(),n=TypeError;return Pr=function(i,a){var u,o;if(a==="string"&&r(u=i.toString)&&!t(o=e(u,i))||r(u=i.valueOf)&&!t(o=e(u,i))||a!=="string"&&r(u=i.toString)&&!t(o=e(u,i)))return o;throw new n("Can't convert object to primitive value")},Pr}var Er={exports:{}},qr,zn;function tf(){return zn||(zn=1,qr=!0),qr}var Ir,Wn;function nf(){if(Wn)return Ir;Wn=1;var e=j(),r=Object.defineProperty;return Ir=function(t,n){try{r(e,t,{value:n,configurable:!0,writable:!0})}catch{e[t]=n}return n},Ir}var Hn;function af(){if(Hn)return Er.exports;Hn=1;var e=tf(),r=j(),t=nf(),n="__core-js_shared__",i=Er.exports=r[n]||t(n,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Er.exports}var Rr,Qn;function uf(){if(Qn)return Rr;Qn=1;var e=af();return Rr=function(r,t){return e[r]||(e[r]=t||{})},Rr}var Ar,Kn;function of(){if(Kn)return Ar;Kn=1;var e=Pn(),r=Object;return Ar=function(t){return r(e(t))},Ar}var $r,kn;function we(){if(kn)return $r;kn=1;var e=Y(),r=of(),t=e({}.hasOwnProperty);return $r=Object.hasOwn||function(i,a){return t(r(i),a)},$r}var Cr,Yn;function sf(){if(Yn)return Cr;Yn=1;var e=Y(),r=0,t=Math.random(),n=e(1.1.toString);return Cr=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++r+t,36)},Cr}var jr,Xn;function ff(){if(Xn)return jr;Xn=1;var e=j(),r=uf(),t=we(),n=sf(),i=Mn(),a=Nn(),u=e.Symbol,o=r("wks"),s=a?u.for||u:u&&u.withoutSetter||n;return jr=function(l){return t(o,l)||(o[l]=i&&t(u,l)?u[l]:s("Symbol."+l)),o[l]},jr}var Dr,Zn;function lf(){if(Zn)return Dr;Zn=1;var e=ir(),r=Te(),t=xn(),n=ef(),i=rf(),a=ff(),u=TypeError,o=a("toPrimitive");return Dr=function(s,l){if(!r(s)||t(s))return s;var d=n(s,o),c;if(d){if(l===void 0&&(l="default"),c=e(d,s,l),!r(c)||t(c))return c;throw new u("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(s,l)},Dr}var Mr,Jn;function ei(){if(Jn)return Mr;Jn=1;var e=lf(),r=xn();return Mr=function(t){var n=e(t,"string");return r(n)?n:n+""},Mr}var Fr,ri;function ti(){if(ri)return Fr;ri=1;var e=j(),r=Te(),t=e.document,n=r(t)&&r(t.createElement);return Fr=function(i){return n?t.createElement(i):{}},Fr}var Nr,ni;function ii(){if(ni)return Nr;ni=1;var e=X(),r=U(),t=ti();return Nr=!e&&!r(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),Nr}var ai;function cf(){if(ai)return rr;ai=1;var e=X(),r=ir(),t=Ks(),n=_n(),i=Ys(),a=ei(),u=we(),o=ii(),s=Object.getOwnPropertyDescriptor;return rr.f=e?s:function(d,c){if(d=i(d),c=a(c),o)try{return s(d,c)}catch{}if(u(d,c))return n(!r(t.f,d,c),d[c])},rr}var Lr,ui;function df(){if(ui)return Lr;ui=1;var e=U(),r=W(),t=/#|\.prototype\./,n=function(s,l){var d=a[i(s)];return d===o?!0:d===u?!1:r(l)?e(l):!!l},i=n.normalize=function(s){return String(s).replace(t,".").toLowerCase()},a=n.data={},u=n.NATIVE="N",o=n.POLYFILL="P";return Lr=n,Lr}var xr,oi;function Br(){if(oi)return xr;oi=1;var e=hn(),r=wr(),t=Oe(),n=e(e.bind);return xr=function(i,a){return r(i),a===void 0?i:t?n(i,a):function(){return i.apply(a,arguments)}},xr}var Ur={},Gr,si;function vf(){if(si)return Gr;si=1;var e=X(),r=U();return Gr=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Gr}var Vr,fi;function hf(){if(fi)return Vr;fi=1;var e=Te(),r=String,t=TypeError;return Vr=function(n){if(e(n))return n;throw new t(r(n)+" is not an object")},Vr}var li;function pf(){if(li)return Ur;li=1;var e=X(),r=ii(),t=vf(),n=hf(),i=ei(),a=TypeError,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s="enumerable",l="configurable",d="writable";return Ur.f=e?t?function(v,h,f){if(n(v),h=i(h),n(f),typeof v=="function"&&h==="prototype"&&"value"in f&&d in f&&!f[d]){var p=o(v,h);p&&p[d]&&(v[h]=f.value,f={configurable:l in f?f[l]:p[l],enumerable:s in f?f[s]:p[s],writable:!1})}return u(v,h,f)}:u:function(v,h,f){if(n(v),h=i(h),n(f),r)try{return u(v,h,f)}catch{}if("get"in f||"set"in f)throw new a("Accessors not supported");return"value"in f&&(v[h]=f.value),v},Ur}var zr,ci;function gf(){if(ci)return zr;ci=1;var e=X(),r=pf(),t=_n();return zr=e?function(n,i,a){return r.f(n,i,t(1,a))}:function(n,i,a){return n[i]=a,n},zr}var Wr,di;function yf(){if(di)return Wr;di=1;var e=j(),r=ln(),t=hn(),n=W(),i=cf().f,a=df(),u=vr(),o=Br(),s=gf(),l=we(),d=function(c){var v=function(h,f,p){if(this instanceof v){switch(arguments.length){case 0:return new c;case 1:return new c(h);case 2:return new c(h,f)}return new c(h,f,p)}return r(c,this,arguments)};return v.prototype=c.prototype,v};return Wr=function(c,v){var h=c.target,f=c.global,p=c.stat,b=c.proto,m=f?e:p?e[h]:e[h]&&e[h].prototype,S=f?u:u[h]||s(u,h,{})[h],q=S.prototype,w,I,C,g,A,y,_,O,N;for(g in v)w=a(f?g:h+(p?".":"#")+g,c.forced),I=!w&&m&&l(m,g),y=S[g],I&&(c.dontCallGetSet?(N=i(m,g),_=N&&N.value):_=m[g]),A=I&&_?_:v[g],!(!w&&!b&&typeof y==typeof A)&&(c.bind&&I?O=o(A,e):c.wrap&&I?O=d(A):b&&n(A)?O=t(A):O=A,(c.sham||A&&A.sham||y&&y.sham)&&s(O,"sham",!0),s(S,g,O),b&&(C=h+"Prototype",l(u,C)||s(u,C,{}),s(u[C],g,A),c.real&&q&&(w||!q[g])&&s(q,g,A)))},Wr}var Hr,vi;function bf(){if(vi)return Hr;vi=1;var e=An();return Hr=e("document","documentElement"),Hr}var Qr,hi;function mf(){if(hi)return Qr;hi=1;var e=Y();return Qr=e([].slice),Qr}var Kr,pi;function gi(){if(pi)return Kr;pi=1;var e=TypeError;return Kr=function(r,t){if(r<t)throw new e("Not enough arguments");return r},Kr}var kr,yi;function bi(){if(yi)return kr;yi=1;var e=fe();return kr=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),kr}var Yr,mi;function _f(){if(mi)return Yr;mi=1;var e=j(),r=fe(),t=Ze(),n=function(i){return r.slice(0,i.length)===i};return Yr=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"})(),Yr}var Xr,_i;function Oi(){if(_i)return Xr;_i=1;var e=_f();return Xr=e==="NODE",Xr}var Zr,Ti;function Of(){if(Ti)return Zr;Ti=1;var e=j(),r=ln(),t=Br(),n=W(),i=we(),a=U(),u=bf(),o=mf(),s=ti(),l=gi(),d=bi(),c=Oi(),v=e.setImmediate,h=e.clearImmediate,f=e.process,p=e.Dispatch,b=e.Function,m=e.MessageChannel,S=e.String,q=0,w={},I="onreadystatechange",C,g,A,y;a(function(){C=e.location});var _=function($){if(i(w,$)){var Z=w[$];delete w[$],Z()}},O=function($){return function(){_($)}},N=function($){_($.data)},Pe=function($){e.postMessage(S($),C.protocol+"//"+C.host)};return(!v||!h)&&(v=function(Z){l(arguments.length,1);var el=n(Z)?Z:b(Z),rl=o(arguments,1);return w[++q]=function(){r(el,void 0,rl)},g(q),q},h=function(Z){delete w[Z]},c?g=function($){f.nextTick(O($))}:p&&p.now?g=function($){p.now(O($))}:m&&!d?(A=new m,y=A.port2,A.port1.onmessage=N,g=t(y.postMessage,y)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&C&&C.protocol!=="file:"&&!a(Pe)?(g=Pe,e.addEventListener("message",N,!1)):I in s("script")?g=function($){u.appendChild(s("script"))[I]=function(){u.removeChild(this),_($)}}:g=function($){setTimeout(O($),0)}),Zr={set:v,clear:h},Zr}var wi={},Jr,Si;function Tf(){if(Si)return Jr;Si=1;var e=j(),r=X(),t=Object.getOwnPropertyDescriptor;return Jr=function(n){if(!r)return e[n];var i=t(e,n);return i&&i.value},Jr}var et,Pi;function wf(){if(Pi)return et;Pi=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r){var t=this.head=r.next;return t===null&&(this.tail=null),r.item}}},et=e,et}var rt,Ei;function Sf(){if(Ei)return rt;Ei=1;var e=fe();return rt=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",rt}var tt,qi;function Pf(){if(qi)return tt;qi=1;var e=fe();return tt=/web0s(?!.*chrome)/i.test(e),tt}var nt,Ii;function Ef(){if(Ii)return nt;Ii=1;var e=j(),r=Tf(),t=Br(),n=Of().set,i=wf(),a=bi(),u=Sf(),o=Pf(),s=Oi(),l=e.MutationObserver||e.WebKitMutationObserver,d=e.document,c=e.process,v=e.Promise,h=r("queueMicrotask"),f,p,b,m,S;if(!h){var q=new i,w=function(){var I,C;for(s&&(I=c.domain)&&I.exit();C=q.get();)try{C()}catch(g){throw q.head&&f(),g}I&&I.enter()};!a&&!s&&!o&&l&&d?(p=!0,b=d.createTextNode(""),new l(w).observe(b,{characterData:!0}),f=function(){b.data=p=!p}):!u&&v&&v.resolve?(m=v.resolve(void 0),m.constructor=v,S=t(m.then,m),f=function(){S(w)}):s?f=function(){c.nextTick(w)}:(n=t(n,e),f=function(){n(w)}),h=function(I){q.head||f(),q.add(I)}}return nt=h,nt}var Ri;function qf(){if(Ri)return wi;Ri=1;var e=yf(),r=j(),t=Ef(),n=wr(),i=gi(),a=U(),u=X(),o=a(function(){return u&&Object.getOwnPropertyDescriptor(r,"queueMicrotask").value.length!==1});return e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:o},{queueMicrotask:function(l){i(arguments.length,1),t(n(l))}}),wi}var it,Ai;function If(){if(Ai)return it;Ai=1,qf();var e=vr();return it=e.queueMicrotask,it}var at,$i;function Rf(){if($i)return at;$i=1;var e=If();return at=e,at}var ut,Ci;function Af(){if(Ci)return ut;Ci=1;var e=Rf();return ut=e,ut}var ot,ji;function $f(){if(ji)return ot;ji=1;var e=Af();return ot=e,ot}var st,Di;function Cf(){return Di||(Di=1,st=$f()),st}var jf=Cf();const Df=rn(jf);function Mi(e){Df(e)}class Mf{constructor(r){R(Number.isInteger(r)||r===Number.POSITIVE_INFINITY,"concurrency must be an integer or positive infinity"),R(r>0,"concurrency must be greater than 0"),this._concurrency=r,this._iqueue=[],this._running=0,this._checkQueueScheduled=!1}get concurrency(){return this._concurrency}get running(){return this._running}get pending(){return this._iqueue.length-this.running}async exec(r,t=0){return this.execCancellable(r,t)[0]}execCancellable(r,t=0){R(typeof r=="function","fct must be a function"),R(typeof t=="number","priority must be a number");const n=new Qs;let i=this._iqueue.length;for(;i>=1&&!(this._iqueue[i-1].priority>=t);)i-=1;const a={asyncFct:nn(r),deferred:n,priority:t,state:"pending"};return this._iqueue.splice(i,0,a),this._scheduleCheckQueue(),[n.promise,()=>{if(a.state!=="pending")return!1;{const u=this._iqueue.filter(o=>o!==a);return R(u.length<this._iqueue.length),this._iqueue=u,a.state="cancelled",n.reject(new an),!0}}]}_scheduleCheckQueue(){this._checkQueueScheduled||(this._checkQueueScheduled=!0,Mi(()=>{this._checkQueueScheduled=!1,this._checkQueue()}))}_checkQueue(){for(;;){if(R(this.running>=0,"invalid state"),R(this.running<=this.concurrency,"invalid state"),this.running===this.concurrency)return;const r=this._iqueue.find(t=>t.state==="pending");if(r===void 0)return;this._running+=1,r.state="running",Mi(()=>{r.asyncFct().finally(()=>{this._running-=1,this._iqueue=this._iqueue.filter(t=>t!==r)}).then(r.deferred.resolve,r.deferred.reject).then(()=>{this._scheduleCheckQueue()})})}}cancelAllPending(){const r=this._iqueue.filter(t=>t.state==="pending");return this._iqueue=this._iqueue.filter(t=>t.state!=="pending"),r.forEach(t=>{t.deferred.reject(new an)}),r.length}}function Ff(e){return typeof e=="number"?new Mf(e):e}async function ft(e){try{return{status:"fulfilled",value:await e()}}catch(r){return{status:"rejected",reason:r}}}async function*Nf(e,r,t=1,n=!0){R(typeof r=="function","iteratee must be a function"),r=nn(r);const i=zs(e),a=Ff(t);class u extends Error{}let o=-1,s=!1,l=!1,d=null,c=!1,v=!1,h=-1;const f=[];let p=0;const b=new Map,m=y=>{const _=p;p+=1;const O=(async()=>[_,await ft(y)])();R(!b.has(_),"waitList contains identifier"),b.set(_,O)},S=async()=>{R(b.size>=1,"Can not race on empty list");const[y]=await Promise.race([...b.values()]),_=b.delete(y);R(_,"waitList does not contain identifier")};let q=0;const w=new Map,I=(y,_)=>{q+=1;const O={value:_,index:y,cancel:null,state:null};w.set(y,O),m(async()=>{const N=a.exec(async()=>{if(O.state==="cancelled")throw new u;R(O.state==="scheduled","invalid task state");const Pe=w.delete(y);R(Pe,"Couldn't find index in scheduledList for removal");const $=await ft(()=>r(_,y,e));q-=1,A(y,_,$),$.status==="rejected"&&(v=!0,C(n?y:0))});return R(O.cancel===null,"task already has cancel"),O.cancel=()=>{R(O.state==="scheduled","task should be scheduled"),O.state="cancelled"},R(O.state===null,"task should have no state"),O.state="scheduled",N})},C=y=>{for(const _ of[...w.keys()].filter(O=>O>=y)){const O=w.get(_);R(O.cancel,"task does not have cancel"),O.cancel();const N=w.delete(_);R(N,"Couldn't find index in scheduledList for removal")}},g=()=>{s=!0,m(async()=>{const y=await ft(()=>i.next());if(s=!1,y.status==="fulfilled"){const{value:_,done:O}=y.value;O?c=!0:(o+=1,R(d===null,"fetchedValue should be null"),d=_,R(!l,"hasFetchedValue should be false"),l=!0)}else{c=!0,o+=1;const _=o;A(_,void 0,y),C(n?_:0)}})},A=(y,_,O)=>{n?(R(y-h-1>=0,"invalid index to insert"),R(f[y-h-1]===void 0,"already inserted result"),f[y-h-1]={index:y,value:_,snapshot:O}):f.push({index:y,value:_,snapshot:O})};for(g();;){for(await S();f.length>=1&&f[0]!==void 0;){const y=f.shift();if(h+=1,y.snapshot.status==="rejected")throw y.snapshot.reason;{let _=!1;try{yield y.snapshot.value,_=!0}finally{_||await i.return()}}}if(c&&o===h)return;l&&!v&&(I(o,d),l=!1,d=null),!s&&!c&&!v&&q<a.concurrency&&g()}}async function lt(e,r,t=1){for await(const n of Nf(e,r,t));}function Se(){const e=T.ref(!1),r=T.reactive({}),t=T.ref(!1),n=T.ref(!1);function i(){t.value=!0}function a(){e.value=!1,t.value=!1,n.value=!1}return{dirty:e,touched:t,validated:n,fields:r,setTouched:i,reset:a}}function Fi(e,r,t,n,i){const a=T.ref(r),u=[],o=T.ref(!1),s=T.reactive([]),l=i?.group,d=T.reactive([]),c=T.ref(!1),v=T.ref(!1);t?.length>0&&(i?.replace_rules?f(t):p(t));function h(g){a.value=g,c.value&&S()}function f(g){d.splice(0,d.length,...g)}function p(g){d.push(...g)}function b(g){n.groups[g]||(n.groups[g]=Se()),n.groups[g].fields[e]=C}function m(g){n.groups[g]&&delete n.groups[g].fields[e]}async function S(){s.splice(0,s.length);let g=!1;return(u.length===0||u.length>0&&u?.every(A=>!A.getAttribute("disabled")))&&(g=!0),g&&await lt(d,async A=>{const y=await A(T.toValue(r));y!==null&&s.push(y)}),q()}function q(){return s.length>0}function w(){c.value=!0}function I(){o.value=!1,c.value=!1,v.value=!1,s.splice(0,s.length)}const C={form_value:a,controls:u,dirty:o,errors:s,group:l,rules:d,touched:c,validated:v,setValue:h,replaceRules:f,appendRules:p,addToGroup:b,removeFromGroup:m,validate:S,isValid:q,setTouched:w,reset:I};return C}function Lf(e){const r=T.ref(!1),t=T.reactive([]),n=T.reactive({}),i=T.reactive({}),a=T.ref(!1),u=T.ref(!1);function o(f,p,b,m){const S=n[f];if(S)b&&b.length>0&&(m?.replace_rules?S.replaceRules(b):S.appendRules(b)),m?.group&&(i[m?.group]||(i[m?.group]=Se()),i[m?.group].fields[f]=S,S.group=m?.group);else if(!_e(p)){const q=Fi(f,p,b||[],h);n[f]=q,m?.group&&(i[m?.group]||(i[m?.group]=Se()),i[m?.group].fields[f]=q)}}function s(f){n[f].group&&delete i[n[f].group].fields[f],delete n[f]}async function l(f){if(f&&i[f]){const p=i[f];await lt(Object.keys(p.fields),async b=>{await p.fields[b].validate()}),i[f].validated.value=!0}else await lt(Object.keys(n),async p=>{await n[p].validate()}),u.value=!0;return d()}function d(f){let p=Object.keys(n);return f&&(p=Object.keys(i[f].fields)),p.every(b=>n[b].errors.length===0)}function c(){a.value=!0}function v(f){r.value=!1,a.value=!1,u.value=!1,t.splice(0,t.length),f&&i[f]?(i[f].reset(),We(i[f].fields,p=>{p.reset()})):We(n,p=>{p.reset()})}const h={dirty:r,errors:t,fields:n,groups:i,touched:a,validated:u,addField:o,removeField:s,validate:l,isValid:d,setTouched:c,reset:v};return e&&We(e,(f,p)=>{o(p,f.value,f.rules,{group:f.group})}),h}const xf=T.defineComponent({name:"FieldValidation",props:{el:{type:String,default:"button, input, select, textarea"},name:{type:String,required:!0},hideError:Boolean,modelValue:{type:null},modelModifiers:{default:()=>({})},replaceRules:{type:Boolean},rules:{type:Array,default(){return[]}},validator:{type:Object,required:!0},watchValue:{type:Boolean,default:!1}},data(){return{form_fields:[]}},computed:{field(){return this.validator.fields[this.name]},error(){return this.field&&this.field.errors.length?this.field.errors[0]:null}},watch:{modelValue:{handler(e){this.watchValue&&this.field?.setTouched(),this.field?.setValue(e)},deep:!0,immediate:!0}},mounted(){let e;Object.keys(this.modelModifiers).length===1&&(e=Object.keys(this.modelModifiers)[0]),_e(this.modelValue)||this.validator.addField(this.name,T.ref(this.modelValue),this.rules||[],{replace_rules:this.replaceRules||!1,group:e}),T.nextTick(()=>{const r=this.$refs.root,t=r.querySelectorAll(this.el);this.form_fields=Array.from(t),this.form_fields.forEach(n=>{n.getAttribute("has-validation")!=="true"&&(this.validator.fields[this.name]?.controls.push(n),n.addEventListener("blur",i=>{if(!r.contains(i.relatedTarget)){if(this.validator.setTouched(),this.validator.fields[this.name].group){const a=this.validator.fields[this.name].group;this.validator.groups[a].setTouched()}this.validator.fields[this.name].setTouched(),this.validator.fields[this.name].validate()}}),n.setAttribute("has-validation","true"))})})},beforeUnmount(){this.form_fields.forEach(e=>{Vs(this.validator.fields[this.name].controls,e)})}}),Bf=(e,r)=>{const t=e.__vccOpts||e;for(const[n,i]of r)t[n]=i;return t};function Uf(e,r,t,n,i,a){return T.openBlock(),T.createElementBlock("div",{ref:"root",class:T.normalizeClass({invalid:e.error})},[T.renderSlot(e.$slots,"default",{invalid:!!e.error,error_message:e.error})],2)}const Gf=Bf(xf,[["render",Uf]]);function Vf(e){return function(r){return typeof r<"u"&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(r)?null:e||"Please enter a valid email address"}}function zf(e,r){return function(t){return!e||t===e?null:r||"The value does not match"}}function Wf(e,r){return function(t){const n=new RegExp(e);return typeof t<"u"&&n.test(t)?null:r||"Please enter a valid value"}}function Hf(e,r){return function(t){let n=t;return typeof t=="string"&&(n=t.trim()),typeof n<"u"&&n.length<=e?null:r||`Value must not exceed ${e} characters`}}function Qf(e,r){return function(t){return typeof t<"u"&&t<=e?null:r||`Value must not exceed ${e}`}}function Kf(e,r){return function(t){let n=t;return typeof t=="string"&&(n=t.trim()),typeof n<"u"&&n.length>=e?null:r||`Value must be at least ${e} characters`}}function kf(e,r){return function(t){return typeof t<"u"&&t>=e?null:r||`Value must be at least ${e}`}}function Yf(e){return function(r){return Ns(r)?e||"This field is required":null}}function Xf(e,r){const t=Ls({min:1,max:1/0},r||{});return function(n){let i=!1;switch(typeof n){case"string":n.length>0&&(i=!0);break;case"number":n>=t.min&&n<=t.max&&(i=!0);break;case"boolean":t.allow_false?!_e(n)&&!Jt(n)&&(i=!0):n!==!1&&(i=!0);break;case"object":Array.isArray(n)?n.length>0&&(i=!0):Fs(n)||(i=!0);break;default:!_e(n)&&!Jt(n)&&(i=!0);break}return i?null:e||"This field is required"}}const Zf=Object.freeze(Object.defineProperty({__proto__:null,email:Vf,match:zf,matchRegExp:Wf,maxLength:Hf,maxValue:Qf,minLength:Kf,minValue:kf,notNil:Yf,required:Xf},Symbol.toStringTag,{value:"Module"}));function Ni(e){return[async r=>{try{const t=await e.safeParseAsync(r);return t.success?null:t.error.issues[0]?.message}catch(t){return t.message}}]}function Jf(e){const r={};return Object.keys(e.shape).forEach(n=>{r[n]={value:T.ref(null),rules:Ni(e.shape[n])}}),r}P.FieldValidation=Gf,P.rules=Zf,P.useFieldValidator=Fi,P.useFieldValidatorGroup=Se,P.useFormValidator=Lf,P.zodRule=Ni,P.zodSchema=Jf,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(P,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],T):(P=typeof globalThis<"u"?globalThis:P||self,T(P.Validation={},P.Vue))})(this,(function(P,T){"use strict";var ct=typeof global=="object"&&global&&global.Object===Object&&global,Li=typeof self=="object"&&self&&self.Object===Object&&self,M=ct||Li||Function("return this")(),G=M.Symbol,dt=Object.prototype,xi=dt.hasOwnProperty,Bi=dt.toString,J=G?G.toStringTag:void 0;function Ui(e){var r=xi.call(e,J),t=e[J];try{e[J]=void 0;var n=!0}catch{}var i=Bi.call(e);return n&&(r?e[J]=t:delete e[J]),i}var Gi=Object.prototype,Vi=Gi.toString;function zi(e){return Vi.call(e)}var Wi="[object Null]",Hi="[object Undefined]",vt=G?G.toStringTag:void 0;function H(e){return e==null?e===void 0?Hi:Wi:vt&&vt in Object(e)?Ui(e):zi(e)}function V(e){return e!=null&&typeof e=="object"}var Qi="[object Symbol]";function Ee(e){return typeof e=="symbol"||V(e)&&H(e)==Qi}function Ki(e,r){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t<n;)i[t]=r(e[t],t,e);return i}var D=Array.isArray,ht=G?G.prototype:void 0,pt=ht?ht.toString:void 0;function gt(e){if(typeof e=="string")return e;if(D(e))return Ki(e,gt)+"";if(Ee(e))return pt?pt.call(e):"";var r=e+"";return r=="0"&&1/e==-1/0?"-0":r}function z(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}function le(e){return e}var ki="[object AsyncFunction]",Yi="[object Function]",Xi="[object GeneratorFunction]",Zi="[object Proxy]";function qe(e){if(!z(e))return!1;var r=H(e);return r==Yi||r==Xi||r==ki||r==Zi}var Ie=M["__core-js_shared__"],yt=(function(){var e=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ji(e){return!!yt&&yt in e}var ea=Function.prototype,ra=ea.toString;function Q(e){if(e!=null){try{return ra.call(e)}catch{}try{return e+""}catch{}}return""}var ta=/[\\^$.*+?()[\]{}|]/g,na=/^\[object .+?Constructor\]$/,ia=Function.prototype,aa=Object.prototype,ua=ia.toString,oa=aa.hasOwnProperty,sa=RegExp("^"+ua.call(oa).replace(ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fa(e){if(!z(e)||Ji(e))return!1;var r=qe(e)?sa:na;return r.test(Q(e))}function la(e,r){return e?.[r]}function K(e,r){var t=la(e,r);return fa(t)?t:void 0}var Re=K(M,"WeakMap"),bt=Object.create,ca=(function(){function e(){}return function(r){if(!z(r))return{};if(bt)return bt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}})();function da(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}function va(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var ha=800,pa=16,ga=Date.now;function ya(e){var r=0,t=0;return function(){var n=ga(),i=pa-(n-t);if(t=n,i>0){if(++r>=ha)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}function ba(e){return function(){return e}}var ce=(function(){try{var e=K(Object,"defineProperty");return e({},"",{}),e}catch{}})(),ma=ce?function(e,r){return ce(e,"toString",{configurable:!0,enumerable:!1,value:ba(r),writable:!0})}:le,_a=ya(ma),Oa=9007199254740991,Ta=/^(?:0|[1-9]\d*)$/;function de(e,r){var t=typeof e;return r=r??Oa,!!r&&(t=="number"||t!="symbol"&&Ta.test(e))&&e>-1&&e%1==0&&e<r}function Ae(e,r,t){r=="__proto__"&&ce?ce(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}function ee(e,r){return e===r||e!==e&&r!==r}var wa=Object.prototype,Sa=wa.hasOwnProperty;function Pa(e,r,t){var n=e[r];(!(Sa.call(e,r)&&ee(n,t))||t===void 0&&!(r in e))&&Ae(e,r,t)}function Ea(e,r,t,n){var i=!t;t||(t={});for(var a=-1,u=r.length;++a<u;){var o=r[a],s=void 0;s===void 0&&(s=e[o]),i?Ae(t,o,s):Pa(t,o,s)}return t}var mt=Math.max;function qa(e,r,t){return r=mt(r===void 0?e.length-1:r,0),function(){for(var n=arguments,i=-1,a=mt(n.length-r,0),u=Array(a);++i<a;)u[i]=n[r+i];i=-1;for(var o=Array(r+1);++i<r;)o[i]=n[i];return o[r]=t(u),da(e,this,o)}}function Ia(e,r){return _a(qa(e,r,le),e+"")}var Ra=9007199254740991;function $e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ra}function re(e){return e!=null&&$e(e.length)&&!qe(e)}function Aa(e,r,t){if(!z(t))return!1;var n=typeof r;return(n=="number"?re(t)&&de(r,t.length):n=="string"&&r in t)?ee(t[r],e):!1}function $a(e){return Ia(function(r,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,u&&Aa(t[0],t[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++n<i;){var o=t[n];o&&e(r,o,n,a)}return r})}var Ca=Object.prototype;function ve(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Ca;return e===t}function ja(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var Da="[object Arguments]";function _t(e){return V(e)&&H(e)==Da}var Ot=Object.prototype,Ma=Ot.hasOwnProperty,Fa=Ot.propertyIsEnumerable,te=_t((function(){return arguments})())?_t:function(e){return V(e)&&Ma.call(e,"callee")&&!Fa.call(e,"callee")};function Na(){return!1}var Tt=typeof P=="object"&&P&&!P.nodeType&&P,wt=Tt&&typeof module=="object"&&module&&!module.nodeType&&module,La=wt&&wt.exports===Tt,St=La?M.Buffer:void 0,xa=St?St.isBuffer:void 0,ne=xa||Na,Ba="[object Arguments]",Ua="[object Array]",Ga="[object Boolean]",Va="[object Date]",za="[object Error]",Wa="[object Function]",Ha="[object Map]",Qa="[object Number]",Ka="[object Object]",ka="[object RegExp]",Ya="[object Set]",Xa="[object String]",Za="[object WeakMap]",Ja="[object ArrayBuffer]",eu="[object DataView]",ru="[object Float32Array]",tu="[object Float64Array]",nu="[object Int8Array]",iu="[object Int16Array]",au="[object Int32Array]",uu="[object Uint8Array]",ou="[object Uint8ClampedArray]",su="[object Uint16Array]",fu="[object Uint32Array]",E={};E[ru]=E[tu]=E[nu]=E[iu]=E[au]=E[uu]=E[ou]=E[su]=E[fu]=!0,E[Ba]=E[Ua]=E[Ja]=E[Ga]=E[eu]=E[Va]=E[za]=E[Wa]=E[Ha]=E[Qa]=E[Ka]=E[ka]=E[Ya]=E[Xa]=E[Za]=!1;function lu(e){return V(e)&&$e(e.length)&&!!E[H(e)]}function cu(e){return function(r){return e(r)}}var Pt=typeof P=="object"&&P&&!P.nodeType&&P,ie=Pt&&typeof module=="object"&&module&&!module.nodeType&&module,du=ie&&ie.exports===Pt,Ce=du&&ct.process,Et=(function(){try{var e=ie&&ie.require&&ie.require("util").types;return e||Ce&&Ce.binding&&Ce.binding("util")}catch{}})(),qt=Et&&Et.isTypedArray,he=qt?cu(qt):lu,vu=Object.prototype,hu=vu.hasOwnProperty;function It(e,r){var t=D(e),n=!t&&te(e),i=!t&&!n&&ne(e),a=!t&&!n&&!i&&he(e),u=t||n||i||a,o=u?ja(e.length,String):[],s=o.length;for(var l in e)(r||hu.call(e,l))&&!(u&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||de(l,s)))&&o.push(l);return o}function Rt(e,r){return function(t){return e(r(t))}}var pu=Rt(Object.keys,Object),gu=Object.prototype,yu=gu.hasOwnProperty;function At(e){if(!ve(e))return pu(e);var r=[];for(var t in Object(e))yu.call(e,t)&&t!="constructor"&&r.push(t);return r}function $t(e){return re(e)?It(e):At(e)}function bu(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var mu=Object.prototype,_u=mu.hasOwnProperty;function Ou(e){if(!z(e))return bu(e);var r=ve(e),t=[];for(var n in e)n=="constructor"&&(r||!_u.call(e,n))||t.push(n);return t}function je(e){return re(e)?It(e,!0):Ou(e)}var Tu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wu=/^\w*$/;function De(e,r){if(D(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Ee(e)?!0:wu.test(e)||!Tu.test(e)||r!=null&&e in Object(r)}var ae=K(Object,"create");function Su(){this.__data__=ae?ae(null):{},this.size=0}function Pu(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Eu="__lodash_hash_undefined__",qu=Object.prototype,Iu=qu.hasOwnProperty;function Ru(e){var r=this.__data__;if(ae){var t=r[e];return t===Eu?void 0:t}return Iu.call(r,e)?r[e]:void 0}var Au=Object.prototype,$u=Au.hasOwnProperty;function Cu(e){var r=this.__data__;return ae?r[e]!==void 0:$u.call(r,e)}var ju="__lodash_hash_undefined__";function Du(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=ae&&r===void 0?ju:r,this}function k(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}k.prototype.clear=Su,k.prototype.delete=Pu,k.prototype.get=Ru,k.prototype.has=Cu,k.prototype.set=Du;function Mu(){this.__data__=[],this.size=0}function pe(e,r){for(var t=e.length;t--;)if(ee(e[t][0],r))return t;return-1}var Fu=Array.prototype,Nu=Fu.splice;function Lu(e){var r=this.__data__,t=pe(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Nu.call(r,t,1),--this.size,!0}function xu(e){var r=this.__data__,t=pe(r,e);return t<0?void 0:r[t][1]}function Bu(e){return pe(this.__data__,e)>-1}function Uu(e,r){var t=this.__data__,n=pe(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}function L(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}L.prototype.clear=Mu,L.prototype.delete=Lu,L.prototype.get=xu,L.prototype.has=Bu,L.prototype.set=Uu;var ue=K(M,"Map");function Gu(){this.size=0,this.__data__={hash:new k,map:new(ue||L),string:new k}}function Vu(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function ge(e,r){var t=e.__data__;return Vu(r)?t[typeof r=="string"?"string":"hash"]:t.map}function zu(e){var r=ge(this,e).delete(e);return this.size-=r?1:0,r}function Wu(e){return ge(this,e).get(e)}function Hu(e){return ge(this,e).has(e)}function Qu(e,r){var t=ge(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}function x(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}x.prototype.clear=Gu,x.prototype.delete=zu,x.prototype.get=Wu,x.prototype.has=Hu,x.prototype.set=Qu;var Ku="Expected a function";function Me(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Ku);var t=function(){var n=arguments,i=r?r.apply(this,n):n[0],a=t.cache;if(a.has(i))return a.get(i);var u=e.apply(this,n);return t.cache=a.set(i,u)||a,u};return t.cache=new(Me.Cache||x),t}Me.Cache=x;var ku=500;function Yu(e){var r=Me(e,function(n){return t.size===ku&&t.clear(),n}),t=r.cache;return r}var Xu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zu=/\\(\\)?/g,Ju=Yu(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Xu,function(t,n,i,a){r.push(i?a.replace(Zu,"$1"):n||t)}),r});function eo(e){return e==null?"":gt(e)}function Fe(e,r){return D(e)?e:De(e,r)?[e]:Ju(eo(e))}function oe(e){if(typeof e=="string"||Ee(e))return e;var r=e+"";return r=="0"&&1/e==-1/0?"-0":r}function Ne(e,r){r=Fe(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[oe(r[t++])];return t&&t==n?e:void 0}function ro(e,r,t){var n=e==null?void 0:Ne(e,r);return n===void 0?t:n}function to(e,r){for(var t=-1,n=r.length,i=e.length;++t<n;)e[i+t]=r[t];return e}var Ct=Rt(Object.getPrototypeOf,Object),no="[object Object]",io=Function.prototype,ao=Object.prototype,jt=io.toString,uo=ao.hasOwnProperty,oo=jt.call(Object);function so(e){if(!V(e)||H(e)!=no)return!1;var r=Ct(e);if(r===null)return!0;var t=uo.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&jt.call(t)==oo}function fo(e,r,t){var n=-1,i=e.length;r<0&&(r=-r>i?0:i+r),t=t>i?i:t,t<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+r];return a}function lo(){this.__data__=new L,this.size=0}function co(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}function vo(e){return this.__data__.get(e)}function ho(e){return this.__data__.has(e)}var po=200;function go(e,r){var t=this.__data__;if(t instanceof L){var n=t.__data__;if(!ue||n.length<po-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new x(n)}return t.set(e,r),this.size=t.size,this}function F(e){var r=this.__data__=new L(e);this.size=r.size}F.prototype.clear=lo,F.prototype.delete=co,F.prototype.get=vo,F.prototype.has=ho,F.prototype.set=go;var Dt=typeof P=="object"&&P&&!P.nodeType&&P,Mt=Dt&&typeof module=="object"&&module&&!module.nodeType&&module,yo=Mt&&Mt.exports===Dt,Ft=yo?M.Buffer:void 0;Ft&&Ft.allocUnsafe;function bo(e,r){return e.slice()}function mo(e,r){for(var t=-1,n=e==null?0:e.length,i=0,a=[];++t<n;){var u=e[t];r(u,t,e)&&(a[i++]=u)}return a}function _o(){return[]}var Oo=Object.prototype,To=Oo.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,wo=Nt?function(e){return e==null?[]:(e=Object(e),mo(Nt(e),function(r){return To.call(e,r)}))}:_o;function So(e,r,t){var n=r(e);return D(e)?n:to(n,t(e))}function Lt(e){return So(e,$t,wo)}var Le=K(M,"DataView"),xe=K(M,"Promise"),Be=K(M,"Set"),xt="[object Map]",Po="[object Object]",Bt="[object Promise]",Ut="[object Set]",Gt="[object WeakMap]",Vt="[object DataView]",Eo=Q(Le),qo=Q(ue),Io=Q(xe),Ro=Q(Be),Ao=Q(Re),B=H;(Le&&B(new Le(new ArrayBuffer(1)))!=Vt||ue&&B(new ue)!=xt||xe&&B(xe.resolve())!=Bt||Be&&B(new Be)!=Ut||Re&&B(new Re)!=Gt)&&(B=function(e){var r=H(e),t=r==Po?e.constructor:void 0,n=t?Q(t):"";if(n)switch(n){case Eo:return Vt;case qo:return xt;case Io:return Bt;case Ro:return Ut;case Ao:return Gt}return r});var ye=M.Uint8Array;function $o(e){var r=new e.constructor(e.byteLength);return new ye(r).set(new ye(e)),r}function Co(e,r){var t=$o(e.buffer);return new e.constructor(t,e.byteOffset,e.length)}function jo(e){return typeof e.constructor=="function"&&!ve(e)?ca(Ct(e)):{}}var Do="__lodash_hash_undefined__";function Mo(e){return this.__data__.set(e,Do),this}function Fo(e){return this.__data__.has(e)}function be(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new x;++r<t;)this.add(e[r])}be.prototype.add=be.prototype.push=Mo,be.prototype.has=Fo;function No(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}function Lo(e,r){return e.has(r)}var xo=1,Bo=2;function zt(e,r,t,n,i,a){var u=t&xo,o=e.length,s=r.length;if(o!=s&&!(u&&s>o))return!1;var l=a.get(e),d=a.get(r);if(l&&d)return l==r&&d==e;var c=-1,v=!0,h=t&Bo?new be:void 0;for(a.set(e,r),a.set(r,e);++c<o;){var f=e[c],p=r[c];if(n)var b=u?n(p,f,c,r,e,a):n(f,p,c,e,r,a);if(b!==void 0){if(b)continue;v=!1;break}if(h){if(!No(r,function(m,S){if(!Lo(h,S)&&(f===m||i(f,m,t,n,a)))return h.push(S)})){v=!1;break}}else if(!(f===p||i(f,p,t,n,a))){v=!1;break}}return a.delete(e),a.delete(r),v}function Uo(e){var r=-1,t=Array(e.size);return e.forEach(function(n,i){t[++r]=[i,n]}),t}function Go(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Vo=1,zo=2,Wo="[object Boolean]",Ho="[object Date]",Qo="[object Error]",Ko="[object Map]",ko="[object Number]",Yo="[object RegExp]",Xo="[object Set]",Zo="[object String]",Jo="[object Symbol]",es="[object ArrayBuffer]",rs="[object DataView]",Wt=G?G.prototype:void 0,Ue=Wt?Wt.valueOf:void 0;function ts(e,r,t,n,i,a,u){switch(t){case rs:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case es:return!(e.byteLength!=r.byteLength||!a(new ye(e),new ye(r)));case Wo:case Ho:case ko:return ee(+e,+r);case Qo:return e.name==r.name&&e.message==r.message;case Yo:case Zo:return e==r+"";case Ko:var o=Uo;case Xo:var s=n&Vo;if(o||(o=Go),e.size!=r.size&&!s)return!1;var l=u.get(e);if(l)return l==r;n|=zo,u.set(e,r);var d=zt(o(e),o(r),n,i,a,u);return u.delete(e),d;case Jo:if(Ue)return Ue.call(e)==Ue.call(r)}return!1}var ns=1,is=Object.prototype,as=is.hasOwnProperty;function us(e,r,t,n,i,a){var u=t&ns,o=Lt(e),s=o.length,l=Lt(r),d=l.length;if(s!=d&&!u)return!1;for(var c=s;c--;){var v=o[c];if(!(u?v in r:as.call(r,v)))return!1}var h=a.get(e),f=a.get(r);if(h&&f)return h==r&&f==e;var p=!0;a.set(e,r),a.set(r,e);for(var b=u;++c<s;){v=o[c];var m=e[v],S=r[v];if(n)var q=u?n(S,m,v,r,e,a):n(m,S,v,e,r,a);if(!(q===void 0?m===S||i(m,S,t,n,a):q)){p=!1;break}b||(b=v=="constructor")}if(p&&!b){var w=e.constructor,I=r.constructor;w!=I&&"constructor"in e&&"constructor"in r&&!(typeof w=="function"&&w instanceof w&&typeof I=="function"&&I instanceof I)&&(p=!1)}return a.delete(e),a.delete(r),p}var os=1,Ht="[object Arguments]",Qt="[object Array]",me="[object Object]",ss=Object.prototype,Kt=ss.hasOwnProperty;function fs(e,r,t,n,i,a){var u=D(e),o=D(r),s=u?Qt:B(e),l=o?Qt:B(r);s=s==Ht?me:s,l=l==Ht?me:l;var d=s==me,c=l==me,v=s==l;if(v&&ne(e)){if(!ne(r))return!1;u=!0,d=!1}if(v&&!d)return a||(a=new F),u||he(e)?zt(e,r,t,n,i,a):ts(e,r,s,t,n,i,a);if(!(t&os)){var h=d&&Kt.call(e,"__wrapped__"),f=c&&Kt.call(r,"__wrapped__");if(h||f){var p=h?e.value():e,b=f?r.value():r;return a||(a=new F),i(p,b,t,n,a)}}return v?(a||(a=new F),us(e,r,t,n,i,a)):!1}function Ge(e,r,t,n,i){return e===r?!0:e==null||r==null||!V(e)&&!V(r)?e!==e&&r!==r:fs(e,r,t,n,Ge,i)}var ls=1,cs=2;function ds(e,r,t,n){var i=t.length,a=i;if(e==null)return!a;for(e=Object(e);i--;){var u=t[i];if(u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){u=t[i];var o=u[0],s=e[o],l=u[1];if(u[2]){if(s===void 0&&!(o in e))return!1}else{var d=new F,c;if(!(c===void 0?Ge(l,s,ls|cs,n,d):c))return!1}}return!0}function kt(e){return e===e&&!z(e)}function vs(e){for(var r=$t(e),t=r.length;t--;){var n=r[t],i=e[n];r[t]=[n,i,kt(i)]}return r}function Yt(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}function hs(e){var r=vs(e);return r.length==1&&r[0][2]?Yt(r[0][0],r[0][1]):function(t){return t===e||ds(t,e,r)}}function ps(e,r){return e!=null&&r in Object(e)}function gs(e,r,t){r=Fe(r,e);for(var n=-1,i=r.length,a=!1;++n<i;){var u=oe(r[n]);if(!(a=e!=null&&t(e,u)))break;e=e[u]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&$e(i)&&de(u,i)&&(D(e)||te(e)))}function ys(e,r){return e!=null&&gs(e,r,ps)}var bs=1,ms=2;function _s(e,r){return De(e)&&kt(r)?Yt(oe(e),r):function(t){var n=ro(t,e);return n===void 0&&n===r?ys(t,e):Ge(r,n,bs|ms)}}function Os(e){return function(r){return r?.[e]}}function Ts(e){return function(r){return Ne(r,e)}}function ws(e){return De(e)?Os(oe(e)):Ts(e)}function Ss(e){return typeof e=="function"?e:e==null?le:typeof e=="object"?D(e)?_s(e[0],e[1]):hs(e):ws(e)}function Ps(e){return function(r,t,n){for(var i=-1,a=Object(r),u=n(r),o=u.length;o--;){var s=u[++i];if(t(a[s],s,a)===!1)break}return r}}var Xt=Ps();function Ve(e,r,t){(t!==void 0&&!ee(e[r],t)||t===void 0&&!(r in e))&&Ae(e,r,t)}function Es(e){return V(e)&&re(e)}function ze(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}function qs(e){return Ea(e,je(e))}function Is(e,r,t,n,i,a,u){var o=ze(e,t),s=ze(r,t),l=u.get(s);if(l){Ve(e,t,l);return}var d=a?a(o,s,t+"",e,r,u):void 0,c=d===void 0;if(c){var v=D(s),h=!v&&ne(s),f=!v&&!h&&he(s);d=s,v||h||f?D(o)?d=o:Es(o)?d=va(o):h?(c=!1,d=bo(s)):f?(c=!1,d=Co(s)):d=[]:so(s)||te(s)?(d=o,te(o)?d=qs(o):(!z(o)||qe(o))&&(d=jo(s))):c=!1}c&&(u.set(s,d),i(d,s,n,a,u),u.delete(s)),Ve(e,t,d)}function Zt(e,r,t,n,i){e!==r&&Xt(r,function(a,u){if(i||(i=new F),z(a))Is(e,r,u,t,Zt,n,i);else{var o=n?n(ze(e,u),a,u+"",e,r,i):void 0;o===void 0&&(o=a),Ve(e,u,o)}},je)}function Rs(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}function As(e){return typeof e=="function"?e:le}function We(e,r){return e==null?e:Xt(e,As(r),je)}function $s(e,r){return r.length<2?e:Ne(e,fo(r,0,-1))}var Cs="[object Map]",js="[object Set]",Ds=Object.prototype,Ms=Ds.hasOwnProperty;function Fs(e){if(e==null)return!0;if(re(e)&&(D(e)||typeof e=="string"||typeof e.splice=="function"||ne(e)||he(e)||te(e)))return!e.length;var r=B(e);if(r==Cs||r==js)return!e.size;if(ve(e))return!At(e).length;for(var t in e)if(Ms.call(e,t))return!1;return!0}function Ns(e){return e==null}function Jt(e){return e===null}function _e(e){return e===void 0}var Ls=$a(function(e,r,t){Zt(e,r,t)});function xs(e,r){return r=Fe(r,e),e=$s(e,r),e==null||delete e[oe(Rs(r))]}var Bs=Array.prototype,Us=Bs.splice;function Gs(e,r){for(var t=e?r.length:0,n=t-1;t--;){var i=r[t];if(t==n||i!==a){var a=i;de(i)?Us.call(e,i,1):xs(e,i)}}return e}function Vs(e,r){var t=[];if(!(e&&e.length))return t;var n=-1,i=[],a=e.length;for(r=Ss(r);++n<a;){var u=e[n];r(u,n,e)&&(t.push(u),i.push(n))}return Gs(e,i),t}async function*zs(e){for await(const r of e)yield r}var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He,tn;function Ws(){if(tn)return He;tn=1,He=r;class e extends Error{}e.prototype.name="AssertionError";function r(t,n){if(!t){var i=new e(n);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}}return He}var Hs=Ws();const R=rn(Hs);function nn(e){return R(typeof e=="function","fct must be a function"),async function(){return e(...arguments)}}class an extends Error{constructor(r){super(r),this.name=this.constructor.name}}class Qs{constructor(){this._promise=new Promise((r,t)=>{this._resolve=r,this._reject=t})}get promise(){return this._promise}get resolve(){return this._resolve}get reject(){return this._reject}}var se,un;function j(){if(un)return se;un=1;var e=function(r){return r&&r.Math===Math&&r};return se=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof en=="object"&&en)||e(typeof se=="object"&&se)||(function(){return this})()||Function("return this")(),se}var Qe,on;function U(){return on||(on=1,Qe=function(e){try{return!!e()}catch{return!0}}),Qe}var Ke,sn;function Oe(){if(sn)return Ke;sn=1;var e=U();return Ke=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),Ke}var ke,fn;function ln(){if(fn)return ke;fn=1;var e=Oe(),r=Function.prototype,t=r.apply,n=r.call;return ke=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(t):function(){return n.apply(t,arguments)}),ke}var Ye,cn;function Y(){if(cn)return Ye;cn=1;var e=Oe(),r=Function.prototype,t=r.call,n=e&&r.bind.bind(t,t);return Ye=e?n:function(i){return function(){return t.apply(i,arguments)}},Ye}var Xe,dn;function Ze(){if(dn)return Xe;dn=1;var e=Y(),r=e({}.toString),t=e("".slice);return Xe=function(n){return t(r(n),8,-1)},Xe}var Je,vn;function hn(){if(vn)return Je;vn=1;var e=Ze(),r=Y();return Je=function(t){if(e(t)==="Function")return r(t)},Je}var er,pn;function W(){if(pn)return er;pn=1;var e=typeof document=="object"&&document.all;return er=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},er}var rr={},tr,gn;function X(){if(gn)return tr;gn=1;var e=U();return tr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),tr}var nr,yn;function ir(){if(yn)return nr;yn=1;var e=Oe(),r=Function.prototype.call;return nr=e?r.bind(r):function(){return r.apply(r,arguments)},nr}var ar={},bn;function Ks(){if(bn)return ar;bn=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,t=r&&!e.call({1:2},1);return ar.f=t?function(i){var a=r(this,i);return!!a&&a.enumerable}:e,ar}var ur,mn;function _n(){return mn||(mn=1,ur=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),ur}var or,On;function ks(){if(On)return or;On=1;var e=Y(),r=U(),t=Ze(),n=Object,i=e("".split);return or=r(function(){return!n("z").propertyIsEnumerable(0)})?function(a){return t(a)==="String"?i(a,""):n(a)}:n,or}var sr,Tn;function wn(){return Tn||(Tn=1,sr=function(e){return e==null}),sr}var fr,Sn;function Pn(){if(Sn)return fr;Sn=1;var e=wn(),r=TypeError;return fr=function(t){if(e(t))throw new r("Can't call method on "+t);return t},fr}var lr,En;function Ys(){if(En)return lr;En=1;var e=ks(),r=Pn();return lr=function(t){return e(r(t))},lr}var cr,qn;function Te(){if(qn)return cr;qn=1;var e=W();return cr=function(r){return typeof r=="object"?r!==null:e(r)},cr}var dr,In;function vr(){return In||(In=1,dr={}),dr}var hr,Rn;function An(){if(Rn)return hr;Rn=1;var e=vr(),r=j(),t=W(),n=function(i){return t(i)?i:void 0};return hr=function(i,a){return arguments.length<2?n(e[i])||n(r[i]):e[i]&&e[i][a]||r[i]&&r[i][a]},hr}var pr,$n;function Xs(){if($n)return pr;$n=1;var e=Y();return pr=e({}.isPrototypeOf),pr}var gr,Cn;function fe(){if(Cn)return gr;Cn=1;var e=j(),r=e.navigator,t=r&&r.userAgent;return gr=t?String(t):"",gr}var yr,jn;function Zs(){if(jn)return yr;jn=1;var e=j(),r=fe(),t=e.process,n=e.Deno,i=t&&t.versions||n&&n.version,a=i&&i.v8,u,o;return a&&(u=a.split("."),o=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!o&&r&&(u=r.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=r.match(/Chrome\/(\d+)/),u&&(o=+u[1]))),yr=o,yr}var br,Dn;function Mn(){if(Dn)return br;Dn=1;var e=Zs(),r=U(),t=j(),n=t.String;return br=!!Object.getOwnPropertySymbols&&!r(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),br}var mr,Fn;function Nn(){if(Fn)return mr;Fn=1;var e=Mn();return mr=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mr}var _r,Ln;function xn(){if(Ln)return _r;Ln=1;var e=An(),r=W(),t=Xs(),n=Nn(),i=Object;return _r=n?function(a){return typeof a=="symbol"}:function(a){var u=e("Symbol");return r(u)&&t(u.prototype,i(a))},_r}var Or,Bn;function Js(){if(Bn)return Or;Bn=1;var e=String;return Or=function(r){try{return e(r)}catch{return"Object"}},Or}var Tr,Un;function wr(){if(Un)return Tr;Un=1;var e=W(),r=Js(),t=TypeError;return Tr=function(n){if(e(n))return n;throw new t(r(n)+" is not a function")},Tr}var Sr,Gn;function ef(){if(Gn)return Sr;Gn=1;var e=wr(),r=wn();return Sr=function(t,n){var i=t[n];return r(i)?void 0:e(i)},Sr}var Pr,Vn;function rf(){if(Vn)return Pr;Vn=1;var e=ir(),r=W(),t=Te(),n=TypeError;return Pr=function(i,a){var u,o;if(a==="string"&&r(u=i.toString)&&!t(o=e(u,i))||r(u=i.valueOf)&&!t(o=e(u,i))||a!=="string"&&r(u=i.toString)&&!t(o=e(u,i)))return o;throw new n("Can't convert object to primitive value")},Pr}var Er={exports:{}},qr,zn;function tf(){return zn||(zn=1,qr=!0),qr}var Ir,Wn;function nf(){if(Wn)return Ir;Wn=1;var e=j(),r=Object.defineProperty;return Ir=function(t,n){try{r(e,t,{value:n,configurable:!0,writable:!0})}catch{e[t]=n}return n},Ir}var Hn;function af(){if(Hn)return Er.exports;Hn=1;var e=tf(),r=j(),t=nf(),n="__core-js_shared__",i=Er.exports=r[n]||t(n,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Er.exports}var Rr,Qn;function uf(){if(Qn)return Rr;Qn=1;var e=af();return Rr=function(r,t){return e[r]||(e[r]=t||{})},Rr}var Ar,Kn;function of(){if(Kn)return Ar;Kn=1;var e=Pn(),r=Object;return Ar=function(t){return r(e(t))},Ar}var $r,kn;function we(){if(kn)return $r;kn=1;var e=Y(),r=of(),t=e({}.hasOwnProperty);return $r=Object.hasOwn||function(i,a){return t(r(i),a)},$r}var Cr,Yn;function sf(){if(Yn)return Cr;Yn=1;var e=Y(),r=0,t=Math.random(),n=e(1.1.toString);return Cr=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++r+t,36)},Cr}var jr,Xn;function ff(){if(Xn)return jr;Xn=1;var e=j(),r=uf(),t=we(),n=sf(),i=Mn(),a=Nn(),u=e.Symbol,o=r("wks"),s=a?u.for||u:u&&u.withoutSetter||n;return jr=function(l){return t(o,l)||(o[l]=i&&t(u,l)?u[l]:s("Symbol."+l)),o[l]},jr}var Dr,Zn;function lf(){if(Zn)return Dr;Zn=1;var e=ir(),r=Te(),t=xn(),n=ef(),i=rf(),a=ff(),u=TypeError,o=a("toPrimitive");return Dr=function(s,l){if(!r(s)||t(s))return s;var d=n(s,o),c;if(d){if(l===void 0&&(l="default"),c=e(d,s,l),!r(c)||t(c))return c;throw new u("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(s,l)},Dr}var Mr,Jn;function ei(){if(Jn)return Mr;Jn=1;var e=lf(),r=xn();return Mr=function(t){var n=e(t,"string");return r(n)?n:n+""},Mr}var Fr,ri;function ti(){if(ri)return Fr;ri=1;var e=j(),r=Te(),t=e.document,n=r(t)&&r(t.createElement);return Fr=function(i){return n?t.createElement(i):{}},Fr}var Nr,ni;function ii(){if(ni)return Nr;ni=1;var e=X(),r=U(),t=ti();return Nr=!e&&!r(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),Nr}var ai;function cf(){if(ai)return rr;ai=1;var e=X(),r=ir(),t=Ks(),n=_n(),i=Ys(),a=ei(),u=we(),o=ii(),s=Object.getOwnPropertyDescriptor;return rr.f=e?s:function(d,c){if(d=i(d),c=a(c),o)try{return s(d,c)}catch{}if(u(d,c))return n(!r(t.f,d,c),d[c])},rr}var Lr,ui;function df(){if(ui)return Lr;ui=1;var e=U(),r=W(),t=/#|\.prototype\./,n=function(s,l){var d=a[i(s)];return d===o?!0:d===u?!1:r(l)?e(l):!!l},i=n.normalize=function(s){return String(s).replace(t,".").toLowerCase()},a=n.data={},u=n.NATIVE="N",o=n.POLYFILL="P";return Lr=n,Lr}var xr,oi;function Br(){if(oi)return xr;oi=1;var e=hn(),r=wr(),t=Oe(),n=e(e.bind);return xr=function(i,a){return r(i),a===void 0?i:t?n(i,a):function(){return i.apply(a,arguments)}},xr}var Ur={},Gr,si;function vf(){if(si)return Gr;si=1;var e=X(),r=U();return Gr=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Gr}var Vr,fi;function hf(){if(fi)return Vr;fi=1;var e=Te(),r=String,t=TypeError;return Vr=function(n){if(e(n))return n;throw new t(r(n)+" is not an object")},Vr}var li;function pf(){if(li)return Ur;li=1;var e=X(),r=ii(),t=vf(),n=hf(),i=ei(),a=TypeError,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s="enumerable",l="configurable",d="writable";return Ur.f=e?t?function(v,h,f){if(n(v),h=i(h),n(f),typeof v=="function"&&h==="prototype"&&"value"in f&&d in f&&!f[d]){var p=o(v,h);p&&p[d]&&(v[h]=f.value,f={configurable:l in f?f[l]:p[l],enumerable:s in f?f[s]:p[s],writable:!1})}return u(v,h,f)}:u:function(v,h,f){if(n(v),h=i(h),n(f),r)try{return u(v,h,f)}catch{}if("get"in f||"set"in f)throw new a("Accessors not supported");return"value"in f&&(v[h]=f.value),v},Ur}var zr,ci;function gf(){if(ci)return zr;ci=1;var e=X(),r=pf(),t=_n();return zr=e?function(n,i,a){return r.f(n,i,t(1,a))}:function(n,i,a){return n[i]=a,n},zr}var Wr,di;function yf(){if(di)return Wr;di=1;var e=j(),r=ln(),t=hn(),n=W(),i=cf().f,a=df(),u=vr(),o=Br(),s=gf(),l=we(),d=function(c){var v=function(h,f,p){if(this instanceof v){switch(arguments.length){case 0:return new c;case 1:return new c(h);case 2:return new c(h,f)}return new c(h,f,p)}return r(c,this,arguments)};return v.prototype=c.prototype,v};return Wr=function(c,v){var h=c.target,f=c.global,p=c.stat,b=c.proto,m=f?e:p?e[h]:e[h]&&e[h].prototype,S=f?u:u[h]||s(u,h,{})[h],q=S.prototype,w,I,C,g,A,y,_,O,N;for(g in v)w=a(f?g:h+(p?".":"#")+g,c.forced),I=!w&&m&&l(m,g),y=S[g],I&&(c.dontCallGetSet?(N=i(m,g),_=N&&N.value):_=m[g]),A=I&&_?_:v[g],!(!w&&!b&&typeof y==typeof A)&&(c.bind&&I?O=o(A,e):c.wrap&&I?O=d(A):b&&n(A)?O=t(A):O=A,(c.sham||A&&A.sham||y&&y.sham)&&s(O,"sham",!0),s(S,g,O),b&&(C=h+"Prototype",l(u,C)||s(u,C,{}),s(u[C],g,A),c.real&&q&&(w||!q[g])&&s(q,g,A)))},Wr}var Hr,vi;function bf(){if(vi)return Hr;vi=1;var e=An();return Hr=e("document","documentElement"),Hr}var Qr,hi;function mf(){if(hi)return Qr;hi=1;var e=Y();return Qr=e([].slice),Qr}var Kr,pi;function gi(){if(pi)return Kr;pi=1;var e=TypeError;return Kr=function(r,t){if(r<t)throw new e("Not enough arguments");return r},Kr}var kr,yi;function bi(){if(yi)return kr;yi=1;var e=fe();return kr=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),kr}var Yr,mi;function _f(){if(mi)return Yr;mi=1;var e=j(),r=fe(),t=Ze(),n=function(i){return r.slice(0,i.length)===i};return Yr=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"})(),Yr}var Xr,_i;function Oi(){if(_i)return Xr;_i=1;var e=_f();return Xr=e==="NODE",Xr}var Zr,Ti;function Of(){if(Ti)return Zr;Ti=1;var e=j(),r=ln(),t=Br(),n=W(),i=we(),a=U(),u=bf(),o=mf(),s=ti(),l=gi(),d=bi(),c=Oi(),v=e.setImmediate,h=e.clearImmediate,f=e.process,p=e.Dispatch,b=e.Function,m=e.MessageChannel,S=e.String,q=0,w={},I="onreadystatechange",C,g,A,y;a(function(){C=e.location});var _=function($){if(i(w,$)){var Z=w[$];delete w[$],Z()}},O=function($){return function(){_($)}},N=function($){_($.data)},Pe=function($){e.postMessage(S($),C.protocol+"//"+C.host)};return(!v||!h)&&(v=function(Z){l(arguments.length,1);var el=n(Z)?Z:b(Z),rl=o(arguments,1);return w[++q]=function(){r(el,void 0,rl)},g(q),q},h=function(Z){delete w[Z]},c?g=function($){f.nextTick(O($))}:p&&p.now?g=function($){p.now(O($))}:m&&!d?(A=new m,y=A.port2,A.port1.onmessage=N,g=t(y.postMessage,y)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&C&&C.protocol!=="file:"&&!a(Pe)?(g=Pe,e.addEventListener("message",N,!1)):I in s("script")?g=function($){u.appendChild(s("script"))[I]=function(){u.removeChild(this),_($)}}:g=function($){setTimeout(O($),0)}),Zr={set:v,clear:h},Zr}var wi={},Jr,Si;function Tf(){if(Si)return Jr;Si=1;var e=j(),r=X(),t=Object.getOwnPropertyDescriptor;return Jr=function(n){if(!r)return e[n];var i=t(e,n);return i&&i.value},Jr}var et,Pi;function wf(){if(Pi)return et;Pi=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r){var t=this.head=r.next;return t===null&&(this.tail=null),r.item}}},et=e,et}var rt,Ei;function Sf(){if(Ei)return rt;Ei=1;var e=fe();return rt=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",rt}var tt,qi;function Pf(){if(qi)return tt;qi=1;var e=fe();return tt=/web0s(?!.*chrome)/i.test(e),tt}var nt,Ii;function Ef(){if(Ii)return nt;Ii=1;var e=j(),r=Tf(),t=Br(),n=Of().set,i=wf(),a=bi(),u=Sf(),o=Pf(),s=Oi(),l=e.MutationObserver||e.WebKitMutationObserver,d=e.document,c=e.process,v=e.Promise,h=r("queueMicrotask"),f,p,b,m,S;if(!h){var q=new i,w=function(){var I,C;for(s&&(I=c.domain)&&I.exit();C=q.get();)try{C()}catch(g){throw q.head&&f(),g}I&&I.enter()};!a&&!s&&!o&&l&&d?(p=!0,b=d.createTextNode(""),new l(w).observe(b,{characterData:!0}),f=function(){b.data=p=!p}):!u&&v&&v.resolve?(m=v.resolve(void 0),m.constructor=v,S=t(m.then,m),f=function(){S(w)}):s?f=function(){c.nextTick(w)}:(n=t(n,e),f=function(){n(w)}),h=function(I){q.head||f(),q.add(I)}}return nt=h,nt}var Ri;function qf(){if(Ri)return wi;Ri=1;var e=yf(),r=j(),t=Ef(),n=wr(),i=gi(),a=U(),u=X(),o=a(function(){return u&&Object.getOwnPropertyDescriptor(r,"queueMicrotask").value.length!==1});return e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:o},{queueMicrotask:function(l){i(arguments.length,1),t(n(l))}}),wi}var it,Ai;function If(){if(Ai)return it;Ai=1,qf();var e=vr();return it=e.queueMicrotask,it}var at,$i;function Rf(){if($i)return at;$i=1;var e=If();return at=e,at}var ut,Ci;function Af(){if(Ci)return ut;Ci=1;var e=Rf();return ut=e,ut}var ot,ji;function $f(){if(ji)return ot;ji=1;var e=Af();return ot=e,ot}var st,Di;function Cf(){return Di||(Di=1,st=$f()),st}var jf=Cf();const Df=rn(jf);function Mi(e){Df(e)}class Mf{constructor(r){R(Number.isInteger(r)||r===Number.POSITIVE_INFINITY,"concurrency must be an integer or positive infinity"),R(r>0,"concurrency must be greater than 0"),this._concurrency=r,this._iqueue=[],this._running=0,this._checkQueueScheduled=!1}get concurrency(){return this._concurrency}get running(){return this._running}get pending(){return this._iqueue.length-this.running}async exec(r,t=0){return this.execCancellable(r,t)[0]}execCancellable(r,t=0){R(typeof r=="function","fct must be a function"),R(typeof t=="number","priority must be a number");const n=new Qs;let i=this._iqueue.length;for(;i>=1&&!(this._iqueue[i-1].priority>=t);)i-=1;const a={asyncFct:nn(r),deferred:n,priority:t,state:"pending"};return this._iqueue.splice(i,0,a),this._scheduleCheckQueue(),[n.promise,()=>{if(a.state!=="pending")return!1;{const u=this._iqueue.filter(o=>o!==a);return R(u.length<this._iqueue.length),this._iqueue=u,a.state="cancelled",n.reject(new an),!0}}]}_scheduleCheckQueue(){this._checkQueueScheduled||(this._checkQueueScheduled=!0,Mi(()=>{this._checkQueueScheduled=!1,this._checkQueue()}))}_checkQueue(){for(;;){if(R(this.running>=0,"invalid state"),R(this.running<=this.concurrency,"invalid state"),this.running===this.concurrency)return;const r=this._iqueue.find(t=>t.state==="pending");if(r===void 0)return;this._running+=1,r.state="running",Mi(()=>{r.asyncFct().finally(()=>{this._running-=1,this._iqueue=this._iqueue.filter(t=>t!==r)}).then(r.deferred.resolve,r.deferred.reject).then(()=>{this._scheduleCheckQueue()})})}}cancelAllPending(){const r=this._iqueue.filter(t=>t.state==="pending");return this._iqueue=this._iqueue.filter(t=>t.state!=="pending"),r.forEach(t=>{t.deferred.reject(new an)}),r.length}}function Ff(e){return typeof e=="number"?new Mf(e):e}async function ft(e){try{return{status:"fulfilled",value:await e()}}catch(r){return{status:"rejected",reason:r}}}async function*Nf(e,r,t=1,n=!0){R(typeof r=="function","iteratee must be a function"),r=nn(r);const i=zs(e),a=Ff(t);class u extends Error{}let o=-1,s=!1,l=!1,d=null,c=!1,v=!1,h=-1;const f=[];let p=0;const b=new Map,m=y=>{const _=p;p+=1;const O=(async()=>[_,await ft(y)])();R(!b.has(_),"waitList contains identifier"),b.set(_,O)},S=async()=>{R(b.size>=1,"Can not race on empty list");const[y]=await Promise.race([...b.values()]),_=b.delete(y);R(_,"waitList does not contain identifier")};let q=0;const w=new Map,I=(y,_)=>{q+=1;const O={value:_,index:y,cancel:null,state:null};w.set(y,O),m(async()=>{const N=a.exec(async()=>{if(O.state==="cancelled")throw new u;R(O.state==="scheduled","invalid task state");const Pe=w.delete(y);R(Pe,"Couldn't find index in scheduledList for removal");const $=await ft(()=>r(_,y,e));q-=1,A(y,_,$),$.status==="rejected"&&(v=!0,C(n?y:0))});return R(O.cancel===null,"task already has cancel"),O.cancel=()=>{R(O.state==="scheduled","task should be scheduled"),O.state="cancelled"},R(O.state===null,"task should have no state"),O.state="scheduled",N})},C=y=>{for(const _ of[...w.keys()].filter(O=>O>=y)){const O=w.get(_);R(O.cancel,"task does not have cancel"),O.cancel();const N=w.delete(_);R(N,"Couldn't find index in scheduledList for removal")}},g=()=>{s=!0,m(async()=>{const y=await ft(()=>i.next());if(s=!1,y.status==="fulfilled"){const{value:_,done:O}=y.value;O?c=!0:(o+=1,R(d===null,"fetchedValue should be null"),d=_,R(!l,"hasFetchedValue should be false"),l=!0)}else{c=!0,o+=1;const _=o;A(_,void 0,y),C(n?_:0)}})},A=(y,_,O)=>{n?(R(y-h-1>=0,"invalid index to insert"),R(f[y-h-1]===void 0,"already inserted result"),f[y-h-1]={index:y,value:_,snapshot:O}):f.push({index:y,value:_,snapshot:O})};for(g();;){for(await S();f.length>=1&&f[0]!==void 0;){const y=f.shift();if(h+=1,y.snapshot.status==="rejected")throw y.snapshot.reason;{let _=!1;try{yield y.snapshot.value,_=!0}finally{_||await i.return()}}}if(c&&o===h)return;l&&!v&&(I(o,d),l=!1,d=null),!s&&!c&&!v&&q<a.concurrency&&g()}}async function lt(e,r,t=1){for await(const n of Nf(e,r,t));}function Se(){const e=T.ref(!1),r=T.reactive({}),t=T.ref(!1),n=T.ref(!1);function i(){t.value=!0}function a(){e.value=!1,t.value=!1,n.value=!1}return{dirty:e,touched:t,validated:n,fields:r,setTouched:i,reset:a}}function Fi(e,r,t,n,i){const a=T.ref(r),u=[],o=T.ref(!1),s=T.reactive([]),l=i?.group,d=T.reactive([]),c=T.ref(!1),v=T.ref(!1);t?.length>0&&(i?.replace_rules?f(t):p(t));function h(g){a.value=g,c.value&&S()}function f(g){d.splice(0,d.length,...g)}function p(g){d.push(...g)}function b(g){n.groups[g]||(n.groups[g]=Se()),n.groups[g].fields[e]=C}function m(g){n.groups[g]&&delete n.groups[g].fields[e]}async function S(){s.splice(0,s.length);let g=!1;return(u.length===0||u.length>0&&u?.every(A=>!A.getAttribute("disabled")))&&(g=!0),g&&await lt(d,async A=>{const y=await A(T.toValue(r));y!==null&&s.push(y)}),q()}function q(){return s.length>0}function w(){c.value=!0}function I(){o.value=!1,c.value=!1,v.value=!1,s.splice(0,s.length)}const C={form_value:a,controls:u,dirty:o,errors:s,group:l,rules:d,touched:c,validated:v,setValue:h,replaceRules:f,appendRules:p,addToGroup:b,removeFromGroup:m,validate:S,isValid:q,setTouched:w,reset:I};return C}function Lf(e){const r=T.ref(!1),t=T.reactive([]),n=T.reactive({}),i=T.reactive({}),a=T.ref(!1),u=T.ref(!1);function o(f,p,b,m){const S=n[f];if(S)b&&b.length>0&&(m?.replace_rules?S.replaceRules(b):S.appendRules(b)),m?.group&&(i[m?.group]||(i[m?.group]=Se()),i[m?.group].fields[f]=S,S.group=m?.group);else if(!_e(p)){const q=Fi(f,p,b||[],h);n[f]=q,m?.group&&(i[m?.group]||(i[m?.group]=Se()),i[m?.group].fields[f]=q)}}function s(f){n[f].group&&delete i[n[f].group].fields[f],delete n[f]}async function l(f){if(f&&i[f]){const p=i[f];await lt(Object.keys(p.fields),async b=>{await p.fields[b].validate()}),i[f].validated.value=!0}else await lt(Object.keys(n),async p=>{await n[p].validate()}),u.value=!0;return d()}function d(f){let p=Object.keys(n);return f&&(p=Object.keys(i[f].fields)),p.every(b=>n[b].errors.length===0)}function c(){a.value=!0}function v(f){r.value=!1,a.value=!1,u.value=!1,t.splice(0,t.length),f&&i[f]?(i[f].reset(),We(i[f].fields,p=>{p.reset()})):We(n,p=>{p.reset()})}const h={dirty:r,errors:t,fields:n,groups:i,touched:a,validated:u,addField:o,removeField:s,validate:l,isValid:d,setTouched:c,reset:v};return e&&We(e,(f,p)=>{o(p,f.value,f.rules,{group:f.group})}),h}const xf=T.defineComponent({name:"FieldValidation",props:{el:{type:String,default:"button, input, select, textarea"},group:String,hideError:Boolean,name:{type:String,required:!0},replaceRules:{type:Boolean},rules:{type:Array,default(){return[]}},validator:{type:Object,required:!0},value:{type:null},watchValue:{type:Boolean,default:!1}},data(){return{form_fields:[]}},computed:{field(){return this.validator.fields[this.name]},error(){return this.field&&this.field.errors.length?this.field.errors[0]:null}},watch:{value:{handler(e){this.watchValue&&this.field?.setTouched(),this.field?.setValue(e)},deep:!0,immediate:!0}},mounted(){let e=this.group;_e(this.value)||this.validator.addField(this.name,T.ref(this.value),this.rules||[],{replace_rules:this.replaceRules||!1,group:e}),T.nextTick(()=>{const r=this.$refs.root,t=r.querySelectorAll(this.el);this.form_fields=Array.from(t),this.form_fields.forEach(n=>{n.getAttribute("has-validation")!=="true"&&(this.validator.fields[this.name]?.controls.push(n),n.addEventListener("blur",i=>{if(!r.contains(i.relatedTarget)){if(this.validator.setTouched(),this.validator.fields[this.name].group){const a=this.validator.fields[this.name].group;this.validator.groups[a].setTouched()}this.validator.fields[this.name].setTouched(),this.validator.fields[this.name].validate()}}),n.setAttribute("has-validation","true"))})})},beforeUnmount(){this.form_fields.forEach(e=>{Vs(this.validator.fields[this.name].controls,e)})}}),Bf=(e,r)=>{const t=e.__vccOpts||e;for(const[n,i]of r)t[n]=i;return t};function Uf(e,r,t,n,i,a){return T.openBlock(),T.createElementBlock("div",{ref:"root",class:T.normalizeClass({invalid:e.error})},[T.renderSlot(e.$slots,"default",{invalid:!!e.error,error_message:e.error})],2)}const Gf=Bf(xf,[["render",Uf]]);function Vf(e){return function(r){return typeof r<"u"&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(r)?null:e||"Please enter a valid email address"}}function zf(e,r){return function(t){return!e||t===e?null:r||"The value does not match"}}function Wf(e,r){return function(t){const n=new RegExp(e);return typeof t<"u"&&n.test(t)?null:r||"Please enter a valid value"}}function Hf(e,r){return function(t){let n=t;return typeof t=="string"&&(n=t.trim()),typeof n<"u"&&n.length<=e?null:r||`Value must not exceed ${e} characters`}}function Qf(e,r){return function(t){return typeof t<"u"&&t<=e?null:r||`Value must not exceed ${e}`}}function Kf(e,r){return function(t){let n=t;return typeof t=="string"&&(n=t.trim()),typeof n<"u"&&n.length>=e?null:r||`Value must be at least ${e} characters`}}function kf(e,r){return function(t){return typeof t<"u"&&t>=e?null:r||`Value must be at least ${e}`}}function Yf(e){return function(r){return Ns(r)?e||"This field is required":null}}function Xf(e,r){const t=Ls({min:1,max:1/0},r||{});return function(n){let i=!1;switch(typeof n){case"string":n.length>0&&(i=!0);break;case"number":n>=t.min&&n<=t.max&&(i=!0);break;case"boolean":t.allow_false?!_e(n)&&!Jt(n)&&(i=!0):n!==!1&&(i=!0);break;case"object":Array.isArray(n)?n.length>0&&(i=!0):Fs(n)||(i=!0);break;default:!_e(n)&&!Jt(n)&&(i=!0);break}return i?null:e||"This field is required"}}const Zf=Object.freeze(Object.defineProperty({__proto__:null,email:Vf,match:zf,matchRegExp:Wf,maxLength:Hf,maxValue:Qf,minLength:Kf,minValue:kf,notNil:Yf,required:Xf},Symbol.toStringTag,{value:"Module"}));function Ni(e){return[async r=>{try{const t=await e.safeParseAsync(r);return t.success?null:t.error.issues[0]?.message}catch(t){return t.message}}]}function Jf(e){const r={};return Object.keys(e.shape).forEach(n=>{r[n]={value:T.ref(null),rules:Ni(e.shape[n])}}),r}P.FieldValidation=Gf,P.rules=Zf,P.useFieldValidator=Fi,P.useFieldValidatorGroup=Se,P.useFormValidator=Lf,P.zodRule=Ni,P.zodSchema=Jf,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitty-test/validation",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",