@accounter/client 0.0.11-alpha-20260125180828-ba6265251b2d2e84e3355b96352f5bf83918317f → 0.0.11-alpha-20260126094406-5e339d8e89f94400c777170c689d55bd9dd5f95c
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.
- package/CHANGELOG.md +1 -1
- package/dist/assets/{Checkbox-DWmOT4mx.js → Checkbox-Dmuz3t7B.js} +1 -1
- package/dist/assets/{MultiSelect-DhEZHYxn.js → MultiSelect-DBeIExB5.js} +1 -1
- package/dist/assets/{Progress-DE13gAJ5.js → Progress---sZILQb.js} +1 -1
- package/dist/assets/{Table-rNmO5bBI.js → Table-BQv3frL8.js} +1 -1
- package/dist/assets/{Typography-C1pdNNG8.js → Typography-B8Kph7eR.js} +1 -1
- package/dist/assets/accordion-Bn08_4fN.js +1 -0
- package/dist/assets/{accountant-approvals-DXUA4Z8R.js → accountant-approvals-DuNl7y6H.js} +1 -1
- package/dist/assets/{accounter-table-CGncq_73.js → accounter-table-DTsgtq5M.js} +1 -1
- package/dist/assets/{addDays-DpkzPtfc.js → addDays-DTiBTTns.js} +1 -1
- package/dist/assets/{all-charges-CAf5Sz2_.js → all-charges-DPyM-a74.js} +1 -1
- package/dist/assets/{arrow-up-down-MrfN0fhR.js → arrow-up-down-VY6mkkTR.js} +1 -1
- package/dist/assets/{building-2-CWrl-iq9.js → building-2-CMKd_bU8.js} +1 -1
- package/dist/assets/{business-CnobDfUp.js → business-BVMKhHFx.js} +1 -1
- package/dist/assets/{business-extended-info-6Ykvm7VT.js → business-extended-info-B94y5ZK6.js} +1 -1
- package/dist/assets/business-header-BC86M-9m.js +1 -0
- package/dist/assets/{business-ledger-filters-Bi9mwcxM.js → business-ledger-filters-es3H4rPK.js} +1 -1
- package/dist/assets/{business-ledger-single-SwmnJ5M-.js → business-ledger-single-U3zkqgW2.js} +1 -1
- package/dist/assets/business-trip-BUKYnQkG.js +1 -0
- package/dist/assets/charge-DuqIMfNm.js +1 -0
- package/dist/assets/charges-filters-CFCAP-bP.js +1 -0
- package/dist/assets/{charges-ledger-validation-ClbJGvF9.js → charges-ledger-validation-CCTNRpCE.js} +1 -1
- package/dist/assets/{charges-table-zGkVW5or.js → charges-table-BJtpvXfL.js} +3 -3
- package/dist/assets/contracts-ljjcB_x7.js +1 -0
- package/dist/assets/{data-table-column-header-DDRUwuwC.js → data-table-column-header-CZ1dXiU0.js} +1 -1
- package/dist/assets/{data-table-pagination-DxOcd13P.js → data-table-pagination-XAlQIbO9.js} +1 -1
- package/dist/assets/deposits-transactions-table-2rtRFZgK.js +1 -0
- package/dist/assets/{download-csv-BmamqJJW.js → download-csv-BSGaUZsM.js} +1 -1
- package/dist/assets/{download-csv-button-BFfxSTjQ.js → download-csv-button-CMQBUQeX.js} +1 -1
- package/dist/assets/{editable-business-trip-CPfdEl45.js → editable-business-trip-CED1Su3d.js} +1 -1
- package/dist/assets/{eye-off-DtXkBVx1.js → eye-off-Buv7eciz.js} +1 -1
- package/dist/assets/{funnel-B1ZA9LM9.js → funnel-Cfb9Pxmr.js} +1 -1
- package/dist/assets/index-3ev2Q3E9.js +1 -0
- package/dist/assets/{index-Cs7XgdTM.js → index-7gCTV42h.js} +2 -2
- package/dist/assets/{index-Bsnch-zI.js → index-8fdLByFg.js} +1 -1
- package/dist/assets/index-B0hZ0TDG.js +1 -0
- package/dist/assets/{index-DCmEMj8e.js → index-B4OP8iL7.js} +3 -3
- package/dist/assets/{index-DKmgIoB5.js → index-BN-I0GSO.js} +2 -2
- package/dist/assets/index-BhFsGqUx.js +1 -0
- package/dist/assets/{index-Chao5nQb.js → index-Bui9zV-z.js} +1 -1
- package/dist/assets/{index-ciP7vurq.js → index-C7p19nIa.js} +1 -1
- package/dist/assets/{index-DwGxsIkH.js → index-CPMJQkvw.js} +1 -1
- package/dist/assets/{index-BBOAkvDK.js → index-CSdQtH7c.js} +1 -1
- package/dist/assets/index-CcZll7L2.js +1 -0
- package/dist/assets/index-CjG9JDZB.js +2 -0
- package/dist/assets/{index-DqoPYGJE.js → index-DGAT1KYx.js} +1 -1
- package/dist/assets/index-DIrLsKod.js +1 -0
- package/dist/assets/{index-DfBrqs5_.js → index-DJY6AKiM.js} +2 -2
- package/dist/assets/{index-Bv5ZyMGd.js → index-DOy0Yf1i.js} +1 -1
- package/dist/assets/{index-CywvUChw.js → index-DRBzHdu9.js} +1 -1
- package/dist/assets/index-Dal_ULkA.js +1 -0
- package/dist/assets/{index-DJQjDgkB.js → index-DokXNUuN.js} +1 -1
- package/dist/assets/{index-DjsqV-Fn.js → index-Dq33WQoi.js} +1 -1
- package/dist/assets/{index-C60AFYOu.js → index-DzzUoyj4.js} +1 -1
- package/dist/assets/{index-Vxd58TOQ.js → index-GlUqZUgQ.js} +1 -1
- package/dist/assets/index-X3RoQQa9.js +1 -0
- package/dist/assets/index-X9rrwleE.js +1 -0
- package/dist/assets/{index-DRqooPz9.js → index-rI994S3C.js} +4 -4
- package/dist/assets/{index.es-C6H8Q1nD.js → index.es-C2YDJ0AL.js} +1 -1
- package/dist/assets/issue-document-zNxGzRkY.js +1 -0
- package/dist/assets/login-page-BimTSmTC.js +1 -0
- package/dist/assets/{missing-info-charges-Dr8TvB2G.js → missing-info-charges-CVhY60ZL.js} +1 -1
- package/dist/assets/{modal-CPrQ9jQu.js → modal-BXR_xgUm.js} +1 -1
- package/dist/assets/modify-contract-dialog-flMl2p_T.js +1 -0
- package/dist/assets/{page-layout-Dp9Tr43G.js → page-layout-DMGj5xhW.js} +1 -1
- package/dist/assets/{page-not-found-BIERJkiT.js → page-not-found-B_GB5ntj.js} +1 -1
- package/dist/assets/{panel-top-open-lnF5tdL1.js → panel-top-open-Bf39HBrp.js} +1 -1
- package/dist/assets/report-commentary-row-BMyeQR9J.js +1 -0
- package/dist/assets/{save-BaXyzRSW.js → save-jkuyCWyY.js} +1 -1
- package/dist/assets/{similar-transactions-modal-DilkLkpx.js → similar-transactions-modal-DX3CPrMo.js} +1 -1
- package/dist/assets/{sub-764RJPt0.js → sub-CEXBz_OW.js} +1 -1
- package/dist/assets/subMonths-DY4HlBVa.js +1 -0
- package/dist/assets/summary-CPKS_69D.js +1 -0
- package/dist/assets/{toggle-expansion-button-BquTpOYj.js → toggle-expansion-button-Y2eS7nqg.js} +1 -1
- package/dist/assets/{update-accountant-status-Btcm95Uc.js → update-accountant-status-zL6vnwU9.js} +1 -1
- package/dist/assets/use-issue-monthly-documents-D9vQpbaZ.js +1 -0
- package/dist/assets/{use-url-query-A8PE3FMA.js → use-url-query-CqWra6gD.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/accordion-Air1oXnF.js +0 -1
- package/dist/assets/business-header-CAJaQahQ.js +0 -1
- package/dist/assets/business-trip-ADSYpFTM.js +0 -1
- package/dist/assets/charge-CLyQ-8f8.js +0 -1
- package/dist/assets/charges-filters-CYR6-jcu.js +0 -1
- package/dist/assets/contracts-DCd159UE.js +0 -1
- package/dist/assets/deposits-transactions-table-Dhm74qLm.js +0 -1
- package/dist/assets/index-5Ht40D_c.js +0 -1
- package/dist/assets/index-BL8siR4m.js +0 -1
- package/dist/assets/index-C0Bd8nM_.js +0 -1
- package/dist/assets/index-CFLkhm3K.js +0 -1
- package/dist/assets/index-CXZphjyK.js +0 -1
- package/dist/assets/index-Cd9YArsS.js +0 -1
- package/dist/assets/index-DynC0Vxq.js +0 -1
- package/dist/assets/index-cd89pXq_.js +0 -1
- package/dist/assets/index-d-FcvOUD.js +0 -2
- package/dist/assets/issue-document-B8SLRY9w.js +0 -1
- package/dist/assets/login-page-DF0c_Pay.js +0 -1
- package/dist/assets/modify-contract-dialog-BMTCgQ3i.js +0 -1
- package/dist/assets/report-commentary-row-BsA3JSzG.js +0 -1
- package/dist/assets/subMonths-CZ2djAnO.js +0 -1
- package/dist/assets/summary-BvHHpnIR.js +0 -1
- package/dist/assets/use-issue-monthly-documents-Dx6_0gyN.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gF as Va,iq as La,dN as ar,dP as al}from"./index-DRqooPz9.js";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 Va=="object"&&Va)||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 Xl(){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 Ua(){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 Ga(){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=Ga(),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 Kl(){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 $a(){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 za(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=$a(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.47.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.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Ha(){if(Gn)return wt;Gn=1;var n=za();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=Ha(),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 Ql(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Kl(),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=Ql(),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=Xl(),t=Ua(),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=Ua();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 Wa(){if(as)return Ut;as=1;var n=J(),e=re(),r=za(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function Zl(){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 Ya(){if(ss)return $t;ss=1;var n=Ha(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Xa(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=Zl(),e=Q(),r=pe(),t=mr(),i=Ae(),a=za(),s=Ya(),o=Xa(),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=Wa(),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=$a();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 Jl(){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=Jl();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function eh(){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 Ka(){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=eh(),r=Ka(),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=Xa(),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 Qa(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function rh(){if(bs)return Yt;bs=1;var n=dl(),e=Qa(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function th(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function ih(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=rh(),t=th(),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 ah(){if(Ts)return ni;Ts=1;var n=Ae(),e=ih(),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=$a(),a=ah(),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 nh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function sh(){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 oh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function uh(){if(Is)return vi;Is=1;var n=oh(),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=sh(),e=pe(),r=Pe(),t=uh();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 lh(){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 hh(){if(qs)return yi;qs=1;var n=rr(),e=lh(),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 fh(){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 ch(){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 Za(){if(Ls)return xi;Ls=1;var n=ch(),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 vh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Za(),i=rr(),a=Wa(),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 gh(){if(js)return Ti;js=1;var n=vh(),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=gh(),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 Ja(){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 dh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function ph(){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=Ja(),t=re(),i=Ae(),a=Z(),s=Ol(),o=dh(),u=Dr(),l=ph(),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 yh(){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 mh(){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 bh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function xh(){if(Js)return Vi;Js=1;var n=Q(),e=yh(),r=Ja(),t=Sl().set,i=El(),a=Tl(),s=mh(),o=bh(),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 Oh(){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 en(){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=Wa(),a=ae(),s=yl(),o=Me(),u=Ga(),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 Th(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=nh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=hh(),h=Fe(),c=re(),v=pe(),f=fh(),g=bl(),d=Sl().set,p=xh(),y=Oh(),m=en(),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 Sh(){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=Za(),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 Eh(){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 Rh(){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=Ja(),e=ne(),r=le(),t=Mr(),i=Sh(),a=Ka(),s=_r(),o=Eh(),u=Rl(),l=Rh(),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 Ch(){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=Ch(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function wh(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=en(),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 Ph(){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 Ah(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=en(),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 Ih(){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 Nh(){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 _h(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Nh(),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 Mh(){return Co||(Co=1,Th(),wh(),Ph(),Ah(),Ih(),_h()),cn}Mh();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=Za(),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 qh(){if(Mo)return ra;Mo=1;var n=dl(),e=Qa();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Dh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=qh();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=Dh(),r=Qa(),t=Xa(),i=Ol(),a=Dr(),s=Ya(),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 Vh(){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{gF as Va,iq as La,dN as ar,dP as al}from"./index-rI994S3C.js";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 Va=="object"&&Va)||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 Xl(){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 Ua(){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 Ga(){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=Ga(),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 Kl(){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 $a(){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 za(){if(Un)return Et.exports;Un=1;var n=Me(),e=Q(),r=$a(),t="__core-js_shared__",i=Et.exports=e[t]||r(t,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Et.exports}var wt,Gn;function Ha(){if(Gn)return wt;Gn=1;var n=za();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=Ha(),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 Ql(){if(Yn)return _t;Yn=1;var n=ne(),e=pe(),r=ul(),t=sr(),i=Kl(),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=Ql(),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=Xl(),t=Ua(),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=Ua();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 Wa(){if(as)return Ut;as=1;var n=J(),e=re(),r=za(),t=n(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(i){return t(i)}),Ut=r.inspectSource,Ut}var Gt,ns;function Zl(){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 Ya(){if(ss)return $t;ss=1;var n=Ha(),e=ll(),r=n("keys");return $t=function(t){return r[t]||(r[t]=e(t))},$t}var zt,os;function Xa(){return os||(os=1,zt={}),zt}var Ht,us;function kr(){if(us)return Ht;us=1;var n=Zl(),e=Q(),r=pe(),t=mr(),i=Ae(),a=za(),s=Ya(),o=Xa(),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=Wa(),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=$a();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 Jl(){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=Jl();return Kt=function(e){var r=+e;return r!==r||r===0?0:n(r)},Kt}var Qt,vs;function eh(){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 Ka(){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=eh(),r=Ka(),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=Xa(),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 Qa(){return ms||(ms=1,ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),ti}var bs;function rh(){if(bs)return Yt;bs=1;var n=dl(),e=Qa(),r=e.concat("length","prototype");return Yt.f=Object.getOwnPropertyNames||function(i){return n(i,r)},Yt}var ii={},xs;function th(){return xs||(xs=1,ii.f=Object.getOwnPropertySymbols),ii}var ai,Os;function ih(){if(Os)return ai;Os=1;var n=rr(),e=J(),r=rh(),t=th(),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 ah(){if(Ts)return ni;Ts=1;var n=Ae(),e=ih(),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=$a(),a=ah(),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 nh(){if(ws)return hi;ws=1;var n=Q();return hi=n,hi}var fi,Ps;function sh(){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 oh(){if(As)return ci;As=1;var n=pe();return ci=function(e){return n(e)||e===null},ci}var vi,Is;function uh(){if(Is)return vi;Is=1;var n=oh(),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=sh(),e=pe(),r=Pe(),t=uh();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 lh(){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 hh(){if(qs)return yi;qs=1;var n=rr(),e=lh(),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 fh(){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 ch(){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 Za(){if(Ls)return xi;Ls=1;var n=ch(),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 vh(){if(ks)return Oi;ks=1;var n=J(),e=Z(),r=re(),t=Za(),i=rr(),a=Wa(),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 gh(){if(js)return Ti;js=1;var n=vh(),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=gh(),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 Ja(){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 dh(){if(zs)return Pi;zs=1;var n=J();return Pi=n([].slice),Pi}var Ai,Hs;function ph(){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=Ja(),t=re(),i=Ae(),a=Z(),s=Ol(),o=dh(),u=Dr(),l=ph(),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 yh(){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 mh(){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 bh(){if(Zs)return Di;Zs=1;var n=yr();return Di=/web0s(?!.*chrome)/i.test(n),Di}var Vi,Js;function xh(){if(Js)return Vi;Js=1;var n=Q(),e=yh(),r=Ja(),t=Sl().set,i=El(),a=Tl(),s=mh(),o=bh(),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 Oh(){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 en(){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=Wa(),a=ae(),s=yl(),o=Me(),u=Ga(),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 Th(){if(no)return vn;no=1;var n=he(),e=Me(),r=Br(),t=Q(),i=nh(),a=ne(),s=tr(),o=ml(),u=Fr(),l=hh(),h=Fe(),c=re(),v=pe(),f=fh(),g=bl(),d=Sl().set,p=xh(),y=Oh(),m=en(),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 Sh(){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=Za(),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 Eh(){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 Rh(){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=Ja(),e=ne(),r=le(),t=Mr(),i=Sh(),a=Ka(),s=_r(),o=Eh(),u=Rl(),l=Rh(),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 Ch(){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=Ch(),r=xr().CONSTRUCTOR;return Xi=r||!e(function(t){n.all(t).then(void 0,function(){})}),Xi}var po;function wh(){if(po)return so;po=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=en(),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 Ph(){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 Ah(){if(xo)return bo;xo=1;var n=he(),e=ne(),r=Fe(),t=Or(),i=en(),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 Ih(){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 Nh(){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 _h(){if(Ro)return So;Ro=1;var n=he(),e=rr(),r=Me(),t=br(),i=xr().CONSTRUCTOR,a=Nh(),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 Mh(){return Co||(Co=1,Th(),wh(),Ph(),Ah(),Ih(),_h()),cn}Mh();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=Za(),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 qh(){if(Mo)return ra;Mo=1;var n=dl(),e=Qa();return ra=Object.keys||function(t){return n(t,e)},ra}var qo;function Dh(){if(qo)return ea;qo=1;var n=we(),e=cl(),r=Ye(),t=le(),i=pr(),a=qh();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=Dh(),r=Qa(),t=Xa(),i=Ol(),a=Dr(),s=Ya(),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 Vh(){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 Lh(){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 rn(){if(ko)return na;ko=1;var n=ne(),e=J(),r=qe(),t=Pl(),i=Al(),a=Ha(),s=Gr(),o=kr().get,u=Vh(),l=Lh(),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 kh(){if(jo)return Ao;jo=1;var n=he(),e=rn();return n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),Ao}var sa,Bo;function tn(){if(Bo)return sa;Bo=1,kh();var n=ne(),e=tr(),r=rn(),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/;if(u==="split"){var b={};b[s]=function(){return m},m={constructor:b,flags:""},m[v]=/./[v]}return 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 jh(){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 an(){if(Uo)return ua;Uo=1;var n=jh().charAt;return ua=function(e,r,t){return r+(t?n(e,r).length:1)},ua}var la,Go;function Bh(){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 nn(){if($o)return ha;$o=1;var n=ne(),e=Ae(),r=_r(),t=Bh(),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 sn(){if(zo)return fa;zo=1;var n=ne(),e=le(),r=re(),t=er(),i=rn(),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 Fh(){if(Ho)return Po;Ho=1;var n=ne(),e=J(),r=tn(),t=le(),i=pe(),a=or(),s=qe(),o=Pe(),u=sr(),l=an(),h=nn(),c=sn(),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}Fh();var Wo={},ca,Yo;function Uh(){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 Gh(){if(Xo)return Wo;Xo=1;var n=xl(),e=ne(),r=J(),t=tn(),i=Z(),a=le(),s=re(),o=pe(),u=jr(),l=or(),h=qe(),c=Pe(),v=an(),f=sr(),g=Uh(),d=nn(),p=sn(),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}Gh();var Ko={},va,Qo;function $h(){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 on(){if(Zo)return ga;Zo=1;var n=$h(),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 un(){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 zh(){if(eu)return Ko;eu=1;var n=he(),e=Ur(),r=Vr().f,t=or(),i=qe(),a=on(),s=Pe(),o=un(),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}zh();var pa,ru;function Hh(){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 Wh(){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=Ya(),i=Wh(),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 Yh(){if(nu)return xa;nu=1;var n=Nl().IteratorPrototype,e=Gr(),r=Ua(),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 Xh(){if(su)return Oa;su=1;var n=he(),e=ne(),r=Me(),t=Lr(),i=re(),a=Yh(),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 Kh(){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=Hh(),r=Tr(),t=kr(),i=Ye().f,a=Xh(),s=Kh(),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 Qh(){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 Zh(){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 Jh(){if(cu)return lu;cu=1;var n=Q(),e=Qh(),r=Zh(),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}Jh();function ef(n,e){if(La(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var t=r.call(n,e);if(La(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function rf(n){var e=ef(n,"string");return La(e)=="symbol"?e:e+""}function ln(n,e,r){return(e=rf(e))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var vu={},Ca,gu;function tf(){if(gu)return Ca;gu=1;var n=Fe(),e=qr(),r=nl(),t=Ka(),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=Ga(),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=on(),s=Pe(),o=un(),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=tn(),t=le(),i=pe(),a=Pe(),s=bl(),o=an(),u=or(),l=qe(),h=sr(),c=sn(),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"?Va: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=on(),t=Pe(),i=qe(),a=un(),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();var Dl=function(n,e){return(Dl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])})(n,e)};function Vl(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}Dl(n,e),n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function xf(n){var e="";Array.isArray(n)||(n=[n]);for(var r=0;r<n.length;r++){var t=n[r];if(t.type===T.CLOSE_PATH)e+="z";else if(t.type===T.HORIZ_LINE_TO)e+=(t.relative?"h":"H")+t.x;else if(t.type===T.VERT_LINE_TO)e+=(t.relative?"v":"V")+t.y;else if(t.type===T.MOVE_TO)e+=(t.relative?"m":"M")+t.x+" "+t.y;else if(t.type===T.LINE_TO)e+=(t.relative?"l":"L")+t.x+" "+t.y;else if(t.type===T.CURVE_TO)e+=(t.relative?"c":"C")+t.x1+" "+t.y1+" "+t.x2+" "+t.y2+" "+t.x+" "+t.y;else if(t.type===T.SMOOTH_CURVE_TO)e+=(t.relative?"s":"S")+t.x2+" "+t.y2+" "+t.x+" "+t.y;else if(t.type===T.QUAD_TO)e+=(t.relative?"q":"Q")+t.x1+" "+t.y1+" "+t.x+" "+t.y;else if(t.type===T.SMOOTH_QUAD_TO)e+=(t.relative?"t":"T")+t.x+" "+t.y;else{if(t.type!==T.ARC)throw new Error('Unexpected command type "'+t.type+'" at index '+r+".");e+=(t.relative?"a":"A")+t.rX+" "+t.rY+" "+t.xRot+" "+ +t.lArcFlag+" "+ +t.sweepFlag+" "+t.x+" "+t.y}}return e}function ja(n,e){var r=n[0],t=n[1];return[r*Math.cos(e)-t*Math.sin(e),r*Math.sin(e)+t*Math.cos(e)]}function Ce(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var r=0;r<n.length;r++)if(typeof n[r]!="number")throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof n[r]+" == typeof "+n[r]);return!0}var ze=Math.PI;function qa(n,e,r){n.lArcFlag=n.lArcFlag===0?0:1,n.sweepFlag=n.sweepFlag===0?0:1;var t=n.rX,i=n.rY,a=n.x,s=n.y;t=Math.abs(n.rX),i=Math.abs(n.rY);var o=ja([(e-a)/2,(r-s)/2],-n.xRot/180*ze),u=o[0],l=o[1],h=Math.pow(u,2)/Math.pow(t,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(t*=Math.sqrt(h),i*=Math.sqrt(h)),n.rX=t,n.rY=i;var c=Math.pow(t,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(u,2),v=(n.lArcFlag!==n.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(t,2)*Math.pow(i,2)-c)/c)),f=t*l/i*v,g=-i*u/t*v,d=ja([f,g],n.xRot/180*ze);n.cX=d[0]+(e+a)/2,n.cY=d[1]+(r+s)/2,n.phi1=Math.atan2((l-g)/i,(u-f)/t),n.phi2=Math.atan2((-l-g)/i,(-u-f)/t),n.sweepFlag===0&&n.phi2>n.phi1&&(n.phi2-=2*ze),n.sweepFlag===1&&n.phi2<n.phi1&&(n.phi2+=2*ze),n.phi1*=180/ze,n.phi2*=180/ze}function Vu(n,e,r){Ce(n,e,r);var t=n*n+e*e-r*r;if(0>t)return[];if(t===0)return[[n*r/(n*n+e*e),e*r/(n*n+e*e)]];var i=Math.sqrt(t);return[[(n*r+e*i)/(n*n+e*e),(e*r-n*i)/(n*n+e*e)],[(n*r-e*i)/(n*n+e*e),(e*r+n*i)/(n*n+e*e)]]}var ie,ke=Math.PI/180;function Lu(n,e,r){return(1-r)*n+r*e}function ku(n,e,r,t){return n+Math.cos(t/180*ze)*e+Math.sin(t/180*ze)*r}function ju(n,e,r,t){var i=1e-6,a=e-n,s=r-e,o=3*a+3*(t-r)-6*s,u=6*(s-a),l=3*a;return Math.abs(o)<i?[-l/u]:(function(h,c,v){var f=h*h/4-c;if(f<-v)return[];if(f<=v)return[-h/2];var g=Math.sqrt(f);return[-h/2-g,-h/2+g]})(u/o,l/o,i)}function Bu(n,e,r,t,i){var a=1-i;return n*(a*a*a)+e*(3*a*a*i)+r*(3*a*i*i)+t*(i*i*i)}(function(n){function e(){return i((function(o,u,l){return o.relative&&(o.x1!==void 0&&(o.x1+=u),o.y1!==void 0&&(o.y1+=l),o.x2!==void 0&&(o.x2+=u),o.y2!==void 0&&(o.y2+=l),o.x!==void 0&&(o.x+=u),o.y!==void 0&&(o.y+=l),o.relative=!1),o}))}function r(){var o=NaN,u=NaN,l=NaN,h=NaN;return i((function(c,v,f){return c.type&T.SMOOTH_CURVE_TO&&(c.type=T.CURVE_TO,o=isNaN(o)?v:o,u=isNaN(u)?f:u,c.x1=c.relative?v-o:2*v-o,c.y1=c.relative?f-u:2*f-u),c.type&T.CURVE_TO?(o=c.relative?v+c.x2:c.x2,u=c.relative?f+c.y2:c.y2):(o=NaN,u=NaN),c.type&T.SMOOTH_QUAD_TO&&(c.type=T.QUAD_TO,l=isNaN(l)?v:l,h=isNaN(h)?f:h,c.x1=c.relative?v-l:2*v-l,c.y1=c.relative?f-h:2*f-h),c.type&T.QUAD_TO?(l=c.relative?v+c.x1:c.x1,h=c.relative?f+c.y1:c.y1):(l=NaN,h=NaN),c}))}function t(){var o=NaN,u=NaN;return i((function(l,h,c){if(l.type&T.SMOOTH_QUAD_TO&&(l.type=T.QUAD_TO,o=isNaN(o)?h:o,u=isNaN(u)?c:u,l.x1=l.relative?h-o:2*h-o,l.y1=l.relative?c-u:2*c-u),l.type&T.QUAD_TO){o=l.relative?h+l.x1:l.x1,u=l.relative?c+l.y1:l.y1;var v=l.x1,f=l.y1;l.type=T.CURVE_TO,l.x1=((l.relative?0:h)+2*v)/3,l.y1=((l.relative?0:c)+2*f)/3,l.x2=(l.x+2*v)/3,l.y2=(l.y+2*f)/3}else o=NaN,u=NaN;return l}))}function i(o){var u=0,l=0,h=NaN,c=NaN;return function(v){if(isNaN(h)&&!(v.type&T.MOVE_TO))throw new Error("path must start with moveto");var f=o(v,u,l,h,c);return v.type&T.CLOSE_PATH&&(u=h,l=c),v.x!==void 0&&(u=v.relative?u+v.x:v.x),v.y!==void 0&&(l=v.relative?l+v.y:v.y),v.type&T.MOVE_TO&&(h=u,c=l),f}}function a(o,u,l,h,c,v){return Ce(o,u,l,h,c,v),i((function(f,g,d,p){var y=f.x1,m=f.x2,b=f.relative&&!isNaN(p),x=f.x!==void 0?f.x:b?0:g,S=f.y!==void 0?f.y:b?0:d;function E(z){return z*z}f.type&T.HORIZ_LINE_TO&&u!==0&&(f.type=T.LINE_TO,f.y=f.relative?0:d),f.type&T.VERT_LINE_TO&&l!==0&&(f.type=T.LINE_TO,f.x=f.relative?0:g),f.x!==void 0&&(f.x=f.x*o+S*l+(b?0:c)),f.y!==void 0&&(f.y=x*u+f.y*h+(b?0:v)),f.x1!==void 0&&(f.x1=f.x1*o+f.y1*l+(b?0:c)),f.y1!==void 0&&(f.y1=y*u+f.y1*h+(b?0:v)),f.x2!==void 0&&(f.x2=f.x2*o+f.y2*l+(b?0:c)),f.y2!==void 0&&(f.y2=m*u+f.y2*h+(b?0:v));var O=o*h-u*l;if(f.xRot!==void 0&&(o!==1||u!==0||l!==0||h!==1))if(O===0)delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag,f.type=T.LINE_TO;else{var P=f.xRot*Math.PI/180,_=Math.sin(P),A=Math.cos(P),q=1/E(f.rX),I=1/E(f.rY),j=E(A)*q+E(_)*I,C=2*_*A*(q-I),w=E(_)*q+E(A)*I,U=j*h*h-C*u*h+w*u*u,L=C*(o*h+u*l)-2*(j*l*h+w*o*u),V=j*l*l-C*o*l+w*o*o,M=(Math.atan2(L,U-V)+Math.PI)%Math.PI/2,N=Math.sin(M),k=Math.cos(M);f.rX=Math.abs(O)/Math.sqrt(U*E(k)+L*N*k+V*E(N)),f.rY=Math.abs(O)/Math.sqrt(U*E(N)-L*N*k+V*E(k)),f.xRot=180*M/Math.PI}return f.sweepFlag!==void 0&&0>O&&(f.sweepFlag=+!f.sweepFlag),f}))}function s(){return function(o){var u={};for(var l in o)u[l]=o[l];return u}}n.ROUND=function(o){function u(l){return Math.round(l*o)/o}return o===void 0&&(o=1e13),Ce(o),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},n.TO_ABS=e,n.TO_REL=function(){return i((function(o,u,l){return o.relative||(o.x1!==void 0&&(o.x1-=u),o.y1!==void 0&&(o.y1-=l),o.x2!==void 0&&(o.x2-=u),o.y2!==void 0&&(o.y2-=l),o.x!==void 0&&(o.x-=u),o.y!==void 0&&(o.y-=l),o.relative=!0),o}))},n.NORMALIZE_HVZ=function(o,u,l){return o===void 0&&(o=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i((function(h,c,v,f,g){if(isNaN(f)&&!(h.type&T.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&T.HORIZ_LINE_TO&&(h.type=T.LINE_TO,h.y=h.relative?0:v),l&&h.type&T.VERT_LINE_TO&&(h.type=T.LINE_TO,h.x=h.relative?0:c),o&&h.type&T.CLOSE_PATH&&(h.type=T.LINE_TO,h.x=h.relative?f-c:f,h.y=h.relative?g-v:g),h.type&T.ARC&&(h.rX===0||h.rY===0)&&(h.type=T.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h}))},n.NORMALIZE_ST=r,n.QT_TO_C=t,n.INFO=i,n.SANITIZE=function(o){o===void 0&&(o=0),Ce(o);var u=NaN,l=NaN,h=NaN,c=NaN;return i((function(v,f,g,d,p){var y=Math.abs,m=!1,b=0,x=0;if(v.type&T.SMOOTH_CURVE_TO&&(b=isNaN(u)?0:f-u,x=isNaN(l)?0:g-l),v.type&(T.CURVE_TO|T.SMOOTH_CURVE_TO)?(u=v.relative?f+v.x2:v.x2,l=v.relative?g+v.y2:v.y2):(u=NaN,l=NaN),v.type&T.SMOOTH_QUAD_TO?(h=isNaN(h)?f:2*f-h,c=isNaN(c)?g:2*g-c):v.type&T.QUAD_TO?(h=v.relative?f+v.x1:v.x1,c=v.relative?g+v.y1:v.y2):(h=NaN,c=NaN),v.type&T.LINE_COMMANDS||v.type&T.ARC&&(v.rX===0||v.rY===0||!v.lArcFlag)||v.type&T.CURVE_TO||v.type&T.SMOOTH_CURVE_TO||v.type&T.QUAD_TO||v.type&T.SMOOTH_QUAD_TO){var S=v.x===void 0?0:v.relative?v.x:v.x-f,E=v.y===void 0?0:v.relative?v.y:v.y-g;b=isNaN(h)?v.x1===void 0?b:v.relative?v.x:v.x1-f:h-f,x=isNaN(c)?v.y1===void 0?x:v.relative?v.y:v.y1-g:c-g;var O=v.x2===void 0?0:v.relative?v.x:v.x2-f,P=v.y2===void 0?0:v.relative?v.y:v.y2-g;y(S)<=o&&y(E)<=o&&y(b)<=o&&y(x)<=o&&y(O)<=o&&y(P)<=o&&(m=!0)}return v.type&T.CLOSE_PATH&&y(f-d)<=o&&y(g-p)<=o&&(m=!0),m?[]:v}))},n.MATRIX=a,n.ROTATE=function(o,u,l){u===void 0&&(u=0),l===void 0&&(l=0),Ce(o,u,l);var h=Math.sin(o),c=Math.cos(o);return a(c,h,-h,c,u-u*c+l*h,l-u*h-l*c)},n.TRANSLATE=function(o,u){return u===void 0&&(u=0),Ce(o,u),a(1,0,0,1,o,u)},n.SCALE=function(o,u){return u===void 0&&(u=o),Ce(o,u),a(o,0,0,u,0,0)},n.SKEW_X=function(o){return Ce(o),a(1,0,Math.atan(o),1,0,0)},n.SKEW_Y=function(o){return Ce(o),a(1,Math.atan(o),0,1,0,0)},n.X_AXIS_SYMMETRY=function(o){return o===void 0&&(o=0),Ce(o),a(-1,0,0,1,o,0)},n.Y_AXIS_SYMMETRY=function(o){return o===void 0&&(o=0),Ce(o),a(1,0,0,-1,0,o)},n.A_TO_C=function(){return i((function(o,u,l){return T.ARC===o.type?(function(h,c,v){var f,g,d,p;h.cX||qa(h,c,v);for(var y=Math.min(h.phi1,h.phi2),m=Math.max(h.phi1,h.phi2)-y,b=Math.ceil(m/90),x=new Array(b),S=c,E=v,O=0;O<b;O++){var P=Lu(h.phi1,h.phi2,O/b),_=Lu(h.phi1,h.phi2,(O+1)/b),A=_-P,q=4/3*Math.tan(A*ke/4),I=[Math.cos(P*ke)-q*Math.sin(P*ke),Math.sin(P*ke)+q*Math.cos(P*ke)],j=I[0],C=I[1],w=[Math.cos(_*ke),Math.sin(_*ke)],U=w[0],L=w[1],V=[U+q*Math.sin(_*ke),L-q*Math.cos(_*ke)],M=V[0],N=V[1];x[O]={relative:h.relative,type:T.CURVE_TO};var k=function(z,H){var X=ja([z*h.rX,H*h.rY],h.xRot),se=X[0],be=X[1];return[h.cX+se,h.cY+be]};f=k(j,C),x[O].x1=f[0],x[O].y1=f[1],g=k(M,N),x[O].x2=g[0],x[O].y2=g[1],d=k(U,L),x[O].x=d[0],x[O].y=d[1],h.relative&&(x[O].x1-=S,x[O].y1-=E,x[O].x2-=S,x[O].y2-=E,x[O].x-=S,x[O].y-=E),S=(p=[x[O].x,x[O].y])[0],E=p[1]}return x})(o,o.relative?0:u,o.relative?0:l):o}))},n.ANNOTATE_ARCS=function(){return i((function(o,u,l){return o.relative&&(u=0,l=0),T.ARC===o.type&&qa(o,u,l),o}))},n.CLONE=s,n.CALCULATE_BOUNDS=function(){var o=function(v){var f={};for(var g in v)f[g]=v[g];return f},u=e(),l=t(),h=r(),c=i((function(v,f,g){var d=h(l(u(o(v))));function p(N){N>c.maxX&&(c.maxX=N),N<c.minX&&(c.minX=N)}function y(N){N>c.maxY&&(c.maxY=N),N<c.minY&&(c.minY=N)}if(d.type&T.DRAWING_COMMANDS&&(p(f),y(g)),d.type&T.HORIZ_LINE_TO&&p(d.x),d.type&T.VERT_LINE_TO&&y(d.y),d.type&T.LINE_TO&&(p(d.x),y(d.y)),d.type&T.CURVE_TO){p(d.x),y(d.y);for(var m=0,b=ju(f,d.x1,d.x2,d.x);m<b.length;m++)0<(M=b[m])&&1>M&&p(Bu(f,d.x1,d.x2,d.x,M));for(var x=0,S=ju(g,d.y1,d.y2,d.y);x<S.length;x++)0<(M=S[x])&&1>M&&y(Bu(g,d.y1,d.y2,d.y,M))}if(d.type&T.ARC){p(d.x),y(d.y),qa(d,f,g);for(var E=d.xRot/180*Math.PI,O=Math.cos(E)*d.rX,P=Math.sin(E)*d.rX,_=-Math.sin(E)*d.rY,A=Math.cos(E)*d.rY,q=d.phi1<d.phi2?[d.phi1,d.phi2]:-180>d.phi2?[d.phi2+360,d.phi1+360]:[d.phi2,d.phi1],I=q[0],j=q[1],C=function(N){var k=N[0],z=N[1],H=180*Math.atan2(z,k)/Math.PI;return H<I?H+360:H},w=0,U=Vu(_,-O,0).map(C);w<U.length;w++)(M=U[w])>I&&M<j&&p(ku(d.cX,O,_,M));for(var L=0,V=Vu(A,-P,0).map(C);L<V.length;L++){var M;(M=V[L])>I&&M<j&&y(ku(d.cY,P,A,M))}}return v}));return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(ie||(ie={}));var Re,Ll=(function(){function n(){}return n.prototype.round=function(e){return this.transform(ie.ROUND(e))},n.prototype.toAbs=function(){return this.transform(ie.TO_ABS())},n.prototype.toRel=function(){return this.transform(ie.TO_REL())},n.prototype.normalizeHVZ=function(e,r,t){return this.transform(ie.NORMALIZE_HVZ(e,r,t))},n.prototype.normalizeST=function(){return this.transform(ie.NORMALIZE_ST())},n.prototype.qtToC=function(){return this.transform(ie.QT_TO_C())},n.prototype.aToC=function(){return this.transform(ie.A_TO_C())},n.prototype.sanitize=function(e){return this.transform(ie.SANITIZE(e))},n.prototype.translate=function(e,r){return this.transform(ie.TRANSLATE(e,r))},n.prototype.scale=function(e,r){return this.transform(ie.SCALE(e,r))},n.prototype.rotate=function(e,r,t){return this.transform(ie.ROTATE(e,r,t))},n.prototype.matrix=function(e,r,t,i,a,s){return this.transform(ie.MATRIX(e,r,t,i,a,s))},n.prototype.skewX=function(e){return this.transform(ie.SKEW_X(e))},n.prototype.skewY=function(e){return this.transform(ie.SKEW_Y(e))},n.prototype.xSymmetry=function(e){return this.transform(ie.X_AXIS_SYMMETRY(e))},n.prototype.ySymmetry=function(e){return this.transform(ie.Y_AXIS_SYMMETRY(e))},n.prototype.annotateArcs=function(){return this.transform(ie.ANNOTATE_ARCS())},n})(),Of=function(n){return n===" "||n===" "||n==="\r"||n===`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,dx as t}from"./index-rI994S3C.js";import{P as o}from"./page-layout-DMGj5xhW.js";const n=()=>e.jsx(o,{title:"New Document",description:"Issue a document for a client",children:e.jsx(t,{})});export{n as IssueDocumentScreen};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,ip as g,o as f,E as p,G as b,j as e,V as v,Y as o,Z as l,_ as c,$ as i,I as d,a1 as m,B as w,R as N,t as x,aa as y,ae as u}from"./index-rI994S3C.js";const S=y({username:u().min(2).max(50),password:u().min(2).max(50)});function F(){const{authService:a}=n.useContext(g);n.useEffect(()=>{a.logout()},[a]);const h=f(),s=p({resolver:b(S),defaultValues:{username:"",password:""}});function j(r){try{a.login(r.username,r.password).then(t=>{h(N.HOME)}),x.success("Success",{description:"You have successfully logged in."})}catch(t){console.error(t),x.error("Error",{description:"Invalid credentials. Please try again."})}}return e.jsxs("div",{className:"w-full flex flex-col justify-center items-center h-screen lg:grid lg:min-h-[200px] lg:grid-cols-2 xl:min-h-screen",children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(v,{...s,children:e.jsxs("form",{onSubmit:s.handleSubmit(j),className:"space-y-8 w-[300px]",children:[e.jsxs("div",{className:"grid gap-2 text-center",children:[e.jsx("h1",{className:"text-3xl font-bold",children:"Accounter"}),e.jsx("h1",{className:"text-3xl font-bold",children:"Login"}),e.jsx("p",{className:"text-balance text-muted-foreground",children:"Enter your credentials to login."})]}),e.jsx(o,{control:s.control,name:"username",render:({field:r})=>e.jsxs(l,{children:[e.jsx(c,{children:"Username"}),e.jsx(i,{children:e.jsx(d,{placeholder:"Username",...r})}),e.jsx(m,{})]})}),e.jsx(o,{control:s.control,name:"password",render:({field:r})=>e.jsxs(l,{children:[e.jsx(c,{children:"Password"}),e.jsx(i,{children:e.jsx(d,{placeholder:"Password",type:"password",...r})}),e.jsx(m,{})]})}),e.jsx(w,{disabled:s.formState.isSubmitting||!s.formState.isValid,className:"w-full font-semibold",type:"submit",children:"Login"})]})})}),e.jsx("div",{className:"hidden bg-muted lg:block bg-black rounded-tl-3xl rounded-bl-3xl",children:e.jsx("div",{className:"flex flex-row justify-center items-center h-screen",children:e.jsx("img",{src:"../../icons/guild-logo.svg",alt:"nature",className:"w-[100px] h-[100px] object-cover"})})})]})}export{F as LoginPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,F as h,u as C,j as e,T as M,B as j,L as P,M as S}from"./index-
|
|
1
|
+
import{r as i,F as h,u as C,j as e,T as M,B as j,L as P,M as S}from"./index-rI994S3C.js";import{u as v}from"./use-url-query-CqWra6gD.js";import{M as N,C as w}from"./charges-table-BJtpvXfL.js";import{P as R}from"./page-layout-DMGj5xhW.js";import{P as T,a as b}from"./panel-top-open-Bf39HBrp.js";import"./toggle-expansion-button-Y2eS7nqg.js";import"./update-accountant-status-zL6vnwU9.js";import"./index-C7p19nIa.js";import"./similar-transactions-modal-DX3CPrMo.js";import"./building-2-CMKd_bU8.js";import"./addDays-DTiBTTns.js";import"./Table-BQv3frL8.js";import"./summary-CPKS_69D.js";import"./accordion-Bn08_4fN.js";import"./deposits-transactions-table-2rtRFZgK.js";import"./Checkbox-Dmuz3t7B.js";import"./data-table-column-header-CZ1dXiU0.js";import"./eye-off-Buv7eciz.js";const K=()=>{const{setFiltersContext:l}=i.useContext(h),[r,c]=i.useState(!1),[s,a]=i.useState([]),{get:m}=v(),[p,u]=i.useState(m("page")?Number(m("page")):1),d=i.useCallback((t,x)=>{s.map(n=>n.id).includes(t)?a(s.filter(n=>n.id!==t)):a([...s,{id:t,onChange:x}])},[s]),[{data:o,fetching:g}]=C({query:S,variables:{page:p,limit:100}});function f(){a([])}return i.useEffect(()=>{l(e.jsxs("div",{className:"flex flex-row gap-x-5",children:[e.jsx(M,{content:"Expand all accounts",children:e.jsx(j,{variant:"outline",size:"icon",className:"size-7.5",onClick:()=>c(t=>!t),children:r?e.jsx(T,{className:"size-5"}):e.jsx(b,{className:"size-5"})})}),e.jsx(N,{selected:s,resetMerge:f})]}))},[o,g,p,r,l,u,c,s]),e.jsx(R,{title:"Missing Info Charges",description:"Review charges with missing required details",children:!o?.chargesWithMissingRequiredInfo.nodes||g?e.jsx(P,{className:"h-10 w-10 animate-spin mr-2 self-center"}):e.jsx(w,{toggleMergeCharge:d,mergeSelectedCharges:new Set(s.map(t=>t.id)),data:o?.chargesWithMissingRequiredInfo?.nodes,isAllOpened:r})})};export{K as MissingInfoCharges};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n,n as l}from"./index-
|
|
1
|
+
import{j as n,n as l}from"./index-rI994S3C.js";const i=({content:s,title:r,opened:e=!1,onClose:o=()=>{},modalSize:a,withCloseButton:t=!1})=>n.jsx(l,{size:a,opened:e,onClose:o,title:r,withCloseButton:t,children:s});export{i as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as re,bK as N,bL as S,g as K,c9 as se,r as p,t as k,i as Q,ca as ie,cb as B,bJ as G,ay as V,u as ce,cc as oe,E as le,G as de,w,j as e,D as ue,aL as me,B as C,ag as pe,a3 as U,x as he,al as xe,am as je,an as ye,V as ge,Y as o,Z as l,_ as d,$ as u,I as f,a1 as m,af as Ce,a4 as fe,ao as T,ap as O,aq as I,ar as L,as as A,at as _,aQ as De,bb as be,a2 as we,au as ke,aa as ve,cd as Ne,aw as v,ae as H,ax as Te,be as Oe,bf as Ie,ac as Le,ab as Ae,ad as J,aA as Se}from"./index-rI994S3C.js";const Pe=[["path",{d:"M5 7a2 2 0 0 0-2 2v11",key:"1yhqjt"}],["path",{d:"M5.803 18H5a2 2 0 0 0 0 4h9.5a.5.5 0 0 0 .5-.5V21",key:"edzzo5"}],["path",{d:"M9 15V4a2 2 0 0 1 2-2h9.5a.5.5 0 0 1 .5.5v14a.5.5 0 0 1-.5.5H11a2 2 0 0 1 0-4h10",key:"1nwzrg"}]],Ee=re("book-copy",Pe);function Me(c){switch(c){case N.Annual:return"Annual";case N.Monthly:return"Monthly";default:throw new Error(`Unsupported Billing Cycle: ${c}`)}}function Be(c){switch(c){case S.Enterprise:return"Enterprise";case S.Pro:return"Pro";default:throw new Error(`Unsupported Subscription plan: ${c}`)}}const Ve="createContract",Fe=()=>{const[{fetching:c},h]=K(se),g=p.useCallback(async x=>{const y=`Error creating new contract for client[${x.input.clientId}]`,s=`${Ve}-${x.input.clientId}`;k.loading("Creating contract",{id:s});try{const i=await h(x);Q(i,y,s)&&k.success("Success",{id:s,description:`Contract for client ${x.input.clientId} was successfully created`})}catch(i){console.error(`${y}: ${i}`),k.error("Error",{id:s,description:y,duration:1e5,closeButton:!0})}},[h]);return{creating:c,createContract:g}},$e="updateContract",ze=()=>{const[{fetching:c},h]=K(ie),g=p.useCallback(async x=>{const y=`Error updating contract ID [${x.contractId}]`,s=`${$e}-${x.contractId}`;k.loading("Updating contract",{id:s});try{const i=await h(x),D=Q(i,y,s,"updateContract");if(D)return k.success("Success",{id:s,description:"Contract updated"}),D.updateContract}catch(i){console.error(`${y}: ${i}`),k.error("Error",{id:s,description:y,duration:1e5,closeButton:!0})}},[h]);return{updating:c,updateContract:g}},Re=ve({id:Se().optional(),startDate:J("Start date is required"),endDate:J("End date is required"),pos:Ae(H()),paymentAmount:Le().min(0,"Payment amount must be non-negative"),paymentCurrency:v(Object.values(V),"Currency is required"),productType:v(Object.values(G)).optional(),msCloudLink:Oe().optional().or(Ie("")),billingCycle:v(Object.values(N)).optional(),subscriptionPlan:v(Object.values(S)).optional(),isActive:Te(),defaultRemark:H().optional(),defaultDocumentType:v(Object.values(B)),operationsLimit:Ne().min(BigInt(0),"Operations limit must be non-negative")}),qe={startDate:"",endDate:"",pos:[],paymentAmount:0,paymentCurrency:V.Usd,productType:G.Hive,msCloudLink:void 0,billingCycle:N.Monthly,subscriptionPlan:void 0,isActive:!0,defaultRemark:void 0,defaultDocumentType:B.Proforma,operationsLimit:BigInt(0)};function _e({clientId:c,contract:h,contractId:g,onDone:x,duplicate:y}){const{isEditing:s,isDuplicating:i}=p.useMemo(()=>{const t=!!h||!!g,n=y===!0&&t;return{isEditing:t&&!n,isDuplicating:n}},[h,g,y]),[D,b]=p.useState(!1),[P,X]=p.useState(!1),[r,F]=p.useState(qe),[$,z]=p.useState(""),{updateContract:R,updating:Y}=ze(),{createContract:E,creating:Z}=Fe(),[{data:M,fetching:W}]=ce({query:oe,pause:!g||!D,variables:{contractId:g??""}}),a=le({resolver:de(Re),defaultValues:r}),q=()=>{const t=$.trim();if(t){const n=a.getValues("pos");n.includes(t)||a.setValue("pos",[...n,t],{shouldDirty:!0}),z("")}},ee=t=>{const n=a.getValues("pos");a.setValue("pos",n.filter((j,ae)=>ae!==t),{shouldDirty:!0})};p.useEffect(()=>{h&&F(h)},[h]),p.useEffect(()=>{if(M?.contractsById){const t=M.contractsById,n={startDate:t.startDate,endDate:t.endDate,pos:t.purchaseOrders,paymentAmount:t.amount.raw,paymentCurrency:t.amount.currency,productType:t.product??void 0,msCloudLink:t.msCloud?.toString()??void 0,billingCycle:t.billingCycle,subscriptionPlan:t.plan??void 0,isActive:t.isActive,defaultRemark:t.remarks??void 0,defaultDocumentType:t.documentType,operationsLimit:BigInt(t.operationsLimit)};F({id:t.id,...n})}},[M]);const te=p.useMemo(()=>r?JSON.stringify(r):null,[r]);p.useEffect(()=>{r&&a.reset({startDate:r.startDate,endDate:r.endDate,pos:r.pos,paymentAmount:r.paymentAmount,paymentCurrency:r.paymentCurrency,productType:r.productType,msCloudLink:r.msCloudLink,billingCycle:r.billingCycle,subscriptionPlan:r.subscriptionPlan,isActive:r.isActive,defaultRemark:r.defaultRemark,defaultDocumentType:r.defaultDocumentType,operationsLimit:BigInt(r.operationsLimit)})},[te,a.reset]);const ne=p.useCallback(async t=>{if(i||s){if(!r?.id)return;if(i){if(!t.billingCycle){a.setError("billingCycle",{message:"Billing cycle is required"});return}await E({input:{clientId:c,amount:{raw:t.paymentAmount,currency:t.paymentCurrency},billingCycle:t.billingCycle,documentType:t.defaultDocumentType,endDate:w(new Date(t.endDate),"yyyy-MM-dd"),isActive:t.isActive,msCloud:t.msCloudLink,plan:t.subscriptionPlan,product:t.productType,purchaseOrders:t.pos,remarks:t.defaultRemark,startDate:w(new Date(t.startDate),"yyyy-MM-dd"),operationsLimit:t.operationsLimit,deactivateContracts:P?[r.id]:void 0}})}else await R({contractId:r.id,input:{amount:{raw:t.paymentAmount,currency:t.paymentCurrency},billingCycle:t.billingCycle,documentType:t.defaultDocumentType,endDate:w(new Date(t.endDate),"yyyy-MM-dd"),isActive:t.isActive,msCloud:t.msCloudLink,plan:t.subscriptionPlan,product:t.productType,purchaseOrders:t.pos,remarks:t.defaultRemark,startDate:w(new Date(t.startDate),"yyyy-MM-dd"),operationsLimit:t.operationsLimit}})}else{if(!t.billingCycle){a.setError("billingCycle",{message:"Billing cycle is required"});return}await E({input:{clientId:c,amount:{raw:t.paymentAmount,currency:t.paymentCurrency},billingCycle:t.billingCycle,documentType:t.defaultDocumentType,endDate:w(new Date(t.endDate),"yyyy-MM-dd"),isActive:t.isActive,msCloud:t.msCloudLink,plan:t.subscriptionPlan,product:t.productType,purchaseOrders:t.pos,remarks:t.defaultRemark,startDate:w(new Date(t.startDate),"yyyy-MM-dd"),operationsLimit:t.operationsLimit}})}b(!1),x?.()},[r,x,E,R,c,a,s,i,P]);return e.jsxs(ue,{open:D,onOpenChange:b,children:[e.jsx(me,{asChild:!0,children:s?e.jsx(C,{variant:"ghost",size:"sm",onClick:()=>b(!0),children:e.jsx(pe,{className:"size-5"})}):i?e.jsx(C,{variant:"ghost",size:"sm",onClick:()=>b(!0),children:e.jsx(Ee,{className:"size-5"})}):e.jsxs(C,{size:"sm",onClick:()=>b(!0),children:[e.jsx(U,{className:"size-4 mr-2"}),"New Contract"]})}),e.jsxs(he,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[e.jsxs(xe,{children:[e.jsx(je,{children:s?"Edit Contract":"Create New Contract"}),e.jsx(ye,{children:s?"Update contract details":i?"Create a new contract based on an existing one":"Add a new contract with all required details"})]}),W?e.jsx(e.Fragment,{children:"Fetching contract details..."}):e.jsx(ge,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(ne),children:[e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsx(o,{control:a.control,name:"operationsLimit",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Operations Limit"}),e.jsx(u,{children:e.jsx(f,{placeholder:"500",...t,value:t.value?.toLocaleString(),onChange:n=>{const j=n.target.value.replace(/[^0-9]/g,"");t.onChange(BigInt(j||0))}})}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"pos",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Purchase Orders"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(f,{placeholder:"Add PO...",value:$,onChange:n=>z(n.target.value),onKeyDown:n=>{n.key==="Enter"&&(n.preventDefault(),q())}}),e.jsx(C,{type:"button",size:"sm",onClick:q,children:e.jsx(U,{className:"h-4 w-4"})})]}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:t.value?.map((n,j)=>e.jsxs(Ce,{variant:"secondary",className:"gap-1 max-w-xs truncate",children:[n,j===(t.value?.length??0)-1&&e.jsx(C,{variant:"ghost",size:"icon",className:"p-0 size-3",onClick:()=>ee(j),children:e.jsx(fe,{className:"size-3 cursor-pointer flex-shrink-0"})})]},n))}),e.jsx(m,{})]})})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsx(o,{control:a.control,name:"startDate",render:({field:{onChange:t,...n}})=>e.jsxs(l,{children:[e.jsx(d,{children:"Start Date"}),e.jsx(u,{children:e.jsx(f,{type:"date",...n,onInput:j=>t(j)})}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"endDate",render:({field:{onChange:t,...n}})=>e.jsxs(l,{children:[e.jsx(d,{children:"End Date"}),e.jsx(u,{children:e.jsx(f,{type:"date",...n,onInput:j=>t(j)})}),e.jsx(m,{})]})})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[e.jsx(o,{control:a.control,name:"paymentAmount",render:({field:t})=>e.jsxs(l,{className:"md:col-span-2",children:[e.jsx(d,{children:"Payment Amount"}),e.jsx(u,{children:e.jsx(f,{type:"number",placeholder:"24000",...t,onChange:n=>{t.onChange(n?.target.value?Number(n?.target.value):void 0)}})}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"paymentCurrency",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Currency"}),e.jsxs(T,{onValueChange:t.onChange,defaultValue:t.value,children:[e.jsx(u,{children:e.jsx(O,{children:e.jsx(I,{})})}),e.jsx(L,{children:Object.values(V).map(n=>e.jsx(A,{value:n,children:n},n))})]}),e.jsx(m,{})]})})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsx(o,{control:a.control,name:"productType",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Product Type"}),e.jsx(u,{children:e.jsx(f,{placeholder:"Cloud Services",...t})}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"billingCycle",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Billing Cycle"}),e.jsxs(T,{onValueChange:t.onChange,defaultValue:t.value,children:[e.jsx(u,{children:e.jsx(O,{children:e.jsx(I,{})})}),e.jsx(L,{children:Object.values(N).map(n=>e.jsx(A,{value:n,children:Me(n)},n))})]}),e.jsx(m,{})]})})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsx(o,{control:a.control,name:"subscriptionPlan",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Subscription Plan"}),e.jsx(u,{children:e.jsxs(T,{onValueChange:t.onChange,defaultValue:t.value,children:[e.jsx(u,{children:e.jsx(O,{children:e.jsx(I,{})})}),e.jsx(L,{children:Object.values(S).map(n=>e.jsx(A,{value:n,children:Be(n)},n))})]})}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"isActive",render:({field:t})=>e.jsxs(l,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsx("div",{className:"space-y-0.5",children:e.jsx(d,{className:"text-base",children:"Active Status"})}),e.jsx(u,{children:e.jsx(_,{checked:t.value,onCheckedChange:t.onChange})})]})})]}),e.jsx(o,{control:a.control,name:"msCloudLink",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"MS Cloud Link"}),e.jsx(u,{children:e.jsx(f,{type:"url",placeholder:"https://portal.azure.com/contract-id",...t})}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"defaultDocumentType",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Default Document Type"}),e.jsxs(T,{onValueChange:t.onChange,defaultValue:t.value,children:[e.jsx(u,{children:e.jsx(O,{children:e.jsx(I,{})})}),e.jsx(L,{children:Object.values(B).map(n=>e.jsx(A,{value:n,children:De(n)},n))})]}),e.jsx(m,{})]})}),e.jsx(o,{control:a.control,name:"defaultRemark",render:({field:t})=>e.jsxs(l,{children:[e.jsx(d,{children:"Default Remark"}),e.jsx(u,{children:e.jsx(be,{placeholder:"Enter default remark for this contract...",rows:3,...t})}),e.jsx(m,{})]})}),i&&e.jsxs("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsx("div",{className:"space-y-0.5",children:e.jsx(we,{className:"text-base",children:"Deactivate Original Contract"})}),e.jsx(_,{checked:P,onCheckedChange:X})]})]}),e.jsxs(ke,{children:[e.jsx(C,{type:"button",variant:"outline",onClick:()=>b(!1),children:"Cancel"}),e.jsx(C,{type:"submit",disabled:Z||Y,children:s?"Update Contract":"Create Contract"})]})]})})]})]})}export{_e as M,Be as a,Me as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,
|
|
1
|
+
import{j as e,X as x}from"./index-rI994S3C.js";function r({children:t,title:a,description:s,headerActions:l}){return e.jsxs("div",{className:"flex flex-col gap-5",id:"main-page",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"w-full text-2xl font-bold tracking-tight md:text-3xl",children:a}),s&&e.jsx("p",{className:"mt-2 text-gray-500",children:s})]}),l]}),e.jsx(x,{}),t]})}export{r as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,
|
|
1
|
+
import{j as s,J as a,K as e,O as r,W as d}from"./index-rI994S3C.js";const o=()=>s.jsxs(a,{className:"m-5",children:[s.jsx(e,{children:s.jsx(r,{children:"404"})}),s.jsx(d,{children:s.jsx("p",{children:"Page not found"})})]});export{o as PageNotFound};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as e}from"./index-
|
|
1
|
+
import{v as e}from"./index-rI994S3C.js";const t=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 16 3-3 3 3",key:"1idcnm"}]],a=e("panel-top-close",t);const o=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m15 14-3 3-3-3",key:"g215vf"}]],c=e("panel-top-open",o);export{a as P,c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,a6 as c,gc as m,j as t,gd as j}from"./index-rI994S3C.js";import{T as h}from"./toggle-expansion-button-Y2eS7nqg.js";import{T as x}from"./Table-BQv3frL8.js";const p=({subCommentaryData:o,dataRow:a})=>{const[s,l]=i.useState(!1),r=o.map(e=>c(m,e)),d=t.jsx(h,{toggleExpansion:l,isExpanded:s});return t.jsxs(t.Fragment,{children:[a(d),s&&t.jsx("tr",{children:t.jsx("td",{colSpan:99,children:t.jsxs(x,{striped:!0,highlightOnHover:!0,className:"ml-8 w-full h-full",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Entity"}),t.jsx("th",{children:"Amount"})]})}),t.jsxs("tbody",{children:[r?.sort((e,n)=>e.financialEntity.name.localeCompare(n.financialEntity.name)).map(e=>t.jsxs("tr",{children:[t.jsx("td",{children:e.financialEntity.name}),t.jsx("td",{children:e.amount.formatted})]},e.financialEntity.id)),t.jsx("tr",{children:t.jsx("td",{colSpan:8})})]})]})})})]})},f=({commentaryData:o,dataRow:a})=>{const[s,l]=i.useState(!1),{records:r}=c(j,o),d=r.length?t.jsx(h,{toggleExpansion:l,isExpanded:s}):null;return t.jsxs(t.Fragment,{children:[a(d),s&&t.jsx("tr",{children:t.jsx("td",{colSpan:99,children:t.jsxs(x,{striped:!0,highlightOnHover:!0,className:"ml-8 w-full h-full",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Sort Code"}),t.jsx("th",{children:"Amount"}),t.jsx("th",{})]})}),t.jsxs("tbody",{children:[r?.sort((e,n)=>e.sortCode.key-n.sortCode.key).map(e=>t.jsx(p,{dataRow:n=>t.jsxs("tr",{children:[t.jsxs("td",{children:[e.sortCode.key," - ",e.sortCode.name]}),t.jsx("td",{children:e.amount.formatted}),t.jsx("td",{children:n})]},e.sortCode.key),subCommentaryData:e.records},e.sortCode.key)),t.jsx("tr",{children:t.jsx("td",{colSpan:8})})]})]})})})]})};export{f as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as a}from"./index-
|
|
1
|
+
import{v as a}from"./index-rI994S3C.js";const e=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],o=a("save",e);export{o as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as j,g as C,h2 as b,r as g,t as p,i as S,j as a,ai as m,h3 as k,h4 as v,u as A,h5 as I,D as M,x as R,y as N,c as B,aF as f,bY as $,c5 as E,c6 as F,al as V,am as
|
|
1
|
+
import{v as j,g as C,h2 as b,r as g,t as p,i as S,j as a,ai as m,h3 as k,h4 as v,u as A,h5 as I,D as M,x as R,y as N,c as B,aF as f,bY as $,c5 as E,c6 as F,al as V,am as U,B as K,J as _,bO as H,bP as L,bQ as T,bR as P,c2 as y,bS as O,bT as Q,p as w,w as D}from"./index-rI994S3C.js";import{B as x}from"./building-2-CMKd_bU8.js";const W=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["line",{x1:"12",x2:"12.01",y1:"17",y2:"17",key:"io3f8k"}]],q=j("badge-question-mark",W);const J=[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]],Y=j("bitcoin",J),Z="updateTransaction",ne=()=>{const[{fetching:e},s]=C(b),n=g.useCallback(async i=>{const d=`Error updating transaction ID [${i.transactionId}]`,c=`${Z}-${i.transactionId}`;p.loading("Updating Transaction",{id:c});try{const l=await s(i),o=S(l,d,c,"updateTransaction");if(o)return p.success("Success",{id:c,description:"Transaction updated"}),o.updateTransaction}catch(l){console.error(`${d}: ${l}`),p.error("Error",{id:c,description:d,duration:1e5,closeButton:!0})}},[s]);return{fetching:e,updateTransaction:n}},ce=e=>{switch(e){case m.BankAccount:return a.jsx(x,{className:"h-5 w-5"});case m.CreditCard:return a.jsx(k,{className:"h-5 w-5"});case m.CryptoWallet:return a.jsx(Y,{className:"h-5 w-5"});case m.BankDepositAccount:return a.jsx(x,{className:"h-5 w-5"});case m.ForeignSecurities:return a.jsx(x,{className:"h-5 w-5"});default:return a.jsx(q,{className:"h-5 w-5"})}},z=e=>{switch(e){case m.BankAccount:return"Bank Account";case m.CreditCard:return"Credit Card";case m.CryptoWallet:return"Crypto Wallet";case m.BankDepositAccount:return"Bank Deposit Account";case m.ForeignSecurities:return"Foreign Securities";default:return"Unknown Account Type"}},G="updateTransactions",X=()=>{const[{fetching:e},s]=C(v),n=g.useCallback(async i=>{const d=Array.isArray(i.transactionIds)?i.transactionIds.join(", "):i.transactionIds,c=`Error updating transactions ID [${d}]`,l=`${G}-${d}`;p.loading("Updating Transactions",{id:l});try{const o=await s(i),u=S(o,c,l,"updateTransactions");if(u)return p.success("Success",{id:l,description:"Transactions updated"}),u.updateTransactions.transactions.map(h=>h.id)}catch(o){console.error(`${c}: ${o}`),p.error("Error",{id:l,description:c,duration:1e5,closeButton:!0})}},[s]);return{fetching:e,updateTransactions:n}},ee=[{id:"select",header:({table:e})=>a.jsx(w,{checked:e.getIsAllPageRowsSelected()||e.getIsSomePageRowsSelected()&&"indeterminate",onCheckedChange:s=>e.toggleAllPageRowsSelected(!!s),"aria-label":"Select all"}),cell:({row:e})=>a.jsx(w,{checked:e.getIsSelected(),onCheckedChange:s=>e.toggleSelected(!!s),"aria-label":"Select row"}),enableSorting:!1,enableHiding:!1},{accessorKey:"accountType",header:"Type",cell:({row:e})=>a.jsx("div",{children:e.getValue("accountType")})},{accessorKey:"accountName",header:"Account",cell:({row:e})=>a.jsx("div",{children:e.getValue("accountName")})},{accessorKey:"amountRaw",header:"Amount",cell:({row:e})=>a.jsx("div",{children:e.original.amountFormatted})},{accessorKey:"sourceDescription",header:"Description",cell:({row:e})=>a.jsx("div",{children:e.getValue("sourceDescription")})},{accessorKey:"eventDate",header:"Event Date",cell:({row:e})=>a.jsx("div",{children:D(e.getValue("eventDate"),"yyyy-MM-dd")})},{accessorKey:"valueDate",header:"Value Date",cell:({row:e})=>a.jsx("div",{children:e.getValue("valueDate")?D(e.getValue("valueDate"),"yyyy-MM-dd"):""})}];function oe({transactionId:e,counterpartyId:s,open:n,onOpenChange:i,onClose:d}){const[{data:c,fetching:l},o]=A({pause:!0,query:I,variables:{transactionId:e,withMissingInfo:!0}});g.useEffect(()=>{n&&s&&o()},[n,s,o,e]);const u=g.useCallback(r=>{i(r),n&&!r&&d?.()},[i,d,n]),h=g.useMemo(()=>{const r=c?.similarTransactions.map(t=>({id:t.id,amountRaw:t.amount.raw,amountFormatted:t.amount.formatted,sourceDescription:t.sourceDescription,eventDate:new Date(t.eventDate),valueDate:t.effectiveDate?new Date(t.effectiveDate):void 0,accountType:z(t.account.type),accountName:t.account.name}))??[];return c&&r.length===0&&u(!1),r},[c,u]);return a.jsx(M,{open:n&&!!s&&h.length>0,onOpenChange:u,children:a.jsx(R,{className:"overflow-scroll max-h-screen w-full sm:max-w-[640px] md:max-w-[768px] lg:max-w-[900px]",children:a.jsx(N,{fallback:a.jsx("div",{children:"Error fetching similar transactions"}),children:l?a.jsx(B,{}):s?a.jsx(ae,{data:h,counterpartyId:s,onOpenChange:u}):null})})})}function ae({data:e,counterpartyId:s,onOpenChange:n}){const[i,d]=f.useState([]),[c,l]=f.useState({}),o=$({data:e,columns:ee,onSortingChange:d,getCoreRowModel:F(),getSortedRowModel:E(),onRowSelectionChange:l,state:{sorting:i,rowSelection:c}}),{updateTransactions:u}=X(),h=g.useCallback(async()=>{const r=o.getSelectedRowModel().rows.map(t=>t.original.id);await u({transactionIds:r,fields:{counterpartyId:s}}),n(!1)},[u,n,o,s]);return g.useEffect(()=>{e.length===0&&n(!1)},[e.length,n]),e.length?a.jsxs(a.Fragment,{children:[a.jsxs(V,{className:"flex flex-row items-center justify-between",children:[a.jsx(U,{children:"Transactions"}),a.jsx(K,{onClick:h,children:"Approve selected"})]}),a.jsx(_,{children:a.jsxs(H,{children:[a.jsx(L,{children:o.getHeaderGroups().map(r=>a.jsx(T,{children:r.headers.map(t=>a.jsx(P,{children:t.isPlaceholder?null:y(t.column.columnDef.header,t.getContext())},t.id))},r.id))}),a.jsx(O,{children:o.getRowModel().rows.map(r=>a.jsx(T,{"data-state":r.getIsSelected()&&"selected",children:r.getVisibleCells().map(t=>a.jsx(Q,{children:y(t.column.columnDef.cell,t.getContext())},t.id))},r.id))})]})})]}):null}export{oe as S,z as a,ce as g,ne as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gH as f}from"./index-
|
|
1
|
+
import{gH as f}from"./index-rI994S3C.js";import{a as y}from"./addDays-DTiBTTns.js";import{s as S}from"./subMonths-DY4HlBVa.js";function T(s,t,o){return y(s,-t,o)}function g(s,t,o){const{years:n=0,months:u=0,weeks:r=0,days:c=0,hours:m=0,minutes:a=0,seconds:e=0}=t,i=S(s,u+n*12,o),b=T(i,c+r*7,o),h=a+m*60,d=(e+h*60)*1e3;return f(s,+b-d)}export{g as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gO as n}from"./index-rI994S3C.js";function a(o,s,t){return n(o,-s,t)}export{a as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f$ as Tr,g0 as Rr,g1 as Lr,r as g,by as C,ev as T,eu as $,bz as P,aF as _,fu as kr,ew as ie,bA as R,dw as Be,eS as le,g2 as Fe,g3 as zr,fY as pe,d8 as ce,ey as Ar,bv as S,eT as Br,eA as Fr,ep as Hr,j as l,a6 as de,g4 as Vr,g as Xr,g5 as Gr,t as se,i as Ur,bX as Wr,g6 as Kr,f2 as Yr,R as qr,w as me,g7 as Zr,g8 as Jr,dp as F,ay as H}from"./index-rI994S3C.js";import{U as Qr}from"./update-accountant-status-zL6vnwU9.js";import{T as et}from"./Table-BQv3frL8.js";function rt(e,r,t){const[n,o]=Tr(t?.in,e,r),i=ge(n,o),a=Math.abs(Rr(n,o));n.setDate(n.getDate()-i*a);const s=+(ge(n,o)===-i),c=i*(a-s);return c===0?0:c}function ge(e,r){const t=e.getFullYear()-r.getFullYear()||e.getMonth()-r.getMonth()||e.getDate()-r.getDate()||e.getHours()-r.getHours()||e.getMinutes()-r.getMinutes()||e.getSeconds()-r.getSeconds()||e.getMilliseconds()-r.getMilliseconds();return t<0?-1:t>0?1:t}function ve(e,r,t){const n=Lr(e,t?.in);return n.setHours(r),n}function G(e,r){let t=e;for(;(t=t.parentElement)&&!t.matches(r););return t}function tt(e,r,t){for(let n=e-1;n>=0;n-=1)if(!r[n].disabled)return n;if(t){for(let n=r.length-1;n>-1;n-=1)if(!r[n].disabled)return n}return e}function nt(e,r,t){for(let n=e+1;n<r.length;n+=1)if(!r[n].disabled)return n;if(t){for(let n=0;n<r.length;n+=1)if(!r[n].disabled)return n}return e}function ot(e,r,t){return G(e,t)===G(r,t)}function at({parentSelector:e,siblingSelector:r,onKeyDown:t,loop:n=!0,activateOnFocus:o=!1,dir:i="rtl",orientation:a}){return s=>{var c;t?.(s);const f=Array.from(((c=G(s.currentTarget,e))==null?void 0:c.querySelectorAll(r))||[]).filter(v=>ot(s.currentTarget,v,e)),d=f.findIndex(v=>s.currentTarget===v),u=nt(d,f,n),m=tt(d,f,n);switch(s.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":{s.stopPropagation(),s.preventDefault(),f[m].focus(),o&&f[m].click();break}case"ArrowDown":{s.stopPropagation(),s.preventDefault(),f[u].focus(),o&&f[u].click();break}case"Home":{s.stopPropagation(),s.preventDefault(),!f[0].disabled&&f[0].focus();break}case"End":{s.stopPropagation(),s.preventDefault();const v=f.length-1;!f[v].disabled&&f[v].focus();break}}}}function st(e,r,t){var n;return t?Array.from(((n=G(t,r))==null?void 0:n.querySelectorAll(e))||[]).findIndex(o=>o===t):null}function N(e,r){return t=>{e?.(t),r?.(t)}}function it(){const[e,r]=g.useState(-1);return[e,{setHovered:r,resetHovered:()=>r(-1)}]}const lt={xs:$(12),sm:$(18),md:$(24),lg:$(34),xl:$(42)};var ct=C((e,{color:r,transitionDuration:t},{size:n})=>{const o=T({size:n,sizes:lt}),i=r||(e.colorScheme==="dark"?e.white:e.black);return{root:{borderRadius:e.radius.sm,width:`calc(${o} + ${e.spacing.xs})`,height:`calc(${o} + ${e.spacing.xs})`,padding:`calc(${e.spacing.xs} / 2)`,cursor:"pointer"},burger:{position:"relative",userSelect:"none",boxSizing:"border-box","&, &::before, &::after":{display:"block",width:o,height:`calc(${o} / 12)`,backgroundColor:i,outline:`${$(1)} solid transparent`,transitionProperty:"background-color, transform",transitionDuration:`${t}ms`,"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":void 0}},"&::before, &::after":{position:"absolute",content:'""',left:0},"&::before":{top:`calc((${o} / 3) * -1)`},"&::after":{top:`calc(${o} / 3)`},"&[data-opened]":{backgroundColor:"transparent","&::before":{transform:`translateY(calc(${o} / 3)) rotate(45deg)`},"&::after":{transform:`translateY(calc(-${o} / 3)) rotate(-45deg)`}}}}}),dt=Object.defineProperty,U=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,_e=(e,r,t)=>r in e?dt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ft=(e,r)=>{for(var t in r||(r={}))He.call(r,t)&&_e(e,t,r[t]);if(U)for(var t of U(r))Ve.call(r,t)&&_e(e,t,r[t]);return e},ut=(e,r)=>{var t={};for(var n in e)He.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&U)for(var n of U(e))r.indexOf(n)<0&&Ve.call(e,n)&&(t[n]=e[n]);return t};const pt={size:"md",transitionDuration:300},Xe=g.forwardRef((e,r)=>{const t=P("Burger",pt,e),{className:n,opened:o,color:i,size:a,classNames:s,styles:c,transitionDuration:f,variant:d}=t,u=ut(t,["className","opened","color","size","classNames","styles","transitionDuration","variant"]),{classes:m,cx:v}=ct({color:i,transitionDuration:f},{classNames:s,styles:c,name:"Burger",variant:d,size:a});return _.createElement(kr,ft({className:v(m.root,n),ref:r},u),_.createElement("div",{"data-opened":o||void 0,className:m.burger}))});Xe.displayName="@mantine/core/Burger";const Ge=g.createContext({padding:0}),mt=Ge.Provider,gt=()=>g.useContext(Ge).padding;var vt=C((e,{padding:r,withBorder:t,inheritPadding:n})=>{const o=T({size:r,sizes:e.spacing}),i=`calc(-1 * ${o})`,a=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{cardSection:{display:"block",marginLeft:i,marginRight:i,paddingLeft:n?o:void 0,paddingRight:n?o:void 0,borderTop:t?`${$(1)} solid ${a}`:void 0,borderBottom:t?`${$(1)} solid ${a}`:void 0,"& + &":{borderTop:0},"&[data-first]":{marginTop:i,borderTop:0,borderBottom:t?`${$(1)} solid ${a}`:void 0},"&[data-last]":{marginBottom:i,borderBottom:0}}}}),_t=Object.defineProperty,W=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,ye=(e,r,t)=>r in e?_t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,yt=(e,r)=>{for(var t in r||(r={}))Ue.call(r,t)&&ye(e,t,r[t]);if(W)for(var t of W(r))We.call(r,t)&&ye(e,t,r[t]);return e},ht=(e,r)=>{var t={};for(var n in e)Ue.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&W)for(var n of W(e))r.indexOf(n)<0&&We.call(e,n)&&(t[n]=e[n]);return t};const xt={withBorder:!1,inheritPadding:!1},Ke=g.forwardRef((e,r)=>{const t=P("CardSection",xt,e),{className:n,withBorder:o,inheritPadding:i,unstyled:a,variant:s}=t,c=ht(t,["className","withBorder","inheritPadding","unstyled","variant"]),{classes:f,cx:d}=vt({padding:gt(),withBorder:o,inheritPadding:i},{name:"Card",unstyled:a,variant:s});return _.createElement(R,yt({className:d(f.cardSection,n),ref:r},c))});Ke.displayName="@mantine/core/CardSection";const Ye=ie(Ke);var wt=C(e=>({root:{position:"relative",overflow:"hidden",backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white}})),Ot=Object.defineProperty,K=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,he=(e,r,t)=>r in e?Ot(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$t=(e,r)=>{for(var t in r||(r={}))qe.call(r,t)&&he(e,t,r[t]);if(K)for(var t of K(r))Ze.call(r,t)&&he(e,t,r[t]);return e},Pt=(e,r)=>{var t={};for(var n in e)qe.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&K)for(var n of K(e))r.indexOf(n)<0&&Ze.call(e,n)&&(t[n]=e[n]);return t};const bt={padding:"md"},fe=g.forwardRef((e,r)=>{const t=P("Card",bt,e),{className:n,padding:o,radius:i,children:a,unstyled:s,variant:c}=t,f=Pt(t,["className","padding","radius","children","unstyled","variant"]),{classes:d,cx:u}=wt(null,{name:"Card",unstyled:s,variant:c}),m=g.Children.toArray(a),v=m.map((p,y)=>typeof p=="object"&&p&&"type"in p&&p.type===Ye?g.cloneElement(p,{variant:c,padding:o,"data-first":y===0||void 0,"data-last":y===m.length-1||void 0}):p);return _.createElement(mt,{value:{padding:o}},_.createElement(Be,$t({className:u(d.root,n),radius:i,p:o,ref:r},f),v))});fe.Section=Ye;fe.displayName="@mantine/core/Card";const mo=ie(fe),[St,jt]=le("Grid component was not found in tree");var Et=Object.defineProperty,xe=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,we=(e,r,t)=>r in e?Et(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Nt=(e,r)=>{for(var t in r||(r={}))It.call(r,t)&&we(e,t,r[t]);if(xe)for(var t of xe(r))Ct.call(r,t)&&we(e,t,r[t]);return e};const ue=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,Je=(e,r,t)=>t||e==="auto"||e==="content"?"unset":ue(e,r),Qe=(e,r)=>{if(e)return e==="auto"||r?1:0},er=(e,r)=>e===0?0:e?`${100/(r/e)}%`:void 0,rr=(e,r)=>typeof e<"u"?`calc(${T({size:e,sizes:r.spacing})} / 2)`:void 0;function Mt({sizes:e,offsets:r,orders:t,theme:n,columns:o,gutters:i,grow:a}){return Fe.reduce((s,c)=>(s[`@media (min-width: ${zr(n.breakpoints[c])})`]={order:t[c],flexBasis:ue(e[c],o),padding:rr(i[c],n),flexShrink:0,width:e[c]==="content"?"auto":void 0,maxWidth:Je(e[c],o,a),marginLeft:er(r[c],o),flexGrow:Qe(e[c],a)},s),{})}var Dt=C((e,{gutter:r,gutterXs:t,gutterSm:n,gutterMd:o,gutterLg:i,gutterXl:a,grow:s,offset:c,offsetXs:f,offsetSm:d,offsetMd:u,offsetLg:m,offsetXl:v,columns:p,span:y,xs:h,sm:x,md:w,lg:j,xl:D,order:L,orderXs:k,orderSm:z,orderMd:A,orderLg:E,orderXl:O})=>({col:Nt({boxSizing:"border-box",flexGrow:Qe(y,s),order:L,padding:rr(r,e),marginLeft:er(c,p),flexBasis:ue(y,p),flexShrink:0,width:y==="content"?"auto":void 0,maxWidth:Je(y,p,s)},Mt({sizes:{xs:h,sm:x,md:w,lg:j,xl:D},offsets:{xs:f,sm:d,md:u,lg:m,xl:v},orders:{xs:k,sm:z,md:A,lg:E,xl:O},gutters:{xs:t,sm:n,md:o,lg:i,xl:a},theme:e,columns:p,grow:s}))})),Tt=Object.defineProperty,Y=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,Oe=(e,r,t)=>r in e?Tt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Rt=(e,r)=>{for(var t in r||(r={}))tr.call(r,t)&&Oe(e,t,r[t]);if(Y)for(var t of Y(r))nr.call(r,t)&&Oe(e,t,r[t]);return e},Lt=(e,r)=>{var t={};for(var n in e)tr.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Y)for(var n of Y(e))r.indexOf(n)<0&&nr.call(e,n)&&(t[n]=e[n]);return t};const kt={};function zt(e){return e==="auto"||e==="content"?!0:typeof e=="number"&&e>0&&e%1===0}const or=g.forwardRef((e,r)=>{const t=P("GridCol",kt,e),{children:n,span:o,offset:i,offsetXs:a,offsetSm:s,offsetMd:c,offsetLg:f,offsetXl:d,xs:u,sm:m,md:v,lg:p,xl:y,order:h,orderXs:x,orderSm:w,orderMd:j,orderLg:D,orderXl:L,className:k,unstyled:z,variant:A}=t,E=Lt(t,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","order","orderXs","orderSm","orderMd","orderLg","orderXl","className","unstyled","variant"]),O=jt(),M=o||O.columns,{classes:B,cx:X}=Dt({gutter:O.gutter,gutterXs:O.gutterXs,gutterSm:O.gutterSm,gutterMd:O.gutterMd,gutterLg:O.gutterLg,gutterXl:O.gutterXl,offset:i,offsetXs:a,offsetSm:s,offsetMd:c,offsetLg:f,offsetXl:d,xs:u,sm:m,md:v,lg:p,xl:y,order:h,orderXs:x,orderSm:w,orderMd:j,orderLg:D,orderXl:L,grow:O.grow,columns:O.columns,span:M},{unstyled:z,name:"Grid",variant:A});return!zt(M)||M>O.columns?null:_.createElement(R,Rt({className:X(B.col,k),ref:r},E),n)});or.displayName="@mantine/core/Col";var At=Object.defineProperty,$e=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Pe=(e,r,t)=>r in e?At(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ht=(e,r)=>{for(var t in r||(r={}))Bt.call(r,t)&&Pe(e,t,r[t]);if($e)for(var t of $e(r))Ft.call(r,t)&&Pe(e,t,r[t]);return e};function Vt(e,r){return Fe.reduce((t,n)=>(typeof e[n]<"u"&&(t[`@media (min-width: ${r.breakpoints[n]})`]={margin:`calc(-${T({size:e[n],sizes:r.spacing})} / 2)`}),t),{})}var Xt=C((e,{justify:r,align:t,gutter:n,gutterXs:o,gutterSm:i,gutterMd:a,gutterLg:s,gutterXl:c})=>({root:Ht({margin:`calc(-${T({size:n,sizes:e.spacing})} / 2)`,display:"flex",flexWrap:"wrap",justifyContent:r,alignItems:t},Vt({xs:o,sm:i,md:a,lg:s,xl:c},e))})),Gt=Object.defineProperty,q=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,be=(e,r,t)=>r in e?Gt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ut=(e,r)=>{for(var t in r||(r={}))ar.call(r,t)&&be(e,t,r[t]);if(q)for(var t of q(r))sr.call(r,t)&&be(e,t,r[t]);return e},Wt=(e,r)=>{var t={};for(var n in e)ar.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&q)for(var n of q(e))r.indexOf(n)<0&&sr.call(e,n)&&(t[n]=e[n]);return t};const Kt={gutter:"md",justify:"flex-start",align:"stretch",columns:12},b=g.forwardRef((e,r)=>{const t=P("Grid",Kt,e),{gutter:n,gutterXs:o,gutterSm:i,gutterMd:a,gutterLg:s,gutterXl:c,children:f,grow:d,justify:u,align:m,columns:v,className:p,unstyled:y,variant:h}=t,x=Wt(t,["gutter","gutterXs","gutterSm","gutterMd","gutterLg","gutterXl","children","grow","justify","align","columns","className","unstyled","variant"]),{classes:w,cx:j}=Xt({gutter:n,justify:u,align:m,gutterXs:o,gutterSm:i,gutterMd:a,gutterLg:s,gutterXl:c},{unstyled:y,name:"Grid",variant:h});return _.createElement(St,{value:{gutter:n,gutterXs:o,gutterSm:i,gutterMd:a,gutterLg:s,gutterXl:c,grow:d,columns:v}},_.createElement(R,Ut({className:j(w.root,p),ref:r},x),f))});b.Col=or;b.displayName="@mantine/core/Grid";function Yt({open:e,close:r,openDelay:t,closeDelay:n}){const o=g.useRef(-1),i=g.useRef(-1),a=()=>{window.clearTimeout(o.current),window.clearTimeout(i.current)},s=()=>{a(),t===0?e():o.current=window.setTimeout(e,t)},c=()=>{a(),n===0?r():i.current=window.setTimeout(r,n)};return g.useEffect(()=>a,[]),{openDropdown:s,closeDropdown:c}}const[qt,Zt]=le("List component was not found in tree");var Jt=C((e,{spacing:r,center:t})=>({itemWrapper:{ref:pe("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:t?1:e.lineHeight,"&:not(:first-of-type)":{marginTop:T({size:r,sizes:e.spacing})},"&[data-with-icon]":{listStyle:"none",[`& .${pe("itemWrapper")}`]:{display:"inline-flex",alignItems:t?"center":"flex-start",flexDirection:"row"}}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:e.spacing.sm}})),Qt=Object.defineProperty,Z=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,Se=(e,r,t)=>r in e?Qt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,en=(e,r)=>{for(var t in r||(r={}))ir.call(r,t)&&Se(e,t,r[t]);if(Z)for(var t of Z(r))lr.call(r,t)&&Se(e,t,r[t]);return e},rn=(e,r)=>{var t={};for(var n in e)ir.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Z)for(var n of Z(e))r.indexOf(n)<0&&lr.call(e,n)&&(t[n]=e[n]);return t};const tn={},cr=g.forwardRef((e,r)=>{const t=P("ListItem",tn,e),{className:n,children:o,icon:i}=t,a=rn(t,["className","children","icon"]),{icon:s,spacing:c,center:f,listStyleType:d,size:u,withPadding:m,classNames:v,styles:p,unstyled:y,variant:h}=Zt(),x=i||s,{classes:w,cx:j}=Jt({withPadding:m,listStyleType:d,center:f,spacing:c},{classNames:v,styles:p,unstyled:y,name:"List",variant:h,size:u});return _.createElement(R,en({component:"li",className:j(w.item,n),"data-with-icon":!!x||void 0,ref:r},a),_.createElement("div",{className:w.itemWrapper},x&&_.createElement("span",{className:w.itemIcon},x),_.createElement("span",null,o)))});cr.displayName="@mantine/core/ListItem";var nn=Object.defineProperty,on=Object.defineProperties,an=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Ee=(e,r,t)=>r in e?nn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,cn=(e,r)=>{for(var t in r||(r={}))sn.call(r,t)&&Ee(e,t,r[t]);if(je)for(var t of je(r))ln.call(r,t)&&Ee(e,t,r[t]);return e},dn=(e,r)=>on(e,an(r)),fn=C((e,{withPadding:r,listStyleType:t},{size:n})=>({root:dn(cn({},e.fn.fontStyles()),{listStyleType:t,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,fontSize:T({size:n,sizes:e.fontSizes}),lineHeight:e.lineHeight,margin:0,paddingLeft:r?e.spacing.xl:0,listStylePosition:"inside"})})),un=Object.defineProperty,J=Object.getOwnPropertySymbols,dr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,Ie=(e,r,t)=>r in e?un(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,pn=(e,r)=>{for(var t in r||(r={}))dr.call(r,t)&&Ie(e,t,r[t]);if(J)for(var t of J(r))fr.call(r,t)&&Ie(e,t,r[t]);return e},mn=(e,r)=>{var t={};for(var n in e)dr.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&J)for(var n of J(e))r.indexOf(n)<0&&fr.call(e,n)&&(t[n]=e[n]);return t};const gn={type:"unordered",size:"md",spacing:0},Q=g.forwardRef((e,r)=>{const t=P("List",gn,e),{children:n,type:o,size:i,listStyleType:a,withPadding:s,center:c,spacing:f,icon:d,className:u,styles:m,classNames:v,unstyled:p,variant:y}=t,h=mn(t,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled","variant"]),{classes:x,cx:w}=fn({withPadding:s,listStyleType:a,center:c,spacing:f},{classNames:v,styles:m,name:"List",unstyled:p,size:i,variant:y});return _.createElement(qt,{value:{spacing:f,center:c,icon:d,listStyleType:a,size:i,withPadding:s,classNames:v,styles:m,unstyled:p,variant:y}},_.createElement(R,pn({component:o==="unordered"?"ul":"ol",className:w(x.root,u),ref:r},h),n))});Q.Item=cr;Q.displayName="@mantine/core/List";const ur={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"},[vn,V]=le(ur.context);var _n=C(e=>({divider:{marginTop:$(4),marginBottom:$(4),borderTop:`${$(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`}})),yn=Object.defineProperty,ee=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,Ce=(e,r,t)=>r in e?yn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,hn=(e,r)=>{for(var t in r||(r={}))pr.call(r,t)&&Ce(e,t,r[t]);if(ee)for(var t of ee(r))mr.call(r,t)&&Ce(e,t,r[t]);return e},xn=(e,r)=>{var t={};for(var n in e)pr.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))r.indexOf(n)<0&&mr.call(e,n)&&(t[n]=e[n]);return t};const wn={},gr=g.forwardRef((e,r)=>{const t=P("MenuDivider",wn,e),{children:n,className:o}=t,i=xn(t,["children","className"]),{classNames:a,styles:s,unstyled:c,variant:f}=V(),{classes:d,cx:u}=_n(null,{name:"Menu",classNames:a,styles:s,unstyled:c,variant:f});return _.createElement(R,hn({className:u(d.divider,o),ref:r},i))});gr.displayName="@mantine/core/MenuDivider";var On=Object.defineProperty,re=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Ne=(e,r,t)=>r in e?On(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$n=(e,r)=>{for(var t in r||(r={}))vr.call(r,t)&&Ne(e,t,r[t]);if(re)for(var t of re(r))_r.call(r,t)&&Ne(e,t,r[t]);return e},Pn=(e,r)=>{var t={};for(var n in e)vr.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&re)for(var n of re(e))r.indexOf(n)<0&&_r.call(e,n)&&(t[n]=e[n]);return t};const bn={};function yr(e){const r=P("MenuDropdown",bn,e),{children:t,onMouseEnter:n,onMouseLeave:o}=r,i=Pn(r,["children","onMouseEnter","onMouseLeave"]),a=g.useRef(),s=V(),c=u=>{var m;(u.key==="ArrowUp"||u.key==="ArrowDown")&&(u.preventDefault(),(m=a.current.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||m.focus())},f=N(n,()=>s.trigger==="hover"&&s.openDropdown()),d=N(o,()=>s.trigger==="hover"&&s.closeDropdown());return _.createElement(ce.Dropdown,$n({onMouseEnter:f,onMouseLeave:d,role:"menu","aria-orientation":"vertical"},i),_.createElement("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:c,ref:a,style:{outline:0}},t))}yr.displayName="@mantine/core/MenuDropdown";var Sn=Object.defineProperty,jn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,De=(e,r,t)=>r in e?Sn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Nn=(e,r)=>{for(var t in r||(r={}))In.call(r,t)&&De(e,t,r[t]);if(Me)for(var t of Me(r))Cn.call(r,t)&&De(e,t,r[t]);return e},Mn=(e,r)=>jn(e,En(r)),Dn=C((e,{color:r,radius:t})=>({item:Mn(Nn({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${e.spacing.xs} ${e.spacing.sm}`,cursor:"pointer",borderRadius:e.fn.radius(t),color:r?e.fn.variant({variant:"filled",primaryFallback:!1,color:r}).background:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:r?e.fn.variant({variant:"light",color:r}).background:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[1]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}})),Tn=Object.defineProperty,Rn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Te=(e,r,t)=>r in e?Tn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,kn=(e,r)=>{for(var t in r||(r={}))hr.call(r,t)&&Te(e,t,r[t]);if(te)for(var t of te(r))xr.call(r,t)&&Te(e,t,r[t]);return e},zn=(e,r)=>Rn(e,Ln(r)),An=(e,r)=>{var t={};for(var n in e)hr.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&te)for(var n of te(e))r.indexOf(n)<0&&xr.call(e,n)&&(t[n]=e[n]);return t};const Bn={},wr=g.forwardRef((e,r)=>{const t=P("MenuItem",Bn,e),{children:n,className:o,color:i,closeMenuOnClick:a,icon:s,rightSection:c}=t,f=An(t,["children","className","color","closeMenuOnClick","icon","rightSection"]),d=V(),{classes:u,cx:m,theme:v}=Dn({radius:d.radius,color:i},{name:"Menu",classNames:d.classNames,styles:d.styles,unstyled:d.unstyled,variant:d.variant}),p=g.useRef(),y=d.getItemIndex(p.current),h=f,x=N(h.onMouseLeave,()=>d.setHovered(-1)),w=N(h.onMouseEnter,()=>d.setHovered(d.getItemIndex(p.current))),j=N(h.onClick,()=>{typeof a=="boolean"?a&&d.closeDropdownImmediately():d.closeOnItemClick&&d.closeDropdownImmediately()}),D=N(h.onFocus,()=>d.setHovered(d.getItemIndex(p.current)));return _.createElement(R,zn(kn({component:"button",type:"button"},f),{tabIndex:-1,onFocus:D,className:m(u.item,o),ref:Ar(p,r),role:"menuitem","data-menu-item":!0,"data-hovered":d.hovered===y?!0:void 0,onMouseEnter:w,onMouseLeave:x,onClick:j,onKeyDown:at({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:d.loop,dir:v.dir,orientation:"vertical",onKeyDown:h.onKeydown})}),s&&_.createElement("div",{className:u.itemIcon},s),n&&_.createElement("div",{className:u.itemLabel},n),c&&_.createElement("div",{className:u.itemRightSection},c))});wr.displayName="@mantine/core/MenuItem";const Fn=ie(wr);var Hn=C(e=>({label:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:`calc(${e.spacing.xs} / 2) ${e.spacing.sm}`,cursor:"default"}})),Vn=Object.defineProperty,ne=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Re=(e,r,t)=>r in e?Vn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Xn=(e,r)=>{for(var t in r||(r={}))Or.call(r,t)&&Re(e,t,r[t]);if(ne)for(var t of ne(r))$r.call(r,t)&&Re(e,t,r[t]);return e},Gn=(e,r)=>{var t={};for(var n in e)Or.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&ne)for(var n of ne(e))r.indexOf(n)<0&&$r.call(e,n)&&(t[n]=e[n]);return t};const Un={},Pr=g.forwardRef((e,r)=>{const t=P("MenuLabel",Un,e),{children:n,className:o}=t,i=Gn(t,["children","className"]),{classNames:a,styles:s,unstyled:c,variant:f}=V(),{classes:d,cx:u}=Hn(null,{name:"Menu",classNames:a,styles:s,unstyled:c,variant:f});return _.createElement(S,Xn({className:u(d.label,o),ref:r},i),n)});Pr.displayName="@mantine/core/MenuLabel";var Wn=Object.defineProperty,oe=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,Le=(e,r,t)=>r in e?Wn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Kn=(e,r)=>{for(var t in r||(r={}))br.call(r,t)&&Le(e,t,r[t]);if(oe)for(var t of oe(r))Sr.call(r,t)&&Le(e,t,r[t]);return e},Yn=(e,r)=>{var t={};for(var n in e)br.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&oe)for(var n of oe(e))r.indexOf(n)<0&&Sr.call(e,n)&&(t[n]=e[n]);return t};const qn={refProp:"ref"},jr=g.forwardRef((e,r)=>{const t=P("MenuTarget",qn,e),{children:n,refProp:o}=t,i=Yn(t,["children","refProp"]);if(!Br(n))throw new Error(ur.children);const a=V(),s=N(n.props.onClick,()=>a.trigger==="click"&&a.toggleDropdown()),c=N(n.props.onMouseEnter,()=>a.trigger==="hover"&&a.openDropdown()),f=N(n.props.onMouseLeave,()=>a.trigger==="hover"&&a.closeDropdown());return _.createElement(ce.Target,Kn({refProp:o,popupType:"menu",ref:r},i),g.cloneElement(n,{onClick:s,onMouseEnter:c,onMouseLeave:f,"data-expanded":a.opened?!0:void 0}))});jr.displayName="@mantine/core/MenuTarget";var Zn=C({dropdown:{padding:$(4)}}),Jn=Object.defineProperty,Qn=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,ke=(e,r,t)=>r in e?Jn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ze=(e,r)=>{for(var t in r||(r={}))Er.call(r,t)&&ke(e,t,r[t]);if(ae)for(var t of ae(r))Ir.call(r,t)&&ke(e,t,r[t]);return e},Ae=(e,r)=>Qn(e,eo(r)),ro=(e,r)=>{var t={};for(var n in e)Er.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&ae)for(var n of ae(e))r.indexOf(n)<0&&Ir.call(e,n)&&(t[n]=e[n]);return t};const to={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function I(e){const r=P("Menu",to,e),{children:t,onOpen:n,onClose:o,opened:i,defaultOpened:a,onChange:s,closeOnItemClick:c,loop:f,closeOnEscape:d,trigger:u,openDelay:m,closeDelay:v,classNames:p,styles:y,unstyled:h,radius:x,variant:w}=r,j=ro(r,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius","variant"]),{classes:D,cx:L}=Zn(),[k,{setHovered:z,resetHovered:A}]=it(),[E,O]=Fr({value:i,defaultValue:a,finalValue:!1,onChange:s}),M=()=>{O(!1),E&&o?.()},B=()=>{O(!0),!E&&n?.()},X=()=>E?M():B(),{openDropdown:Cr,closeDropdown:Nr}=Yt({open:B,close:M,closeDelay:v,openDelay:m}),Mr=Dr=>st("[data-menu-item]","[data-menu-dropdown]",Dr);return Hr(()=>{A()},[E]),_.createElement(vn,{value:{opened:E,toggleDropdown:X,getItemIndex:Mr,hovered:k,setHovered:z,closeOnItemClick:c,closeDropdown:u==="click"?M:Nr,openDropdown:u==="click"?B:Cr,closeDropdownImmediately:M,loop:f,trigger:u,radius:x,classNames:p,styles:y,unstyled:h,variant:w}},_.createElement(ce,Ae(ze({},j),{radius:x,opened:E,onChange:X,defaultOpened:a,trapFocus:u==="click"&&E,closeOnEscape:d&&u==="click",__staticSelector:"Menu",classNames:Ae(ze({},p),{dropdown:L(D.dropdown,p?.dropdown)}),styles:y,unstyled:h,variant:w}),t))}I.displayName="@mantine/core/Menu";I.Item=Fn;I.Label=Pr;I.Dropdown=yr;I.Target=jr;I.Divider=gr;function no({data:e,onChange:r}){const t=de(Vr,e),[n,o]=g.useState(t.accountantApproval);return g.useEffect(()=>{n==null&&t.accountantApproval!=null&&o(t.accountantApproval)},[n,t.accountantApproval]),l.jsx(Qr,{value:n,businessTripId:t.id,onChange:r})}const oo="creditShareholdersBusinessTripTravelAndSubsistence",ao=()=>{const[{fetching:e},r]=Xr(Gr),t=g.useCallback(async n=>{const o=`Error crediting shareholders for trip ID ${n.businessTripId}`,i=`${oo}-${n.businessTripId}`;se.loading("Crediting Shareholders",{id:i});try{const a=await r(n),s=Ur(a,o,i);s&&se.success("Shareholders Credited",{id:i,description:`${s.creditShareholdersBusinessTripTravelAndSubsistence.length} Corresponding charges were successfully generated`})}catch(a){console.error(`${o}: ${a}`),se.error("Error",{id:i,description:o,duration:1e5,closeButton:!0})}},[r]);return{fetching:e,creditShareholders:t}};function so({businessTripId:e}){const[r,t]=g.useState(!1),{creditShareholders:n}=ao();return l.jsxs(I,{shadow:"md",width:200,opened:r,children:[l.jsx(I.Target,{children:l.jsx(Xe,{opened:r,onClick:o=>{o.stopPropagation(),t(i=>!i)}})}),l.jsxs(I.Dropdown,{children:[l.jsx(I.Label,{children:"Summarize Trip"}),l.jsx(Wr,{onConfirm:()=>{n({businessTripId:e})},title:"Credit shareholders with travel and subsistence surplus?",children:l.jsx(I.Item,{icon:l.jsx(Kr,{size:14}),children:"Credit surplus T&S"})})]})]})}const go=({data:e,onChange:r})=>{const t=de(Zr,e),{name:n,dates:o,purpose:i,destination:a}=t;return l.jsxs(b,{children:[l.jsxs(b.Col,{span:12,className:"flex flex-row justify-between items-center",children:[l.jsx(S,{fz:"xl",children:n}),l.jsxs("div",{className:"flex flex-row gap-2",children:[l.jsx(no,{data:t,onChange:r}),l.jsx(Yr,{isLink:!0,content:`${window.location.origin}${qr.BUSINESS_TRIPS.DETAIL(t.id)}`}),l.jsx(so,{businessTripId:t.id})]})]}),l.jsxs(b.Col,{xl:2,lg:3,md:6,children:["From Date:",l.jsx(S,{fz:"lg",children:o?.start?me(new Date(o.start),"dd/MM/yy"):"Missing"})]}),l.jsxs(b.Col,{xl:2,lg:3,md:6,children:["To Date:",l.jsx(S,{fz:"lg",children:o?.end?me(new Date(o.end),"dd/MM/yy"):"Missing"})]}),l.jsxs(b.Col,{xl:2,lg:3,md:6,children:["Destination:",l.jsx(S,{fz:"lg",children:a?.name})]}),l.jsxs(b.Col,{xl:4,lg:6,md:12,orderMd:6,children:["Description:",l.jsx(S,{fz:"lg",children:i})]}),l.jsxs(b.Col,{xl:2,lg:3,md:6,children:["Total Days:",l.jsx(S,{fz:"lg",children:o?io(o.start,o.end):"Missing"})]})]})};function io(e,r){return rt(ve(new Date(r),22),ve(new Date(e),6))+1}function lo(e){return e.split("_").map(co).join(" ")}function co(e){return e.slice(0,1).toUpperCase()+e.slice(1,e.length).toLowerCase()}const vo=({data:e})=>{const{summary:r}=de(Jr,e);return r?l.jsxs("div",{className:"flex flex-col gap-2 mt-5",children:[r.errors?.length&&l.jsxs(Be,{shadow:"xs",p:"md",children:[l.jsx(S,{c:"red",children:"Errors:"}),l.jsx(Q,{size:"sm",withPadding:!0,children:r.errors.map((t,n)=>l.jsx(Q.Item,{children:l.jsx(S,{c:"red",children:t})},n))})]}),l.jsxs(et,{highlightOnHover:!0,withBorder:!0,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Expense Type"}),l.jsxs("th",{children:["Total ",F(H.Usd)]}),l.jsxs("th",{children:["Total ",F(H.Ils)]}),l.jsxs("th",{children:["Max Taxable ",F(H.Usd)]}),l.jsxs("th",{children:["Taxable ",F(H.Usd)]}),l.jsxs("th",{children:["Taxable ",F(H.Ils)]}),l.jsx("th",{children:"Excess Expenditure"})]})}),l.jsx("tbody",{children:r.rows.map(t=>l.jsxs("tr",{children:[l.jsx("td",{children:lo(t.type)}),l.jsx("td",{children:t.totalForeignCurrency?.formatted}),l.jsx("td",{children:t.totalLocalCurrency?.formatted}),l.jsx("td",{children:t.maxTaxableForeignCurrency?.formatted}),l.jsx("td",{children:t.taxableForeignCurrency?.formatted}),l.jsx("td",{children:t.taxableLocalCurrency?.formatted}),l.jsx("td",{children:t.excessExpenditure?.formatted})]},t.type))})]}),l.jsxs(b,{justify:"flex-end",children:[l.jsxs(b.Col,{lg:2,md:4,children:["Excess Expenditure Tax:",l.jsxs(S,{fz:"lg",children:[r.excessTax??"0","%"]})]}),l.jsx(b.Col,{lg:2,md:3,className:"flex flex-col justify-end",children:l.jsx(S,{fz:"lg",children:r.excessExpenditure?.formatted??"0.00"})})]})]}):l.jsx(S,{children:"Loading..."})};export{Xe as B,mo as C,b as G,Q as L,I as M,go as R,vo as S};
|
package/dist/assets/{toggle-expansion-button-BquTpOYj.js → toggle-expansion-button-Y2eS7nqg.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as n,T as l,B as p}from"./index-
|
|
1
|
+
import{j as n,T as l,B as p}from"./index-rI994S3C.js";import{P as r,a as c}from"./panel-top-open-Bf39HBrp.js";function u(t){const{toggleExpansion:e,isExpanded:o,onClickAction:s}=t;return n.jsx(l,{content:"Expand info",children:n.jsx(p,{variant:o?"default":"outline",onClick:i=>{i.stopPropagation(),e(a=>(s&&s(a),!a))},className:"size-7.5",children:o?n.jsx(r,{className:"size-5"}):n.jsx(c,{className:"size-5"})})})}export{u as T};
|
package/dist/assets/{update-accountant-status-Btcm95Uc.js → update-accountant-status-zL6vnwU9.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as w,g as C,hF as U,r as d,t as p,i as I,hG as j,hH as c,
|
|
1
|
+
import{v as w,g as C,hF as U,r as d,t as p,i as I,hG as j,hH as c,a4 as m,e as b,j as o,bZ as y,b_ as $,B as k,c0 as B,dU as v}from"./index-rI994S3C.js";const D=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],x=w("clock",D),N="updateBusinessTripAccountantApproval",E=()=>{const[{fetching:t},i]=C(U),u=d.useCallback(async e=>{const n=`Error toggling accountant approval for trip [${e.businessTripId}]`,a=`${N}-${e.businessTripId}`;p.loading("Updating accountant approval status",{id:a});try{const s=await i(e),r=I(s,n,a);if(r)return p.success("Success",{id:a,description:"Accountant approval status updated"}),r.updateBusinessTripAccountantApproval}catch(s){console.error(`${n}: ${s}`),p.error("Error",{id:a,description:n,duration:1e5,closeButton:!0})}},[i]);return{fetching:t,updateBusinessTripAccountantApproval:u}},S="updateChargeAccountantApproval",M=()=>{const[{fetching:t},i]=C(j),u=d.useCallback(async e=>{const n=`Error toggling accountant approval to ledger record ID [${e.chargeId}]`,a=`${S}-${e.chargeId}`;p.loading("Updating approval status",{id:a});try{const s=await i(e),r=I(s,n,a,"updateChargeAccountantApproval");if(r)return p.success("Success",{id:a,description:"Accountant approval was updated"}),r.updateChargeAccountantApproval}catch(s){console.error(`${n}: ${s}`),p.error("Error",{id:a,description:n,duration:1e5,closeButton:!0})}},[i]);return{fetching:t,updateChargeAccountantApproval:u}},O={[c.Approved]:{icon:b,color:"text-green-600",bgColor:"hover:bg-green-50",label:"Approved",value:c.Approved},[c.Pending]:{icon:x,color:"text-yellow-600",bgColor:"hover:bg-yellow-50",label:"Pending",value:c.Pending},[c.Unapproved]:{icon:m,color:"text-red-600",bgColor:"hover:bg-red-50",label:"Unapproved",value:c.Unapproved}},P=t=>O[t];function F(t){const{onChange:i,value:u}=t,[e,n]=d.useState(u??c.Unapproved),{updateChargeAccountantApproval:a}=M(),{updateBusinessTripAccountantApproval:s}=E(),r=P(e),T=r.icon,l=d.useCallback(async g=>{const f=e;n(g);let h=null;t.chargeId?h=await a({chargeId:t.chargeId,status:g}):t.businessTripId&&(h=await s({businessTripId:t.businessTripId,status:g})),h||n(f),i?.()},[t.chargeId,a,t.businessTripId,s,e,i]);d.useEffect(()=>{u&&n(u)},[u]);const A=!t.chargeId&&!t.businessTripId;return o.jsxs(y,{children:[o.jsx($,{asChild:!0,disabled:A,children:o.jsx(k,{variant:"ghost",size:"sm",className:`h-7 w-7 p-0 ${r.bgColor}`,title:r.label,disabled:A,children:o.jsx(T,{className:`h-3.5 w-3.5 ${r.color}`})})}),o.jsxs(B,{align:"center",children:[o.jsxs(v,{onClick:()=>l(c.Approved),children:[o.jsx(b,{className:"h-4 w-4 mr-2 text-green-600"}),"Approved"]}),o.jsxs(v,{onClick:()=>l(c.Pending),children:[o.jsx(x,{className:"h-4 w-4 mr-2 text-yellow-600"}),"Pending"]}),o.jsxs(v,{onClick:()=>l(c.Unapproved),children:[o.jsx(m,{className:"h-4 w-4 mr-2 text-red-600"}),"Unapproved"]})]})]})}export{F as U,O as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,j as e,D,aL as C,bU as I,bV as E,B as p,ag as T,bW as P,x as k,dB as F,dC as A,J as v,W as f,L as y,dD as S,e as B,K as G,O,dE as M,bp as R,bh as L,dF as q,g as z,t as h,i as H,dG as V}from"./index-rI994S3C.js";function K({onApprove:u,draft:o}){const[l,r]=a.useState(!1),s=t=>{u(t),r(!1)};return e.jsxs(D,{open:l,onOpenChange:r,children:[e.jsx(C,{asChild:!0,type:"button",children:e.jsxs(I,{children:[e.jsx(E,{asChild:!0,type:"button",children:e.jsx(p,{className:"size-7.5",variant:"secondary",onClick:()=>r(t=>!t),type:"button",children:e.jsx(T,{className:"size-5"})})}),e.jsx(P,{children:e.jsx("p",{children:"Edit document"})})]})}),e.jsx(k,{className:"w-7xl sm:max-w-[95%] max-h-[90vh] overflow-y-auto",children:e.jsx("div",{className:"min-h-screen bg-gray-50 p-4",children:e.jsxs("div",{className:"max-w-7xl mx-auto",children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Edit Document"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Modify and preview your accounting document before issuing"})]}),e.jsx(W,{onApprove:s,draft:o})]})})})]})}function W({onApprove:u,draft:o}){const[l,r]=a.useState(!1),[s,t]=a.useState(null),{previewDocument:d,fetching:i}=F(),[n,N]=a.useState(o),b=a.useCallback((c,m)=>{N(x=>({...x,[c]:m}))},[]);a.useEffect(()=>{r(!1)},[n]);const j=a.useCallback(async()=>{try{const c=await d({input:n});if(!c)throw new Error("No preview data returned");t(c),r(!0)}catch(c){console.error("Failed to generate preview:",c)}},[n,d]);a.useEffect(()=>{s||j()},[s,j]);const g=n.income?.reduce((c,m)=>{const x=m.price*m.quantity,w=x*((m.vatRate||0)/100);return c+x+w},0)||0;return e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsx(A,{formData:n,updateFormData:b}),e.jsx(v,{children:e.jsxs(f,{className:"pt-6",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx(p,{onClick:j,disabled:i||l,variant:"outline",className:"flex-1 bg-transparent",children:i?e.jsxs(e.Fragment,{children:[e.jsx(y,{className:"w-4 h-4 mr-2 animate-spin"}),"Generating..."]}):e.jsxs(e.Fragment,{children:[e.jsx(S,{className:"w-4 h-4 mr-2"}),"Preview"]})}),e.jsxs(p,{onClick:()=>u(n),className:"flex-1",children:[e.jsx(B,{className:"w-4 h-4 mr-2"}),"Accept Changes"]})]}),g>0&&e.jsx("div",{className:"mt-4 p-3 bg-blue-50 rounded-lg",children:e.jsxs("div",{className:"flex justify-between items-center font-medium text-blue-900",children:[e.jsx("span",{children:"Total Document Amount:"}),e.jsxs("span",{children:[g.toFixed(2)," ",n.currency]})]})})]})})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(v,{className:"h-fit",children:[e.jsx(G,{children:e.jsx(O,{children:"Document Preview"})}),e.jsx(f,{children:e.jsx("div",{className:"border-2 border-dashed border-gray-200 rounded-lg min-h-[600px] flex items-center justify-center bg-gray-50",children:i?e.jsxs("div",{className:"text-center",children:[e.jsx(y,{className:"w-8 h-8 animate-spin mx-auto mb-4 text-gray-400"}),e.jsx("p",{className:"text-gray-500",children:"Generating document preview..."})]}):s?e.jsx("div",{className:"w-full",children:e.jsx("div",{className:"bg-white shadow-lg rounded-lg overflow-hidden",children:e.jsx("div",{className:"aspect-[8.5/11] bg-white border",children:e.jsx("div",{className:"h-full flex items-center justify-center",children:e.jsxs("div",{className:"text-center p-6",children:[e.jsx(M,{src:s}),!l&&e.jsx("p",{className:"text-xs text-amber-600 mt-3 bg-amber-50 px-2 py-1 rounded",children:"Preview may be outdated"})]})})})})}):e.jsxs("div",{className:"text-center",children:[e.jsx(R,{className:"w-16 h-16 mx-auto mb-4 text-gray-300"}),e.jsx("p",{className:"text-gray-500 mb-2",children:"No preview available"}),e.jsx("p",{className:"text-sm text-gray-400",children:"Click Preview to generate document"})]})})})]}),n.client&&e.jsx(L,{businessId:n.client?.id,linkedDocumentIds:n.linkedDocumentIds??[]}),e.jsx(q,{documentType:n.type})]})]})}const $="issue-monthly-documents",U=()=>{const[{fetching:u},o]=z(V),l=a.useCallback(async r=>{const s="Error issuing monthly documents",t=$;h.loading("Issuing documents",{id:t});try{const d=await o(r),i=H(d,s,t);if(i?.issueGreenInvoiceDocuments?.success){h.success("Success",{id:t,description:"Documents issued successfully"});return}i?.issueGreenInvoiceDocuments?.errors&&console.error(i.issueGreenInvoiceDocuments.errors),h.error("Error",{id:t,description:s,duration:1e5,closeButton:!0})}catch(d){console.error(`${s}: ${d}`),h.error("Error",{id:t,description:s,duration:1e5,closeButton:!0})}},[o]);return{fetching:u,issueDocuments:l}};export{W as E,K as a,U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i4 as a,r as s}from"./index-
|
|
1
|
+
import{i4 as a,r as s}from"./index-rI994S3C.js";function c(){const{search:n}=a(),t=s.useMemo(()=>new URLSearchParams(n),[n]),r=s.useCallback(()=>{if(window.history.pushState){const o=t.keys().next().done?"":`?${t.toString()}`,e=window.location.protocol+"//"+window.location.host+window.location.pathname+o;window.history.pushState({path:e},"",e)}},[t]);return{query:t,queryString:()=>t.toString(),get:o=>t?.get(o),set:(o,e)=>{e==null?t.delete(o):t.set(o,e),r()}}}export{c as u};
|
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-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-rI994S3C.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-BbIoj0ZC.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aF as l,j as t,h9 as Q,ha as W,hb as O,hc as X,hd as Z,he as T,hf as ee,hg as oe,hh as M,hi as re,hj as te,hk as ne,m as P,b$ as ae}from"./index-DRqooPz9.js";var d="Accordion",ce=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[k,ie,se]=Q(d),[A]=W(d,[se,O]),E=O(),V=l.forwardRef((e,n)=>{const{type:o,...a}=e,c=a,r=a;return t.jsx(k.Provider,{scope:e.__scopeAccordion,children:o==="multiple"?t.jsx(ue,{...r,ref:n}):t.jsx(pe,{...c,ref:n})})});V.displayName=d;var[H,le]=A(d),[$,de]=A(d,{collapsible:!1}),pe=l.forwardRef((e,n)=>{const{value:o,defaultValue:a,onValueChange:c=()=>{},collapsible:r=!1,...s}=e,[i,p]=M({prop:o,defaultProp:a??"",onChange:c,caller:d});return t.jsx(H,{scope:e.__scopeAccordion,value:l.useMemo(()=>i?[i]:[],[i]),onItemOpen:p,onItemClose:l.useCallback(()=>r&&p(""),[r,p]),children:t.jsx($,{scope:e.__scopeAccordion,collapsible:r,children:t.jsx(K,{...s,ref:n})})})}),ue=l.forwardRef((e,n)=>{const{value:o,defaultValue:a,onValueChange:c=()=>{},...r}=e,[s,i]=M({prop:o,defaultProp:a??[],onChange:c,caller:d}),p=l.useCallback(x=>i((f=[])=>[...f,x]),[i]),v=l.useCallback(x=>i((f=[])=>f.filter(C=>C!==x)),[i]);return t.jsx(H,{scope:e.__scopeAccordion,value:s,onItemOpen:p,onItemClose:v,children:t.jsx($,{scope:e.__scopeAccordion,collapsible:!0,children:t.jsx(K,{...r,ref:n})})})}),[fe,b]=A(d),K=l.forwardRef((e,n)=>{const{__scopeAccordion:o,disabled:a,dir:c,orientation:r="vertical",...s}=e,i=l.useRef(null),p=re(i,n),v=ie(o),f=te(c)==="ltr",C=ne(e.onKeyDown,m=>{if(!ce.includes(m.key))return;const B=m.target,I=v().filter(R=>!R.ref.current?.disabled),g=I.findIndex(R=>R.ref.current===B),D=I.length;if(g===-1)return;m.preventDefault();let u=g;const j=0,w=D-1,_=()=>{u=g+1,u>w&&(u=j)},y=()=>{u=g-1,u<j&&(u=w)};switch(m.key){case"Home":u=j;break;case"End":u=w;break;case"ArrowRight":r==="horizontal"&&(f?_():y());break;case"ArrowDown":r==="vertical"&&_();break;case"ArrowLeft":r==="horizontal"&&(f?y():_());break;case"ArrowUp":r==="vertical"&&y();break}const J=u%D;I[J].ref.current?.focus()});return t.jsx(fe,{scope:o,disabled:a,direction:c,orientation:r,children:t.jsx(k.Slot,{scope:o,children:t.jsx(T.div,{...s,"data-orientation":r,ref:p,onKeyDown:a?void 0:C})})})}),h="AccordionItem",[ve,S]=A(h),z=l.forwardRef((e,n)=>{const{__scopeAccordion:o,value:a,...c}=e,r=b(h,o),s=le(h,o),i=E(o),p=X(),v=a&&s.value.includes(a)||!1,x=r.disabled||e.disabled;return t.jsx(ve,{scope:o,open:v,disabled:x,triggerId:p,children:t.jsx(Z,{"data-orientation":r.orientation,"data-state":q(v),...i,...c,ref:n,disabled:x,open:v,onOpenChange:f=>{f?s.onItemOpen(a):s.onItemClose(a)}})})});z.displayName=h;var L="AccordionHeader",G=l.forwardRef((e,n)=>{const{__scopeAccordion:o,...a}=e,c=b(d,o),r=S(L,o);return t.jsx(T.h3,{"data-orientation":c.orientation,"data-state":q(r.open),"data-disabled":r.disabled?"":void 0,...a,ref:n})});G.displayName=L;var N="AccordionTrigger",U=l.forwardRef((e,n)=>{const{__scopeAccordion:o,...a}=e,c=b(d,o),r=S(N,o),s=de(N,o),i=E(o);return t.jsx(k.ItemSlot,{scope:o,children:t.jsx(ee,{"aria-disabled":r.open&&!s.collapsible||void 0,"data-orientation":c.orientation,id:r.triggerId,...i,...a,ref:n})})});U.displayName=N;var F="AccordionContent",Y=l.forwardRef((e,n)=>{const{__scopeAccordion:o,...a}=e,c=b(d,o),r=S(F,o),s=E(o);return t.jsx(oe,{role:"region","aria-labelledby":r.triggerId,"data-orientation":c.orientation,...s,...a,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Y.displayName=F;function q(e){return e?"open":"closed"}var xe=V,me=z,ge=G,he=U,Ae=Y;function Ce({...e}){return t.jsx(xe,{"data-slot":"accordion",...e})}function Ie({className:e,...n}){return t.jsx(me,{"data-slot":"accordion-item",className:P("border-b last:border-b-0",e),...n})}function je({className:e,children:n,...o}){return t.jsx(ge,{className:"flex",children:t.jsxs(he,{"data-slot":"accordion-trigger",className:P("focus-visible:border-gray-950 focus-visible:ring-gray-950/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:focus-visible:border-gray-300 dark:focus-visible:ring-gray-300/50 hover:no-underline mx-4 my-2",e),...o,children:[n,t.jsx(ae,{className:"text-gray-500 pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-gray-400"})]})})}function we({className:e,children:n,...o}){return t.jsx(Ae,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm mx-4",...o,children:t.jsx("div",{className:P("pt-0 pb-4",e),children:n})})}export{Ce as A,Ie as a,je as b,we as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as l,j as e,af as t,w as m,bu as x}from"./index-DRqooPz9.js";import{B as o}from"./building-2-CWrl-iq9.js";function h({data:n}){const s=l(x,n);if(!s||s.__typename!=="LtdFinancialEntity")return e.jsx("div",{});const{isActive:i,adminInfo:r,clientInfo:a}=s,d=!!r?.id,c=!!a?.id;return e.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-border bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/60",children:e.jsx("div",{className:"container mx-auto px-4 md:px-6 lg:px-8 max-w-7xl",children:e.jsxs("div",{className:"flex h-16 items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-accent",children:e.jsx(o,{className:"h-5 w-5 text-accent-foreground"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("h1",{className:"text-lg font-semibold text-foreground",children:s.name}),i?e.jsx(t,{variant:"secondary",children:"Active"}):e.jsx(t,{variant:"destructive",children:"Inactive"}),d&&e.jsx(t,{variant:"outline",children:"Admin"}),c&&e.jsx(t,{variant:"outline",children:"Client"})]}),e.jsxs("p",{className:"text-sm text-muted-foreground truncate",children:["Business ID: ",s.id]})]})]}),e.jsxs("div",{className:"hidden md:flex items-center gap-6 text-sm",children:[s.governmentId&&e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-muted-foreground",children:"Tax ID"}),e.jsx("p",{className:"font-medium text-foreground",children:s.governmentId})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-muted-foreground",children:"Since"}),e.jsx("p",{className:"font-medium text-foreground",children:m(s.createdAt,"MMM yyyy")})]})]})]})})})}export{h as B};
|