UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

22 lines 125 kB
var ro=Object.defineProperty;var io=(e,t,n)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var te=(e,t,n)=>(io(e,typeof t!="symbol"?t+"":t,n),n);import{aQ as Kr,aR as Zr,aS as Sn,aT as Fe,i as be,aU as An,aV as It,aW as Yr,aK as qt,aX as oo,aY as at,a0 as Je,a1 as so,$ as Ge,aZ as Xr,a_ as Tt,a$ as On,b0 as ao,ax as lo,d as V,g as _n,m as Qr,u as Nt,c as ze,_ as ie,G as it,B as uo,E as fo,H as co,r as Jr,ao as ho,a2 as go,k as kr,t as mo,K as In,L as po,P as Xe,e as vo,aG as yo,aH as wo,b1 as bo,I as yt,o as nt,s as nr,j as $o,p as Ke,f as Yt}from"./compact-item-45f3d050.js";import{C as xo}from"./CloseCircleFilled-7d1a9da0.js";import{z as ei,a as Eo,E as So}from"./ExclamationCircleFilled-71949edd.js";import{g as ti,i as Ao,b as Oo,F as _o,u as Io,a as ln}from"./FormItemContext-af84826a.js";import{y as R,ap as Tn,aH as Cn,ac as Pn,O as tt,r as lt,az as ni,av as ri,d as X,v as To,F as Ct,bp as De,bv as Co,bm as Po,l as Fo,k as Mo,a_ as $e,bq as un,aL as ii,b4 as fn,u as Le,bA as Lo}from"./app-e5356031.js";import{u as Bo}from"./useFlexGapSupport-e1acb751.js";function rr(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function ir(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Xt(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ir(n.overflowY,t)||ir(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function wt(e,t,n,r,i,o,s,a){return o<e&&s>t||o>e&&s<t?0:o<=e&&a<=n||s>=t&&a>=n?o-e-r:s>t&&a<n||o<e&&a>n?s-t+i:0}var or=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,s=t.boundary,a=t.skipOverflowHiddenElements,l=typeof s=="function"?s:function(_e){return _e!==s};if(!rr(e))throw new TypeError("Invalid target");for(var u,d,f=document.scrollingElement||document.documentElement,w=[],$=e;rr($)&&l($);){if(($=(d=(u=$).parentElement)==null?u.getRootNode().host||null:d)===f){w.push($);break}$!=null&&$===document.body&&Xt($)&&!Xt(document.documentElement)||$!=null&&Xt($,a)&&w.push($)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,c=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,A=e.getBoundingClientRect(),h=A.height,b=A.width,S=A.top,x=A.right,_=A.bottom,C=A.left,L=i==="start"||i==="nearest"?S:i==="end"?_:S+h/2,F=o==="center"?C+b/2:o==="end"?x:C,q=[],H=0;H<w.length;H++){var I=w[H],P=I.getBoundingClientRect(),m=P.height,E=P.width,v=P.top,O=P.right,T=P.bottom,B=P.left;if(r==="if-needed"&&S>=0&&C>=0&&_<=c&&x<=p&&S>=v&&_<=T&&C>=B&&x<=O)return q;var N=getComputedStyle(I),D=parseInt(N.borderLeftWidth,10),K=parseInt(N.borderTopWidth,10),z=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),j=0,U=0,Y="offsetWidth"in I?I.offsetWidth-I.clientWidth-D-z:0,G="offsetHeight"in I?I.offsetHeight-I.clientHeight-K-M:0,Z="offsetWidth"in I?I.offsetWidth===0?0:E/I.offsetWidth:0,k="offsetHeight"in I?I.offsetHeight===0?0:m/I.offsetHeight:0;if(f===I)j=i==="start"?L:i==="end"?L-c:i==="nearest"?wt(g,g+c,c,K,M,g+L,g+L+h,h):L-c/2,U=o==="start"?F:o==="center"?F-p/2:o==="end"?F-p:wt(y,y+p,p,D,z,y+F,y+F+b,b),j=Math.max(0,j+g),U=Math.max(0,U+y);else{j=i==="start"?L-v-K:i==="end"?L-T+M+G:i==="nearest"?wt(v,T,m,K,M+G,L,L+h,h):L-(v+m/2)+G/2,U=o==="start"?F-B-D:o==="center"?F-(B+E/2)+Y/2:o==="end"?F-O+z+Y:wt(B,O,E,D,z+Y,F,F+b,b);var Q=I.scrollLeft,ae=I.scrollTop;L+=ae-(j=Math.max(0,Math.min(ae+j/k,I.scrollHeight-m/k+G))),F+=Q-(U=Math.max(0,Math.min(Q+U/Z,I.scrollWidth-E/Z+Y)))}q.push({el:I,top:j,left:U})}return q};function oi(e){return e===Object(e)&&Object.keys(e).length!==0}function qo(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,o=r.top,s=r.left;i.scroll&&n?i.scroll({top:o,left:s,behavior:t}):(i.scrollTop=o,i.scrollLeft=s)})}function No(e){return e===!1?{block:"end",inline:"nearest"}:oi(e)?e:{block:"start",inline:"nearest"}}function Ro(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(oi(t)&&typeof t.behavior=="function")return t.behavior(n?or(e,t):[]);if(n){var r=No(t);return qo(or(e,r),r.behavior)}}function jo(){this.__data__=[],this.size=0}function Fn(e,t){return e===t||e!==e&&t!==t}function Rt(e,t){for(var n=e.length;n--;)if(Fn(e[n][0],t))return n;return-1}var Ho=Array.prototype,Do=Ho.splice;function Uo(e){var t=this.__data__,n=Rt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Do.call(t,n,1),--this.size,!0}function Vo(e){var t=this.__data__,n=Rt(t,e);return n<0?void 0:t[n][1]}function Go(e){return Rt(this.__data__,e)>-1}function zo(e,t){var n=this.__data__,r=Rt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ae.prototype.clear=jo;Ae.prototype.delete=Uo;Ae.prototype.get=Vo;Ae.prototype.has=Go;Ae.prototype.set=zo;function Wo(){this.__data__=new Ae,this.size=0}function Ko(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Zo(e){return this.__data__.get(e)}function Yo(e){return this.__data__.has(e)}var Xo=Kr(Object,"create");const ut=Xo;function Qo(){this.__data__=ut?ut(null):{},this.size=0}function Jo(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ko="__lodash_hash_undefined__",es=Object.prototype,ts=es.hasOwnProperty;function ns(e){var t=this.__data__;if(ut){var n=t[e];return n===ko?void 0:n}return ts.call(t,e)?t[e]:void 0}var rs=Object.prototype,is=rs.hasOwnProperty;function os(e){var t=this.__data__;return ut?t[e]!==void 0:is.call(t,e)}var ss="__lodash_hash_undefined__";function as(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ut&&t===void 0?ss:t,this}function We(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}We.prototype.clear=Qo;We.prototype.delete=Jo;We.prototype.get=ns;We.prototype.has=os;We.prototype.set=as;function ls(){this.size=0,this.__data__={hash:new We,map:new(Zr||Ae),string:new We}}function us(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function jt(e,t){var n=e.__data__;return us(t)?n[typeof t=="string"?"string":"hash"]:n.map}function fs(e){var t=jt(this,e).delete(e);return this.size-=t?1:0,t}function cs(e){return jt(this,e).get(e)}function ds(e){return jt(this,e).has(e)}function hs(e,t){var n=jt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Oe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Oe.prototype.clear=ls;Oe.prototype.delete=fs;Oe.prototype.get=cs;Oe.prototype.has=ds;Oe.prototype.set=hs;var gs=200;function ms(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!Zr||r.length<gs-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oe(r)}return n.set(e,t),this.size=n.size,this}function xe(e){var t=this.__data__=new Ae(e);this.size=t.size}xe.prototype.clear=Wo;xe.prototype.delete=Ko;xe.prototype.get=Zo;xe.prototype.has=Yo;xe.prototype.set=ms;var ps="__lodash_hash_undefined__";function vs(e){return this.__data__.set(e,ps),this}function ys(e){return this.__data__.has(e)}function ft(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Oe;++t<n;)this.add(e[t])}ft.prototype.add=ft.prototype.push=vs;ft.prototype.has=ys;function ws(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cn(e,t){return e.has(t)}var bs=1,$s=2;function si(e,t,n,r,i,o){var s=n&bs,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,w=!0,$=n&$s?new ft:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var p=e[f],c=t[f];if(r)var y=s?r(c,p,f,t,e,o):r(p,c,f,e,t,o);if(y!==void 0){if(y)continue;w=!1;break}if($){if(!ws(t,function(g,A){if(!cn($,A)&&(p===g||i(p,g,n,r,o)))return $.push(A)})){w=!1;break}}else if(!(p===c||i(p,c,n,r,o))){w=!1;break}}return o.delete(e),o.delete(t),w}var xs=Sn.Uint8Array;const Pt=xs;function Es(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Ss(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var As=1,Os=2,_s="[object Boolean]",Is="[object Date]",Ts="[object Error]",Cs="[object Map]",Ps="[object Number]",Fs="[object RegExp]",Ms="[object Set]",Ls="[object String]",Bs="[object Symbol]",qs="[object ArrayBuffer]",Ns="[object DataView]",sr=Fe?Fe.prototype:void 0,Qt=sr?sr.valueOf:void 0;function Rs(e,t,n,r,i,o,s){switch(n){case Ns:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qs:return!(e.byteLength!=t.byteLength||!o(new Pt(e),new Pt(t)));case _s:case Is:case Ps:return Fn(+e,+t);case Ts:return e.name==t.name&&e.message==t.message;case Fs:case Ls:return e==t+"";case Cs:var a=Es;case Ms:var l=r&As;if(a||(a=Ss),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=Os,s.set(e,t);var d=si(a(e),a(t),r,i,o,s);return s.delete(e),d;case Bs:if(Qt)return Qt.call(e)==Qt.call(t)}return!1}function Mn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ai(e,t,n){var r=t(e);return be(e)?r:Mn(r,n(e))}function js(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function li(){return[]}var Hs=Object.prototype,Ds=Hs.propertyIsEnumerable,ar=Object.getOwnPropertySymbols,Us=ar?function(e){return e==null?[]:(e=Object(e),js(ar(e),function(t){return Ds.call(e,t)}))}:li;const Ln=Us;function Vs(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Gs=9007199254740991,zs=/^(?:0|[1-9]\d*)$/;function ui(e,t){var n=typeof e;return t=t??Gs,!!t&&(n=="number"||n!="symbol"&&zs.test(e))&&e>-1&&e%1==0&&e<t}var Ws=Object.prototype,Ks=Ws.hasOwnProperty;function fi(e,t){var n=be(e),r=!n&&An(e),i=!n&&!r&&It(e),o=!n&&!r&&!i&&Yr(e),s=n||r||i||o,a=s?Vs(e.length,String):[],l=a.length;for(var u in e)(t||Ks.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ui(u,l)))&&a.push(u);return a}function ht(e){return qt(e)?fi(e):oo(e)}function dn(e){return ai(e,ht,Ln)}var Zs=1,Ys=Object.prototype,Xs=Ys.hasOwnProperty;function Qs(e,t,n,r,i,o){var s=n&Zs,a=dn(e),l=a.length,u=dn(t),d=u.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var w=a[f];if(!(s?w in t:Xs.call(t,w)))return!1}var $=o.get(e),p=o.get(t);if($&&p)return $==t&&p==e;var c=!0;o.set(e,t),o.set(t,e);for(var y=s;++f<l;){w=a[f];var g=e[w],A=t[w];if(r)var h=s?r(A,g,w,t,e,o):r(g,A,w,e,t,o);if(!(h===void 0?g===A||i(g,A,n,r,o):h)){c=!1;break}y||(y=w=="constructor")}if(c&&!y){var b=e.constructor,S=t.constructor;b!=S&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof S=="function"&&S instanceof S)&&(c=!1)}return o.delete(e),o.delete(t),c}var Js=1,lr="[object Arguments]",ur="[object Array]",bt="[object Object]",ks=Object.prototype,fr=ks.hasOwnProperty;function ea(e,t,n,r,i,o){var s=be(e),a=be(t),l=s?ur:at(e),u=a?ur:at(t);l=l==lr?bt:l,u=u==lr?bt:u;var d=l==bt,f=u==bt,w=l==u;if(w&&It(e)){if(!It(t))return!1;s=!0,d=!1}if(w&&!d)return o||(o=new xe),s||Yr(e)?si(e,t,n,r,i,o):Rs(e,t,l,n,r,i,o);if(!(n&Js)){var $=d&&fr.call(e,"__wrapped__"),p=f&&fr.call(t,"__wrapped__");if($||p){var c=$?e.value():e,y=p?t.value():t;return o||(o=new xe),i(c,y,n,r,o)}}return w?(o||(o=new xe),Qs(e,t,n,r,i,o)):!1}function Ht(e,t,n,r,i){return e===t?!0:e==null||t==null||!Je(e)&&!Je(t)?e!==e&&t!==t:ea(e,t,n,r,Ht,i)}function ci(e,t){return Ht(e,t)}var ta="[object Symbol]";function Dt(e){return typeof e=="symbol"||Je(e)&&so(e)==ta}function Ut(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var na=1/0,cr=Fe?Fe.prototype:void 0,dr=cr?cr.toString:void 0;function di(e){if(typeof e=="string")return e;if(be(e))return Ut(e,di)+"";if(Dt(e))return dr?dr.call(e):"";var t=e+"";return t=="0"&&1/e==-na?"-0":t}var ra=/\s/;function ia(e){for(var t=e.length;t--&&ra.test(e.charAt(t)););return t}var oa=/^\s+/;function sa(e){return e&&e.slice(0,ia(e)+1).replace(oa,"")}var hr=0/0,aa=/^[-+]0x[0-9a-f]+$/i,la=/^0b[01]+$/i,ua=/^0o[0-7]+$/i,fa=parseInt;function hn(e){if(typeof e=="number")return e;if(Dt(e))return hr;if(Ge(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ge(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sa(e);var n=la.test(e);return n||ua.test(e)?fa(e.slice(2),n?2:8):aa.test(e)?hr:+e}var gr=1/0,ca=17976931348623157e292;function da(e){if(!e)return e===0?e:0;if(e=hn(e),e===gr||e===-gr){var t=e<0?-1:1;return t*ca}return e===e?e:0}function ha(e){var t=da(e),n=t%1;return t===t?n?t-n:t:0}function Bn(e){return e}var mr=Object.create,ga=function(){function e(){}return function(t){if(!Ge(t))return{};if(mr)return mr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const ma=ga;function pa(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function va(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ya=800,wa=16,ba=Date.now;function $a(e){var t=0,n=0;return function(){var r=ba(),i=wa-(r-n);if(n=r,i>0){if(++t>=ya)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xa(e){return function(){return e}}var Ea=function(){try{var e=Kr(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ft=Ea;var Sa=Ft?function(e,t){return Ft(e,"toString",{configurable:!0,enumerable:!1,value:xa(t),writable:!0})}:Bn;const Aa=Sa;var Oa=$a(Aa);const hi=Oa;function _a(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function gi(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ia(e){return e!==e}function Ta(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Ca(e,t,n){return t===t?Ta(e,t,n):gi(e,Ia,n)}function Pa(e,t){var n=e==null?0:e.length;return!!n&&Ca(e,t,0)>-1}function mi(e,t,n){t=="__proto__"&&Ft?Ft(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Fa=Object.prototype,Ma=Fa.hasOwnProperty;function pi(e,t,n){var r=e[t];(!(Ma.call(e,t)&&Fn(r,n))||n===void 0&&!(t in e))&&mi(e,t,n)}function gt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),i?mi(n,a,l):pi(n,a,l)}return n}var pr=Math.max;function vi(e,t,n){return t=pr(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=pr(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),pa(e,this,a)}}function La(e,t){return hi(vi(e,t,Bn),e+"")}function Ba(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var qa=Object.prototype,Na=qa.hasOwnProperty;function Ra(e){if(!Ge(e))return Ba(e);var t=Xr(e),n=[];for(var r in e)r=="constructor"&&(t||!Na.call(e,r))||n.push(r);return n}function qn(e){return qt(e)?fi(e,!0):Ra(e)}var ja=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ha=/^\w*$/;function Nn(e,t){if(be(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dt(e)?!0:Ha.test(e)||!ja.test(e)||t!=null&&e in Object(t)}var Da="Expected a function";function Rn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Da);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Rn.Cache||Oe),n}Rn.Cache=Oe;var Ua=500;function Va(e){var t=Rn(e,function(r){return n.size===Ua&&n.clear(),r}),n=t.cache;return t}var Ga=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,za=/\\(\\)?/g,Wa=Va(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ga,function(n,r,i,o){t.push(i?o.replace(za,"$1"):r||n)}),t});const Ka=Wa;function Za(e){return e==null?"":di(e)}function Vt(e,t){return be(e)?e:Nn(e,t)?[e]:Ka(Za(e))}var Ya=1/0;function mt(e){if(typeof e=="string"||Dt(e))return e;var t=e+"";return t=="0"&&1/e==-Ya?"-0":t}function jn(e,t){t=Vt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[mt(t[n++])];return n&&n==r?e:void 0}function Xa(e,t,n){var r=e==null?void 0:jn(e,t);return r===void 0?n:r}var vr=Fe?Fe.isConcatSpreadable:void 0;function Qa(e){return be(e)||An(e)||!!(vr&&e&&e[vr])}function yi(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Qa),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?yi(a,t-1,n,r,i):Mn(i,a):r||(i[i.length]=a)}return i}function Ja(e){var t=e==null?0:e.length;return t?yi(e,1):[]}function ka(e){return hi(vi(e,void 0,Ja),e+"")}function el(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function tl(e,t){return e&&gt(t,ht(t),e)}function nl(e,t){return e&&gt(t,qn(t),e)}var wi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yr=wi&&typeof module=="object"&&module&&!module.nodeType&&module,rl=yr&&yr.exports===wi,wr=rl?Sn.Buffer:void 0,br=wr?wr.allocUnsafe:void 0;function il(e,t){if(t)return e.slice();var n=e.length,r=br?br(n):new e.constructor(n);return e.copy(r),r}function ol(e,t){return gt(e,Ln(e),t)}var sl=Object.getOwnPropertySymbols,al=sl?function(e){for(var t=[];e;)Mn(t,Ln(e)),e=ti(e);return t}:li;const bi=al;function ll(e,t){return gt(e,bi(e),t)}function $i(e){return ai(e,qn,bi)}var ul=Object.prototype,fl=ul.hasOwnProperty;function cl(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&fl.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Hn(e){var t=new e.constructor(e.byteLength);return new Pt(t).set(new Pt(e)),t}function dl(e,t){var n=t?Hn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var hl=/\w*$/;function gl(e){var t=new e.constructor(e.source,hl.exec(e));return t.lastIndex=e.lastIndex,t}var $r=Fe?Fe.prototype:void 0,xr=$r?$r.valueOf:void 0;function ml(e){return xr?Object(xr.call(e)):{}}function pl(e,t){var n=t?Hn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vl="[object Boolean]",yl="[object Date]",wl="[object Map]",bl="[object Number]",$l="[object RegExp]",xl="[object Set]",El="[object String]",Sl="[object Symbol]",Al="[object ArrayBuffer]",Ol="[object DataView]",_l="[object Float32Array]",Il="[object Float64Array]",Tl="[object Int8Array]",Cl="[object Int16Array]",Pl="[object Int32Array]",Fl="[object Uint8Array]",Ml="[object Uint8ClampedArray]",Ll="[object Uint16Array]",Bl="[object Uint32Array]";function ql(e,t,n){var r=e.constructor;switch(t){case Al:return Hn(e);case vl:case yl:return new r(+e);case Ol:return dl(e,n);case _l:case Il:case Tl:case Cl:case Pl:case Fl:case Ml:case Ll:case Bl:return pl(e,n);case wl:return new r;case bl:case El:return new r(e);case $l:return gl(e);case xl:return new r;case Sl:return ml(e)}}function Nl(e){return typeof e.constructor=="function"&&!Xr(e)?ma(ti(e)):{}}var Rl="[object Map]";function jl(e){return Je(e)&&at(e)==Rl}var Er=Tt&&Tt.isMap,Hl=Er?On(Er):jl;const Dl=Hl;var Ul="[object Set]";function Vl(e){return Je(e)&&at(e)==Ul}var Sr=Tt&&Tt.isSet,Gl=Sr?On(Sr):Vl;const zl=Gl;var Wl=1,Kl=2,Zl=4,xi="[object Arguments]",Yl="[object Array]",Xl="[object Boolean]",Ql="[object Date]",Jl="[object Error]",Ei="[object Function]",kl="[object GeneratorFunction]",eu="[object Map]",tu="[object Number]",Si="[object Object]",nu="[object RegExp]",ru="[object Set]",iu="[object String]",ou="[object Symbol]",su="[object WeakMap]",au="[object ArrayBuffer]",lu="[object DataView]",uu="[object Float32Array]",fu="[object Float64Array]",cu="[object Int8Array]",du="[object Int16Array]",hu="[object Int32Array]",gu="[object Uint8Array]",mu="[object Uint8ClampedArray]",pu="[object Uint16Array]",vu="[object Uint32Array]",J={};J[xi]=J[Yl]=J[au]=J[lu]=J[Xl]=J[Ql]=J[uu]=J[fu]=J[cu]=J[du]=J[hu]=J[eu]=J[tu]=J[Si]=J[nu]=J[ru]=J[iu]=J[ou]=J[gu]=J[mu]=J[pu]=J[vu]=!0;J[Jl]=J[Ei]=J[su]=!1;function ot(e,t,n,r,i,o){var s,a=t&Wl,l=t&Kl,u=t&Zl;if(n&&(s=i?n(e,r,i,o):n(e)),s!==void 0)return s;if(!Ge(e))return e;var d=be(e);if(d){if(s=cl(e),!a)return va(e,s)}else{var f=at(e),w=f==Ei||f==kl;if(It(e))return il(e,a);if(f==Si||f==xi||w&&!i){if(s=l||w?{}:Nl(e),!a)return l?ll(e,nl(s,e)):ol(e,tl(s,e))}else{if(!J[f])return i?e:{};s=ql(e,f,a)}}o||(o=new xe);var $=o.get(e);if($)return $;o.set(e,s),zl(e)?e.forEach(function(y){s.add(ot(y,t,n,y,e,o))}):Dl(e)&&e.forEach(function(y,g){s.set(g,ot(y,t,n,g,e,o))});var p=u?l?$i:dn:l?qn:ht,c=d?void 0:p(e);return _a(c||e,function(y,g){c&&(g=y,y=e[g]),pi(s,g,ot(y,t,n,g,e,o))}),s}var yu=1,wu=4;function Ot(e){return ot(e,yu|wu)}var bu=1,$u=2;function xu(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var l=a[0],u=e[l],d=a[1];if(s&&a[2]){if(u===void 0&&!(l in e))return!1}else{var f=new xe;if(r)var w=r(u,d,l,e,t,f);if(!(w===void 0?Ht(d,u,bu|$u,r,f):w))return!1}}return!0}function Ai(e){return e===e&&!Ge(e)}function Eu(e){for(var t=ht(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ai(i)]}return t}function Oi(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Su(e){var t=Eu(e);return t.length==1&&t[0][2]?Oi(t[0][0],t[0][1]):function(n){return n===e||xu(n,e,t)}}function Au(e,t){return e!=null&&t in Object(e)}function Ou(e,t,n){t=Vt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=mt(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&ao(i)&&ui(s,i)&&(be(e)||An(e)))}function _u(e,t){return e!=null&&Ou(e,t,Au)}var Iu=1,Tu=2;function Cu(e,t){return Nn(e)&&Ai(t)?Oi(mt(e),t):function(n){var r=Xa(n,e);return r===void 0&&r===t?_u(n,e):Ht(t,r,Iu|Tu)}}function Pu(e){return function(t){return t==null?void 0:t[e]}}function Fu(e){return function(t){return jn(t,e)}}function Mu(e){return Nn(e)?Pu(mt(e)):Fu(e)}function _i(e){return typeof e=="function"?e:e==null?Bn:typeof e=="object"?be(e)?Cu(e[0],e[1]):Su(e):Mu(e)}var Lu=function(){return Sn.Date.now()};const Jt=Lu;var Bu="Expected a function",qu=Math.max,Nu=Math.min;function Ru(e,t,n){var r,i,o,s,a,l,u=0,d=!1,f=!1,w=!0;if(typeof e!="function")throw new TypeError(Bu);t=hn(t)||0,Ge(n)&&(d=!!n.leading,f="maxWait"in n,o=f?qu(hn(n.maxWait)||0,t):o,w="trailing"in n?!!n.trailing:w);function $(x){var _=r,C=i;return r=i=void 0,u=x,s=e.apply(C,_),s}function p(x){return u=x,a=setTimeout(g,t),d?$(x):s}function c(x){var _=x-l,C=x-u,L=t-_;return f?Nu(L,o-C):L}function y(x){var _=x-l,C=x-u;return l===void 0||_>=t||_<0||f&&C>=o}function g(){var x=Jt();if(y(x))return A(x);a=setTimeout(g,c(x))}function A(x){return a=void 0,w&&r?$(x):(r=i=void 0,s)}function h(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function b(){return a===void 0?s:A(Jt())}function S(){var x=Jt(),_=y(x);if(r=arguments,i=this,l=x,_){if(a===void 0)return p(l);if(f)return clearTimeout(a),a=setTimeout(g,t),$(l)}return a===void 0&&(a=setTimeout(g,t)),s}return S.cancel=h,S.flush=b,S}function ju(e){return Je(e)&&qt(e)}function Hu(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Du(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Uu(e){return function(t,n,r){var i=Object(t);if(!qt(t)){var o=_i(n);t=ht(t),n=function(a){return o(i[a],a,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}var Vu=Math.max;function Gu(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ha(n);return i<0&&(i=Vu(r+i,0)),gi(e,_i(t),i)}var zu=Uu(Gu);const Wu=zu;var Ku=Math.min;function Zu(e,t,n){for(var r=n?Hu:Pa,i=e[0].length,o=e.length,s=o,a=Array(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Ut(d,On(t))),l=Ku(d.length,l),a[s]=!n&&(t||i>=120&&d.length>=120)?new ft(s&&d):void 0}d=e[0];var f=-1,w=a[0];e:for(;++f<i&&u.length<l;){var $=d[f],p=t?t($):$;if($=n||$!==0?$:0,!(w?cn(w,p):r(u,p,n))){for(s=o;--s;){var c=a[s];if(!(c?cn(c,p):r(e[s],p,n)))continue e}w&&w.push(p),u.push($)}}return u}function Yu(e){return ju(e)?e:[]}var Xu=La(function(e){var t=Ut(e,Yu);return t.length&&t[0]===e[0]?Zu(t):[]});const Qu=Xu;function Ju(e,t){return t.length<2?e:jn(e,el(t,0,-1))}function ku(e,t){return t=Vt(t,e),e=Ju(e,t),e==null||delete e[mt(Du(t))]}function ef(e){return Ao(e)?void 0:e}var tf=1,nf=2,rf=4,of=ka(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ut(t,function(o){return o=Vt(o,e),r||(r=o.length>1),o}),gt(e,$i(e),n),r&&(n=ot(n,tf|nf|rf,ef));for(var i=t.length;i--;)ku(n,t[i]);return n});const sf=of,af=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),lf=af,$t=["xxxl","xxl","xl","lg","md","sm","xs"],uf=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function ff(){const[,e]=lo();return R(()=>{const t=uf(e.value),n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(s=>s(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const s=t[o],a=this.matchHandlers[s];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const s=t[o],a=u=>{let{matches:d}=u;this.dispatch(V(V({},i),{[o]:d}))},l=window.matchMedia(s);l.addListener(a),this.matchHandlers[s]={mql:l,listener:a},a(l)})},responsiveMap:t}})}function Ii(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Ar(e,t){e.classList?e.classList.add(t):Ii(e,t)||(e.className=`${e.className} ${t}`)}function Or(e,t){if(e.classList)e.classList.remove(t);else if(Ii(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const cf=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",Ar(n,e)},onEnter:n=>{Tn(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(Or(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{Ar(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(Or(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},df=cf;var hf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ti={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(hf,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",u="day",d="week",f="month",w="quarter",$="year",p="date",c="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var P=["th","st","nd","rd"],m=I%100;return"["+I+(P[(m-20)%10]||P[m]||P[0])+"]"}},h=function(I,P,m){var E=String(I);return!E||E.length>=P?I:""+Array(P+1-E.length).join(m)+I},b={s:h,z:function(I){var P=-I.utcOffset(),m=Math.abs(P),E=Math.floor(m/60),v=m%60;return(P<=0?"+":"-")+h(E,2,"0")+":"+h(v,2,"0")},m:function I(P,m){if(P.date()<m.date())return-I(m,P);var E=12*(m.year()-P.year())+(m.month()-P.month()),v=P.clone().add(E,f),O=m-v<0,T=P.clone().add(E+(O?-1:1),f);return+(-(E+(m-v)/(O?v-T:T-v))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:$,w:d,d:u,D:p,h:l,m:a,s,ms:o,Q:w}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",x={};x[S]=A;var _=function(I){return I instanceof q},C=function I(P,m,E){var v;if(!P)return S;if(typeof P=="string"){var O=P.toLowerCase();x[O]&&(v=O),m&&(x[O]=m,v=O);var T=P.split("-");if(!v&&T.length>1)return I(T[0])}else{var B=P.name;x[B]=P,v=B}return!E&&v&&(S=v),v||!E&&S},L=function(I,P){if(_(I))return I.clone();var m=typeof P=="object"?P:{};return m.date=I,m.args=arguments,new q(m)},F=b;F.l=C,F.i=_,F.w=function(I,P){return L(I,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var q=function(){function I(m){this.$L=C(m.locale,null,!0),this.parse(m)}var P=I.prototype;return P.parse=function(m){this.$d=function(E){var v=E.date,O=E.utc;if(v===null)return new Date(NaN);if(F.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var T=v.match(y);if(T){var B=T[2]-1||0,N=(T[7]||"0").substring(0,3);return O?new Date(Date.UTC(T[1],B,T[3]||1,T[4]||0,T[5]||0,T[6]||0,N)):new Date(T[1],B,T[3]||1,T[4]||0,T[5]||0,T[6]||0,N)}}return new Date(v)}(m),this.$x=m.x||{},this.init()},P.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},P.$utils=function(){return F},P.isValid=function(){return this.$d.toString()!==c},P.isSame=function(m,E){var v=L(m);return this.startOf(E)<=v&&v<=this.endOf(E)},P.isAfter=function(m,E){return L(m)<this.startOf(E)},P.isBefore=function(m,E){return this.endOf(E)<L(m)},P.$g=function(m,E,v){return F.u(m)?this[E]:this.set(v,m)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(m,E){var v=this,O=!!F.u(E)||E,T=F.p(m),B=function(Y,G){var Z=F.w(v.$u?Date.UTC(v.$y,G,Y):new Date(v.$y,G,Y),v);return O?Z:Z.endOf(u)},N=function(Y,G){return F.w(v.toDate()[Y].apply(v.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(G)),v)},D=this.$W,K=this.$M,z=this.$D,M="set"+(this.$u?"UTC":"");switch(T){case $:return O?B(1,0):B(31,11);case f:return O?B(1,K):B(0,K+1);case d:var j=this.$locale().weekStart||0,U=(D<j?D+7:D)-j;return B(O?z-U:z+(6-U),K);case u:case p:return N(M+"Hours",0);case l:return N(M+"Minutes",1);case a:return N(M+"Seconds",2);case s:return N(M+"Milliseconds",3);default:return this.clone()}},P.endOf=function(m){return this.startOf(m,!1)},P.$set=function(m,E){var v,O=F.p(m),T="set"+(this.$u?"UTC":""),B=(v={},v[u]=T+"Date",v[p]=T+"Date",v[f]=T+"Month",v[$]=T+"FullYear",v[l]=T+"Hours",v[a]=T+"Minutes",v[s]=T+"Seconds",v[o]=T+"Milliseconds",v)[O],N=O===u?this.$D+(E-this.$W):E;if(O===f||O===$){var D=this.clone().set(p,1);D.$d[B](N),D.init(),this.$d=D.set(p,Math.min(this.$D,D.daysInMonth())).$d}else B&&this.$d[B](N);return this.init(),this},P.set=function(m,E){return this.clone().$set(m,E)},P.get=function(m){return this[F.p(m)]()},P.add=function(m,E){var v,O=this;m=Number(m);var T=F.p(E),B=function(K){var z=L(O);return F.w(z.date(z.date()+Math.round(K*m)),O)};if(T===f)return this.set(f,this.$M+m);if(T===$)return this.set($,this.$y+m);if(T===u)return B(1);if(T===d)return B(7);var N=(v={},v[a]=r,v[l]=i,v[s]=n,v)[T]||1,D=this.$d.getTime()+m*N;return F.w(D,this)},P.subtract=function(m,E){return this.add(-1*m,E)},P.format=function(m){var E=this,v=this.$locale();if(!this.isValid())return v.invalidDate||c;var O=m||"YYYY-MM-DDTHH:mm:ssZ",T=F.z(this),B=this.$H,N=this.$m,D=this.$M,K=v.weekdays,z=v.months,M=v.meridiem,j=function(G,Z,k,Q){return G&&(G[Z]||G(E,O))||k[Z].slice(0,Q)},U=function(G){return F.s(B%12||12,G,"0")},Y=M||function(G,Z,k){var Q=G<12?"AM":"PM";return k?Q.toLowerCase():Q};return O.replace(g,function(G,Z){return Z||function(k){switch(k){case"YY":return String(E.$y).slice(-2);case"YYYY":return F.s(E.$y,4,"0");case"M":return D+1;case"MM":return F.s(D+1,2,"0");case"MMM":return j(v.monthsShort,D,z,3);case"MMMM":return j(z,D);case"D":return E.$D;case"DD":return F.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return j(v.weekdaysMin,E.$W,K,2);case"ddd":return j(v.weekdaysShort,E.$W,K,3);case"dddd":return K[E.$W];case"H":return String(B);case"HH":return F.s(B,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Y(B,N,!0);case"A":return Y(B,N,!1);case"m":return String(N);case"mm":return F.s(N,2,"0");case"s":return String(E.$s);case"ss":return F.s(E.$s,2,"0");case"SSS":return F.s(E.$ms,3,"0");case"Z":return T}return null}(G)||T.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(m,E,v){var O,T=this,B=F.p(E),N=L(m),D=(N.utcOffset()-this.utcOffset())*r,K=this-N,z=function(){return F.m(T,N)};switch(B){case $:O=z()/12;break;case f:O=z();break;case w:O=z()/3;break;case d:O=(K-D)/6048e5;break;case u:O=(K-D)/864e5;break;case l:O=K/i;break;case a:O=K/r;break;case s:O=K/n;break;default:O=K}return v?O:F.a(O)},P.daysInMonth=function(){return this.endOf(f).$D},P.$locale=function(){return x[this.$L]},P.locale=function(m,E){if(!m)return this.$L;var v=this.clone(),O=C(m,E,!0);return O&&(v.$L=O),v},P.clone=function(){return F.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},I}(),H=q.prototype;return L.prototype=H,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",u],["$M",f],["$y",$],["$D",p]].forEach(function(I){H[I[1]]=function(P){return this.$g(P,I[0],I[1])}}),L.extend=function(I,P){return I.$i||(I(P,q,L),I.$i=!0),L},L.locale=C,L.isDayjs=_,L.unix=function(I){return L(1e3*I)},L.en=x[S],L.Ls=x,L.p={},L})})(Ti);var mf=Ti.exports;const ch=gf(mf),Ci=Symbol("rowContextKey"),pf=e=>{Cn(Ci,e)},vf=()=>Pn(Ci,{gutter:R(()=>{}),wrap:R(()=>{}),supportFlexGap:R(()=>{})}),yf=pf,wf=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},bf=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},$f=(e,t)=>{const{componentCls:n,gridColumns:r}=e,i={};for(let o=r;o>=0;o--)o===0?(i[`${n}${t}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${o}`]={marginInlineEnd:0},i[`${n}${t}-order-${o}`]={order:0}):(i[`${n}${t}-${o}`]={display:"block",flex:`0 0 ${o/r*100}%`,maxWidth:`${o/r*100}%`},i[`${n}${t}-push-${o}`]={insetInlineStart:`${o/r*100}%`},i[`${n}${t}-pull-${o}`]={insetInlineEnd:`${o/r*100}%`},i[`${n}${t}-offset-${o}`]={marginInlineStart:`${o/r*100}%`},i[`${n}${t}-order-${o}`]={order:o});return i},gn=(e,t)=>$f(e,t),xf=(e,t,n)=>({[`@media (min-width: ${t}px)`]:V({},gn(e,n))}),Ef=_n("Grid",e=>[wf(e)]),Sf=_n("Grid",e=>{const t=Qr(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[bf(t),gn(t,""),gn(t,"-xs"),Object.keys(n).map(r=>xf(t,n[r],r)).reduce((r,i)=>V(V({},r),i),{})]}),Af=()=>({align:it([String,Object]),justify:it([String,Object]),prefixCls:String,gutter:it([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),Of=tt({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:Af(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:i,direction:o}=Nt("row",e),[s,a]=Ef(i);let l;const u=ff(),d=lt({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),f=lt({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),w=h=>R(()=>{if(typeof e[h]=="string")return e[h];if(typeof e[h]!="object")return"";for(let b=0;b<$t.length;b++){const S=$t[b];if(!f.value[S])continue;const x=e[h][S];if(x!==void 0)return x}return""}),$=w("align"),p=w("justify"),c=Bo();ni(()=>{l=u.value.subscribe(h=>{f.value=h;const b=e.gutter||0;(!Array.isArray(b)&&typeof b=="object"||Array.isArray(b)&&(typeof b[0]=="object"||typeof b[1]=="object"))&&(d.value=h)})}),ri(()=>{u.value.unsubscribe(l)});const y=R(()=>{const h=[void 0,void 0],{gutter:b=0}=e;return(Array.isArray(b)?b:[b,void 0]).forEach((x,_)=>{if(typeof x=="object")for(let C=0;C<$t.length;C++){const L=$t[C];if(d.value[L]&&x[L]!==void 0){h[_]=x[L];break}}else h[_]=x}),h});yf({gutter:y,supportFlexGap:c,wrap:R(()=>e.wrap)});const g=R(()=>ze(i.value,{[`${i.value}-no-wrap`]:e.wrap===!1,[`${i.value}-${p.value}`]:p.value,[`${i.value}-${$.value}`]:$.value,[`${i.value}-rtl`]:o.value==="rtl"},r.class,a.value)),A=R(()=>{const h=y.value,b={},S=h[0]!=null&&h[0]>0?`${h[0]/-2}px`:void 0,x=h[1]!=null&&h[1]>0?`${h[1]/-2}px`:void 0;return S&&(b.marginLeft=S,b.marginRight=S),c.value?b.rowGap=`${h[1]}px`:x&&(b.marginTop=x,b.marginBottom=x),b});return()=>{var h;return s(X("div",ie(ie({},r),{},{class:g.value,style:V(V({},A.value),r.style)}),[(h=n.default)===null||h===void 0?void 0:h.call(n)]))}}}),_f=Of;function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Re.apply(this,arguments)}function If(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ct(e,t)}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mn(e)}function ct(e,t){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ct(e,t)}function Tf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _t(e,t,n){return Tf()?_t=Reflect.construct.bind():_t=function(i,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(i,a),u=new l;return s&&ct(u,s.prototype),u},_t.apply(null,arguments)}function Cf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function pn(e){var t=typeof Map=="function"?new Map:void 0;return pn=function(r){if(r===null||!Cf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return _t(r,arguments,mn(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ct(i,r)},pn(e)}var Pf=/%[sdj%]/g,Ff=function(){};typeof process<"u"&&process.env;function vn(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function he(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(Pf,function(a){if(a==="%%")return"%";if(i>=o)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return s}return e}function Mf(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function se(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Mf(t)&&typeof e=="string"&&!e)}function Lf(e,t,n){var r=[],i=0,o=e.length;function s(a){r.push.apply(r,a||[]),i++,i===o&&n(r)}e.forEach(function(a){t(a,s)})}function _r(e,t,n){var r=0,i=e.length;function o(s){if(s&&s.length){n(s);return}var a=r;r=r+1,a<i?t(e[a],o):n([])}o([])}function Bf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Ir=function(e){If(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(pn(Error));function qf(e,t,n,r,i){if(t.first){var o=new Promise(function(w,$){var p=function(g){return r(g),g.length?$(new Ir(g,vn(g))):w(i)},c=Bf(e);_r(c,n,p)});return o.catch(function(w){return w}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,u=0,d=[],f=new Promise(function(w,$){var p=function(y){if(d.push.apply(d,y),u++,u===l)return r(d),d.length?$(new Ir(d,vn(d))):w(i)};a.length||(r(d),w(i)),a.forEach(function(c){var y=e[c];s.indexOf(c)!==-1?_r(y,n,p):Lf(y,n,p)})});return f.catch(function(w){return w}),f}function Nf(e){return!!(e&&e.message!==void 0)}function Rf(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Tr(e,t){return function(n){var r;return e.fullFields?r=Rf(t,e.fullFields):r=t[n.field||e.fullField],Nf(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Cr(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Re({},e[n],r):e[n]=r}}return e}var Pi=function(t,n,r,i,o,s){t.required&&(!r.hasOwnProperty(t.field)||se(n,s||t.type))&&i.push(he(o.messages.required,t.fullField))},jf=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(he(o.messages.whitespace,t.fullField))},xt,Hf=function(){if(xt)return xt;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),s=new RegExp("^"+n+"$"),a=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?o:new RegExp("(?:"+t(b)+n+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(h){return h&&h.exact?s:new RegExp(""+t(h)+n+t(h),"g")},l.v6=function(h){return h&&h.exact?a:new RegExp(""+t(h)+i+t(h),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,w=l.v6().source,$="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",c="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',A="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+w+"|"+$+p+c+")"+y+g;return xt=new RegExp("(?:^"+A+"$)","i"),xt},Pr={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},rt={integer:function(t){return rt.number(t)&&parseInt(t,10)===t},float:function(t){return rt.number(t)&&!rt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!rt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Pr.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Hf())},hex:function(t){return typeof t=="string"&&!!t.match(Pr.hex)}},Df=function(t,n,r,i,o){if(t.required&&n===void 0){Pi(t,n,r,i,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?rt[a](n)||i.push(he(o.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(he(o.messages.types[a],t.fullField,t.type))},Uf=function(t,n,r,i,o){var s=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,w=typeof n=="number",$=typeof n=="string",p=Array.isArray(n);if(w?f="number":$?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),$&&(d=n.replace(u,"_").length),s?d!==t.len&&i.push(he(o.messages[f].len,t.fullField,t.len)):a&&!l&&d<t.min?i.push(he(o.messages[f].min,t.fullField,t.min)):l&&!a&&d>t.max?i.push(he(o.messages[f].max,t.fullField,t.max)):a&&l&&(d<t.min||d>t.max)&&i.push(he(o.messages[f].range,t.fullField,t.min,t.max))},Ze="enum",Vf=function(t,n,r,i,o){t[Ze]=Array.isArray(t[Ze])?t[Ze]:[],t[Ze].indexOf(n)===-1&&i.push(he(o.messages[Ze],t.fullField,t[Ze].join(", ")))},Gf=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(he(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||i.push(he(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},W={required:Pi,whitespace:jf,type:Df,range:Uf,enum:Vf,pattern:Gf},zf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n,"string")&&!t.required)return r();W.required(t,n,i,s,o,"string"),se(n,"string")||(W.type(t,n,i,s,o),W.range(t,n,i,s,o),W.pattern(t,n,i,s,o),t.whitespace===!0&&W.whitespace(t,n,i,s,o))}r(s)},Wf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&W.type(t,n,i,s,o)}r(s)},Kf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&(W.type(t,n,i,s,o),W.range(t,n,i,s,o))}r(s)},Zf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&W.type(t,n,i,s,o)}r(s)},Yf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),se(n)||W.type(t,n,i,s,o)}r(s)},Xf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&(W.type(t,n,i,s,o),W.range(t,n,i,s,o))}r(s)},Qf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&(W.type(t,n,i,s,o),W.range(t,n,i,s,o))}r(s)},Jf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();W.required(t,n,i,s,o,"array"),n!=null&&(W.type(t,n,i,s,o),W.range(t,n,i,s,o))}r(s)},kf=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&W.type(t,n,i,s,o)}r(s)},ec="enum",tc=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o),n!==void 0&&W[ec](t,n,i,s,o)}r(s)},nc=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n,"string")&&!t.required)return r();W.required(t,n,i,s,o),se(n,"string")||W.pattern(t,n,i,s,o)}r(s)},rc=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n,"date")&&!t.required)return r();if(W.required(t,n,i,s,o),!se(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),W.type(t,l,i,s,o),l&&W.range(t,l.getTime(),i,s,o)}}r(s)},ic=function(t,n,r,i,o){var s=[],a=Array.isArray(n)?"array":typeof n;W.required(t,n,i,s,o,a),r(s)},kt=function(t,n,r,i,o){var s=t.type,a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(se(n,s)&&!t.required)return r();W.required(t,n,i,a,o,s),se(n,s)||W.type(t,n,i,a,o)}r(a)},oc=function(t,n,r,i,o){var s=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(se(n)&&!t.required)return r();W.required(t,n,i,s,o)}r(s)},st={string:zf,method:Wf,number:Kf,boolean:Zf,regexp:Yf,integer:Xf,float:Qf,array:Jf,object:kf,enum:tc,pattern:nc,date:rc,url:kt,hex:kt,email:kt,required:ic,any:oc};function yn(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var wn=yn(),pt=function(){function e(n){this.rules=null,this._messages=wn,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var s=r[o];i.rules[o]=Array.isArray(s)?s:[s]})},t.messages=function(r){return r&&(this._messages=Cr(yn(),r)),this._messages},t.validate=function(r,i,o){var s=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var a=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(c){var y=[],g={};function A(b){if(Array.isArray(b)){var S;y=(S=y).concat.apply(S,b)}else y.push(b)}for(var h=0;h<c.length;h++)A(c[h]);y.length?(g=vn(y),u(y,g)):u(null,a)}if(l.messages){var f=this.messages();f===wn&&(f=yn()),Cr(f,l.messages),l.messages=f}else l.messages=this.messages();var w={},$=l.keys||Object.keys(this.rules);$.forEach(function(c){var y=s.rules[c],g=a[c];y.forEach(function(A){var h=A;typeof h.transform=="function"&&(a===r&&(a=Re({},a)),g=a[c]=h.transform(g)),typeof h=="function"?h={validator:h}:h=Re({},h),h.validator=s.getValidationMethod(h),h.validator&&(h.field=c,h.fullField=h.fullField||c,h.type=s.getType(h),w[c]=w[c]||[],w[c].push({rule:h,value:g,source:a,field:c}))})});var p={};return qf(w,l,function(c,y){var g=c.rule,A=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");A=A&&(g.required||!g.required&&c.value),g.field=c.field;function h(x,_){return Re({},_,{fullField:g.fullField+"."+x,fullFields:g.fullFields?[].concat(g.fullFields,[x]):[x]})}function b(x){x===void 0&&(x=[]);var _=Array.isArray(x)?x:[x];!l.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&g.message!==void 0&&(_=[].concat(g.message));var C=_.map(Tr(g,a));if(l.first&&C.length)return p[g.field]=1,y(C);if(!A)y(C);else{if(g.required&&!c.value)return g.message!==void 0?C=[].concat(g.message).map(Tr(g,a)):l.error&&(C=[l.error(g,he(l.messages.required,g.field))]),y(C);var L={};g.defaultField&&Object.keys(c.value).map(function(H){L[H]=g.defaultField}),L=Re({},L,c.rule.fields);var F={};Object.keys(L).forEach(function(H){var I=L[H],P=Array.isArray(I)?I:[I];F[H]=P.map(h.bind(null,H))});var q=new e(F);q.messages(l.messages),c.rule.options&&(c.rule.options.messages=l.messages,c.rule.options.error=l.error),q.validate(c.value,c.rule.options||l,function(H){var I=[];C&&C.length&&I.push.apply(I,C),H&&H.length&&I.push.apply(I,H),y(I.length?I:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,c.value,b,c.source,l);else if(g.validator){try{S=g.validator(g,c.value,b,c.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}S===!0?b():S===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.field)+" fails"):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(x){return b(x)})},function(c){d(c)},a)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!st.hasOwnProperty(r.type))throw new Error(he("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?st.required:st[this.getType(r)]||void 0},e}();pt.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");st[t]=n};pt.warning=Ff;pt.messages=wn;pt.validators=st;function Pe(e){return e==null?[]:Array.isArray(e)?e:[e]}function Fi(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Mi(e,t,n,r){if(!t.length)return n;const[i,...o]=t;let s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=[...e]:s=V({},e),r&&n===void 0&&o.length===1?delete s[i][o[0]]:s[i]=Mi(s[i],o,n,r),s}function sc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Fi(e,t.slice(0,-1))?e:Mi(e,t,n,r)}function bn(e){return Pe(e)}function ac(e,t){return Fi(e,t)}function lc(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return sc(e,t,n,r)}function uc(e,t){return e&&e.some(n=>cc(n,t))}function Fr(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Li(e,t){const n=Array.isArray(e)?[...e]:V({},e);return t&&Object.keys(t).forEach(r=>{const i=n[r],o=t[r],s=Fr(i)&&Fr(o);n[r]=s?Li(i,o||{}):o}),n}function fc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((i,o)=>Li(i,o),e)}function Mr(e,t){let n={};return t.forEach(r=>{const i=ac(e,r);n=lc(n,r,i)}),n}function cc(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,r)=>t[r]===n)}const de="'${name}' is not a valid ${type}",Gt={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:de,method:de,array:de,object:de,number:de,date:de,boolean:de,integer:de,float:de,regexp:de,email:de,url:de,hex:de},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var zt=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(d){try{u(r.next(d))}catch(f){s(f)}}function l(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?o(d.value):i(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const dc=pt;function hc(e,t){return e.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return t[r]})}function $n(e,t,n,r,i){return zt(this,void 0,void 0,function*(){const o=V({},n);delete o.ruleIndex,delete o.trigger;let s=null;o&&o.type==="array"&&o.defaultField&&(s=o.defaultField,delete o.defaultField);const a=new dc({[e]:[o]}),l=fc({},Gt,r.validateMessages);a.messages(l);let u=[];try{yield Promise.resolve(a.validate({[e]:t},V({},r)))}catch(w){w.errors?u=w.errors.map(($,p)=>{let{message:c}=$;return uo(c)?To(c,{key:`error_${p}`}):c}):(console.error(w),u=[l.default()])}if(!u.length&&s)return(yield Promise.all(t.map(($,p)=>$n(`${e}.${p}`,$,s,r,i)))).reduce(($,p)=>[...$,...p],[]);const d=V(V(V({},n),{name:e,enum:(n.enum||[]).join(", ")}),i);return u.map(w=>typeof w=="string"?hc(w,d):w)})}function Bi(e,t,n,r,i,o){const s=e.join("."),a=n.map((u,d)=>{const f=u.validator,w=V(V({},u),{ruleIndex:d});return f&&(w.validator=($,p,c)=>{let y=!1;const A=f($,p,function(){for(var h=arguments.length,b=new Array(h),S=0;S<h;S++)b[S]=arguments[S];Promise.resolve().then(()=>{y||c(...b)})});y=A&&typeof A.then=="function"&&typeof A.catch=="function",y&&A.then(()=>{c()}).catch(h=>{c(h||" ")})}),w}).sort((u,d)=>{let{warningOnly:f,ruleIndex:w}=u,{warningOnly:$,ruleIndex:p}=d;return!!f==!!$?w-p:f?1:-1});let l;if(i===!0)l=new Promise((u,d)=>zt(this,void 0,void 0,function*(){for(let f=0;f<a.length;f+=1){const w=a[f],$=yield $n(s,t,w,r,o);if($.length){d([{errors:$,rule:w}]);return}}u([])}));else{const u=a.map(d=>$n(s,t,d,r,o).then(f=>({errors:f,rule:d})));l=(i?mc(u):gc(u)).then(d=>Promise.reject(d))}return l.catch(u=>u),l}function gc(e){return zt(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function mc(e){return zt(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),t+=1,t===e.length&&n([])})})})})}const qi=Symbol("formContextKey"),Ni=e=>{Cn(qi,e)},Dn=()=>Pn(qi,{name:R(()=>{}),labelAlign:R(()=>"right"),vertical:R(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:R(()=>{}),rules:R(()=>{}),colon:R(()=>{}),labelWrap:R(()=>{}),labelCol:R(()=>{}),requiredMark:R(()=>!1),validateTrigger:R(()=>{}),onValidate:()=>{},validateMessages:R(()=>Gt)}),Ri=Symbol("formItemPrefixContextKey"),pc=e=>{Cn(Ri,e)},vc=()=>Pn(Ri,{prefixCls:R(()=>"")});function yc(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const wc=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),bc=["xs","sm","md","lg","xl","xxl"],ji=tt({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:wc(),setup(e,t){let{slots:n,attrs:r}=t;const{gutter:i,supportFlexGap:o,wrap:s}=vf(),{prefixCls:a,direction:l}=Nt("col",e),[u,d]=Sf(a),f=R(()=>{const{span:$,order:p,offset:c,push:y,pull:g}=e,A=a.value;let h={};return bc.forEach(b=>{let S={};const x=e[b];typeof x=="number"?S.span=x:typeof x=="object"&&(S=x||{}),h=V(V({},h),{[`${A}-${b}-${S.span}`]:S.span!==void 0,[`${A}-${b}-order-${S.order}`]:S.order||S.order===0,[`${A}-${b}-offset-${S.offset}`]:S.offset||S.offset===0,[`${A}-${b}-push-${S.push}`]:S.push||S.push===0,[`${A}-${b}-pull-${S.pull}`]:S.pull||S.pull===0,[`${A}-rtl`]:l.value==="rtl"})}),ze(A,{[`${A}-${$}`]:$!==void 0,[`${A}-order-${p}`]:p,[`${A}-offset-${c}`]:c,[`${A}-push-${y}`]:y,[`${A}-pull-${g}`]:g},h,r.class,d.value)}),w=R(()=>{const{flex:$}=e,p=i.value,c={};if(p&&p[0]>0){const y=`${p[0]/2}px`;c.paddingLeft=y,c.paddingRight=y}if(p&&p[1]>0&&!o.value){const y=`${p[1]/2}px`;c.paddingTop=y,c.paddingBottom=y}return $&&(c.flex=yc($),s.value===!1&&!c.minWidth&&(c.minWidth=0)),c});return()=>{var $;return u(X("div",ie(ie({},r),{},{class:f.value,style:[w.value,r.style]}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}}),Un=(e,t)=>{let{slots:n,emit:r,attrs:i}=t;var o,s,a,l,u;const{prefixCls:d,htmlFor:f,labelCol:w,labelAlign:$,colon:p,required:c,requiredMark:y}=V(V({},e),i),[g]=fo("Form"),A=(o=e.label)!==null&&o!==void 0?o:(s=n.label)===null||s===void 0?void 0:s.call(n);if(!A)return null;const{vertical:h,labelAlign:b,labelCol:S,labelWrap:x,colon:_}=Dn(),C=w||(S==null?void 0:S.value)||{},L=$||(b==null?void 0:b.value),F=`${d}-item-label`,q=ze(F,L==="left"&&`${F}-left`,C.class,{[`${F}-wrap`]:!!x.value});let H=A;const I=p===!0||(_==null?void 0:_.value)!==!1&&p!==!1;I&&!h.value&&typeof A=="string"&&A.trim()!==""&&(H=A.replace(/[:|:]\s*$/,"")),H=X(Ct,null,[H,(a=n.tooltip)===null||a===void 0?void 0:a.call(n,{class:`${d}-item-tooltip`})]),y==="optional"&&!c&&(H=X(Ct,null,[H,X("span",{class:`${d}-item-optional`},[((l=g.value)===null||l===void 0?void 0:l.optional)||((u=co.Form)===null||u===void 0?void 0:u.optional)])]));const m=ze({[`${d}-item-required`]:c,[`${d}-item-required-mark-optional`]:y==="optional",[`${d}-item-no-colon`]:!I});return X(ji,ie(ie({},C),{},{class:q}),{default:()=>[X("label",{for:f,class:m,title:typeof A=="string"?A:"",onClick:E=>r("click",E)},[H])]})};Un.displayName="FormItemLabel";Un.inheritAttrs=!1;const $c=Un,xc=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Ec=xc,Sc=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Lr=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Ac=e=>{const{componentCls:t}=e;return{[e.componentCls]:V(V(V({},Jr(e)),Sc(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":V({},Lr(e,e.controlHeightSM)),"&-large":V({},Lr(e,e.controlHeightLG))})}},Oc=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i}=e;return{[t]:V(V({},Jr(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:ei,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},_c=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Ic=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ye=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Tc=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Ye(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,
          ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Cc=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,
      .${r}-col-24${n}-label,
      .${r}-col-xl-24${n}-label`]:Ye(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Tc(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ye(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ye(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ye(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ye(e)}}}},Vn=_n("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Qr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Ac(r),Oc(r),Ec(r),_c(r),Ic(r),Cc(r),lf(r),ei]}),Pc=tt({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:r,status:i}=vc(),o=R(()=>`${r.value}-item-explain`),s=R(()=>!!(e.errors&&e.errors.length)),a=lt(i.value),[,l]=Vn(r);return De([s,i],()=>{s.value&&(a.value=i.value)}),()=>{var u,d;const f=df(`${r.value}-show-help-item`),w=ho(`${r.value}-show-help-item`,f);return w.role="alert",w.class=[l.value,o.value,n.class,`${r.value}-show-help`],X(Mo,ie(ie({},go(`${r.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[Co(X(Fo,ie(ie({},w),{},{tag:"div"}),{default:()=>[(d=e.errors)===null||d===void 0?void 0:d.map(($,p)=>X("div",{key:p,class:a.value?`${o.value}-${a.value}`:""},[$]))]}),[[Po,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),Fc=tt({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const r=Dn(),{wrapperCol:i}=r,o=V({},r);return delete o.labelCol,delete o.wrapperCol,Ni(o),pc({prefixCls:R(()=>e.prefixCls),status:R(()=>e.status)}),()=>{var s,a,l;const{prefixCls:u,wrapperCol:d,marginBottom:f,onErrorVisibleChanged:w,help:$=(s=n.help)===null||s===void 0?void 0:s.call(n),errors:p=kr((a=n.errors)===null||a===void 0?void 0:a.call(n)),extra:c=(l=n.extra)===null||l===void 0?void 0:l.call(n)}=e,y=`${u}-item`,g=d||(i==null?void 0:i.value)||{},A=ze(`${y}-control`,g.class);return X(ji,ie(ie({},g),{},{class:A}),{default:()=>{var h;return X(Ct,null,[X("div",{class:`${y}-control-input`},[X("div",{class:`${y}-control-input-content`},[(h=n.default)===null||h===void 0?void 0:h.call(n)])]),f!==null||p.length?X("div",{style:{display:"flex",flexWrap:"nowrap"}},[X(Pc,{errors:p,help:$,class:`${y}-explain-connected`,onErrorVisibleChanged:w},null),!!f&&X("div",{style:{width:0,height:`${f}px`}},null)]):null,c?X("div",{class:`${y}-extra`},[c]):null])}})}}}),Mc=Fc;function Lc(e){const t=$e(e.value.slice());let n=null;return un(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}In("success","warning","error","validating","");const Bc={success:Eo,warning:So,error:xo,validating:po};function en(e,t,n){let r=e;const i=t;let o=0;try{for(let s=i.length;o<s-1&&!(!r&&!n);++o){const a=i[o];if(a in r)r=r[a];else{if(n)throw Error("please transfer a valid name path to form item!");break}}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:r,k:i[o],v:r?r[i[o]]:void 0}}const qc=()=>({htmlFor:String,prefixCls:String,label:Xe.any,help:Xe.any,extra:Xe.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:Xe.oneOf(In("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean});let Nc=0;const Rc="form_item",jc=tt({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:qc(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:i}=t;mo(e.prop===void 0);const o=`form-item-${++Nc}`,{prefixCls:s}=Nt("form",e),[a,l]=Vn(s),u=$e(),d=Dn(),f=R(()=>e.name||e.prop),w=$e([]),$=$e(!1),p=$e(),c=R(()=>{const M=f.value;return bn(M)}),y=R(()=>{if(c.value.length){const M=d.name.value,j=c.value.join("_");return M?`${M}_${j}`:`${Rc}_${j}`}else return}),g=()=>{const M=d.model.value;if(!(!M||!f.value))return en(M,c.value,!0).v},A=R(()=>g()),h=$e(Ot(A.value)),b=R(()=>{let M=e.validateTrigger!==void 0?e.validateTrigger:d.validateTrigger.value;return M=M===void 0?"change":M,Pe(M)}),S=R(()=>{let M=d.rules.value;const j=e.rules,U=e.required!==void 0?{required:!!e.required,trigger:b.value}:[],Y=en(M,c.value);M=M?Y.o[Y.k]||Y.v:[];const G=[].concat(j||M||[]);return Wu(G,Z=>Z.required)?G:G.concat(U)}),x=R(()=>{const M=S.value;let j=!1;return M&&M.length&&M.every(U=>U.required?(j=!0,!1):!0),j||e.required}),_=$e();un(()=>{_.value=e.validateStatus});const C=R(()=>{let M={};return typeof e.label=="string"?M.label=e.label:e.name&&(M.label=String(e.name)),e.messageVariables&&(M=V(V({},M),e.messageVariables)),M}),L=M=>{if(c.value.length===0)return;const{validateFirst:j=!1}=e,{triggerName:U}=M||{};let Y=S.value;if(U&&(Y=Y.filter(Z=>{const{trigger:k}=Z;return!k&&!b.value.length?!0:Pe(k||b.value).includes(U)})),!Y.length)return Promise.resolve();const G=Bi(c.value,A.value,Y,V({validateMessages:d.validateMessages.value},M),j,C.value);return _.value="validating",w.value=[],G.catch(Z=>Z).then(function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(_.value==="validating"){const k=Z.filter(Q=>Q&&Q.errors.length);_.value=k.length?"error":"success",w.value=k.map(Q=>Q.errors),d.onValidate(f.value,!w.value.length,w.value.length?fn(w.value[0]):null)}}),G},F=()=>{L({triggerName:"blur"})},q=()=>{if($.value){$.value=!1;return}L({triggerName:"change"})},H=()=>{_.value=e.validateStatus,$.value=!1,w.value=[]},I=()=>{_.value=e.validateStatus,$.value=!0,w.value=[];const M=d.model.value||{},j=A.value,U=en(M,c.value,!0);Array.isArray(j)?U.o[U.k]=[].concat(h.value):U.o[U.k]=h.value,Tn(()=>{$.value=!1})},P=R(()=>e.htmlFor===void 0?y.value:e.htmlFor),m=()=>{const M=P.value;if(!M||!p.value)return;const j=p.value.$el.querySelector(`[id="${M}"]`);j&&j.focus&&j.focus()};i({onFieldBlur:F,onFieldChange:q,clearValidate:H,resetField:I}),Oo({id:y,onFieldBlur:()=>{e.autoLink&&F()},onFieldChange:()=>{e.autoLink&&q()},clearValidate:H},R(()=>!!(e.autoLink&&d.model.value&&f.value)));let E=!1;De(f,M=>{M?E||(E=!0,d.addField(o,{fieldValue:A,fieldId:y,fieldName:f,resetField:I,clearValidate:H,namePath:c,validateRules:L,rules:S})):(E=!1,d.removeField(o))},{immediate:!0}),ri(()=>{d.removeField(o)});const v=Lc(w),O=R(()=>e.validateStatus!==void 0?e.validateStatus:v.value.length?"error":_.value),T=R(()=>({[`${s.value}-item`]:!0,[l.value]:!0,[`${s.value}-item-has-feedback`]:O.value&&e.hasFeedback,[`${s.value}-item-has-success`]:O.value==="success",[`${s.value}-item-has-warning`]:O.value==="warning",[`${s.value}-item-has-error`]:O.value==="error",[`${s.value}-item-is-validating`]:O.value==="validating",[`${s.value}-item-hidden`]:e.hidden})),B=ii({});_o.useProvide(B),un(()=>{let M;if(e.hasFeedback){const j=O.value&&Bc[O.value];M=j?X("span",{class:ze(`${s.value}-item-feedback-icon`,`${s.value}-item-feedback-icon-${O.value}`)},[X(j,null,null)]):null}V(B,{status:O.value,hasFeedback:e.hasFeedback,feedbackIcon:M,isFormItemInput:!0})});const N=$e(null),D=$e(!1),K=()=>{if(u.value){const M=getComputedStyle(u.value);N.value=parseInt(M.marginBottom,10)}};ni(()=>{De(D,()=>{D.value&&K()},{flush:"post",immediate:!0})});const z=M=>{M||(N.value=null)};return()=>{var M,j;if(e.noStyle)return(M=n.default)===null||M===void 0?void 0:M.call(n);const U=(j=e.help)!==null&&j!==void 0?j:n.help?kr(n.help()):null,Y=!!(U!=null&&Array.isArray(U)&&U.length||v.value.length);return D.value=Y,a(X("div",{class:[T.value,Y?`${s.value}-item-with-help`:"",r.class],ref:u},[X(_f,ie(ie({},r),{},{class:`${s.value}-row`,key:"row"}),{default:()=>{var G,Z,k,Q;return X(Ct,null,[X($c,ie(ie({},e),{},{htmlFor:P.value,required:x.value,requiredMark:d.requiredMark.value,prefixCls:s.value,onClick:m,label:(G=e.label)!==null&&G!==void 0?G:(Z=n.label)===null||Z===void 0?void 0:Z.call(n)}),null),X(Mc,ie(ie({},e),{},{errors:U!=null?Pe(U):v.value,marginBottom:N.value,prefixCls:s.value,status:O.value,ref:p,help:U,extra:(k=e.extra)!==null&&k!==void 0?k:(Q=n.extra)===null||Q===void 0?void 0:Q.call(n),onErrorVisibleChanged:z}),{default:n.default})])}}),!!N.value&&X("div",{class:`${s.value}-margin-offset`,style:{marginBottom:`-${N.value}px`}},null)]))}}});function Hi(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,o)=>{e.forEach((s,a)=>{s.catch(l=>(t=!0,l)).then(l=>{n-=1,r[a]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}function Br(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function qr(e){return e==null?[]:Array.isArray(e)?e:[e]}function tn(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const i=t.split(".");let o=0;for(let s=i.length;o<s-1&&!(!r&&!n);++o){const a=i[o];if(a in r)r=r[a];else{if(n)throw new Error("please transfer a valid name path to validate!");break}}return{o:r,k:i[o],v:r?r[i[o]]:null,isValid:r&&i[o]in r}}function Hc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lt({}),n=arguments.length>2?arguments[2]:void 0;const r=Ot(Le(e)),i=ii({}),o=$e([]),s=h=>{V(Le(e),V(V({},Ot(r)),h)),Tn(()=>{Object.keys(i).forEach(b=>{i[b]={autoLink:!1,required:Br(Le(t)[b])}})})},a=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1?arguments[1]:void 0;return b.length?h.filter(S=>{const x=qr(S.trigger||"change");return Qu(x,b).length}):h};let l=null;const u=function(h){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=arguments.length>2?arguments[2]:void 0;const x=[],_={};for(let F=0;F<h.length;F++){const q=h[F],H=tn(Le(e),q,S);if(!H.isValid)continue;_[q]=H.v;const I=a(Le(t)[q],qr(b&&b.trigger));I.length&&x.push(d(q,H.v,I,b||{}).then(()=>({name:q,errors:[],warnings:[]})).catch(P=>{const m=[],E=[];return P.forEach(v=>{let{rule:{warningOnly:O},errors:T}=v;O?E.push(...T):m.push(...T)}),m.length?Promise.reject({name:q,errors:m,warnings:E}):{name:q,errors:m,warnings:E}}))}const C=Hi(x);l=C;const L=C.then(()=>l===C?Promise.resolve(_):Promise.reject([])).catch(F=>{const q=F.filter(H=>H&&H.errors.length);return Promise.reject({values:_,errorFields:q,outOfDate:l!==C})});return L.catch(F=>F),L},d=function(h,b,S){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=Bi([h],b,S,V({validateMessages:Gt},x),!!x.validateFirst);return i[h]?(i[h].validateStatus="validating",_.catch(C=>C).then(function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var L;if(i[h].validateStatus==="validating"){const F=C.filter(q=>q&&q.errors.length);i[h].validateStatus=F.length?"error":"success",i[h].help=F.length?F.map(q=>q.errors):null,(L=n==null?void 0:n.onValidate)===null||L===void 0||L.call(n,h,!F.length,F.length?fn(i[h].help[0]):null)}}),_):_.catch(C=>C)},f=(h,b)=>{let S=[],x=!0;h?Array.isArray(h)?S=h:S=[h]:(x=!1,S=o.value);const _=u(S,b||{},x);return _.catch(C=>C),_},w=h=>{let b=[];h?Array.isArray(h)?b=h:b=[h]:b=o.value,b.forEach(S=>{i[S]&&V(i[S],{validateStatus:"",help:null})})},$=h=>{const b={autoLink:!1},S=[],x=Array.isArray(h)?h:[h];for(let _=0;_<x.length;_++){const C=x[_];(C==null?void 0:C.validateStatus)==="error"&&(b.validateStatus="error",C.help&&S.push(C.help)),b.required=b.required||(C==null?void 0:C.required)}return b.help=S,b};let p=r,c=!0;const y=h=>{const b=[];o.value.forEach(S=>{const x=tn(h,S,!1),_=tn(p,S,!1);(c&&(n==null?void 0:n.immediate)&&x.isValid||!ci(x.v,_.v))&&b.push(S)}),f(b,{trigger:"change"}),c=!1,p=Ot(fn(h))},g=n==null?void 0:n.debounce;let A=!0;return De(t,()=>{o.value=t?Object.keys(Le(t)):[],!A&&n&&n.validateOnRuleChange&&f(),A=!1},{deep:!0,immediate:!0}),De(o,()=>{const h={};o.value.forEach(b=>{h[b]=V({},i[b],{autoLink:!1,required:Br(Le(t)[b])}),delete i[b]});for(const b in i)Object.prototype.hasOwnProperty.call(i,b)&&delete i[b];V(i,h)},{immediate:!0}),De(e,g&&g.wait?Ru(y,g.wait,sf(g,["wait"])):y,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:i,resetFields:s,validate:f,validateField:d,mergeValidateInfo:$,clearValidate:w}}const Dc=()=>({layout:Xe.oneOf(In("horizontal","inline","vertical")),labelCol:yt(),wrapperCol:yt(),colon:nt(),labelAlign:nr(),labelWrap:nt(),prefixCls:String,requiredMark:it([String,Boolean]),hideRequiredMark:nt(),model:Xe.object,rules:yt(),validateMessages:yt(),validateOnRuleChange:nt(),scrollToFirstError:$o(),onSubmit:Ke(),name:String,validateTrigger:it([String,Array]),size:nr(),disabled:nt(),onValuesChange:Ke(),onFieldsChange:Ke(),onFinish:Ke(),onFinishFailed:Ke(),onValidate:Ke()});function Uc(e,t){return ci(Pe(e),Pe(t))}const Vc=tt({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:vo(Dc(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:jc,useForm:Hc,setup(e,t){let{emit:n,slots:r,expose:i,attrs:o}=t;const{prefixCls:s,direction:a,form:l,size:u,disabled:d}=Nt("form",e),f=R(()=>e.requiredMark===""||e.requiredMark),w=R(()=>{var v;return f.value!==void 0?f.value:l&&((v=l.value)===null||v===void 0?void 0:v.requiredMark)!==void 0?l.value.requiredMark:!e.hideRequiredMark});yo(u),wo(d);const $=R(()=>{var v,O;return(v=e.colon)!==null&&v!==void 0?v:(O=l.value)===null||O===void 0?void 0:O.colon}),{validateMessages:p}=bo(),c=R(()=>V(V(V({},Gt),p.value),e.validateMessages)),[y,g]=Vn(s),A=R(()=>ze(s.value,{[`${s.value}-${e.layout}`]:!0,[`${s.value}-hide-required-mark`]:w.value===!1,[`${s.value}-rtl`]:a.value==="rtl",[`${s.value}-${u.value}`]:u.value},g.value)),h=lt(),b={},S=(v,O)=>{b[v]=O},x=v=>{delete b[v]},_=v=>{const O=!!v,T=O?Pe(v).map(bn):[];return O?Object.values(b).filter(B=>T.findIndex(N=>Uc(N,B.fieldName.value))>-1):Object.values(b)},C=v=>{if(!e.model){Yt();return}_(v).forEach(O=>{O.resetField()})},L=v=>{_(v).forEach(O=>{O.clearValidate()})},F=v=>{const{scrollToFirstError:O}=e;if(n("finishFailed",v),O&&v.errorFields.length){let T={};typeof O=="object"&&(T=O),H(v.errorFields[0].name,T)}},q=function(){return m(...arguments)},H=function(v){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const T=_(v?[v]:void 0);if(T.length){const B=T[0].fieldId.value,N=B?document.getElementById(B):null;N&&Ro(N,V({scrollMode:"if-needed",block:"nearest"},O))}},I=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(v===!0){const O=[];return Object.values(b).forEach(T=>{let{namePath:B}=T;O.push(B.value)}),Mr(e.model,O)}else return Mr(e.model,v)},P=(v,O)=>{if(Yt(),!e.model)return Yt(),Promise.reject("Form `model` is required for validateFields to work.");const T=!!v,B=T?Pe(v).map(bn):[],N=[];Object.values(b).forEach(z=>{var M;if(T||B.push(z.namePath.value),!(!((M=z.rules)===null||M===void 0)&&M.value.length))return;const j=z.namePath.value;if(!T||uc(B,j)){const U=z.validateRules(V({validateMessages:c.value},O));N.push(U.then(()=>({name:j,errors:[],warnings:[]})).catch(Y=>{const G=[],Z=[];return Y.forEach(k=>{let{rule:{warningOnly:Q},errors:ae}=k;Q?Z.push(...ae):G.push(...ae)}),G.length?Promise.reject({name:j,errors:G,warnings:Z}):{name:j,errors:G,warnings:Z}}))}});const D=Hi(N);h.value=D;const K=D.then(()=>h.value===D?Promise.resolve(I(B)):Promise.reject([])).catch(z=>{const M=z.filter(j=>j&&j.errors.length);return Promise.reject({values:I(B),errorFields:M,outOfDate:h.value!==D})});return K.catch(z=>z),K},m=function(){return P(...arguments)},E=v=>{v.preventDefault(),v.stopPropagation(),n("submit",v),e.model&&P().then(T=>{n("finish",T)}).catch(T=>{F(T)})};return i({resetFields:C,clearValidate:L,validateFields:P,getFieldsValue:I,validate:q,scrollToField:H}),Ni({model:R(()=>e.model),name:R(()=>e.name),labelAlign:R(()=>e.labelAlign),labelCol:R(()=>e.labelCol),labelWrap:R(()=>e.labelWrap),wrapperCol:R(()=>e.wrapperCol),vertical:R(()=>e.layout==="vertical"),colon:$,requiredMark:w,validateTrigger:R(()=>e.validateTrigger),rules:R(()=>e.rules),addField:S,removeField:x,onValidate:(v,O,T)=>{n("validate",v,O,T)},validateMessages:c}),De(()=>e.rules,()=>{e.validateOnRuleChange&&P()}),()=>{var v;return y(X("form",ie(ie({},o),{},{onSubmit:E,class:[A.value,o.class]}),[(v=r.default)===null||v===void 0?void 0:v.call(r)]))}}}),qe=Vc;qe.useInjectFormItemContext=Io;qe.ItemRest=ln;qe.install=function(e){return e.component(qe.name,qe),e.component(qe.Item.name,qe.Item),e.component(ln.name,ln),e};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Di=BigInt(0),Wt=BigInt(1),Gc=BigInt(2),Kt=e=>e instanceof Uint8Array,zc=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Se(e){if(!Kt(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=zc[e[n]];return t}function ue(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function re(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return BigInt(e===""?"0":`0x${e}`)}function ke(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const i=r*2,o=e.slice(i,i+2),s=Number.parseInt(o,16);if(Number.isNaN(s)||s<0)throw new Error("Invalid byte sequence");n[r]=s}return n}function Ue(e){return re(Se(e))}function Gn(e){if(!Kt(e))throw new Error("Uint8Array expected");return re(Se(Uint8Array.from(e).reverse()))}function Ve(e,t){return ke(e.toString(16).padStart(t*2,"0"))}function Ui(e,t){return Ve(e,t).reverse()}function Wc(e){return ke(ue(e))}function me(e,t,n){let r;if(typeof t=="string")try{r=ke(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else if(Kt(t))r=Uint8Array.from(t);else throw new Error(`${e} must be hex string or Uint8Array`);const i=r.length;if(typeof n=="number"&&i!==n)throw new Error(`${e} expected ${n} bytes, got ${i}`);return r}function ge(...e){const t=new Uint8Array(e.reduce((r,i)=>r+i.length,0));let n=0;return e.forEach(r=>{if(!Kt(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}function Kc(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Zc(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Yc(e){let t;for(t=0;e>Di;e>>=Wt,t+=1);return t}function Xc(e,t){return e>>BigInt(t)&Wt}const Qc=(e,t,n)=>e|(n?Wt:Di)<<BigInt(t),zn=e=>(Gc<<BigInt(e-1))-Wt,nn=e=>new Uint8Array(e),Nr=e=>Uint8Array.from(e);function Vi(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=nn(e),i=nn(e),o=0;const s=()=>{r.fill(1),i.fill(0),o=0},a=(...f)=>n(i,r,...f),l=(f=nn())=>{i=a(Nr([0]),f),r=a(),f.length!==0&&(i=a(Nr([1]),f),r=a())},u=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const w=[];for(;f<t;){r=a();const $=r.slice();w.push($),f+=r.length}return ge(...w)};return(f,w)=>{s(),l(f);let $;for(;!($=w(u()));)l();return s(),$}}const Jc={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function vt(e,t,n={}){const r=(i,o,s)=>{const a=Jc[o];if(typeof a!="function")throw new Error(`Invalid validator "${o}", expected function`);const l=e[i];if(!(s&&l===void 0)&&!a(l,e))throw new Error(`Invalid param ${String(i)}=${l} (${typeof l}), expected ${o}`)};for(const[i,o]of Object.entries(t))r(i,o,!1);for(const[i,o]of Object.entries(n))r(i,o,!0);return e}const kc=Object.freeze(Object.defineProperty({__proto__:null,bitGet:Xc,bitLen:Yc,bitMask:zn,bitSet:Qc,bytesToHex:Se,bytesToNumberBE:Ue,bytesToNumberLE:Gn,concatBytes:ge,createHmacDrbg:Vi,ensureBytes:me,equalBytes:Kc,hexToBytes:ke,hexToNumber:re,numberToBytesBE:Ve,numberToBytesLE:Ui,numberToHexUnpadded:ue,numberToVarBytesBE:Wc,utf8ToBytes:Zc,validateObject:vt},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const le=BigInt(0),ne=BigInt(1),Ne=BigInt(2),ed=BigInt(3),xn=BigInt(4),Rr=BigInt(5),jr=BigInt(8);BigInt(9);BigInt(16);function fe(e,t){const n=e%t;return n>=le?n:t+n}function td(e,t,n){if(n<=le||t<le)throw new Error("Expected power/modulo > 0");if(n===ne)return le;let r=ne;for(;t>le;)t&ne&&(r=r*e%n),e=e*e%n,t>>=ne;return r}function En(e,t){if(e===le||t<=le)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=fe(e,t),r=t,i=le,o=ne;for(;n!==le;){const a=r/n,l=r%n,u=i-o*a;r=n,n=l,i=o,o=u}if(r!==ne)throw new Error("invert: does not exist");return fe(i,t)}function nd(e){const t=(e-ne)/Ne;let n,r,i;for(n=e-ne,r=0;n%Ne===le;n/=Ne,r++);for(i=Ne;i<e&&td(i,t,e)!==e-ne;i++);if(r===1){const s=(e+ne)/xn;return function(l,u){const d=l.pow(u,s);if(!l.eql(l.sqr(d),u))throw new Error("Cannot find square root");return d}}const o=(n+ne)/Ne;return function(a,l){if(a.pow(l,t)===a.neg(a.ONE))throw new Error("Cannot find square root");let u=r,d=a.pow(a.mul(a.ONE,i),n),f=a.pow(l,o),w=a.pow(l,n);for(;!a.eql(w,a.ONE);){if(a.eql(w,a.ZERO))return a.ZERO;let $=1;for(let c=a.sqr(w);$<u&&!a.eql(c,a.ONE);$++)c=a.sqr(c);const p=a.pow(d,ne<<BigInt(u-$-1));d=a.sqr(p),f=a.mul(f,p),w=a.mul(w,d),u=$}return f}}function rd(e){if(e%xn===ed){const t=(e+ne)/xn;return function(r,i){const o=r.pow(i,t);if(!r.eql(r.sqr(o),i))throw new Error("Cannot find square root");return o}}if(e%jr===Rr){const t=(e-Rr)/jr;return function(r,i){const o=r.mul(i,Ne),s=r.pow(o,t),a=r.mul(i,s),l=r.mul(r.mul(a,Ne),s),u=r.mul(a,r.sub(l,r.ONE));if(!r.eql(r.sqr(u),i))throw new Error("Cannot find square root");return u}}return nd(e)}const id=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function od(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=id.reduce((r,i)=>(r[i]="function",r),t);return vt(e,n)}function sd(e,t,n){if(n<le)throw new Error("Expected power > 0");if(n===le)return e.ONE;if(n===ne)return t;let r=e.ONE,i=t;for(;n>le;)n&ne&&(r=e.mul(r,i)),i=e.sqr(i),n>>=ne;return r}function ad(e,t){const n=new Array(t.length),r=t.reduce((o,s,a)=>e.is0(s)?o:(n[a]=o,e.mul(o,s)),e.ONE),i=e.inv(r);return t.reduceRight((o,s,a)=>e.is0(s)?o:(n[a]=e.mul(o,n[a]),e.mul(o,s)),i),n}function Wn(e,t){const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Gi(e,t,n=!1,r={}){if(e<=le)throw new Error(`Expected Fp ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:o}=Wn(e,t);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=rd(e),a=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:zn(i),ZERO:le,ONE:ne,create:l=>fe(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof l}`);return le<=l&&l<e},is0:l=>l===le,isOdd:l=>(l&ne)===ne,neg:l=>fe(-l,e),eql:(l,u)=>l===u,sqr:l=>fe(l*l,e),add:(l,u)=>fe(l+u,e),sub:(l,u)=>fe(l-u,e),mul:(l,u)=>fe(l*u,e),pow:(l,u)=>sd(a,l,u),div:(l,u)=>fe(l*En(u,e),e),sqrN:l=>l*l,addN:(l,u)=>l+u,subN:(l,u)=>l-u,mulN:(l,u)=>l*u,inv:l=>En(l,e),sqrt:r.sqrt||(l=>s(a,l)),invertBatch:l=>ad(a,l),cmov:(l,u,d)=>d?u:l,toBytes:l=>n?Ui(l,o):Ve(l,o),fromBytes:l=>{if(l.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${l.length}`);return n?Gn(l):Ue(l)}});return Object.freeze(a)}function ld(e,t,n=!1){e=me("privateHash",e);const r=e.length,i=Wn(t).nByteLength+8;if(i<24||r<i||r>1024)throw new Error(`hashToPrivateScalar: expected ${i}-1024 bytes of input, got ${r}`);const o=n?Gn(e):Ue(e);return fe(o,t-ne)+ne}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ud=BigInt(0),rn=BigInt(1);function fd(e,t){const n=(i,o)=>{const s=o.negate();return i?s:o},r=i=>{const o=Math.ceil(t/i)+1,s=2**(i-1);return{windows:o,windowSize:s}};return{constTimeNegate:n,unsafeLadder(i,o){let s=e.ZERO,a=i;for(;o>ud;)o&rn&&(s=s.add(a)),a=a.double(),o>>=rn;return s},precomputeWindow(i,o){const{windows:s,windowSize:a}=r(o),l=[];let u=i,d=u;for(let f=0;f<s;f++){d=u,l.push(d);for(let w=1;w<a;w++)d=d.add(u),l.push(d);u=d.double()}return l},wNAF(i,o,s){const{windows:a,windowSize:l}=r(i);let u=e.ZERO,d=e.BASE;const f=BigInt(2**i-1),w=2**i,$=BigInt(i);for(let p=0;p<a;p++){const c=p*l;let y=Number(s&f);s>>=$,y>l&&(y-=w,s+=rn);const g=c,A=c+Math.abs(y)-1,h=p%2!==0,b=y<0;y===0?d=d.add(n(h,o[g])):u=u.add(n(b,o[A]))}return{p:u,f:d}},wNAFCached(i,o,s,a){const l=i._WINDOW_SIZE||1;let u=o.get(i);return u||(u=this.precomputeWindow(i,l),l!==1&&o.set(i,a(u))),this.wNAF(l,u,s)}}}function zi(e){return od(e.Fp),vt(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Wn(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function cd(e){const t=zi(e);vt(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:dd,hexToBytes:hd}=kc,je={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(e){const{Err:t}=je;if(e.length<2||e[0]!==2)throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(r[0]&128)throw new t("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:dd(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=je,n=typeof e=="string"?hd(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:i,l:o}=je._parseInt(n.subarray(2)),{d:s,l:a}=je._parseInt(o);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s}},hexFromSig(e){const t=u=>Number.parseInt(u[0],16)&8?"00"+u:u,n=u=>{const d=u.toString(16);return d.length&1?`0${d}`:d},r=t(n(e.s)),i=t(n(e.r)),o=r.length/2,s=i.length/2,a=n(o),l=n(s);return`30${n(s+o+4)}02${l}${i}02${a}${r}`}},Ee=BigInt(0),pe=BigInt(1);BigInt(2);const Hr=BigInt(3);BigInt(4);function gd(e){const t=cd(e),{Fp:n}=t,r=t.toBytes||((p,c,y)=>{const g=c.toAffine();return ge(Uint8Array.from([4]),n.toBytes(g.x),n.toBytes(g.y))}),i=t.fromBytes||(p=>{const c=p.subarray(1),y=n.fromBytes(c.subarray(0,n.BYTES)),g=n.fromBytes(c.subarray(n.BYTES,2*n.BYTES));return{x:y,y:g}});function o(p){const{a:c,b:y}=t,g=n.sqr(p),A=n.mul(g,p);return n.add(n.add(A,n.mul(p,c)),y)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function s(p){return typeof p=="bigint"&&Ee<p&&p<t.n}function a(p){if(!s(p))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function l(p){const{allowedPrivateKeyLengths:c,nByteLength:y,wrapPrivateKey:g,n:A}=t;if(c&&typeof p!="bigint"){if(p instanceof Uint8Array&&(p=Se(p)),typeof p!="string"||!c.includes(p.length))throw new Error("Invalid key");p=p.padStart(y*2,"0")}let h;try{h=typeof p=="bigint"?p:Ue(me("private key",p,y))}catch{throw new Error(`private key must be ${y} bytes, hex or bigint, not ${typeof p}`)}return g&&(h=fe(h,A)),a(h),h}const u=new Map;function d(p){if(!(p instanceof f))throw new Error("ProjectivePoint expected")}class f{constructor(c,y,g){if(this.px=c,this.py=y,this.pz=g,c==null||!n.isValid(c))throw new Error("x required");if(y==null||!n.isValid(y))throw new Error("y required");if(g==null||!n.isValid(g))throw new Error("z required")}static fromAffine(c){const{x:y,y:g}=c||{};if(!c||!n.isValid(y)||!n.isValid(g))throw new Error("invalid affine point");if(c instanceof f)throw new Error("projective point not allowed");const A=h=>n.eql(h,n.ZERO);return A(y)&&A(g)?f.ZERO:new f(y,g,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(c){const y=n.invertBatch(c.map(g=>g.pz));return c.map((g,A)=>g.toAffine(y[A])).map(f.fromAffine)}static fromHex(c){const y=f.fromAffine(i(me("pointHex",c)));return y.assertValidity(),y}static fromPrivateKey(c){return f.BASE.multiply(l(c))}_setWindowSize(c){this._WINDOW_SIZE=c,u.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:c,y}=this.toAffine();if(!n.isValid(c)||!n.isValid(y))throw new Error("bad point: x or y not FE");const g=n.sqr(y),A=o(c);if(!n.eql(g,A))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:c}=this.toAffine();if(n.isOdd)return!n.isOdd(c);throw new Error("Field doesn't support isOdd")}equals(c){d(c);const{px:y,py:g,pz:A}=this,{px:h,py:b,pz:S}=c,x=n.eql(n.mul(y,S),n.mul(h,A)),_=n.eql(n.mul(g,S),n.mul(b,A));return x&&_}negate(){return new f(this.px,n.neg(this.py),this.pz)}double(){const{a:c,b:y}=t,g=n.mul(y,Hr),{px:A,py:h,pz:b}=this;let S=n.ZERO,x=n.ZERO,_=n.ZERO,C=n.mul(A,A),L=n.mul(h,h),F=n.mul(b,b),q=n.mul(A,h);return q=n.add(q,q),_=n.mul(A,b),_=n.add(_,_),S=n.mul(c,_),x=n.mul(g,F),x=n.add(S,x),S=n.sub(L,x),x=n.add(L,x),x=n.mul(S,x),S=n.mul(q,S),_=n.mul(g,_),F=n.mul(c,F),q=n.sub(C,F),q=n.mul(c,q),q=n.add(q,_),_=n.add(C,C),C=n.add(_,C),C=n.add(C,F),C=n.mul(C,q),x=n.add(x,C),F=n.mul(h,b),F=n.add(F,F),C=n.mul(F,q),S=n.sub(S,C),_=n.mul(F,L),_=n.add(_,_),_=n.add(_,_),new f(S,x,_)}add(c){d(c);const{px:y,py:g,pz:A}=this,{px:h,py:b,pz:S}=c;let x=n.ZERO,_=n.ZERO,C=n.ZERO;const L=t.a,F=n.mul(t.b,Hr);let q=n.mul(y,h),H=n.mul(g,b),I=n.mul(A,S),P=n.add(y,g),m=n.add(h,b);P=n.mul(P,m),m=n.add(q,H),P=n.sub(P,m),m=n.add(y,A);let E=n.add(h,S);return m=n.mul(m,E),E=n.add(q,I),m=n.sub(m,E),E=n.add(g,A),x=n.add(b,S),E=n.mul(E,x),x=n.add(H,I),E=n.sub(E,x),C=n.mul(L,m),x=n.mul(F,I),C=n.add(x,C),x=n.sub(H,C),C=n.add(H,C),_=n.mul(x,C),H=n.add(q,q),H=n.add(H,q),I=n.mul(L,I),m=n.mul(F,m),H=n.add(H,I),I=n.sub(q,I),I=n.mul(L,I),m=n.add(m,I),q=n.mul(H,m),_=n.add(_,q),q=n.mul(E,m),x=n.mul(P,x),x=n.sub(x,q),q=n.mul(P,H),C=n.mul(E,C),C=n.add(C,q),new f(x,_,C)}subtract(c){return this.add(c.negate())}is0(){return this.equals(f.ZERO)}wNAF(c){return $.wNAFCached(this,u,c,y=>{const g=n.invertBatch(y.map(A=>A.pz));return y.map((A,h)=>A.toAffine(g[h])).map(f.fromAffine)})}multiplyUnsafe(c){const y=f.ZERO;if(c===Ee)return y;if(a(c),c===pe)return this;const{endo:g}=t;if(!g)return $.unsafeLadder(this,c);let{k1neg:A,k1:h,k2neg:b,k2:S}=g.splitScalar(c),x=y,_=y,C=this;for(;h>Ee||S>Ee;)h&pe&&(x=x.add(C)),S&pe&&(_=_.add(C)),C=C.double(),h>>=pe,S>>=pe;return A&&(x=x.negate()),b&&(_=_.negate()),_=new f(n.mul(_.px,g.beta),_.py,_.pz),x.add(_)}multiply(c){a(c);let y=c,g,A;const{endo:h}=t;if(h){const{k1neg:b,k1:S,k2neg:x,k2:_}=h.splitScalar(y);let{p:C,f:L}=this.wNAF(S),{p:F,f:q}=this.wNAF(_);C=$.constTimeNegate(b,C),F=$.constTimeNegate(x,F),F=new f(n.mul(F.px,h.beta),F.py,F.pz),g=C.add(F),A=L.add(q)}else{const{p:b,f:S}=this.wNAF(y);g=b,A=S}return f.normalizeZ([g,A])[0]}multiplyAndAddUnsafe(c,y,g){const A=f.BASE,h=(S,x)=>x===Ee||x===pe||!S.equals(A)?S.multiplyUnsafe(x):S.multiply(x),b=h(this,y).add(h(c,g));return b.is0()?void 0:b}toAffine(c){const{px:y,py:g,pz:A}=this,h=this.is0();c==null&&(c=h?n.ONE:n.inv(A));const b=n.mul(y,c),S=n.mul(g,c),x=n.mul(A,c);if(h)return{x:n.ZERO,y:n.ZERO};if(!n.eql(x,n.ONE))throw new Error("invZ was invalid");return{x:b,y:S}}isTorsionFree(){const{h:c,isTorsionFree:y}=t;if(c===pe)return!0;if(y)return y(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:c,clearCofactor:y}=t;return c===pe?this:y?y(f,this):this.multiplyUnsafe(t.h)}toRawBytes(c=!0){return this.assertValidity(),r(f,this,c)}toHex(c=!0){return Se(this.toRawBytes(c))}}f.BASE=new f(t.Gx,t.Gy,n.ONE),f.ZERO=new f(n.ZERO,n.ONE,n.ZERO);const w=t.nBitLength,$=fd(f,t.endo?Math.ceil(w/2):w);return{CURVE:t,ProjectivePoint:f,normPrivateKeyToScalar:l,weierstrassEquation:o,isWithinCurveOrder:s}}function md(e){const t=zi(e);return vt(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function pd(e){const t=md(e),{Fp:n,n:r}=t,i=n.BYTES+1,o=2*n.BYTES+1;function s(m){return Ee<m&&m<n.ORDER}function a(m){return fe(m,r)}function l(m){return En(m,r)}const{ProjectivePoint:u,normPrivateKeyToScalar:d,weierstrassEquation:f,isWithinCurveOrder:w}=gd({...t,toBytes(m,E,v){const O=E.toAffine(),T=n.toBytes(O.x),B=ge;return v?B(Uint8Array.from([E.hasEvenY()?2:3]),T):B(Uint8Array.from([4]),T,n.toBytes(O.y))},fromBytes(m){const E=m.length,v=m[0],O=m.subarray(1);if(E===i&&(v===2||v===3)){const T=Ue(O);if(!s(T))throw new Error("Point is not on curve");const B=f(T);let N=n.sqrt(B);const D=(N&pe)===pe;return(v&1)===1!==D&&(N=n.neg(N)),{x:T,y:N}}else if(E===o&&v===4){const T=n.fromBytes(O.subarray(0,n.BYTES)),B=n.fromBytes(O.subarray(n.BYTES,2*n.BYTES));return{x:T,y:B}}else throw new Error(`Point of length ${E} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),$=m=>Se(Ve(m,t.nByteLength));function p(m){const E=r>>pe;return m>E}function c(m){return p(m)?a(-m):m}const y=(m,E,v)=>Ue(m.slice(E,v));class g{constructor(E,v,O){this.r=E,this.s=v,this.recovery=O,this.assertValidity()}static fromCompact(E){const v=t.nByteLength;return E=me("compactSignature",E,v*2),new g(y(E,0,v),y(E,v,2*v))}static fromDER(E){const{r:v,s:O}=je.toSig(me("DER",E));return new g(v,O)}assertValidity(){if(!w(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!w(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(E){return new g(this.r,this.s,E)}recoverPublicKey(E){const{r:v,s:O,recovery:T}=this,B=_(me("msgHash",E));if(T==null||![0,1,2,3].includes(T))throw new Error("recovery id invalid");const N=T===2||T===3?v+t.n:v;if(N>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const D=T&1?"03":"02",K=u.fromHex(D+$(N)),z=l(N),M=a(-B*z),j=a(O*z),U=u.BASE.multiplyAndAddUnsafe(K,M,j);if(!U)throw new Error("point at infinify");return U.assertValidity(),U}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new g(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return ke(this.toDERHex())}toDERHex(){return je.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return ke(this.toCompactHex())}toCompactHex(){return $(this.r)+$(this.s)}}const A={isValidPrivateKey(m){try{return d(m),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const m=t.randomBytes(n.BYTES+8),E=ld(m,r);return Ve(E,t.nByteLength)},precompute(m=8,E=u.BASE){return E._setWindowSize(m),E.multiply(BigInt(3)),E}};function h(m,E=!0){return u.fromPrivateKey(m).toRawBytes(E)}function b(m){const E=m instanceof Uint8Array,v=typeof m=="string",O=(E||v)&&m.length;return E?O===i||O===o:v?O===2*i||O===2*o:m instanceof u}function S(m,E,v=!0){if(b(m))throw new Error("first arg must be private key");if(!b(E))throw new Error("second arg must be public key");return u.fromHex(E).multiply(d(m)).toRawBytes(v)}const x=t.bits2int||function(m){const E=Ue(m),v=m.length*8-t.nBitLength;return v>0?E>>BigInt(v):E},_=t.bits2int_modN||function(m){return a(x(m))},C=zn(t.nBitLength);function L(m){if(typeof m!="bigint")throw new Error("bigint expected");if(!(Ee<=m&&m<C))throw new Error(`bigint expected < 2^${t.nBitLength}`);return Ve(m,t.nByteLength)}function F(m,E,v=q){if(["recovered","canonical"].some(G=>G in v))throw new Error("sign() legacy options not supported");const{hash:O,randomBytes:T}=t;let{lowS:B,prehash:N,extraEntropy:D}=v;B==null&&(B=!0),m=me("msgHash",m),N&&(m=me("prehashed msgHash",O(m)));const K=_(m),z=d(E),M=[L(z),L(K)];if(D!=null){const G=D===!0?T(n.BYTES):D;M.push(me("extraEntropy",G,n.BYTES))}const j=ge(...M),U=K;function Y(G){const Z=x(G);if(!w(Z))return;const k=l(Z),Q=u.BASE.multiply(Z).toAffine(),ae=a(Q.x);if(ae===Ee)return;const _e=a(k*a(U+ae*z));if(_e===Ee)return;let er=(Q.x===ae?0:2)|Number(Q.y&pe),tr=_e;return B&&p(_e)&&(tr=c(_e),er^=1),new g(ae,tr,er)}return{seed:j,k2sig:Y}}const q={lowS:t.lowS,prehash:!1},H={lowS:t.lowS,prehash:!1};function I(m,E,v=q){const{seed:O,k2sig:T}=F(m,E,v),B=t;return Vi(B.hash.outputLen,B.nByteLength,B.hmac)(O,T)}u.BASE._setWindowSize(8);function P(m,E,v,O=H){var Q;const T=m;if(E=me("msgHash",E),v=me("publicKey",v),"strict"in O)throw new Error("options.strict was renamed to lowS");const{lowS:B,prehash:N}=O;let D,K;try{if(typeof T=="string"||T instanceof Uint8Array)try{D=g.fromDER(T)}catch(ae){if(!(ae instanceof je.Err))throw ae;D=g.fromCompact(T)}else if(typeof T=="object"&&typeof T.r=="bigint"&&typeof T.s=="bigint"){const{r:ae,s:_e}=T;D=new g(ae,_e)}else throw new Error("PARSE");K=u.fromHex(v)}catch(ae){if(ae.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(B&&D.hasHighS())return!1;N&&(E=t.hash(E));const{r:z,s:M}=D,j=_(E),U=l(M),Y=a(j*U),G=a(z*U),Z=(Q=u.BASE.multiplyAndAddUnsafe(K,Y,G))==null?void 0:Q.toAffine();return Z?a(Z.x)===z:!1}return{CURVE:t,getPublicKey:h,getSharedSecret:S,sign:I,verify:P,ProjectivePoint:u,Signature:g,utils:A}}var vd=Object.defineProperty,Wi=(e,t)=>{for(var n in t)vd(e,n,{get:t[n],enumerable:!0})},yd={};Wi(yd,{EmptyArray:()=>Qn,arrayToHex:()=>Zt,arrayToUtf8:()=>Xn,calculateSharedKey:()=>Gd,comparePublicKeyHex:()=>Ud,compressPublicKeyHex:()=>Hd,doDecrypt:()=>Wd,doEncrypt:()=>zd,doSignature:()=>Kd,doVerifySignature:()=>Zd,generateKeyPairHex:()=>Yn,getHash:()=>Jn,getPoint:()=>no,getPublicKeyFromPrivateKey:()=>to,getZ:()=>Bt,hexToArray:()=>ce,initRNGPool:()=>Kn,leftPad:()=>oe,precomputePublicKey:()=>Yd,utf8ToHex:()=>et,verifyPublicKey:()=>Dd});var Mt=BigInt(0),dt=BigInt(1),wd=BigInt(2);BigInt(3);function bd(e){let t=e.toString(16);if(t[0]!=="-")t.length%2===1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substring(1);let n=t.length;n%2===1?n+=1:t.match(/^[0-7]/)||(n+=2);let r="";for(let s=0;s<n;s++)r+="f";t=((re(r)^e)+dt).toString(16).replace(/^-/,"")}return t}var Ki=class{constructor(e=null,t="00",n="00",r=""){this.tlv=e,this.t=t,this.l=n,this.v=r}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const e=this.v.length/2;let t=e.toString(16);return t.length%2===1&&(t="0"+t),e<128?t:(128+t.length/2).toString(16)+t}getValue(){return""}},Dr=class extends Ki{constructor(e){super(),this.t="02",e&&(this.v=bd(e))}getValue(){return this.v}},$d=class extends Ki{constructor(t){super();te(this,"t","30");this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}};function Zi(e,t){return+e[t+2]<8?1:+e.substring(t+2,t+4)&127+1}function Ur(e,t){const n=Zi(e,t),r=e.substring(t+2,t+2+n*2);return r?+(+r[0]<8?re(r):re(r.substring(2))).toString():-1}function on(e,t){const n=Zi(e,t);return t+(n+1)*2}function xd(e,t){const n=new Dr(e),r=new Dr(t);return new $d([n,r]).getEncodedHex()}function Ed(e){const t=on(e,0),n=on(e,t),r=Ur(e,t),i=e.substr(n,r*2),o=n+i.length,s=on(e,o),a=Ur(e,o),l=e.substring(s,s+a*2),u=re(i),d=re(l);return{r:u,s:d}}var sn=16384,He=new Uint8Array(0),Qe;async function Kn(){if("crypto"in globalThis){Qe=globalThis.crypto;return}if(!(He.length>sn/2))if("wx"in globalThis&&"getRandomValues"in globalThis.wx)He=await new Promise(e=>{wx.getRandomValues({length:sn,success(t){e(new Uint8Array(t.randomValues))}})});else try{globalThis.crypto?Qe=globalThis.crypto:Qe=(await Lo(()=>import("./vite-browser-external-b25bb000.js"),[])).webcrypto;const e=new Uint8Array(sn);Qe.getRandomValues(e),He=e}catch{throw new Error("no available csprng, abort.")}}Kn();function Sd(e){if(He.length>e){const t=He.slice(0,e);return He=He.slice(e),Kn(),t}else throw new Error("random number pool is not ready or insufficient, prevent getting too long random values or too often.")}function Ad(e=0){const t=new Uint8Array(e);return Qe?Qe.getRandomValues(t):Sd(e)}var Yi=e=>e instanceof Uint8Array,an=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Od=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Od)throw new Error("Non little-endian hardware is not supported");var _d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Lt(e){if(!Yi(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=_d[e[n]];return t}function Id(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Zn(e){if(typeof e=="string"&&(e=Id(e)),!Yi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}var Xi=class{clone(){return this._cloneInto()}};function Td(e){const t=r=>e().update(Zn(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}var Cd=(e,t,n)=>e&t|e&n|t&n,Vr=(e,t,n)=>e^t^n,Pd=(e,t,n)=>e&t|~e&n;function Fd(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),l=r?4:0,u=r?0:4;e.setUint32(t+l,s,r),e.setUint32(t+u,a,r)}function ve(e,t){const n=t&31;return e<<n|e>>>32-n}function Md(e){return e^ve(e,9)^ve(e,17)}function Ld(e){return e^ve(e,15)^ve(e,23)}var Bd=class extends Xi{constructor(t,n,r,i){super();te(this,"buffer");te(this,"view");te(this,"finished",!1);te(this,"length",0);te(this,"pos",0);te(this,"destroyed",!1);this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(t),this.view=an(this.buffer)}update(t){const{view:n,buffer:r,blockLen:i}=this;t=Zn(t);const o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const l=an(t);for(;i<=o-s;s+=i)this.process(l,s);continue}r.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){this.finished=!0;const{buffer:n,view:r,blockLen:i,isLE:o}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(r,0),s=0);for(let f=s;f<i;f++)n[f]=0;Fd(r,i-8,BigInt(this.length*8),o),this.process(r,0);const a=an(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<u;f++)a.setUint32(4*f,d[f],o)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:o,destroyed:s,pos:a}=this;return t.length=i,t.pos=a,t.finished=o,t.destroyed=s,i%n&&t.buffer.set(r),t}},Ie=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]),ye=new Uint32Array(68),Gr=new Uint32Array(64),qd=2043430169,Nd=2055708042,Rd=class extends Bd{constructor(){super(64,32,8,!1);te(this,"A",Ie[0]|0);te(this,"B",Ie[1]|0);te(this,"C",Ie[2]|0);te(this,"D",Ie[3]|0);te(this,"E",Ie[4]|0);te(this,"F",Ie[5]|0);te(this,"G",Ie[6]|0);te(this,"H",Ie[7]|0)}get(){const{A:t,B:n,C:r,D:i,E:o,F:s,G:a,H:l}=this;return[t,n,r,i,o,s,a,l]}set(t,n,r,i,o,s,a,l){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=l|0}process(t,n){for(let f=0;f<16;f++,n+=4)ye[f]=t.getUint32(n,!1);for(let f=16;f<68;f++)ye[f]=Ld(ye[f-16]^ye[f-9]^ve(ye[f-3],15))^ve(ye[f-13],7)^ye[f-6];for(let f=0;f<64;f++)Gr[f]=ye[f]^ye[f+4];let{A:r,B:i,C:o,D:s,E:a,F:l,G:u,H:d}=this;for(let f=0;f<64;f++){let w=f>=0&&f<=15,$=w?qd:Nd,p=ve(ve(r,12)+a+ve($,f),7),c=p^ve(r,12),y=(w?Vr(r,i,o):Cd(r,i,o))+s+c+Gr[f]|0,g=(w?Vr(a,l,u):Pd(a,l,u))+d+p+ye[f]|0;s=o,o=ve(i,9),i=r,r=y,d=u,u=ve(l,19),l=a,a=Md(g)}r=r^this.A|0,i=i^this.B|0,o=o^this.C|0,s=s^this.D|0,a=a^this.E|0,l=l^this.F|0,u=u^this.G|0,d=d^this.H|0,this.set(r,i,o,s,a,l,u,d)}roundClean(){ye.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},Me=Td(()=>new Rd),Qi=class extends Xi{constructor(t,n){super();te(this,"oHash");te(this,"iHash");te(this,"blockLen");te(this,"outputLen");te(this,"finished",!1);te(this,"destroyed",!1);const r=Zn(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(r.length>i?t.create().update(r).digest():r);for(let s=0;s<o.length;s++)o[s]^=54;this.iHash.update(o),this.oHash=t.create();for(let s=0;s<o.length;s++)o[s]^=106;this.oHash.update(o),o.fill(0)}update(t){return this.iHash.update(t),this}digestInto(t){this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:i,destroyed:o,blockLen:s,outputLen:a}=this;return t=t,t.finished=i,t.destroyed=o,t.blockLen=s,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},Ji=(e,t,n)=>new Qi(e,t).update(n).digest();Ji.create=(e,t)=>new Qi(e,t);var jd=Gi(BigInt("115792089210356248756420345214020892766250353991924191454421193933289684991999")),ee=pd({a:BigInt("115792089210356248756420345214020892766250353991924191454421193933289684991996"),b:BigInt("18505919022281880113072981827955639221458448578012075254857346196103069175443"),Fp:jd,h:dt,n:BigInt("115792089210356248756420345214020892766061623724957744567843809356293439045923"),Gx:BigInt("22963146547237050559479531362550074578802567295341616970375194840604139615431"),Gy:BigInt("85132369209828568825618990617112496413088388631904505083283536607588877201568"),hash:Me,hmac:(e,...t)=>Ji(Me,e,ge(...t)),randomBytes:Ad}),we=Gi(BigInt(ee.CURVE.n));function Yn(e){const t=e?Ve(fe(BigInt(e),dt)+dt,32):ee.utils.randomPrivateKey(),n=ee.getPublicKey(t,!1),r=oe(Se(t),64),i=oe(Se(n),64);return{privateKey:r,publicKey:i}}function Hd(e){if(e.length!==130)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,n=e.substring(2,2+t),r=re(e.substring(t+2,t+t+2));let i="03";return fe(r,wd)===Mt&&(i="02"),i+n}function et(e){e=decodeURIComponent(encodeURIComponent(e));const t=e.length,n=new Uint32Array((t>>>2)+1);for(let i=0;i<t;i++)n[i>>>2]|=(e.charCodeAt(i)&255)<<24-i%4*8;const r=[];for(let i=0;i<t;i++){const o=n[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function oe(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function Zt(e){return e.map(t=>{const n=t.toString(16);return n.length===1?"0"+n:n}).join("")}function Xn(e){const t=[];for(let n=0,r=e.length;n<r;n++)e[n]>=240&&e[n]<=247?(t.push(String.fromCodePoint(((e[n]&7)<<18)+((e[n+1]&63)<<12)+((e[n+2]&63)<<6)+(e[n+3]&63))),n+=3):e[n]>=224&&e[n]<=239?(t.push(String.fromCodePoint(((e[n]&15)<<12)+((e[n+1]&63)<<6)+(e[n+2]&63))),n+=2):e[n]>=192&&e[n]<=223?(t.push(String.fromCodePoint(((e[n]&31)<<6)+(e[n+1]&63))),n++):t.push(String.fromCodePoint(e[n]));return t.join("")}function ce(e){let t=e.length;t%2!==0&&(e=oe(e,t+1)),t=e.length;const n=t/2,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=parseInt(e.substring(i*2,i*2+2),16);return r}function Dd(e){const t=ee.ProjectivePoint.fromHex(e);if(!t)return!1;try{return t.assertValidity(),!0}catch{return!1}}function Ud(e,t){const n=ee.ProjectivePoint.fromHex(e);if(!n)return!1;const r=ee.ProjectivePoint.fromHex(t);return r?n.equals(r):!1}var zr=re("80000000000000000000000000000000"),Wr=re("7fffffffffffffffffffffffffffffff");function Vd(e,t){let n=new Uint8Array(t),r=1,i=0,o=Qn;const s=new Uint8Array(4),a=()=>{s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,o=Me(ge(e,s)),r++,i=0};a();for(let l=0,u=n.length;l<u;l++)i===o.length&&a(),n[l]=o[i++]&255;return n}function Gd(e,t,n,r,i,o=!1,s="1234567812345678",a="1234567812345678"){const l=ee.ProjectivePoint.fromHex(t.publicKey),u=ee.ProjectivePoint.fromHex(r),d=ee.ProjectivePoint.fromHex(n);let f=Bt(e.publicKey,s),w=Bt(n,a);o&&([f,w]=[w,f]);const $=re(t.privateKey),p=re(e.privateKey),c=l.x,y=zr+(c&Wr),g=we.add(p,we.mulN(y,$)),A=u.x,h=we.add(zr,A&Wr),b=u.multiply(h).add(d).multiply(g),S=ce(oe(ue(b.x),64)),x=ce(oe(ue(b.y),64));return Vd(ge(S,x,f,w),i)}var ki=0,Qn=new Uint8Array;function zd(e,t,n=1){const r=typeof e=="string"?ce(et(e)):Uint8Array.from(e),i=typeof t=="string"?ee.ProjectivePoint.fromHex(t):t,o=Yn(),s=re(o.privateKey);let a=o.publicKey;a.length>128&&(a=a.substring(a.length-128));const l=i.multiply(s),u=ce(oe(ue(l.x),64)),d=ce(oe(ue(l.y),64)),f=Lt(Me(ge(u,r,d)));eo(u,d,r);const w=Lt(r);return n===ki?a+w+f:a+f+w}function eo(e,t,n){let r=1,i=0,o=Qn;const s=new Uint8Array(4),a=()=>{s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,o=Me(ge(e,t,s)),r++,i=0};a();for(let l=0,u=n.length;l<u;l++)i===o.length&&a(),n[l]^=o[i++]&255}function Wd(e,t,n=1,{output:r="string"}={}){const i=re(t);let o=e.substring(128,128+64),s=e.substring(128+64);n===ki&&(o=e.substring(e.length-64),s=e.substring(128,e.length-64));const a=ce(s),u=ee.ProjectivePoint.fromHex("04"+e.substring(0,128)).multiply(i),d=ce(oe(ue(u.x),64)),f=ce(oe(ue(u.y),64));return eo(d,f,a),Zt(Array.from(Me(ge(d,a,f))))===o.toLowerCase()?r==="array"?a:Xn(a):r==="array"?[]:""}function Kd(e,t,n={}){let{pointPool:r,der:i,hash:o,publicKey:s,userId:a}=n,l=typeof e=="string"?et(e):Zt(Array.from(e));o&&(s=s||to(t),l=Jn(l,s,a));const u=re(t),d=re(l);let f=null,w=null,$=null;do{do{let p;r&&r.length?p=r.pop():p=no(),f=p.k,w=we.add(d,p.x1)}while(w===Mt||w+f===ee.CURVE.n);$=we.mul(we.inv(we.addN(u,dt)),we.subN(f,we.mulN(w,u)))}while($===Mt);return i?xd(w,$):oe(ue(w),64)+oe(ue($),64)}function Zd(e,t,n,r={}){let i;const{hash:o,der:s,userId:a}=r,l=typeof n=="string"?n:n.toHex(!1);o?i=Jn(typeof e=="string"?et(e):e,l,a):i=typeof e=="string"?et(e):Zt(Array.from(e));let u,d;if(s){const y=Ed(t);u=y.r,d=y.s}else u=re(t.substring(0,64)),d=re(t.substring(64));const f=typeof n=="string"?ee.ProjectivePoint.fromHex(n):n,w=re(i),$=we.add(u,d);if($===Mt)return!1;const p=ee.ProjectivePoint.BASE.multiply(d).add(f.multiply($)),c=we.add(w,p.x);return u===c}function Bt(e,t="1234567812345678"){t=et(t);const n=oe(ue(ee.CURVE.a),64),r=oe(ue(ee.CURVE.b),64),i=oe(ue(ee.ProjectivePoint.BASE.x),64),o=oe(ue(ee.ProjectivePoint.BASE.y),64);let s,a;if(e.length===128)s=e.substring(0,64),a=e.substring(64,128);else{const f=ee.ProjectivePoint.fromHex(e);s=oe(ue(f.x),64),a=oe(ue(f.y),64)}const l=ce(t+n+r+i+o+s+a),u=t.length*4;return Me(ge(new Uint8Array([u>>8&255,u&255]),l))}function Jn(e,t,n="1234567812345678"){const r=Bt(t,n);return Lt(Me(ge(r,typeof e=="string"?ce(e):e)))}function Yd(e,t){const n=ee.ProjectivePoint.fromHex(e);return ee.utils.precompute(t,n)}function to(e){const t=ee.getPublicKey(e,!1);return oe(Se(t),64)}function no(){const e=Yn(),t=ee.ProjectivePoint.fromHex(e.publicKey),n=re(e.privateKey);return{...e,k:n,x1:t.x}}function Xd(e){const t=[];for(let n=0,r=e.length;n<r;n++){const i=e.codePointAt(n);if(i<=127)t.push(i);else if(i<=2047)t.push(192|i>>>6),t.push(128|i&63);else if(i<=55295||i>=57344&&i<=65535)t.push(224|i>>>12),t.push(128|i>>>6&63),t.push(128|i&63);else if(i>=65536&&i<=1114111)n++,t.push(240|i>>>18&28),t.push(128|i>>>12&63),t.push(128|i>>>6&63),t.push(128|i&63);else throw t.push(i),new Error("input is not supported")}return new Uint8Array(t)}var Qd={};Wi(Qd,{decrypt:()=>nh,encrypt:()=>th,sm4:()=>kn});var Te=0,Jd=32,Be=16,Et=Uint8Array.from([214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]),St=new Uint32Array([462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257]);function Ce(e){return(Et[e>>>24&255]&255)<<24|(Et[e>>>16&255]&255)<<16|(Et[e>>>8&255]&255)<<8|Et[e&255]&255}function kd(e,t,n){let r=0,i=0,o=0,s=0,a=0,l=0,u=0,d=0;a=e[0]&255,l=e[1]&255,u=e[2]&255,d=e[3]&255,r=a<<24|l<<16|u<<8|d,a=e[4]&255,l=e[5]&255,u=e[6]&255,d=e[7]&255,i=a<<24|l<<16|u<<8|d,a=e[8]&255,l=e[9]&255,u=e[10]&255,d=e[11]&255,o=a<<24|l<<16|u<<8|d,a=e[12]&255,l=e[13]&255,u=e[14]&255,d=e[15]&255,s=a<<24|l<<16|u<<8|d;for(let f=0;f<32;f+=4)a=i^o^s^n[f],a=Ce(a),r^=a^(a<<2|a>>>30)^(a<<10|a>>>22)^(a<<18|a>>>14)^(a<<24|a>>>8),l=o^s^r^n[f+1],l=Ce(l),i^=l^(l<<2|l>>>30)^(l<<10|l>>>22)^(l<<18|l>>>14)^(l<<24|l>>>8),u=s^r^i^n[f+2],u=Ce(u),o^=u^(u<<2|u>>>30)^(u<<10|u>>>22)^(u<<18|u>>>14)^(u<<24|u>>>8),d=r^i^o^n[f+3],d=Ce(d),s^=d^(d<<2|d>>>30)^(d<<10|d>>>22)^(d<<18|d>>>14)^(d<<24|d>>>8);t[0]=s>>>24&255,t[1]=s>>>16&255,t[2]=s>>>8&255,t[3]=s&255,t[4]=o>>>24&255,t[5]=o>>>16&255,t[6]=o>>>8&255,t[7]=o&255,t[8]=i>>>24&255,t[9]=i>>>16&255,t[10]=i>>>8&255,t[11]=i&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=r&255}function eh(e,t,n){let r=0,i=0,o=0,s=0,a=0;r=(e[0]&255)<<24|(e[1]&255)<<16|(e[2]&255)<<8|e[3]&255,i=(e[4]&255)<<24|(e[5]&255)<<16|(e[6]&255)<<8|e[7]&255,o=(e[8]&255)<<24|(e[9]&255)<<16|(e[10]&255)<<8|e[11]&255,s=(e[12]&255)<<24|(e[13]&255)<<16|(e[14]&255)<<8|e[15]&255,r^=2746333894,i^=1453994832,o^=1736282519,s^=2993693404;for(let l=0;l<32;l+=4)a=i^o^s^St[l+0],a=Ce(a),r^=a^(a<<13|a>>>19)^(a<<23|a>>>9),t[l+0]=r,a=o^s^r^St[l+1],a=Ce(a),i^=a^(a<<13|a>>>19)^(a<<23|a>>>9),t[l+1]=i,a=s^r^i^St[l+2],a=Ce(a),o^=a^(a<<13|a>>>19)^(a<<23|a>>>9),t[l+2]=o,a=r^i^o^St[l+3],a=Ce(a),s^=a^(a<<13|a>>>19)^(a<<23|a>>>9),t[l+3]=s;if(n===Te)for(let l=0;l<16;l++)[t[l],t[31-l]]=[t[31-l],t[l]]}var At=new Uint8Array(16);function kn(e,t,n,r={}){let{padding:i="pkcs#7",mode:o,iv:s=new Uint8Array(16),output:a}=r;if(o==="cbc"&&(typeof s=="string"&&(s=ce(s)),s.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=ce(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?n!==Te?e=Xd(e):e=ce(e):e=Uint8Array.from(e),(i==="pkcs#5"||i==="pkcs#7")&&n!==Te){const $=Be-e.length%Be,p=new Uint8Array(e.length+$);p.set(e,0);for(let c=0;c<$;c++)p[e.length+c]=$;e=p}const l=new Uint32Array(Jd);eh(t,l,n);let u=new Uint8Array(e.length),d=s,f=e.length,w=0;for(;f>=Be;){const $=e.subarray(w,w+16);if(o==="cbc")for(let p=0;p<Be;p++)n!==Te&&($[p]^=d[p]);kd($,At,l);for(let p=0;p<Be;p++)o==="cbc"&&n===Te&&(At[p]^=d[p]),u[w+p]=At[p];o==="cbc"&&(n!==Te?d=At:d=$),f-=Be,w+=Be}if((i==="pkcs#5"||i==="pkcs#7")&&n===Te){const $=u.length,p=u[$-1];for(let c=1;c<=p;c++)if(u[$-c]!==p)throw new Error("padding is invalid");u=u.slice(0,$-p)}return a!=="array"?n!==Te?Lt(u):Xn(u):u}function th(e,t,n={}){return kn(e,t,1,n)}function nh(e,t,n={}){return kn(e,t,0,n)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */export{mt as A,pi as B,ji as C,jn as D,_u as E,qe as F,ka as G,_f as R,ft as S,gf as a,Ot as b,hf as c,df as d,lf as e,Ru as f,fh as g,ch as h,Bn as i,jc as j,ci as k,Mn as l,yi as m,va as n,Wu as o,_i as p,Pa as q,Hu as r,Ss as s,cn as t,ff as u,da as v,ui as w,Fn as x,ht as y,Vt as z};