@accounter/client 0.0.8-alpha-20251022132444-51d3ebadb2849ea323e03b88c735cdca4f91db7d → 0.0.8-alpha-20251022144027-c9c7a4b309de8a72dfd0ec4f11e63713ad12878f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{_ as Va,c as La,p as ar,g as al}from"./index-BexxGuN6.js";function Xl(n,e){if(Va(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(Va(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kl(n){var e=Xl(n,"string");return Va(e)=="symbol"?e:e+""}function Ua(n,e,r){return(e=Kl(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var cn={},vn={},vr,gn;function Q(){if(gn)return vr;gn=1;var n=function(e){return e&&e.Math===Math&&e};return vr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof La=="object"&&La)||n(typeof vr=="object"&&vr)||(function(){return this})()||Function("return this")(),vr}var Zr={},Jr,dn;function Z(){return dn||(dn=1,Jr=function(n){try{return!!n()}catch{return!0}}),Jr}var et,pn;function we(){if(pn)return et;pn=1;var n=Z();return et=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),et}var rt,yn;function Ir(){if(yn)return rt;yn=1;var n=Z();return rt=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rt}var tt,mn;function ne(){if(mn)return tt;mn=1;var n=Ir(),e=Function.prototype.call;return tt=n?e.bind(e):function(){return e.apply(e,arguments)},tt}var it={},bn;function Ql(){if(bn)return it;bn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return it.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,it}var at,xn;function Ga(){return xn||(xn=1,at=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),at}var nt,On;function J(){if(On)return nt;On=1;var n=Ir(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return nt=n?t:function(i){return function(){return r.apply(i,arguments)}},nt}var st,Tn;function er(){if(Tn)return st;Tn=1;var n=J(),e=n({}.toString),r=n("".slice);return st=function(t){return r(e(t),8,-1)},st}var ot,Sn;function nl(){if(Sn)return ot;Sn=1;var n=J(),e=Z(),r=er(),t=Object,i=n("".split);return ot=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,ot}var ut,En;function Nr(){return En||(En=1,ut=function(n){return n==null}),ut}var lt,Rn;function Pe(){if(Rn)return lt;Rn=1;var n=Nr(),e=TypeError;return lt=function(r){if(n(r))throw new e("Can't call method on "+r);return r},lt}var ht,Cn;function pr(){if(Cn)return ht;Cn=1;var n=nl(),e=Pe();return ht=function(r){return n(e(r))},ht}var ft,wn;function re(){if(wn)return ft;wn=1;var n=typeof document=="object"&&document.all;return ft=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ft}var ct,Pn;function pe(){if(Pn)return ct;Pn=1;var n=re();return ct=function(e){return typeof e=="object"?e!==null:n(e)},ct}var vt,An;function rr(){if(An)return vt;An=1;var n=Q(),e=re(),r=function(t){return e(t)?t:void 0};return vt=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},vt}var gt,In;function _r(){if(In)return gt;In=1;var n=J();return gt=n({}.isPrototypeOf),gt}var dt,Nn;function yr(){if(Nn)return dt;Nn=1;var n=Q(),e=n.navigator,r=e&&e.userAgent;return dt=r?String(r):"",dt}var pt,_n;function $a(){if(_n)return pt;_n=1;var n=Q(),e=yr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),pt=o,pt}var yt,Mn;function sl(){if(Mn)return yt;Mn=1;var n=$a(),e=Z(),r=Q(),t=r.String;return yt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),yt}var mt,qn;function ol(){if(qn)return mt;qn=1;var n=sl();return mt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mt}var bt,Dn;function ul(){if(Dn)return bt;Dn=1;var n=rr(),e=re(),r=_r(),t=ol(),i=Object;return bt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},bt}var xt,Vn;function Mr(){if(Vn)return xt;Vn=1;var n=String;return xt=function(e){try{return n(e)}catch{return"Object"}},xt}var Ot,Ln;function Fe(){if(Ln)return Ot;Ln=1;var n=re(),e=Mr(),r=TypeError;return Ot=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},Ot}var Tt,kn;function sr(){if(kn)return Tt;kn=1;var n=Fe(),e=Nr();return Tt=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Tt}var St,jn;function Zl(){if(jn)return St;jn=1;var n=ne(),e=re(),r=pe(),t=TypeError;return St=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},St}var Et={exports:{}},Rt,Bn;function Me(){return Bn||(Bn=1,Rt=!1),Rt}var Ct,Fn;function za(){if(Fn)return Ct;Fn=1;var n=Q(),e=Object.defineProperty;return Ct=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Ct}var Un;function Ha(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=za(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Wa(){if(Gn)return wt;Gn=1;var n=Ha();return wt=function(e,r){return n[e]||(n[e]=r||{})},wt}var Pt,$n;function qr(){if($n)return Pt;$n=1;var n=Pe(),e=Object;return Pt=function(r){return e(n(r))},Pt}var At,zn;function Ae(){if(zn)return At;zn=1;var n=J(),e=qr(),r=n({}.hasOwnProperty);return At=Object.hasOwn||function(i,a){return r(e(i),a)},At}var It,Hn;function ll(){if(Hn)return It;Hn=1;var n=J(),e=0,r=Math.random(),t=n(1.1.toString);return It=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},It}var Nt,Wn;function ae(){if(Wn)return Nt;Wn=1;var n=Q(),e=Wa(),r=Ae(),t=ll(),i=sl(),a=ol(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return Nt=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},Nt}var _t,Yn;function Jl(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Zl(),a=ae(),s=TypeError,o=a("toPrimitive");return _t=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},_t}var Mt,Xn;function hl(){if(Xn)return Mt;Xn=1;var n=Jl(),e=ul();return Mt=function(r){var t=n(r,"string");return e(t)?t:t+""},Mt}var qt,Kn;function Dr(){if(Kn)return qt;Kn=1;var n=Q(),e=pe(),r=n.document,t=e(r)&&e(r.createElement);return qt=function(i){return t?r.createElement(i):{}},qt}var Dt,Qn;function fl(){if(Qn)return Dt;Qn=1;var n=we(),e=Z(),r=Dr();return Dt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Dt}var Zn;function Vr(){if(Zn)return Zr;Zn=1;var n=we(),e=ne(),r=Ql(),t=Ga(),i=pr(),a=hl(),s=Ae(),o=fl(),u=Object.getOwnPropertyDescriptor;return Zr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Zr}var Vt={},Lt,Jn;function cl(){if(Jn)return Lt;Jn=1;var n=we(),e=Z();return Lt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lt}var kt,es;function le(){if(es)return kt;es=1;var n=pe(),e=String,r=TypeError;return kt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},kt}var rs;function Ye(){if(rs)return Vt;rs=1;var n=we(),e=fl(),r=cl(),t=le(),i=hl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Vt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Vt}var jt,ts;function mr(){if(ts)return jt;ts=1;var n=we(),e=Ye(),r=Ga();return jt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},jt}var Bt={exports:{}},Ft,is;function Lr(){if(is)return Ft;is=1;var n=we(),e=Ae(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Ft={EXISTS:i,PROPER:a,CONFIGURABLE:s},Ft}var Ut,as;function Ya(){if(as)return Ut;as=1;var n=J(),e=re(),r=Ha(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function eh(){if(ns)return Gt;ns=1;var n=Q(),e=re(),r=n.WeakMap;return Gt=e(r)&&/native code/.test(String(r)),Gt}var $t,ss;function Xa(){if(ss)return $t;ss=1;var n=Wa(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Ka(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=eh(),e=Q(),r=pe(),t=mr(),i=Ae(),a=Ha(),s=Xa(),o=Ka(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var ls;function vl(){if(ls)return Bt.exports;ls=1;var n=J(),e=Z(),r=re(),t=Ae(),i=we(),a=Lr().CONFIGURABLE,s=Ya(),o=kr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=Bt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),Bt.exports}var Wt,hs;function tr(){if(hs)return Wt;hs=1;var n=re(),e=Ye(),r=vl(),t=za();return Wt=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Wt}var Yt={},Xt,fs;function rh(){if(fs)return Xt;fs=1;var n=Math.ceil,e=Math.floor;return Xt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Xt}var Kt,cs;function jr(){if(cs)return Kt;cs=1;var n=rh();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function th(){if(vs)return Qt;vs=1;var n=jr(),e=Math.max,r=Math.min;return Qt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Qt}var Zt,gs;function or(){if(gs)return Zt;gs=1;var n=jr(),e=Math.min;return Zt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Zt}var Jt,ds;function Qa(){if(ds)return Jt;ds=1;var n=or();return Jt=function(e){return n(e.length)},Jt}var ei,ps;function gl(){if(ps)return ei;ps=1;var n=pr(),e=th(),r=Qa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return ei={includes:t(!0),indexOf:t(!1)},ei}var ri,ys;function dl(){if(ys)return ri;ys=1;var n=J(),e=Ae(),r=pr(),t=gl().indexOf,i=Ka(),a=n([].push);return ri=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ri}var ti,ms;function Za(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function ih(){if(bs)return Yt;bs=1;var n=dl(),e=Za(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function ah(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function nh(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=ih(),t=ah(),i=le(),a=e([].concat);return ai=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ai}var ni,Ts;function sh(){if(Ts)return ni;Ts=1;var n=Ae(),e=nh(),r=Vr(),t=Ye();return ni=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ni}var si,Ss;function pl(){if(Ss)return si;Ss=1;var n=Z(),e=re(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return si=t,si}var oi,Es;function he(){if(Es)return oi;Es=1;var n=Q(),e=Vr().f,r=mr(),t=tr(),i=za(),a=sh(),s=pl();return oi=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},oi}var ui,Rs;function yl(){if(Rs)return ui;Rs=1;var n=Q(),e=yr(),r=er(),t=function(i){return e.slice(0,i.length)===i};return ui=(function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})(),ui}var li,Cs;function Br(){if(Cs)return li;Cs=1;var n=yl();return li=n==="NODE",li}var hi,ws;function oh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function uh(){if(Ps)return fi;Ps=1;var n=J(),e=Fe();return fi=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},fi}var ci,As;function lh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function hh(){if(Is)return vi;Is=1;var n=lh(),e=String,r=TypeError;return vi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},vi}var gi,Ns;function ml(){if(Ns)return gi;Ns=1;var n=uh(),e=pe(),r=Pe(),t=hh();return gi=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}})():void 0),gi}var di,_s;function Fr(){if(_s)return di;_s=1;var n=Ye().f,e=Ae(),r=ae(),t=r("toStringTag");return di=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},di}var pi,Ms;function fh(){if(Ms)return pi;Ms=1;var n=vl(),e=Ye();return pi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},pi}var yi,qs;function ch(){if(qs)return yi;qs=1;var n=rr(),e=fh(),r=ae(),t=we(),i=r("species");return yi=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},yi}var mi,Ds;function vh(){if(Ds)return mi;Ds=1;var n=_r(),e=TypeError;return mi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},mi}var bi,Vs;function gh(){if(Vs)return bi;Vs=1;var n=ae(),e=n("toStringTag"),r={};return r[e]="z",bi=String(r)==="[object z]",bi}var xi,Ls;function Ja(){if(Ls)return xi;Ls=1;var n=gh(),e=re(),r=er(),t=ae(),i=t("toStringTag"),a=Object,s=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return xi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},xi}var Oi,ks;function dh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Ja(),i=rr(),a=Ya(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,Oi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,Oi}var Ti,js;function ph(){if(js)return Ti;js=1;var n=dh(),e=Mr(),r=TypeError;return Ti=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},Ti}var Si,Bs;function bl(){if(Bs)return Si;Bs=1;var n=le(),e=ph(),r=Nr(),t=ae(),i=t("species");return Si=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Si}var Ei,Fs;function xl(){if(Fs)return Ei;Fs=1;var n=Ir(),e=Function.prototype,r=e.apply,t=e.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ei}var Ri,Us;function Ur(){if(Us)return Ri;Us=1;var n=er(),e=J();return Ri=function(r){if(n(r)==="Function")return e(r)},Ri}var Ci,Gs;function en(){if(Gs)return Ci;Gs=1;var n=Ur(),e=Fe(),r=Ir(),t=n(n.bind);return Ci=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ci}var wi,$s;function Ol(){if($s)return wi;$s=1;var n=rr();return wi=n("document","documentElement"),wi}var Pi,zs;function yh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function mh(){if(Hs)return Ai;Hs=1;var n=TypeError;return Ai=function(e,r){if(e<r)throw new n("Not enough arguments");return e},Ai}var Ii,Ws;function Tl(){if(Ws)return Ii;Ws=1;var n=yr();return Ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Ii}var Ni,Ys;function Sl(){if(Ys)return Ni;Ys=1;var n=Q(),e=xl(),r=en(),t=re(),i=Ae(),a=Z(),s=Ol(),o=yh(),u=Dr(),l=mh(),h=Tl(),c=Br(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,P,_;a(function(){E=n.location});var A=function(C){if(i(x,C)){var w=x[C];delete x[C],w()}},q=function(C){return function(){A(C)}},I=function(C){A(C.data)},j=function(C){n.postMessage(m(C),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(w){l(arguments.length,1);var U=t(w)?w:p(w),L=o(arguments,1);return x[++b]=function(){e(U,void 0,L)},O(b),b},f=function(w){delete x[w]},c?O=function(C){g.nextTick(q(C))}:d&&d.now?O=function(C){d.now(q(C))}:y&&!h?(P=new y,_=P.port2,P.port1.onmessage=I,O=r(_.postMessage,_)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(j)?(O=j,n.addEventListener("message",I,!1)):S in u("script")?O=function(C){s.appendChild(u("script"))[S]=function(){s.removeChild(this),A(C)}}:O=function(C){setTimeout(q(C),0)}),Ni={set:v,clear:f},Ni}var _i,Xs;function bh(){if(Xs)return _i;Xs=1;var n=Q(),e=we(),r=Object.getOwnPropertyDescriptor;return _i=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},_i}var Mi,Ks;function El(){if(Ks)return Mi;Ks=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Mi=n,Mi}var qi,Qs;function xh(){if(Qs)return qi;Qs=1;var n=yr();return qi=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",qi}var Di,Zs;function Oh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function Th(){if(Js)return Vi;Js=1;var n=Q(),e=bh(),r=en(),t=Sl().set,i=El(),a=Tl(),s=xh(),o=Oh(),u=Br(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return Vi=f,Vi}var Li,eo;function Sh(){return eo||(eo=1,Li=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Li}var ki,ro;function rn(){return ro||(ro=1,ki=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),ki}var ji,to;function br(){if(to)return ji;to=1;var n=Q();return ji=n.Promise,ji}var Bi,io;function xr(){if(io)return Bi;io=1;var n=Q(),e=br(),r=re(),t=pl(),i=Ya(),a=ae(),s=yl(),o=Me(),u=$a(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return Bi={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},Bi}var Fi={},ao;function Or(){if(ao)return Fi;ao=1;var n=Fe(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return Fi.f=function(t){return new r(t)},Fi}var no;function Eh(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=oh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=ch(),h=Fe(),c=re(),v=pe(),f=vh(),g=bl(),d=Sl().set,p=Th(),y=Sh(),m=rn(),b=El(),x=kr(),S=br(),E=xr(),O=Or(),P="Promise",_=E.CONSTRUCTOR,A=E.REJECTION_EVENT,q=E.SUBCLASSING,I=x.getterFor(P),j=x.set,C=S&&S.prototype,w=S,U=C,L=t.TypeError,V=t.document,M=t.process,N=O.f,k=N,z=!!(V&&V.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",se=0,be=1,oe=2,Ue=1,Ge=2,fe,Ne,_e,me,ce=function(R){var B;return v(R)&&c(B=R.then)?B:!1},xe=function(R,B){var G=B.value,$=B.state===be,W=$?R.ok:R.fail,Te=R.resolve,Le=R.reject,Se=R.domain,Ee,hr,fr;try{W?($||(B.rejection===Ge&&$e(B),B.rejection=Ue),W===!0?Ee=G:(Se&&Se.enter(),Ee=W(G),Se&&(Se.exit(),fr=!0)),Ee===R.promise?Le(new L("Promise-chain cycle")):(hr=ce(Ee))?a(hr,Ee,Te,Le):Te(Ee)):Le(G)}catch(cr){Se&&!fr&&Se.exit(),Le(cr)}},De=function(R,B){R.notified||(R.notified=!0,p(function(){for(var G=R.reactions,$;$=G.get();)xe($,R);R.notified=!1,B&&!R.rejection&&Xe(R)}))},Ve=function(R,B,G){var $,W;z?($=V.createEvent("Event"),$.promise=B,$.reason=G,$.initEvent(R,!1,!0),t.dispatchEvent($)):$={promise:B,reason:G},!A&&(W=t["on"+R])?W($):R===H&&y("Unhandled promise rejection",G)},Xe=function(R){a(d,t,function(){var B=R.facade,G=R.value,$=lr(R),W;if($&&(W=m(function(){r?M.emit("unhandledRejection",G,B):Ve(H,B,G)}),R.rejection=r||lr(R)?Ge:Ue,W.error))throw W.value})},lr=function(R){return R.rejection!==Ue&&!R.parent},$e=function(R){a(d,t,function(){var B=R.facade;r?M.emit("rejectionHandled",B):Ve(X,B,R.value)})},ve=function(R,B,G){return function($){R(B,$,G)}},ge=function(R,B,G){R.done||(R.done=!0,G&&(R=G),R.value=B,R.state=oe,De(R,!0))},Oe=function(R,B,G){if(!R.done){R.done=!0,G&&(R=G);try{if(R.facade===B)throw new L("Promise can't be resolved itself");var $=ce(B);$?p(function(){var W={done:!1};try{a($,B,ve(Oe,W,R),ve(ge,W,R))}catch(Te){ge(W,Te,R)}}):(R.value=B,R.state=be,De(R,!1))}catch(W){ge({done:!1},W,R)}}};if(_&&(w=function(B){f(this,U),h(B),a(fe,this);var G=I(this);try{B(ve(Oe,G),ve(ge,G))}catch($){ge(G,$)}},U=w.prototype,fe=function(B){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:se,value:null})},fe.prototype=s(U,"then",function(B,G){var $=I(this),W=N(g(this,w));return $.parent=!0,W.ok=c(B)?B:!0,W.fail=c(G)&&G,W.domain=r?M.domain:void 0,$.state===se?$.reactions.add(W):p(function(){xe(W,$)}),W.promise}),Ne=function(){var R=new fe,B=I(R);this.promise=R,this.resolve=ve(Oe,B),this.reject=ve(ge,B)},O.f=N=function(R){return R===w||R===_e?new Ne(R):k(R)},!e&&c(S)&&C!==Object.prototype)){me=C.then,q||s(C,"then",function(B,G){var $=this;return new w(function(W,Te){a(me,$,W,Te)}).then(B,G)},{unsafe:!0});try{delete C.constructor}catch{}o&&o(C,U)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:w}),_e=i.Promise,u(w,P,!1,!0),l(P),vn}var so={},Ui,oo;function Tr(){return oo||(oo=1,Ui={}),Ui}var Gi,uo;function Rh(){if(uo)return Gi;uo=1;var n=ae(),e=Tr(),r=n("iterator"),t=Array.prototype;return Gi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Gi}var $i,lo;function Rl(){if(lo)return $i;lo=1;var n=Ja(),e=sr(),r=Nr(),t=Tr(),i=ae(),a=i("iterator");return $i=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},$i}var zi,ho;function Ch(){if(ho)return zi;ho=1;var n=ne(),e=Fe(),r=le(),t=Mr(),i=Rl(),a=TypeError;return zi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},zi}var Hi,fo;function wh(){if(fo)return Hi;fo=1;var n=ne(),e=le(),r=sr();return Hi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},Hi}var Wi,co;function Cl(){if(co)return Wi;co=1;var n=en(),e=ne(),r=le(),t=Mr(),i=Rh(),a=Qa(),s=_r(),o=Ch(),u=Rl(),l=wh(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Wi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,P,_,A,q,I,j=function(w){return E&&l(E,"normal"),new c(!0,w)},C=function(w){return y?(r(w),x?S(w[0],w[1],j):S(w[0],w[1])):x?S(w,j):S(w)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(P=0,_=a(f);_>P;P++)if(A=C(f[P]),A&&s(v,A))return A;return new c(!1)}E=o(f,O)}for(q=m?f.next:E.next;!(I=e(q,E)).done;){try{A=C(I.value)}catch(w){l(E,"throw",w)}if(typeof A=="object"&&A&&s(v,A))return A}return new c(!1)},Wi}var Yi,vo;function Ph(){if(vo)return Yi;vo=1;var n=ae(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Yi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Yi}var Xi,go;function wl(){if(go)return Xi;go=1;var n=br(),e=Ph(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function Ah(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),so}var yo={},mo;function Ih(){if(mo)return yo;mo=1;var n=he(),e=Me(),r=xr().CONSTRUCTOR,t=br(),i=rr(),a=re(),s=tr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return yo}var bo={},xo;function Nh(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),bo}var Oo={},To;function _h(){if(To)return Oo;To=1;var n=he(),e=Or(),r=xr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),Oo}var So={},Ki,Eo;function Mh(){if(Eo)return Ki;Eo=1;var n=le(),e=pe(),r=Or();return Ki=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Ki}var Ro;function qh(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Mh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),So}var Co;function Dh(){return Co||(Co=1,Eh(),Ah(),Ih(),Nh(),_h(),qh()),cn}Dh();function wo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function Be(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){wo(a,t,i,s,o,"next",u)}function o(u){wo(a,t,i,s,o,"throw",u)}s(void 0)})}}var Po={},Ao={},Qi,Io;function qe(){if(Io)return Qi;Io=1;var n=Ja(),e=String;return Qi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Qi}var Zi,No;function Pl(){if(No)return Zi;No=1;var n=le();return Zi=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Zi}var Ji,_o;function Al(){if(_o)return Ji;_o=1;var n=Z(),e=Q(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Ji={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Ji}var ea={},ra,Mo;function Vh(){if(Mo)return ra;Mo=1;var n=dl(),e=Za();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Lh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=Vh();return ea.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},ea}var ta,Do;function Gr(){if(Do)return ta;Do=1;var n=le(),e=Lh(),r=Za(),t=Ka(),i=Ol(),a=Dr(),s=Xa(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ta=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ta}var ia,Vo;function kh(){if(Vo)return ia;Vo=1;var n=Z(),e=Q(),r=e.RegExp;return ia=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
1
+ import{_ as Va,c as La,p as ar,g as al}from"./index-CZb2m31K.js";function Xl(n,e){if(Va(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(Va(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Kl(n){var e=Xl(n,"string");return Va(e)=="symbol"?e:e+""}function Ua(n,e,r){return(e=Kl(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var cn={},vn={},vr,gn;function Q(){if(gn)return vr;gn=1;var n=function(e){return e&&e.Math===Math&&e};return vr=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof La=="object"&&La)||n(typeof vr=="object"&&vr)||(function(){return this})()||Function("return this")(),vr}var Zr={},Jr,dn;function Z(){return dn||(dn=1,Jr=function(n){try{return!!n()}catch{return!0}}),Jr}var et,pn;function we(){if(pn)return et;pn=1;var n=Z();return et=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),et}var rt,yn;function Ir(){if(yn)return rt;yn=1;var n=Z();return rt=!n(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),rt}var tt,mn;function ne(){if(mn)return tt;mn=1;var n=Ir(),e=Function.prototype.call;return tt=n?e.bind(e):function(){return e.apply(e,arguments)},tt}var it={},bn;function Ql(){if(bn)return it;bn=1;var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!n.call({1:2},1);return it.f=r?function(i){var a=e(this,i);return!!a&&a.enumerable}:n,it}var at,xn;function Ga(){return xn||(xn=1,at=function(n,e){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:e}}),at}var nt,On;function J(){if(On)return nt;On=1;var n=Ir(),e=Function.prototype,r=e.call,t=n&&e.bind.bind(r,r);return nt=n?t:function(i){return function(){return r.apply(i,arguments)}},nt}var st,Tn;function er(){if(Tn)return st;Tn=1;var n=J(),e=n({}.toString),r=n("".slice);return st=function(t){return r(e(t),8,-1)},st}var ot,Sn;function nl(){if(Sn)return ot;Sn=1;var n=J(),e=Z(),r=er(),t=Object,i=n("".split);return ot=e(function(){return!t("z").propertyIsEnumerable(0)})?function(a){return r(a)==="String"?i(a,""):t(a)}:t,ot}var ut,En;function Nr(){return En||(En=1,ut=function(n){return n==null}),ut}var lt,Rn;function Pe(){if(Rn)return lt;Rn=1;var n=Nr(),e=TypeError;return lt=function(r){if(n(r))throw new e("Can't call method on "+r);return r},lt}var ht,Cn;function pr(){if(Cn)return ht;Cn=1;var n=nl(),e=Pe();return ht=function(r){return n(e(r))},ht}var ft,wn;function re(){if(wn)return ft;wn=1;var n=typeof document=="object"&&document.all;return ft=typeof n>"u"&&n!==void 0?function(e){return typeof e=="function"||e===n}:function(e){return typeof e=="function"},ft}var ct,Pn;function pe(){if(Pn)return ct;Pn=1;var n=re();return ct=function(e){return typeof e=="object"?e!==null:n(e)},ct}var vt,An;function rr(){if(An)return vt;An=1;var n=Q(),e=re(),r=function(t){return e(t)?t:void 0};return vt=function(t,i){return arguments.length<2?r(n[t]):n[t]&&n[t][i]},vt}var gt,In;function _r(){if(In)return gt;In=1;var n=J();return gt=n({}.isPrototypeOf),gt}var dt,Nn;function yr(){if(Nn)return dt;Nn=1;var n=Q(),e=n.navigator,r=e&&e.userAgent;return dt=r?String(r):"",dt}var pt,_n;function $a(){if(_n)return pt;_n=1;var n=Q(),e=yr(),r=n.process,t=n.Deno,i=r&&r.versions||t&&t.version,a=i&&i.v8,s,o;return a&&(s=a.split("."),o=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!o&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(o=+s[1]))),pt=o,pt}var yt,Mn;function sl(){if(Mn)return yt;Mn=1;var n=$a(),e=Z(),r=Q(),t=r.String;return yt=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!t(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&n&&n<41}),yt}var mt,qn;function ol(){if(qn)return mt;qn=1;var n=sl();return mt=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mt}var bt,Dn;function ul(){if(Dn)return bt;Dn=1;var n=rr(),e=re(),r=_r(),t=ol(),i=Object;return bt=t?function(a){return typeof a=="symbol"}:function(a){var s=n("Symbol");return e(s)&&r(s.prototype,i(a))},bt}var xt,Vn;function Mr(){if(Vn)return xt;Vn=1;var n=String;return xt=function(e){try{return n(e)}catch{return"Object"}},xt}var Ot,Ln;function Fe(){if(Ln)return Ot;Ln=1;var n=re(),e=Mr(),r=TypeError;return Ot=function(t){if(n(t))return t;throw new r(e(t)+" is not a function")},Ot}var Tt,kn;function sr(){if(kn)return Tt;kn=1;var n=Fe(),e=Nr();return Tt=function(r,t){var i=r[t];return e(i)?void 0:n(i)},Tt}var St,jn;function Zl(){if(jn)return St;jn=1;var n=ne(),e=re(),r=pe(),t=TypeError;return St=function(i,a){var s,o;if(a==="string"&&e(s=i.toString)&&!r(o=n(s,i))||e(s=i.valueOf)&&!r(o=n(s,i))||a!=="string"&&e(s=i.toString)&&!r(o=n(s,i)))return o;throw new t("Can't convert object to primitive value")},St}var Et={exports:{}},Rt,Bn;function Me(){return Bn||(Bn=1,Rt=!1),Rt}var Ct,Fn;function za(){if(Fn)return Ct;Fn=1;var n=Q(),e=Object.defineProperty;return Ct=function(r,t){try{e(n,r,{value:t,configurable:!0,writable:!0})}catch{n[r]=t}return t},Ct}var Un;function Ha(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=za(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Wa(){if(Gn)return wt;Gn=1;var n=Ha();return wt=function(e,r){return n[e]||(n[e]=r||{})},wt}var Pt,$n;function qr(){if($n)return Pt;$n=1;var n=Pe(),e=Object;return Pt=function(r){return e(n(r))},Pt}var At,zn;function Ae(){if(zn)return At;zn=1;var n=J(),e=qr(),r=n({}.hasOwnProperty);return At=Object.hasOwn||function(i,a){return r(e(i),a)},At}var It,Hn;function ll(){if(Hn)return It;Hn=1;var n=J(),e=0,r=Math.random(),t=n(1.1.toString);return It=function(i){return"Symbol("+(i===void 0?"":i)+")_"+t(++e+r,36)},It}var Nt,Wn;function ae(){if(Wn)return Nt;Wn=1;var n=Q(),e=Wa(),r=Ae(),t=ll(),i=sl(),a=ol(),s=n.Symbol,o=e("wks"),u=a?s.for||s:s&&s.withoutSetter||t;return Nt=function(l){return r(o,l)||(o[l]=i&&r(s,l)?s[l]:u("Symbol."+l)),o[l]},Nt}var _t,Yn;function Jl(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Zl(),a=ae(),s=TypeError,o=a("toPrimitive");return _t=function(u,l){if(!e(u)||r(u))return u;var h=t(u,o),c;if(h){if(l===void 0&&(l="default"),c=n(h,u,l),!e(c)||r(c))return c;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},_t}var Mt,Xn;function hl(){if(Xn)return Mt;Xn=1;var n=Jl(),e=ul();return Mt=function(r){var t=n(r,"string");return e(t)?t:t+""},Mt}var qt,Kn;function Dr(){if(Kn)return qt;Kn=1;var n=Q(),e=pe(),r=n.document,t=e(r)&&e(r.createElement);return qt=function(i){return t?r.createElement(i):{}},qt}var Dt,Qn;function fl(){if(Qn)return Dt;Qn=1;var n=we(),e=Z(),r=Dr();return Dt=!n&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Dt}var Zn;function Vr(){if(Zn)return Zr;Zn=1;var n=we(),e=ne(),r=Ql(),t=Ga(),i=pr(),a=hl(),s=Ae(),o=fl(),u=Object.getOwnPropertyDescriptor;return Zr.f=n?u:function(h,c){if(h=i(h),c=a(c),o)try{return u(h,c)}catch{}if(s(h,c))return t(!e(r.f,h,c),h[c])},Zr}var Vt={},Lt,Jn;function cl(){if(Jn)return Lt;Jn=1;var n=we(),e=Z();return Lt=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Lt}var kt,es;function le(){if(es)return kt;es=1;var n=pe(),e=String,r=TypeError;return kt=function(t){if(n(t))return t;throw new r(e(t)+" is not an object")},kt}var rs;function Ye(){if(rs)return Vt;rs=1;var n=we(),e=fl(),r=cl(),t=le(),i=hl(),a=TypeError,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",h="writable";return Vt.f=n?r?function(v,f,g){if(t(v),f=i(f),t(g),typeof v=="function"&&f==="prototype"&&"value"in g&&h in g&&!g[h]){var d=o(v,f);d&&d[h]&&(v[f]=g.value,g={configurable:l in g?g[l]:d[l],enumerable:u in g?g[u]:d[u],writable:!1})}return s(v,f,g)}:s:function(v,f,g){if(t(v),f=i(f),t(g),e)try{return s(v,f,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(v[f]=g.value),v},Vt}var jt,ts;function mr(){if(ts)return jt;ts=1;var n=we(),e=Ye(),r=Ga();return jt=n?function(t,i,a){return e.f(t,i,r(1,a))}:function(t,i,a){return t[i]=a,t},jt}var Bt={exports:{}},Ft,is;function Lr(){if(is)return Ft;is=1;var n=we(),e=Ae(),r=Function.prototype,t=n&&Object.getOwnPropertyDescriptor,i=e(r,"name"),a=i&&(function(){}).name==="something",s=i&&(!n||n&&t(r,"name").configurable);return Ft={EXISTS:i,PROPER:a,CONFIGURABLE:s},Ft}var Ut,as;function Ya(){if(as)return Ut;as=1;var n=J(),e=re(),r=Ha(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function eh(){if(ns)return Gt;ns=1;var n=Q(),e=re(),r=n.WeakMap;return Gt=e(r)&&/native code/.test(String(r)),Gt}var $t,ss;function Xa(){if(ss)return $t;ss=1;var n=Wa(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Ka(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=eh(),e=Q(),r=pe(),t=mr(),i=Ae(),a=Ha(),s=Xa(),o=Ka(),u="Object already initialized",l=e.TypeError,h=e.WeakMap,c,v,f,g=function(m){return f(m)?v(m):c(m,{})},d=function(m){return function(b){var x;if(!r(b)||(x=v(b)).type!==m)throw new l("Incompatible receiver, "+m+" required");return x}};if(n||a.state){var p=a.state||(a.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,c=function(m,b){if(p.has(m))throw new l(u);return b.facade=m,p.set(m,b),b},v=function(m){return p.get(m)||{}},f=function(m){return p.has(m)}}else{var y=s("state");o[y]=!0,c=function(m,b){if(i(m,y))throw new l(u);return b.facade=m,t(m,y,b),b},v=function(m){return i(m,y)?m[y]:{}},f=function(m){return i(m,y)}}return Ht={set:c,get:v,has:f,enforce:g,getterFor:d},Ht}var ls;function vl(){if(ls)return Bt.exports;ls=1;var n=J(),e=Z(),r=re(),t=Ae(),i=we(),a=Lr().CONFIGURABLE,s=Ya(),o=kr(),u=o.enforce,l=o.get,h=String,c=Object.defineProperty,v=n("".slice),f=n("".replace),g=n([].join),d=i&&!e(function(){return c(function(){},"length",{value:8}).length!==8}),p=String(String).split("String"),y=Bt.exports=function(m,b,x){v(h(b),0,7)==="Symbol("&&(b="["+f(h(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(b="get "+b),x&&x.setter&&(b="set "+b),(!t(m,"name")||a&&m.name!==b)&&(i?c(m,"name",{value:b,configurable:!0}):m.name=b),d&&x&&t(x,"arity")&&m.length!==x.arity&&c(m,"length",{value:x.arity});try{x&&t(x,"constructor")&&x.constructor?i&&c(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var S=u(m);return t(S,"source")||(S.source=g(p,typeof b=="string"?b:"")),m};return Function.prototype.toString=y(function(){return r(this)&&l(this).source||s(this)},"toString"),Bt.exports}var Wt,hs;function tr(){if(hs)return Wt;hs=1;var n=re(),e=Ye(),r=vl(),t=za();return Wt=function(i,a,s,o){o||(o={});var u=o.enumerable,l=o.name!==void 0?o.name:a;if(n(s)&&r(s,l,o),o.global)u?i[a]=s:t(a,s);else{try{o.unsafe?i[a]&&(u=!0):delete i[a]}catch{}u?i[a]=s:e.f(i,a,{value:s,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return i},Wt}var Yt={},Xt,fs;function rh(){if(fs)return Xt;fs=1;var n=Math.ceil,e=Math.floor;return Xt=Math.trunc||function(t){var i=+t;return(i>0?e:n)(i)},Xt}var Kt,cs;function jr(){if(cs)return Kt;cs=1;var n=rh();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function th(){if(vs)return Qt;vs=1;var n=jr(),e=Math.max,r=Math.min;return Qt=function(t,i){var a=n(t);return a<0?e(a+i,0):r(a,i)},Qt}var Zt,gs;function or(){if(gs)return Zt;gs=1;var n=jr(),e=Math.min;return Zt=function(r){var t=n(r);return t>0?e(t,9007199254740991):0},Zt}var Jt,ds;function Qa(){if(ds)return Jt;ds=1;var n=or();return Jt=function(e){return n(e.length)},Jt}var ei,ps;function gl(){if(ps)return ei;ps=1;var n=pr(),e=th(),r=Qa(),t=function(i){return function(a,s,o){var u=n(a),l=r(u);if(l===0)return!i&&-1;var h=e(o,l),c;if(i&&s!==s){for(;l>h;)if(c=u[h++],c!==c)return!0}else for(;l>h;h++)if((i||h in u)&&u[h]===s)return i||h||0;return!i&&-1}};return ei={includes:t(!0),indexOf:t(!1)},ei}var ri,ys;function dl(){if(ys)return ri;ys=1;var n=J(),e=Ae(),r=pr(),t=gl().indexOf,i=Ka(),a=n([].push);return ri=function(s,o){var u=r(s),l=0,h=[],c;for(c in u)!e(i,c)&&e(u,c)&&a(h,c);for(;o.length>l;)e(u,c=o[l++])&&(~t(h,c)||a(h,c));return h},ri}var ti,ms;function Za(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function ih(){if(bs)return Yt;bs=1;var n=dl(),e=Za(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function ah(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function nh(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=ih(),t=ah(),i=le(),a=e([].concat);return ai=n("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=t.f;return l?a(u,l(o)):u},ai}var ni,Ts;function sh(){if(Ts)return ni;Ts=1;var n=Ae(),e=nh(),r=Vr(),t=Ye();return ni=function(i,a,s){for(var o=e(a),u=t.f,l=r.f,h=0;h<o.length;h++){var c=o[h];!n(i,c)&&!(s&&n(s,c))&&u(i,c,l(a,c))}},ni}var si,Ss;function pl(){if(Ss)return si;Ss=1;var n=Z(),e=re(),r=/#|\.prototype\./,t=function(u,l){var h=a[i(u)];return h===o?!0:h===s?!1:e(l)?n(l):!!l},i=t.normalize=function(u){return String(u).replace(r,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",o=t.POLYFILL="P";return si=t,si}var oi,Es;function he(){if(Es)return oi;Es=1;var n=Q(),e=Vr().f,r=mr(),t=tr(),i=za(),a=sh(),s=pl();return oi=function(o,u){var l=o.target,h=o.global,c=o.stat,v,f,g,d,p,y;if(h?f=n:c?f=n[l]||i(l,{}):f=n[l]&&n[l].prototype,f)for(g in u){if(p=u[g],o.dontCallGetSet?(y=e(f,g),d=y&&y.value):d=f[g],v=s(h?g:l+(c?".":"#")+g,o.forced),!v&&d!==void 0){if(typeof p==typeof d)continue;a(p,d)}(o.sham||d&&d.sham)&&r(p,"sham",!0),t(f,g,p,o)}},oi}var ui,Rs;function yl(){if(Rs)return ui;Rs=1;var n=Q(),e=yr(),r=er(),t=function(i){return e.slice(0,i.length)===i};return ui=(function(){return t("Bun/")?"BUN":t("Cloudflare-Workers")?"CLOUDFLARE":t("Deno/")?"DENO":t("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":r(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"})(),ui}var li,Cs;function Br(){if(Cs)return li;Cs=1;var n=yl();return li=n==="NODE",li}var hi,ws;function oh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function uh(){if(Ps)return fi;Ps=1;var n=J(),e=Fe();return fi=function(r,t,i){try{return n(e(Object.getOwnPropertyDescriptor(r,t)[i]))}catch{}},fi}var ci,As;function lh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function hh(){if(Is)return vi;Is=1;var n=lh(),e=String,r=TypeError;return vi=function(t){if(n(t))return t;throw new r("Can't set "+e(t)+" as a prototype")},vi}var gi,Ns;function ml(){if(Ns)return gi;Ns=1;var n=uh(),e=pe(),r=Pe(),t=hh();return gi=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,a={},s;try{s=n(Object.prototype,"__proto__","set"),s(a,[]),i=a instanceof Array}catch{}return function(u,l){return r(u),t(l),e(u)&&(i?s(u,l):u.__proto__=l),u}})():void 0),gi}var di,_s;function Fr(){if(_s)return di;_s=1;var n=Ye().f,e=Ae(),r=ae(),t=r("toStringTag");return di=function(i,a,s){i&&!s&&(i=i.prototype),i&&!e(i,t)&&n(i,t,{configurable:!0,value:a})},di}var pi,Ms;function fh(){if(Ms)return pi;Ms=1;var n=vl(),e=Ye();return pi=function(r,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),e.f(r,t,i)},pi}var yi,qs;function ch(){if(qs)return yi;qs=1;var n=rr(),e=fh(),r=ae(),t=we(),i=r("species");return yi=function(a){var s=n(a);t&&s&&!s[i]&&e(s,i,{configurable:!0,get:function(){return this}})},yi}var mi,Ds;function vh(){if(Ds)return mi;Ds=1;var n=_r(),e=TypeError;return mi=function(r,t){if(n(t,r))return r;throw new e("Incorrect invocation")},mi}var bi,Vs;function gh(){if(Vs)return bi;Vs=1;var n=ae(),e=n("toStringTag"),r={};return r[e]="z",bi=String(r)==="[object z]",bi}var xi,Ls;function Ja(){if(Ls)return xi;Ls=1;var n=gh(),e=re(),r=er(),t=ae(),i=t("toStringTag"),a=Object,s=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return xi=n?r:function(u){var l,h,c;return u===void 0?"Undefined":u===null?"Null":typeof(h=o(l=a(u),i))=="string"?h:s?r(l):(c=r(l))==="Object"&&e(l.callee)?"Arguments":c},xi}var Oi,ks;function dh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Ja(),i=rr(),a=Ya(),s=function(){},o=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,l=n(u.exec),h=!u.test(s),c=function(g){if(!r(g))return!1;try{return o(s,[],g),!0}catch{return!1}},v=function(g){if(!r(g))return!1;switch(t(g)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(u,a(g))}catch{return!0}};return v.sham=!0,Oi=!o||e(function(){var f;return c(c.call)||!c(Object)||!c(function(){f=!0})||f})?v:c,Oi}var Ti,js;function ph(){if(js)return Ti;js=1;var n=dh(),e=Mr(),r=TypeError;return Ti=function(t){if(n(t))return t;throw new r(e(t)+" is not a constructor")},Ti}var Si,Bs;function bl(){if(Bs)return Si;Bs=1;var n=le(),e=ph(),r=Nr(),t=ae(),i=t("species");return Si=function(a,s){var o=n(a).constructor,u;return o===void 0||r(u=n(o)[i])?s:e(u)},Si}var Ei,Fs;function xl(){if(Fs)return Ei;Fs=1;var n=Ir(),e=Function.prototype,r=e.apply,t=e.call;return Ei=typeof Reflect=="object"&&Reflect.apply||(n?t.bind(r):function(){return t.apply(r,arguments)}),Ei}var Ri,Us;function Ur(){if(Us)return Ri;Us=1;var n=er(),e=J();return Ri=function(r){if(n(r)==="Function")return e(r)},Ri}var Ci,Gs;function en(){if(Gs)return Ci;Gs=1;var n=Ur(),e=Fe(),r=Ir(),t=n(n.bind);return Ci=function(i,a){return e(i),a===void 0?i:r?t(i,a):function(){return i.apply(a,arguments)}},Ci}var wi,$s;function Ol(){if($s)return wi;$s=1;var n=rr();return wi=n("document","documentElement"),wi}var Pi,zs;function yh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function mh(){if(Hs)return Ai;Hs=1;var n=TypeError;return Ai=function(e,r){if(e<r)throw new n("Not enough arguments");return e},Ai}var Ii,Ws;function Tl(){if(Ws)return Ii;Ws=1;var n=yr();return Ii=/(?:ipad|iphone|ipod).*applewebkit/i.test(n),Ii}var Ni,Ys;function Sl(){if(Ys)return Ni;Ys=1;var n=Q(),e=xl(),r=en(),t=re(),i=Ae(),a=Z(),s=Ol(),o=yh(),u=Dr(),l=mh(),h=Tl(),c=Br(),v=n.setImmediate,f=n.clearImmediate,g=n.process,d=n.Dispatch,p=n.Function,y=n.MessageChannel,m=n.String,b=0,x={},S="onreadystatechange",E,O,P,_;a(function(){E=n.location});var A=function(C){if(i(x,C)){var w=x[C];delete x[C],w()}},q=function(C){return function(){A(C)}},I=function(C){A(C.data)},j=function(C){n.postMessage(m(C),E.protocol+"//"+E.host)};return(!v||!f)&&(v=function(w){l(arguments.length,1);var U=t(w)?w:p(w),L=o(arguments,1);return x[++b]=function(){e(U,void 0,L)},O(b),b},f=function(w){delete x[w]},c?O=function(C){g.nextTick(q(C))}:d&&d.now?O=function(C){d.now(q(C))}:y&&!h?(P=new y,_=P.port2,P.port1.onmessage=I,O=r(_.postMessage,_)):n.addEventListener&&t(n.postMessage)&&!n.importScripts&&E&&E.protocol!=="file:"&&!a(j)?(O=j,n.addEventListener("message",I,!1)):S in u("script")?O=function(C){s.appendChild(u("script"))[S]=function(){s.removeChild(this),A(C)}}:O=function(C){setTimeout(q(C),0)}),Ni={set:v,clear:f},Ni}var _i,Xs;function bh(){if(Xs)return _i;Xs=1;var n=Q(),e=we(),r=Object.getOwnPropertyDescriptor;return _i=function(t){if(!e)return n[t];var i=r(n,t);return i&&i.value},_i}var Mi,Ks;function El(){if(Ks)return Mi;Ks=1;var n=function(){this.head=null,this.tail=null};return n.prototype={add:function(e){var r={item:e,next:null},t=this.tail;t?t.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},Mi=n,Mi}var qi,Qs;function xh(){if(Qs)return qi;Qs=1;var n=yr();return qi=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u",qi}var Di,Zs;function Oh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function Th(){if(Js)return Vi;Js=1;var n=Q(),e=bh(),r=en(),t=Sl().set,i=El(),a=Tl(),s=xh(),o=Oh(),u=Br(),l=n.MutationObserver||n.WebKitMutationObserver,h=n.document,c=n.process,v=n.Promise,f=e("queueMicrotask"),g,d,p,y,m;if(!f){var b=new i,x=function(){var S,E;for(u&&(S=c.domain)&&S.exit();E=b.get();)try{E()}catch(O){throw b.head&&g(),O}S&&S.enter()};!a&&!u&&!o&&l&&h?(d=!0,p=h.createTextNode(""),new l(x).observe(p,{characterData:!0}),g=function(){p.data=d=!d}):!s&&v&&v.resolve?(y=v.resolve(void 0),y.constructor=v,m=r(y.then,y),g=function(){m(x)}):u?g=function(){c.nextTick(x)}:(t=r(t,n),g=function(){t(x)}),f=function(S){b.head||g(),b.add(S)}}return Vi=f,Vi}var Li,eo;function Sh(){return eo||(eo=1,Li=function(n,e){try{arguments.length===1?console.error(n):console.error(n,e)}catch{}}),Li}var ki,ro;function rn(){return ro||(ro=1,ki=function(n){try{return{error:!1,value:n()}}catch(e){return{error:!0,value:e}}}),ki}var ji,to;function br(){if(to)return ji;to=1;var n=Q();return ji=n.Promise,ji}var Bi,io;function xr(){if(io)return Bi;io=1;var n=Q(),e=br(),r=re(),t=pl(),i=Ya(),a=ae(),s=yl(),o=Me(),u=$a(),l=e&&e.prototype,h=a("species"),c=!1,v=r(n.PromiseRejectionEvent),f=t("Promise",function(){var g=i(e),d=g!==String(e);if(!d&&u===66||o&&!(l.catch&&l.finally))return!0;if(!u||u<51||!/native code/.test(g)){var p=new e(function(b){b(1)}),y=function(b){b(function(){},function(){})},m=p.constructor={};if(m[h]=y,c=p.then(function(){})instanceof y,!c)return!0}return!d&&(s==="BROWSER"||s==="DENO")&&!v});return Bi={CONSTRUCTOR:f,REJECTION_EVENT:v,SUBCLASSING:c},Bi}var Fi={},ao;function Or(){if(ao)return Fi;ao=1;var n=Fe(),e=TypeError,r=function(t){var i,a;this.promise=new t(function(s,o){if(i!==void 0||a!==void 0)throw new e("Bad Promise constructor");i=s,a=o}),this.resolve=n(i),this.reject=n(a)};return Fi.f=function(t){return new r(t)},Fi}var no;function Eh(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=oh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=ch(),h=Fe(),c=re(),v=pe(),f=vh(),g=bl(),d=Sl().set,p=Th(),y=Sh(),m=rn(),b=El(),x=kr(),S=br(),E=xr(),O=Or(),P="Promise",_=E.CONSTRUCTOR,A=E.REJECTION_EVENT,q=E.SUBCLASSING,I=x.getterFor(P),j=x.set,C=S&&S.prototype,w=S,U=C,L=t.TypeError,V=t.document,M=t.process,N=O.f,k=N,z=!!(V&&V.createEvent&&t.dispatchEvent),H="unhandledrejection",X="rejectionhandled",se=0,be=1,oe=2,Ue=1,Ge=2,fe,Ne,_e,me,ce=function(R){var B;return v(R)&&c(B=R.then)?B:!1},xe=function(R,B){var G=B.value,$=B.state===be,W=$?R.ok:R.fail,Te=R.resolve,Le=R.reject,Se=R.domain,Ee,hr,fr;try{W?($||(B.rejection===Ge&&$e(B),B.rejection=Ue),W===!0?Ee=G:(Se&&Se.enter(),Ee=W(G),Se&&(Se.exit(),fr=!0)),Ee===R.promise?Le(new L("Promise-chain cycle")):(hr=ce(Ee))?a(hr,Ee,Te,Le):Te(Ee)):Le(G)}catch(cr){Se&&!fr&&Se.exit(),Le(cr)}},De=function(R,B){R.notified||(R.notified=!0,p(function(){for(var G=R.reactions,$;$=G.get();)xe($,R);R.notified=!1,B&&!R.rejection&&Xe(R)}))},Ve=function(R,B,G){var $,W;z?($=V.createEvent("Event"),$.promise=B,$.reason=G,$.initEvent(R,!1,!0),t.dispatchEvent($)):$={promise:B,reason:G},!A&&(W=t["on"+R])?W($):R===H&&y("Unhandled promise rejection",G)},Xe=function(R){a(d,t,function(){var B=R.facade,G=R.value,$=lr(R),W;if($&&(W=m(function(){r?M.emit("unhandledRejection",G,B):Ve(H,B,G)}),R.rejection=r||lr(R)?Ge:Ue,W.error))throw W.value})},lr=function(R){return R.rejection!==Ue&&!R.parent},$e=function(R){a(d,t,function(){var B=R.facade;r?M.emit("rejectionHandled",B):Ve(X,B,R.value)})},ve=function(R,B,G){return function($){R(B,$,G)}},ge=function(R,B,G){R.done||(R.done=!0,G&&(R=G),R.value=B,R.state=oe,De(R,!0))},Oe=function(R,B,G){if(!R.done){R.done=!0,G&&(R=G);try{if(R.facade===B)throw new L("Promise can't be resolved itself");var $=ce(B);$?p(function(){var W={done:!1};try{a($,B,ve(Oe,W,R),ve(ge,W,R))}catch(Te){ge(W,Te,R)}}):(R.value=B,R.state=be,De(R,!1))}catch(W){ge({done:!1},W,R)}}};if(_&&(w=function(B){f(this,U),h(B),a(fe,this);var G=I(this);try{B(ve(Oe,G),ve(ge,G))}catch($){ge(G,$)}},U=w.prototype,fe=function(B){j(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:se,value:null})},fe.prototype=s(U,"then",function(B,G){var $=I(this),W=N(g(this,w));return $.parent=!0,W.ok=c(B)?B:!0,W.fail=c(G)&&G,W.domain=r?M.domain:void 0,$.state===se?$.reactions.add(W):p(function(){xe(W,$)}),W.promise}),Ne=function(){var R=new fe,B=I(R);this.promise=R,this.resolve=ve(Oe,B),this.reject=ve(ge,B)},O.f=N=function(R){return R===w||R===_e?new Ne(R):k(R)},!e&&c(S)&&C!==Object.prototype)){me=C.then,q||s(C,"then",function(B,G){var $=this;return new w(function(W,Te){a(me,$,W,Te)}).then(B,G)},{unsafe:!0});try{delete C.constructor}catch{}o&&o(C,U)}return n({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:w}),_e=i.Promise,u(w,P,!1,!0),l(P),vn}var so={},Ui,oo;function Tr(){return oo||(oo=1,Ui={}),Ui}var Gi,uo;function Rh(){if(uo)return Gi;uo=1;var n=ae(),e=Tr(),r=n("iterator"),t=Array.prototype;return Gi=function(i){return i!==void 0&&(e.Array===i||t[r]===i)},Gi}var $i,lo;function Rl(){if(lo)return $i;lo=1;var n=Ja(),e=sr(),r=Nr(),t=Tr(),i=ae(),a=i("iterator");return $i=function(s){if(!r(s))return e(s,a)||e(s,"@@iterator")||t[n(s)]},$i}var zi,ho;function Ch(){if(ho)return zi;ho=1;var n=ne(),e=Fe(),r=le(),t=Mr(),i=Rl(),a=TypeError;return zi=function(s,o){var u=arguments.length<2?i(s):o;if(e(u))return r(n(u,s));throw new a(t(s)+" is not iterable")},zi}var Hi,fo;function wh(){if(fo)return Hi;fo=1;var n=ne(),e=le(),r=sr();return Hi=function(t,i,a){var s,o;e(t);try{if(s=r(t,"return"),!s){if(i==="throw")throw a;return a}s=n(s,t)}catch(u){o=!0,s=u}if(i==="throw")throw a;if(o)throw s;return e(s),a},Hi}var Wi,co;function Cl(){if(co)return Wi;co=1;var n=en(),e=ne(),r=le(),t=Mr(),i=Rh(),a=Qa(),s=_r(),o=Ch(),u=Rl(),l=wh(),h=TypeError,c=function(f,g){this.stopped=f,this.result=g},v=c.prototype;return Wi=function(f,g,d){var p=d&&d.that,y=!!(d&&d.AS_ENTRIES),m=!!(d&&d.IS_RECORD),b=!!(d&&d.IS_ITERATOR),x=!!(d&&d.INTERRUPTED),S=n(g,p),E,O,P,_,A,q,I,j=function(w){return E&&l(E,"normal"),new c(!0,w)},C=function(w){return y?(r(w),x?S(w[0],w[1],j):S(w[0],w[1])):x?S(w,j):S(w)};if(m)E=f.iterator;else if(b)E=f;else{if(O=u(f),!O)throw new h(t(f)+" is not iterable");if(i(O)){for(P=0,_=a(f);_>P;P++)if(A=C(f[P]),A&&s(v,A))return A;return new c(!1)}E=o(f,O)}for(q=m?f.next:E.next;!(I=e(q,E)).done;){try{A=C(I.value)}catch(w){l(E,"throw",w)}if(typeof A=="object"&&A&&s(v,A))return A}return new c(!1)},Wi}var Yi,vo;function Ph(){if(vo)return Yi;vo=1;var n=ae(),e=n("iterator"),r=!1;try{var t=0,i={next:function(){return{done:!!t++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}return Yi=function(a,s){try{if(!s&&!r)return!1}catch{return!1}var o=!1;try{var u={};u[e]=function(){return{next:function(){return{done:o=!0}}}},a(u)}catch{}return o},Yi}var Xi,go;function wl(){if(go)return Xi;go=1;var n=br(),e=Ph(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function Ah(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{all:function(u){var l=this,h=t.f(l),c=h.resolve,v=h.reject,f=i(function(){var g=r(l.resolve),d=[],p=0,y=1;a(u,function(m){var b=p++,x=!1;y++,e(g,l,m).then(function(S){x||(x=!0,d[b]=S,--y||c(d))},v)}),--y||c(d)});return f.error&&v(f.value),h.promise}}),so}var yo={},mo;function Ih(){if(mo)return yo;mo=1;var n=he(),e=Me(),r=xr().CONSTRUCTOR,t=br(),i=rr(),a=re(),s=tr(),o=t&&t.prototype;if(n({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(l){return this.then(void 0,l)}}),!e&&a(t)){var u=i("Promise").prototype.catch;o.catch!==u&&s(o,"catch",u,{unsafe:!0})}return yo}var bo={},xo;function Nh(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=rn(),a=Cl(),s=wl();return n({target:"Promise",stat:!0,forced:s},{race:function(u){var l=this,h=t.f(l),c=h.reject,v=i(function(){var f=r(l.resolve);a(u,function(g){e(f,l,g).then(h.resolve,c)})});return v.error&&c(v.value),h.promise}}),bo}var Oo={},To;function _h(){if(To)return Oo;To=1;var n=he(),e=Or(),r=xr().CONSTRUCTOR;return n({target:"Promise",stat:!0,forced:r},{reject:function(i){var a=e.f(this),s=a.reject;return s(i),a.promise}}),Oo}var So={},Ki,Eo;function Mh(){if(Eo)return Ki;Eo=1;var n=le(),e=pe(),r=Or();return Ki=function(t,i){if(n(t),e(i)&&i.constructor===t)return i;var a=r.f(t),s=a.resolve;return s(i),a.promise},Ki}var Ro;function qh(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Mh(),s=e("Promise"),o=r&&!i;return n({target:"Promise",stat:!0,forced:r||i},{resolve:function(l){return a(o&&this===s?t:this,l)}}),So}var Co;function Dh(){return Co||(Co=1,Eh(),Ah(),Ih(),Nh(),_h(),qh()),cn}Dh();function wo(n,e,r,t,i,a,s){try{var o=n[a](s),u=o.value}catch(l){return void r(l)}o.done?e(u):Promise.resolve(u).then(t,i)}function Be(n){return function(){var e=this,r=arguments;return new Promise(function(t,i){var a=n.apply(e,r);function s(u){wo(a,t,i,s,o,"next",u)}function o(u){wo(a,t,i,s,o,"throw",u)}s(void 0)})}}var Po={},Ao={},Qi,Io;function qe(){if(Io)return Qi;Io=1;var n=Ja(),e=String;return Qi=function(r){if(n(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Qi}var Zi,No;function Pl(){if(No)return Zi;No=1;var n=le();return Zi=function(){var e=n(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},Zi}var Ji,_o;function Al(){if(_o)return Ji;_o=1;var n=Z(),e=Q(),r=e.RegExp,t=n(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=t||n(function(){return!r("a","y").sticky}),a=t||n(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});return Ji={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:t},Ji}var ea={},ra,Mo;function Vh(){if(Mo)return ra;Mo=1;var n=dl(),e=Za();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Lh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=Vh();return ea.f=n&&!e?Object.defineProperties:function(o,u){t(o);for(var l=i(u),h=a(u),c=h.length,v=0,f;c>v;)r.f(o,f=h[v++],l[f]);return o},ea}var ta,Do;function Gr(){if(Do)return ta;Do=1;var n=le(),e=Lh(),r=Za(),t=Ka(),i=Ol(),a=Dr(),s=Xa(),o=">",u="<",l="prototype",h="script",c=s("IE_PROTO"),v=function(){},f=function(m){return u+h+o+m+u+"/"+h+o},g=function(m){m.write(f("")),m.close();var b=m.parentWindow.Object;return m=null,b},d=function(){var m=a("iframe"),b="java"+h+":",x;return m.style.display="none",i.appendChild(m),m.src=String(b),x=m.contentWindow.document,x.open(),x.write(f("document.F=Object")),x.close(),x.F},p,y=function(){try{p=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&p?g(p):d():g(p);for(var m=r.length;m--;)delete y[l][r[m]];return y()};return t[c]=!0,ta=Object.create||function(b,x){var S;return b!==null?(v[l]=n(b),S=new v,v[l]=null,S[c]=b):S=y(),x===void 0?S:e.f(S,x)},ta}var ia,Vo;function kh(){if(Vo)return ia;Vo=1;var n=Z(),e=Q(),r=e.RegExp;return ia=n(function(){var t=r(".","s");return!(t.dotAll&&t.test(`
2
2
  `)&&t.flags==="s")}),ia}var aa,Lo;function jh(){if(Lo)return aa;Lo=1;var n=Z(),e=Q(),r=e.RegExp;return aa=n(function(){var t=r("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),aa}var na,ko;function tn(){if(ko)return na;ko=1;var n=ne(),e=J(),r=qe(),t=Pl(),i=Al(),a=Wa(),s=Gr(),o=kr().get,u=kh(),l=jh(),h=a("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,v=c,f=e("".charAt),g=e("".indexOf),d=e("".replace),p=e("".slice),y=(function(){var S=/a/,E=/b*/g;return n(c,S,"a"),n(c,E,"a"),S.lastIndex!==0||E.lastIndex!==0})(),m=i.BROKEN_CARET,b=/()??/.exec("")[1]!==void 0,x=y||b||m||u||l;return x&&(v=function(E){var O=this,P=o(O),_=r(E),A=P.raw,q,I,j,C,w,U,L;if(A)return A.lastIndex=O.lastIndex,q=n(v,A,_),O.lastIndex=A.lastIndex,q;var V=P.groups,M=m&&O.sticky,N=n(t,O),k=O.source,z=0,H=_;if(M&&(N=d(N,"y",""),g(N,"g")===-1&&(N+="g"),H=p(_,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&f(_,O.lastIndex-1)!==`
3
3
  `)&&(k="(?: "+k+")",H=" "+H,z++),I=new RegExp("^(?:"+k+")",N)),b&&(I=new RegExp("^"+k+"$(?!\\s)",N)),y&&(j=O.lastIndex),C=n(c,M?I:O,H),M?C?(C.input=p(C.input,z),C[0]=p(C[0],z),C.index=O.lastIndex,O.lastIndex+=C[0].length):O.lastIndex=0:y&&C&&(O.lastIndex=O.global?C.index+C[0].length:j),b&&C&&C.length>1&&n(h,C[0],I,function(){for(w=1;w<arguments.length-2;w++)arguments[w]===void 0&&(C[w]=void 0)}),C&&V)for(C.groups=U=s(null),w=0;w<V.length;w++)L=V[w],U[L[0]]=C[L[1]];return C}),na=v,na}var jo;function Bh(){if(jo)return Ao;jo=1;var n=he(),e=tn();return n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Ao}var sa,Bo;function an(){if(Bo)return sa;Bo=1,Bh();var n=ne(),e=tr(),r=tn(),t=Z(),i=ae(),a=mr(),s=i("species"),o=RegExp.prototype;return sa=function(u,l,h,c){var v=i(u),f=!t(function(){var y={};return y[v]=function(){return 7},""[u](y)!==7}),g=f&&!t(function(){var y=!1,m=/a/;return u==="split"&&(m={},m.constructor={},m.constructor[s]=function(){return m},m.flags="",m[v]=/./[v]),m.exec=function(){return y=!0,null},m[v](""),!y});if(!f||!g||h){var d=/./[v],p=l(v,""[u],function(y,m,b,x,S){var E=m.exec;return E===r||E===o.exec?f&&!S?{done:!0,value:n(d,m,b,x)}:{done:!0,value:n(y,b,m,x)}:{done:!1}});e(String.prototype,u,p[0]),e(o,v,p[1])}c&&a(o[v],"sham",!0)},sa}var oa,Fo;function Fh(){if(Fo)return oa;Fo=1;var n=J(),e=jr(),r=qe(),t=Pe(),i=n("".charAt),a=n("".charCodeAt),s=n("".slice),o=function(u){return function(l,h){var c=r(t(l)),v=e(h),f=c.length,g,d;return v<0||v>=f?u?"":void 0:(g=a(c,v),g<55296||g>56319||v+1===f||(d=a(c,v+1))<56320||d>57343?u?i(c,v):g:u?s(c,v,v+2):(g-55296<<10)+(d-56320)+65536)}};return oa={codeAt:o(!1),charAt:o(!0)},oa}var ua,Uo;function nn(){if(Uo)return ua;Uo=1;var n=Fh().charAt;return ua=function(e,r,t){return r+(t?n(e,r).length:1)},ua}var la,Go;function Uh(){if(Go)return la;Go=1;var n=Q(),e=Z(),r=n.RegExp,t=!e(function(){var i=!0;try{r(".","d")}catch{i=!1}var a={},s="",o=i?"dgimsy":"gimsy",u=function(v,f){Object.defineProperty(a,v,{get:function(){return s+=f,!0}})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(l.hasIndices="d");for(var h in l)u(h,l[h]);var c=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(a);return c!==o||s!==o});return la={correct:t},la}var ha,$o;function sn(){if($o)return ha;$o=1;var n=ne(),e=Ae(),r=_r(),t=Uh(),i=Pl(),a=RegExp.prototype;return ha=t.correct?function(s){return s.flags}:function(s){return!t.correct&&r(a,s)&&!e(s,"flags")?n(i,s):s.flags},ha}var fa,zo;function on(){if(zo)return fa;zo=1;var n=ne(),e=le(),r=re(),t=er(),i=tn(),a=TypeError;return fa=function(s,o){var u=s.exec;if(r(u)){var l=n(u,s,o);return l!==null&&e(l),l}if(t(s)==="RegExp")return n(i,s,o);throw new a("RegExp#exec called on incompatible receiver")},fa}var Ho;function Gh(){if(Ho)return Po;Ho=1;var n=ne(),e=J(),r=an(),t=le(),i=pe(),a=or(),s=qe(),o=Pe(),u=sr(),l=nn(),h=sn(),c=on(),v=e("".indexOf);return r("match",function(f,g,d){return[function(y){var m=o(this),b=i(y)?u(y,f):void 0;return b?n(b,y,m):new RegExp(y)[f](s(m))},function(p){var y=t(this),m=s(p),b=d(g,y,m);if(b.done)return b.value;var x=s(h(y));if(v(x,"g")===-1)return c(y,m);var S=v(x,"u")!==-1;y.lastIndex=0;for(var E=[],O=0,P;(P=c(y,m))!==null;){var _=s(P[0]);E[O]=_,_===""&&(y.lastIndex=l(m,a(y.lastIndex),S)),O++}return O===0?null:E}]}),Po}Gh();var Wo={},ca,Yo;function $h(){if(Yo)return ca;Yo=1;var n=J(),e=qr(),r=Math.floor,t=n("".charAt),i=n("".replace),a=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;return ca=function(u,l,h,c,v,f){var g=h+u.length,d=c.length,p=o;return v!==void 0&&(v=e(v),p=s),i(f,p,function(y,m){var b;switch(t(m,0)){case"$":return"$";case"&":return u;case"`":return a(l,0,h);case"'":return a(l,g);case"<":b=v[a(m,1,-1)];break;default:var x=+m;if(x===0)return y;if(x>d){var S=r(x/10);return S===0?y:S<=d?c[S-1]===void 0?t(m,1):c[S-1]+t(m,1):y}b=c[x-1]}return b===void 0?"":b})},ca}var Xo;function zh(){if(Xo)return Wo;Xo=1;var n=xl(),e=ne(),r=J(),t=an(),i=Z(),a=le(),s=re(),o=pe(),u=jr(),l=or(),h=qe(),c=Pe(),v=nn(),f=sr(),g=$h(),d=sn(),p=on(),y=ae(),m=y("replace"),b=Math.max,x=Math.min,S=r([].concat),E=r([].push),O=r("".indexOf),P=r("".slice),_=function(j){return j===void 0?j:String(j)},A=(function(){return"a".replace(/./,"$0")==="$0"})(),q=(function(){return/./[m]?/./[m]("a","$0")==="":!1})(),I=!i(function(){var j=/./;return j.exec=function(){var C=[];return C.groups={a:"7"},C},"".replace(j,"$<a>")!=="7"});return t("replace",function(j,C,w){var U=q?"$":"$0";return[function(V,M){var N=c(this),k=o(V)?f(V,m):void 0;return k?e(k,V,N,M):e(C,h(N),V,M)},function(L,V){var M=a(this),N=h(L);if(typeof V=="string"&&O(V,U)===-1&&O(V,"$<")===-1){var k=w(C,M,N,V);if(k.done)return k.value}var z=s(V);z||(V=h(V));var H=h(d(M)),X=O(H,"g")!==-1,se;X&&(se=O(H,"u")!==-1,M.lastIndex=0);for(var be=[],oe;oe=p(M,N),!(oe===null||(E(be,oe),!X));){var Ue=h(oe[0]);Ue===""&&(M.lastIndex=v(N,l(M.lastIndex),se))}for(var Ge="",fe=0,Ne=0;Ne<be.length;Ne++){oe=be[Ne];for(var _e=h(oe[0]),me=b(x(u(oe.index),N.length),0),ce=[],xe,De=1;De<oe.length;De++)E(ce,_(oe[De]));var Ve=oe.groups;if(z){var Xe=S([_e],ce,me,N);Ve!==void 0&&E(Xe,Ve),xe=h(n(V,void 0,Xe))}else xe=g(_e,N,me,ce,Ve,V);me>=fe&&(Ge+=P(N,fe,me)+xe,fe=me+_e.length)}return Ge+P(N,fe)}]},!I||!A||q),Wo}zh();var Ko={},va,Qo;function Hh(){if(Qo)return va;Qo=1;var n=pe(),e=er(),r=ae(),t=r("match");return va=function(i){var a;return n(i)&&((a=i[t])!==void 0?!!a:e(i)==="RegExp")},va}var ga,Zo;function un(){if(Zo)return ga;Zo=1;var n=Hh(),e=TypeError;return ga=function(r){if(n(r))throw new e("The method doesn't accept regular expressions");return r},ga}var da,Jo;function ln(){if(Jo)return da;Jo=1;var n=ae(),e=n("match");return da=function(r){var t=/./;try{"/./"[r](t)}catch{try{return t[e]=!1,"/./"[r](t)}catch{}}return!1},da}var eu;function Wh(){if(eu)return Ko;eu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=un(),s=Pe(),o=ln(),u=Me(),l=e("".slice),h=Math.min,c=o("startsWith"),v=!u&&!c&&!!(function(){var f=r(String.prototype,"startsWith");return f&&!f.writable})();return n({target:"String",proto:!0,forced:!v&&!c},{startsWith:function(g){var d=i(s(this));a(g);var p=t(h(arguments.length>1?arguments[1]:void 0,d.length)),y=i(g);return l(d,p,p+y.length)===y}}),Ko}Wh();var pa,ru;function Yh(){if(ru)return pa;ru=1;var n=ae(),e=Gr(),r=Ye().f,t=n("unscopables"),i=Array.prototype;return i[t]===void 0&&r(i,t,{configurable:!0,value:e(null)}),pa=function(a){i[t][a]=!0},pa}var ya,tu;function Xh(){if(tu)return ya;tu=1;var n=Z();return ya=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ya}var ma,iu;function Il(){if(iu)return ma;iu=1;var n=Ae(),e=re(),r=qr(),t=Xa(),i=Xh(),a=t("IE_PROTO"),s=Object,o=s.prototype;return ma=i?s.getPrototypeOf:function(u){var l=r(u);if(n(l,a))return l[a];var h=l.constructor;return e(h)&&l instanceof h?h.prototype:l instanceof s?o:null},ma}var ba,au;function Nl(){if(au)return ba;au=1;var n=Z(),e=re(),r=pe(),t=Gr(),i=Il(),a=tr(),s=ae(),o=Me(),u=s("iterator"),l=!1,h,c,v;[].keys&&(v=[].keys(),"next"in v?(c=i(i(v)),c!==Object.prototype&&(h=c)):l=!0);var f=!r(h)||n(function(){var g={};return h[u].call(g)!==g});return f?h={}:o&&(h=t(h)),e(h[u])||a(h,u,function(){return this}),ba={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:l},ba}var xa,nu;function Kh(){if(nu)return xa;nu=1;var n=Nl().IteratorPrototype,e=Gr(),r=Ga(),t=Fr(),i=Tr(),a=function(){return this};return xa=function(s,o,u,l){var h=o+" Iterator";return s.prototype=e(n,{next:r(+!l,u)}),t(s,h,!1,!0),i[h]=a,s},xa}var Oa,su;function Qh(){if(su)return Oa;su=1;var n=he(),e=ne(),r=Me(),t=Lr(),i=re(),a=Kh(),s=Il(),o=ml(),u=Fr(),l=mr(),h=tr(),c=ae(),v=Tr(),f=Nl(),g=t.PROPER,d=t.CONFIGURABLE,p=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),b="keys",x="values",S="entries",E=function(){return this};return Oa=function(O,P,_,A,q,I,j){a(_,P,A);var C=function(X){if(X===q&&M)return M;if(!y&&X&&X in L)return L[X];switch(X){case b:return function(){return new _(this,X)};case x:return function(){return new _(this,X)};case S:return function(){return new _(this,X)}}return function(){return new _(this)}},w=P+" Iterator",U=!1,L=O.prototype,V=L[m]||L["@@iterator"]||q&&L[q],M=!y&&V||C(q),N=P==="Array"&&L.entries||V,k,z,H;if(N&&(k=s(N.call(new O)),k!==Object.prototype&&k.next&&(!r&&s(k)!==p&&(o?o(k,p):i(k[m])||h(k,m,E)),u(k,w,!0,!0),r&&(v[w]=E))),g&&q===x&&V&&V.name!==x&&(!r&&d?l(L,"name",x):(U=!0,M=function(){return e(V,this)})),q)if(z={values:C(x),keys:I?M:C(b),entries:C(S)},j)for(H in z)(y||U||!(H in L))&&h(L,H,z[H]);else n({target:P,proto:!0,forced:y||U},z);return(!r||j)&&L[m]!==M&&h(L,m,M,{name:q}),v[P]=M,z},Oa}var Ta,ou;function Zh(){return ou||(ou=1,Ta=function(n,e){return{value:n,done:e}}),Ta}var Sa,uu;function _l(){if(uu)return Sa;uu=1;var n=pr(),e=Yh(),r=Tr(),t=kr(),i=Ye().f,a=Qh(),s=Zh(),o=Me(),u=we(),l="Array Iterator",h=t.set,c=t.getterFor(l);Sa=a(Array,"Array",function(f,g){h(this,{type:l,target:n(f),index:0,kind:g})},function(){var f=c(this),g=f.target,d=f.index++;if(!g||d>=g.length)return f.target=null,s(void 0,!0);switch(f.kind){case"keys":return s(d,!1);case"values":return s(g[d],!1)}return s([d,g[d]],!1)},"values");var v=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&v.name!=="values")try{i(v,"name",{value:"values"})}catch{}return Sa}_l();var lu={},Ea,hu;function Jh(){return hu||(hu=1,Ea={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),Ea}var Ra,fu;function ef(){if(fu)return Ra;fu=1;var n=Dr(),e=n("span").classList,r=e&&e.constructor&&e.constructor.prototype;return Ra=r===Object.prototype?void 0:r,Ra}var cu;function rf(){if(cu)return lu;cu=1;var n=Q(),e=Jh(),r=ef(),t=_l(),i=mr(),a=Fr(),s=ae(),o=s("iterator"),u=t.values,l=function(c,v){if(c){if(c[o]!==u)try{i(c,o,u)}catch{c[o]=u}if(a(c,v,!0),e[v]){for(var f in t)if(c[f]!==t[f])try{i(c,f,t[f])}catch{c[f]=t[f]}}}};for(var h in e)l(n[h]&&n[h].prototype,h);return l(r,"DOMTokenList"),lu}rf();var vu={},Ca,gu;function tf(){if(gu)return Ca;gu=1;var n=Fe(),e=qr(),r=nl(),t=Qa(),i=TypeError,a="Reduce of empty array with no initial value",s=function(o){return function(u,l,h,c){var v=e(u),f=r(v),g=t(v);if(n(l),g===0&&h<2)throw new i(a);var d=o?g-1:0,p=o?-1:1;if(h<2)for(;;){if(d in f){c=f[d],d+=p;break}if(d+=p,o?d<0:g<=d)throw new i(a)}for(;o?d>=0:g>d;d+=p)d in f&&(c=l(c,f[d],d,v));return c}};return Ca={left:s(!1),right:s(!0)},Ca}var wa,du;function Ml(){if(du)return wa;du=1;var n=Z();return wa=function(e,r){var t=[][e];return!!t&&n(function(){t.call(null,r||function(){return 1},1)})},wa}var pu;function af(){if(pu)return vu;pu=1;var n=he(),e=tf().left,r=Ml(),t=$a(),i=Br(),a=!i&&t>79&&t<83,s=a||!r("reduce");return n({target:"Array",proto:!0,forced:s},{reduce:function(u){var l=arguments.length;return e(this,u,l,l>1?arguments[1]:void 0)}}),vu}af();var yu={},mu;function nf(){if(mu)return yu;mu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=un(),s=Pe(),o=ln(),u=Me(),l=e("".slice),h=Math.min,c=o("endsWith"),v=!u&&!c&&!!(function(){var f=r(String.prototype,"endsWith");return f&&!f.writable})();return n({target:"String",proto:!0,forced:!v&&!c},{endsWith:function(g){var d=i(s(this));a(g);var p=arguments.length>1?arguments[1]:void 0,y=d.length,m=p===void 0?y:h(t(p),y),b=i(g);return l(d,m-b.length,m)===b}}),yu}nf();var bu={},xu;function sf(){if(xu)return bu;xu=1;var n=ne(),e=J(),r=an(),t=le(),i=pe(),a=Pe(),s=bl(),o=nn(),u=or(),l=qe(),h=sr(),c=on(),v=Al(),f=Z(),g=v.UNSUPPORTED_Y,d=4294967295,p=Math.min,y=e([].push),m=e("".slice),b=!f(function(){var S=/(?:)/,E=S.exec;S.exec=function(){return E.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(S,E,O){var P="0".split(void 0,0).length?function(_,A){return _===void 0&&A===0?[]:n(E,this,_,A)}:E;return[function(A,q){var I=a(this),j=i(A)?h(A,S):void 0;return j?n(j,A,I,q):n(P,l(I),A,q)},function(_,A){var q=t(this),I=l(_);if(!x){var j=O(P,q,I,A,P!==E);if(j.done)return j.value}var C=s(q,RegExp),w=q.unicode,U=(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")+(g?"g":"y"),L=new C(g?"^(?:"+q.source+")":q,U),V=A===void 0?d:A>>>0;if(V===0)return[];if(I.length===0)return c(L,I)===null?[I]:[];for(var M=0,N=0,k=[];N<I.length;){L.lastIndex=g?0:N;var z=c(L,g?m(I,N):I),H;if(z===null||(H=p(u(L.lastIndex+(g?N:0)),I.length))===M)N=o(I,N,w);else{if(y(k,m(I,M,N)),k.length===V)return k;for(var X=1;X<=z.length-1;X++)if(y(k,z[X]),k.length===V)return k;N=M=H}}return y(k,m(I,M)),k}]},x||!b,g),bu}sf();var gr={exports:{}},Ze={exports:{}},of=Ze.exports,Ou;function uf(){return Ou||(Ou=1,(function(){var n,e,r,t,i,a;typeof performance<"u"&&performance!==null&&performance.now?Ze.exports=function(){return performance.now()}:typeof ar<"u"&&ar!==null&&ar.hrtime?(Ze.exports=function(){return(n()-i)/1e6},e=ar.hrtime,n=function(){var s;return s=e(),s[0]*1e9+s[1]},t=n(),a=ar.uptime()*1e9,i=t-a):Date.now?(Ze.exports=function(){return Date.now()-r},r=Date.now()):(Ze.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(of)),Ze.exports}var Tu;function lf(){if(Tu)return gr.exports;Tu=1;for(var n=uf(),e=typeof window>"u"?La:window,r=["moz","webkit"],t="AnimationFrame",i=e["request"+t],a=e["cancel"+t]||e["cancelRequest"+t],s=0;!i&&s<r.length;s++)i=e[r[s]+"Request"+t],a=e[r[s]+"Cancel"+t]||e[r[s]+"CancelRequest"+t];if(!i||!a){var o=0,u=0,l=[],h=1e3/60;i=function(c){if(l.length===0){var v=n(),f=Math.max(0,h-(v-o));o=f+v,setTimeout(function(){var g=l.slice(0);l.length=0;for(var d=0;d<g.length;d++)if(!g[d].cancelled)try{g[d].callback(o)}catch(p){setTimeout(function(){throw p},0)}},Math.round(f))}return l.push({handle:++u,callback:c,cancelled:!1}),u},a=function(c){for(var v=0;v<l.length;v++)l[v].handle===c&&(l[v].cancelled=!0)}}return gr.exports=function(c){return i.call(e,c)},gr.exports.cancel=function(){a.apply(e,arguments)},gr.exports.polyfill=function(c){c||(c=e),c.requestAnimationFrame=i,c.cancelAnimationFrame=a},gr.exports}var hf=lf();const Pa=al(hf);var Su={},Aa,Eu;function ql(){return Eu||(Eu=1,Aa=`
4
4
  \v\f\r                 \u2028\u2029\uFEFF`),Aa}var Ia,Ru;function ff(){if(Ru)return Ia;Ru=1;var n=J(),e=Pe(),r=qe(),t=ql(),i=n("".replace),a=RegExp("^["+t+"]+"),s=RegExp("(^|[^"+t+"])["+t+"]+$"),o=function(u){return function(l){var h=r(e(l));return u&1&&(h=i(h,a,"")),u&2&&(h=i(h,s,"$1")),h}};return Ia={start:o(1),end:o(2),trim:o(3)},Ia}var Na,Cu;function cf(){if(Cu)return Na;Cu=1;var n=Lr().PROPER,e=Z(),r=ql(),t="​…᠎";return Na=function(i){return e(function(){return!!r[i]()||t[i]()!==t||n&&r[i].name!==i})},Na}var wu;function vf(){if(wu)return Su;wu=1;var n=he(),e=ff().trim,r=cf();return n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}}),Su}vf();var _a,Pu;function gf(){return Pu||(Pu=1,_a=function(n){this.ok=!1,this.alpha=1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n=n.replace(/ /g,""),n=n.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};n=e[n]||n;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t<r.length;t++){var i=r[t].re,a=r[t].process,s=i.exec(n);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l<r.length;l++)for(var h=r[l].example,c=0;c<h.length;c++)u[u.length]=h[c];for(var v in e)u[u.length]=v;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<u.length;l++)try{var g=document.createElement("li"),d=new RGBColor(u[l]),p=document.createElement("div");p.style.cssText="margin: 3px; border: 1px solid black; background:"+d.toHex()+"; color:"+d.toHex(),p.appendChild(document.createTextNode("test"));var y=document.createTextNode(" "+u[l]+" -> "+d.toRGB()+" -> "+d.toHex());g.appendChild(p),g.appendChild(y),f.appendChild(g)}catch{}return f}}),_a}var df=gf();const ka=al(df);var Au={},Iu;function pf(){if(Iu)return Au;Iu=1;var n=he(),e=Ur(),r=gl().indexOf,t=Ml(),i=e([].indexOf),a=!!i&&1/i([1],1,-0)<0,s=a||!t("indexOf");return n({target:"Array",proto:!0,forced:s},{indexOf:function(u){var l=arguments.length>1?arguments[1]:void 0;return a?i(this,u,l)||0:r(this,u,l)}}),Au}pf();var Nu={},_u;function yf(){if(_u)return Nu;_u=1;var n=he(),e=J(),r=un(),t=Pe(),i=qe(),a=ln(),s=e("".indexOf);return n({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~s(i(t(this)),i(r(u)),arguments.length>1?arguments[1]:void 0)}}),Nu}yf();var Mu={},Ma,qu;function mf(){if(qu)return Ma;qu=1;var n=er();return Ma=Array.isArray||function(r){return n(r)==="Array"},Ma}var Du;function bf(){if(Du)return Mu;Du=1;var n=he(),e=J(),r=mf(),t=e([].reverse),i=[1,2];return n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),t(this)}}),Mu}bf();/*! *****************************************************************************
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" href="/icons/accounter-logo.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Accounter</title>
8
- <script type="module" crossorigin src="/assets/index-BexxGuN6.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CZb2m31K.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-B2UYAO1O.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accounter/client",
3
- "version": "0.0.8-alpha-20251022132444-51d3ebadb2849ea323e03b88c735cdca4f91db7d",
3
+ "version": "0.0.8-alpha-20251022144027-c9c7a4b309de8a72dfd0ec4f11e63713ad12878f",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -0,0 +1,284 @@
1
+ 'use client';
2
+
3
+ import type React from 'react';
4
+ import { useEffect, useState } from 'react';
5
+ import { Save, Shield } from 'lucide-react';
6
+ import { useForm } from 'react-hook-form';
7
+ import { z } from 'zod';
8
+ import { Button } from '@/components/ui/button.js';
9
+ import {
10
+ Card,
11
+ CardContent,
12
+ CardDescription,
13
+ CardFooter,
14
+ CardHeader,
15
+ CardTitle,
16
+ } from '@/components/ui/card.js';
17
+ import {
18
+ Form,
19
+ FormControl,
20
+ FormField,
21
+ FormItem,
22
+ FormLabel,
23
+ FormMessage,
24
+ } from '@/components/ui/form.js';
25
+ import { Input } from '@/components/ui/input.js';
26
+ import {
27
+ BusinessAdminSectionFragmentDoc,
28
+ type BusinessAdminSectionFragment,
29
+ type UpdateAdminBusinessInput,
30
+ } from '@/gql/graphql.js';
31
+ import { getFragmentData, type FragmentType } from '@/gql/index.js';
32
+ import {
33
+ dirtyFieldMarker,
34
+ relevantDataPicker,
35
+ type MakeBoolean,
36
+ type TimelessDateString,
37
+ } from '@/helpers/index.js';
38
+ import { useUpdateAdminBusiness } from '@/hooks/use-update-admin-business.js';
39
+ import { zodResolver } from '@hookform/resolvers/zod';
40
+
41
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- used by codegen
42
+ /* GraphQL */ `
43
+ fragment BusinessAdminSection on Business {
44
+ id
45
+ ... on LtdFinancialEntity {
46
+ adminInfo {
47
+ id
48
+ employerWithholdingTaxAccountNumber
49
+ taxPrepaymentId
50
+ nationalInsuranceEmployerId
51
+ advanceTaxRate
52
+ registrationDate
53
+ }
54
+ }
55
+ }
56
+ `;
57
+
58
+ const adminBusinessFormSchema = z.object({
59
+ employerWithholdingTaxAccountNumber: z.string().min(1, {
60
+ message: 'Employer Withholding Tax Account Number is required',
61
+ }),
62
+ taxPrepaymentId: z.string().min(1, {
63
+ message: 'Tax Prepayment ID is required',
64
+ }),
65
+ nationalInsuranceEmployerId: z.string().min(1, {
66
+ message: 'National Insurance Employer ID is required',
67
+ }),
68
+ advanceTaxRate: z
69
+ .number()
70
+ .min(0, {
71
+ message: 'Advance Tax Rate must be at least 0',
72
+ })
73
+ .max(100, {
74
+ message: 'Advance Tax Rate must be at most 100',
75
+ }),
76
+ registrationDate: z.string().min(1, {
77
+ message: 'Registration Date is required',
78
+ }),
79
+ });
80
+
81
+ type AdminBusinessFormValues = z.infer<typeof adminBusinessFormSchema>;
82
+
83
+ function BusinessAdminSectionFragmentToFormValues(
84
+ admin?: BusinessAdminSectionFragment,
85
+ ): AdminBusinessFormValues {
86
+ if (!admin || admin.__typename !== 'LtdFinancialEntity' || !admin.adminInfo) {
87
+ return {} as AdminBusinessFormValues;
88
+ }
89
+
90
+ return {
91
+ employerWithholdingTaxAccountNumber: admin.adminInfo.employerWithholdingTaxAccountNumber ?? '',
92
+ taxPrepaymentId: admin.adminInfo.taxPrepaymentId ?? '',
93
+ nationalInsuranceEmployerId: admin.adminInfo.nationalInsuranceEmployerId ?? '',
94
+ advanceTaxRate: admin.adminInfo.advanceTaxRate ?? 0,
95
+ registrationDate: admin.adminInfo.registrationDate ?? '',
96
+ };
97
+ }
98
+
99
+ function convertFormDataToUpdateAdminBusinessInput(
100
+ formData: Partial<AdminBusinessFormValues>,
101
+ ): UpdateAdminBusinessInput {
102
+ return {
103
+ employerWithholdingTaxAccountNumber: formData.employerWithholdingTaxAccountNumber,
104
+ taxPrepaymentId: formData.taxPrepaymentId,
105
+ nationalInsuranceEmployerId: formData.nationalInsuranceEmployerId,
106
+ advanceTaxRate: formData.advanceTaxRate,
107
+ registrationDate: formData.registrationDate as TimelessDateString,
108
+ };
109
+ }
110
+
111
+ interface Props {
112
+ data?: FragmentType<typeof BusinessAdminSectionFragmentDoc>;
113
+ refetchBusiness?: () => Promise<void>;
114
+ }
115
+
116
+ export function AdminBusinessSection({ data, refetchBusiness }: Props): React.ReactElement {
117
+ const admin = getFragmentData(BusinessAdminSectionFragmentDoc, data);
118
+ const [defaultFormValues, setDefaultFormValues] = useState(
119
+ BusinessAdminSectionFragmentToFormValues(admin),
120
+ );
121
+
122
+ const { updateAdminBusiness: updateDbAdminBusiness, fetching: isUpdating } =
123
+ useUpdateAdminBusiness();
124
+
125
+ const form = useForm<AdminBusinessFormValues>({
126
+ resolver: zodResolver(adminBusinessFormSchema),
127
+ defaultValues: defaultFormValues,
128
+ });
129
+
130
+ const onSubmit = async (data: AdminBusinessFormValues) => {
131
+ if (!admin) {
132
+ return;
133
+ }
134
+
135
+ const dataToUpdate = relevantDataPicker(
136
+ data,
137
+ form.formState.dirtyFields as MakeBoolean<typeof data>,
138
+ );
139
+
140
+ if (!dataToUpdate) return;
141
+
142
+ const updateBusinessInput = convertFormDataToUpdateAdminBusinessInput(dataToUpdate);
143
+
144
+ await updateDbAdminBusiness({
145
+ adminBusinessId: admin.id,
146
+ fields: updateBusinessInput,
147
+ });
148
+
149
+ refetchBusiness?.();
150
+ };
151
+
152
+ useEffect(() => {
153
+ if (admin) {
154
+ const formValues = BusinessAdminSectionFragmentToFormValues(admin);
155
+ setDefaultFormValues(formValues);
156
+ form.reset(formValues);
157
+ }
158
+ }, [admin, form]);
159
+
160
+ return (
161
+ <Card>
162
+ <CardHeader>
163
+ <div className="flex items-center gap-2">
164
+ <Shield className="h-5 w-5 text-primary" />
165
+ <CardTitle>Admin Business Configuration</CardTitle>
166
+ </div>
167
+ <CardDescription>
168
+ Tax and registration information for the business operating this application
169
+ </CardDescription>
170
+ </CardHeader>
171
+ <Form {...form}>
172
+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
173
+ <CardContent>
174
+ <div className="grid gap-6 md:grid-cols-2">
175
+ {/* Employer Withholding Tax Account Number */}
176
+ <FormField
177
+ control={form.control}
178
+ name="employerWithholdingTaxAccountNumber"
179
+ render={({ field, fieldState }) => (
180
+ <FormItem>
181
+ <FormLabel>Employer Withholding Tax Account Number</FormLabel>
182
+ <FormControl>
183
+ <Input
184
+ placeholder="Enter account number"
185
+ {...field}
186
+ className={dirtyFieldMarker(fieldState)}
187
+ />
188
+ </FormControl>
189
+ <FormMessage />
190
+ </FormItem>
191
+ )}
192
+ />
193
+
194
+ {/* Tax Prepayment ID */}
195
+ <FormField
196
+ control={form.control}
197
+ name="taxPrepaymentId"
198
+ render={({ field, fieldState }) => (
199
+ <FormItem>
200
+ <FormLabel>Tax Prepayment ID</FormLabel>
201
+ <FormControl>
202
+ <Input
203
+ placeholder="Enter prepayment ID"
204
+ {...field}
205
+ className={dirtyFieldMarker(fieldState)}
206
+ />
207
+ </FormControl>
208
+ <FormMessage />
209
+ </FormItem>
210
+ )}
211
+ />
212
+
213
+ {/* National Insurance Employer ID */}
214
+ <FormField
215
+ control={form.control}
216
+ name="nationalInsuranceEmployerId"
217
+ render={({ field, fieldState }) => (
218
+ <FormItem>
219
+ <FormLabel>National Insurance Employer ID</FormLabel>
220
+ <FormControl>
221
+ <Input
222
+ placeholder="Enter employer ID"
223
+ {...field}
224
+ className={dirtyFieldMarker(fieldState)}
225
+ />
226
+ </FormControl>
227
+ <FormMessage />
228
+ </FormItem>
229
+ )}
230
+ />
231
+
232
+ {/* Advance Tax Rate */}
233
+ <FormField
234
+ control={form.control}
235
+ name="advanceTaxRate"
236
+ render={({ field, fieldState }) => (
237
+ <FormItem>
238
+ <FormLabel>Advance Tax Rate (%)</FormLabel>
239
+ <FormControl>
240
+ <Input
241
+ type="number"
242
+ step="0.01"
243
+ min="0"
244
+ max="100"
245
+ placeholder="Enter tax rate"
246
+ {...field}
247
+ className={dirtyFieldMarker(fieldState)}
248
+ />
249
+ </FormControl>
250
+ <FormMessage />
251
+ </FormItem>
252
+ )}
253
+ />
254
+
255
+ {/* Registration Date */}
256
+ <FormField
257
+ control={form.control}
258
+ name="registrationDate"
259
+ render={({ field, fieldState }) => (
260
+ <FormItem>
261
+ <FormLabel>Registration Date</FormLabel>
262
+ <FormControl>
263
+ <Input type="date" {...field} className={dirtyFieldMarker(fieldState)} />
264
+ </FormControl>
265
+ <FormMessage />
266
+ </FormItem>
267
+ )}
268
+ />
269
+ </div>
270
+ </CardContent>
271
+ <CardFooter className="flex justify-end border-t mt-4 pt-6">
272
+ <Button
273
+ type="submit"
274
+ disabled={isUpdating || Object.keys(form.formState.dirtyFields).length === 0}
275
+ >
276
+ <Save className="h-4 w-4" />
277
+ Save Changes
278
+ </Button>
279
+ </CardFooter>
280
+ </form>
281
+ </Form>
282
+ </Card>
283
+ );
284
+ }
@@ -7,12 +7,14 @@ import {
7
7
  FileText,
8
8
  Plug,
9
9
  Settings,
10
+ Shield,
10
11
  // TrendingUp,
11
12
  } from 'lucide-react';
12
13
  import { useSearchParams } from 'react-router-dom';
13
14
  import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs.js';
14
15
  import { getFragmentData, type FragmentType } from '@/gql/index.js';
15
16
  import { BusinessPageFragmentDoc } from '../../gql/graphql.js';
17
+ import { AdminBusinessSection } from './admin-business-section.js';
16
18
  import { BusinessHeader } from './business-header.js';
17
19
  import { ChargesSection } from './charges-section.jsx';
18
20
  import { ChartsSection } from './charts-section.jsx';
@@ -31,11 +33,15 @@ import { TransactionsSection } from './transactions-section.js';
31
33
  clientInfo {
32
34
  id
33
35
  }
36
+ adminInfo {
37
+ id
38
+ }
34
39
  }
35
40
  ...ClientIntegrationsSection
36
41
  ...BusinessHeader
37
42
  ...BusinessContactSection
38
43
  ...BusinessConfigurationSection
44
+ ...BusinessAdminSection
39
45
  }
40
46
  `;
41
47
 
@@ -59,6 +65,7 @@ export default function Business({ data, refetchBusiness }: Props): ReactElement
59
65
  }
60
66
 
61
67
  const isClient = 'clientInfo' in business && !!business.clientInfo;
68
+ const isAdmin = 'adminInfo' in business && !!business.adminInfo;
62
69
 
63
70
  return (
64
71
  <div className="min-h-screen bg-background">
@@ -127,6 +134,15 @@ export default function Business({ data, refetchBusiness }: Props): ReactElement
127
134
  </TabsTrigger> */}
128
135
  </>
129
136
  )}
137
+ {isAdmin && (
138
+ <TabsTrigger
139
+ value="admin"
140
+ className="flex items-center gap-2 data-[state=active]:bg-background"
141
+ >
142
+ <Shield className="h-4 w-4" />
143
+ <span className="hidden sm:inline">Admin</span>
144
+ </TabsTrigger>
145
+ )}
130
146
  </TabsList>
131
147
 
132
148
  <TabsContent value="contact" className="mt-0">
@@ -164,6 +180,12 @@ export default function Business({ data, refetchBusiness }: Props): ReactElement
164
180
  </TabsContent>
165
181
  </>
166
182
  )}
183
+
184
+ {isAdmin && (
185
+ <TabsContent value="admin" className="mt-0">
186
+ <AdminBusinessSection data={business} />
187
+ </TabsContent>
188
+ )}
167
189
  </Tabs>
168
190
  </main>
169
191
  </div>